:root {
  --ink: #17202a;
  --muted: #5d6976;
  --line: #d8e0e8;
  --paper: #f6f8fb;
  --white: #ffffff;
  --red: #d84235;
  --teal: #117b83;
  --gold: #d79a20;
  --shadow: 0 18px 45px rgba(23, 32, 42, 0.12);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef4ff;
  --muted: #aeb8c7;
  --line: #2b384b;
  --paper: #0d1420;
  --white: #172131;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
  transition: color 160ms ease, background-color 160ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--teal));
  border-radius: 8px;
  font-weight: 800;
}

.top-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.top-nav a:hover {
  color: var(--red);
}

.hero {
  min-height: 48vh;
  display: grid;
  align-items: end;
  padding: clamp(64px, 11vw, 128px) clamp(18px, 5vw, 72px) 48px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 26, 38, 0.88), rgba(16, 26, 38, 0.42)),
    url("https://images.unsplash.com/photo-1581092921461-39b9d08a9b21?auto=format&fit=crop&w=1800&q=80")
      center / cover;
}

.subhero {
  min-height: 36vh;
  display: grid;
  align-items: end;
  padding: clamp(64px, 10vw, 112px) clamp(18px, 5vw, 72px) 46px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 26, 38, 0.9), rgba(17, 123, 131, 0.5)),
    url("https://images.unsplash.com/photo-1581092921461-39b9d08a9b21?auto=format&fit=crop&w=1800&q=80")
      center / cover;
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.products-section {
  padding: 56px clamp(18px, 5vw, 72px) 72px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  min-height: 310px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--teal);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-card:nth-child(2) {
  border-top-color: var(--red);
}

.product-card:nth-child(3) {
  border-top-color: var(--gold);
}

.card-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 24px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.product-card h3 {
  margin: 0 0 20px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: 0;
}

.product-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
}

.product-card a::after {
  content: ">";
  color: var(--red);
  font-weight: 800;
}

.product-card a:hover {
  border-color: var(--line);
  background: var(--white);
}

.product-card .material-link {
  position: relative;
  min-height: 86px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  border-color: rgba(255, 255, 255, 0.16);
}

.product-card .material-link span {
  position: relative;
  z-index: 1;
}

.product-card .material-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: transform 180ms ease, opacity 180ms ease;
}

.product-card .material-link::after {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.product-card .material-link:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.product-card .material-link:hover::before {
  transform: scale(1.07);
  opacity: 0.92;
}

.material-link--neodimio::before {
  background-image:
    linear-gradient(90deg, rgba(23, 32, 42, 0.82), rgba(23, 32, 42, 0.22)),
    url("assets/neodimio-variedad.jfif");
}

.material-link--ferrita::before {
  background-image:
    linear-gradient(90deg, rgba(23, 32, 42, 0.84), rgba(23, 32, 42, 0.2)),
    url("assets/imanes-ferrita-variedad.jpeg");
}

.material-link--plasticos::before {
  background-image:
    linear-gradient(90deg, rgba(23, 32, 42, 0.84), rgba(23, 32, 42, 0.18)),
    url("assets/iman-plastico-variedad.jpg");
}

.product-card .advertising-link {
  position: relative;
  min-height: 96px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  border-color: rgba(255, 255, 255, 0.16);
}

.product-card .advertising-link span {
  position: relative;
  z-index: 1;
}

.product-card .advertising-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: transform 180ms ease, opacity 180ms ease;
}

.product-card .advertising-link::after {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.product-card .advertising-link:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.product-card .advertising-link:hover::before {
  transform: scale(1.07);
  opacity: 0.92;
}

.advertising-link--vehiculares::before {
  background-image:
    linear-gradient(90deg, rgba(23, 32, 42, 0.86), rgba(23, 32, 42, 0.18)),
    url("assets/vehiculares.png");
}

.advertising-link--publicitarios::before {
  background-image:
    linear-gradient(90deg, rgba(23, 32, 42, 0.84), rgba(23, 32, 42, 0.2)),
    url("assets/imanes-publicitarios-ejemplo.png");
  background-position: center 58%;
}

.product-card .service-link {
  position: relative;
  min-height: 96px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  border-color: rgba(255, 255, 255, 0.16);
}

.product-card .service-link span {
  position: relative;
  z-index: 1;
}

.product-card .service-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: transform 180ms ease, opacity 180ms ease;
}

.product-card .service-link::after {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.product-card .service-link:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.product-card .service-link:hover::before {
  transform: scale(1.07);
  opacity: 0.92;
}

.service-link--rejillas::before {
  background-image:
    linear-gradient(90deg, rgba(23, 32, 42, 0.86), rgba(23, 32, 42, 0.18)),
    url("assets/rejilla-magnetica.avif");
}

.service-link--ingenieria::before {
  background-image:
    linear-gradient(90deg, rgba(23, 32, 42, 0.86), rgba(23, 32, 42, 0.18)),
    url("assets/servicio-de-ingenieria.webp");
  background-position: center 45%;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.option-card {
  display: grid;
  min-height: 130px;
  place-items: center;
  padding: 22px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--teal);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 800;
  text-align: center;
}

.option-card:nth-child(2),
.option-card:nth-child(5) {
  border-top-color: var(--red);
}

.option-card:nth-child(3) {
  border-top-color: var(--gold);
}

.option-card:hover {
  transform: translateY(-2px);
}

.shape-card {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.shape-card span {
  position: relative;
  z-index: 1;
}

.shape-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: transform 180ms ease, opacity 180ms ease;
}

.shape-card:hover {
  color: var(--white);
}

.shape-card:hover::before {
  transform: scale(1.07);
  opacity: 0.92;
}

.shape-card--neodimio-disco::before {
  background-image:
    linear-gradient(90deg, rgba(23, 32, 42, 0.78), rgba(23, 32, 42, 0.15)),
    url("assets/neodimio-disco.png");
  background-position: center 58%;
}

.shape-card--neodimio-bloque::before {
  background-image:
    linear-gradient(90deg, rgba(23, 32, 42, 0.78), rgba(23, 32, 42, 0.15)),
    url("assets/neodimio-bloque.png");
  background-position: center 56%;
}

.shape-card--neodimio-anillo::before {
  background-image:
    linear-gradient(90deg, rgba(23, 32, 42, 0.78), rgba(23, 32, 42, 0.15)),
    url("assets/neodimio-anillo.png");
  background-position: center 58%;
}

.shape-card--neodimio-esfericos::before {
  background-image:
    linear-gradient(90deg, rgba(23, 32, 42, 0.78), rgba(23, 32, 42, 0.15)),
    url("assets/neodimio-esfericos.png");
  background-position: center 55%;
}

.shape-card--neodimio-ganchos::before {
  background-image:
    linear-gradient(90deg, rgba(23, 32, 42, 0.78), rgba(23, 32, 42, 0.15)),
    url("assets/neodimio-ganchos.png");
  background-position: center 55%;
}

.shape-card--ferrita-moneda::before {
  background-image:
    linear-gradient(90deg, rgba(23, 32, 42, 0.78), rgba(23, 32, 42, 0.15)),
    url("assets/ferrita-moneda.png");
  background-position: center 55%;
}

.shape-card--ferrita-bloque::before {
  background-image:
    linear-gradient(90deg, rgba(23, 32, 42, 0.78), rgba(23, 32, 42, 0.15)),
    url("assets/ferrita-bloque.png");
  background-position: center 58%;
}

.shape-card--ferrita-anillo::before {
  background-image:
    linear-gradient(90deg, rgba(23, 32, 42, 0.78), rgba(23, 32, 42, 0.15)),
    url("assets/ferrita-anillo.png");
  background-position: center 55%;
}

.shape-card--ferrita-concavo::before {
  background-image:
    linear-gradient(90deg, rgba(23, 32, 42, 0.78), rgba(23, 32, 42, 0.15)),
    url("assets/ferrita-concavo.jpg");
  background-position: center 55%;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

.site-footer a {
  color: #f5c76f;
  font-weight: 700;
}

@media (max-width: 860px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

  .option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 54vh;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }
}


.specs-section {
  padding: 56px clamp(18px, 5vw, 72px) 16px;
}

.models-section {
  padding: 56px clamp(18px, 5vw, 72px) 72px;
}

.spec-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1.3fr);
  gap: 18px;
}

.spec-card,
.empty-state {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--teal);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.spec-card h3 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.spec-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.grade-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.grade-list span {
  padding: 10px 12px;
  background: var(--paper);
  border-radius: 8px;
  font-weight: 700;
}

.model-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.model-count {
  margin: 0;
  padding: 10px 14px;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.models-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.models-table th,
.models-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.models-table th {
  color: var(--white);
  background: var(--ink);
  font-size: 0.84rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.models-table tbody tr:hover {
  background: #fffbea;
}

.models-table tbody tr:last-child td {
  border-bottom: 0;
}

.models-table td:last-child,
.models-table th:last-child {
  text-align: right;
}

.empty-state {
  color: var(--muted);
  font-weight: 800;
}

.theme-toggle {
  position: fixed;
  right: clamp(16px, 4vw, 34px);
  bottom: calc(clamp(16px, 4vw, 34px) + 66px);
  z-index: 80;
  min-height: 46px;
  padding: 10px 14px;
  color: #17202a;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .spec-grid,
  .grade-list {
    grid-template-columns: 1fr;
  }

  .model-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}


.cart-toggle {
  position: fixed;
  right: clamp(16px, 4vw, 34px);
  bottom: clamp(16px, 4vw, 34px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--red);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cart-toggle strong {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  color: var(--ink);
  background: var(--white);
  border-radius: 999px;
  font-size: 0.9rem;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(23, 32, 42, 0.42);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  width: min(430px, 100vw);
  height: 100vh;
  background: var(--white);
  box-shadow: -18px 0 45px rgba(23, 32, 42, 0.18);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-header h2 {
  margin: 0;
  font-size: 1.7rem;
}

.cart-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.cart-tabs button {
  min-height: 40px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cart-tabs button.is-active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.cart-panel {
  min-height: 0;
  overflow: auto;
}

.cart-panel[hidden] {
  display: none;
}

.cart-customer {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.cart-customer-title {
  margin: 0;
  font-weight: 800;
}

.cart-customer label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.cart-customer input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
}

.cart-icon-button,
.cart-quantity button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cart-items {
  overflow: auto;
  padding: 18px;
}

.cart-empty {
  padding: 22px;
  color: var(--muted);
  background: var(--paper);
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item-main h3,
.cart-item-main p {
  margin: 0;
}

.cart-item-main h3 {
  font-size: 1.05rem;
}

.cart-item-main p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.cart-item-main strong {
  display: block;
  margin-top: 8px;
}

.cart-quantity {
  display: grid;
  grid-template-columns: 36px 64px 36px;
  align-items: center;
  gap: 4px;
}

.cart-quantity input {
  width: 64px;
  height: 36px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-align: center;
}

.cart-remove {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 0;
  color: var(--red);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cart-summary {
  display: grid;
  gap: 12px;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.cart-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.1rem;
}

.cart-whatsapp-button,
.cart-download-button,
.cart-clear-button,
.add-to-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: center;
}

.cart-whatsapp-button {
  color: var(--white);
  background: #1f9d55;
}

.cart-download-button {
  color: var(--white);
  background: #102a4c;
  border: 1px solid #102a4c;
}

.cart-clear-button {
  color: var(--white);
  background: var(--red);
  border: 1px solid var(--red);
}

.cart-whatsapp-button[aria-disabled="true"],
.cart-download-button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
}

.cart-download-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.add-to-cart-button {
  color: var(--white);
  background: var(--red);
  border: 0;
  white-space: nowrap;
}

.cart-action-heading,
.cart-action-cell {
  text-align: center !important;
}

.models-table th.cart-action-heading,
.models-table td.cart-action-cell {
  position: sticky;
  right: 0;
}

.models-table th.cart-action-heading {
  background: var(--ink);
}

.models-table td.cart-action-cell {
  background: inherit;
}

@media (max-width: 560px) {
  .cart-toggle {
    right: 14px;
    bottom: 14px;
  }

  .theme-toggle {
    right: 14px;
    bottom: 76px;
  }

  .cart-drawer {
    width: 100vw;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }
}

.add-to-cart-button.is-disabled {
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: not-allowed;
}
.card-icon.card-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 64px;
  height: auto;
  padding: 14px 16px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.15;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.flexible-spec-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flex-caliber-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.flex-caliber h3 {
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.flex-caliber-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 800;
}

.catalog-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
}

.catalog-table th,
.catalog-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.catalog-table th {
  color: var(--white);
  background: var(--ink);
  font-size: 0.84rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.catalog-table tbody tr:hover {
  background: #fffbea;
}

.catalog-table tbody tr:last-child td {
  border-bottom: 0;
}

.catalog-table td:nth-child(2),
.catalog-table td:nth-child(3),
.catalog-table th:nth-child(2),
.catalog-table th:nth-child(3) {
  text-align: right;
}

.catalog-table .cart-action-cell {
  min-width: 190px;
  text-align: right !important;
}

.flex-cart-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.flex-cart-actions .add-to-cart-button {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.publicity-calculator {
  display: grid;
  gap: 18px;
  max-width: 980px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--red);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.publicity-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.publicity-controls label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.publicity-controls select,
.publicity-controls input {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
}

.publicity-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.publicity-result p {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.publicity-result span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.publicity-result strong {
  font-size: 1.08rem;
}

.publicity-warning {
  margin: 0;
  color: var(--red);
  font-weight: 800;
}

.publicity-add-button {
  justify-self: start;
}

.publicity-price-table {
  min-width: 760px;
}

.publicity-price-table td:not(:first-child),
.publicity-price-table th:not(:first-child) {
  text-align: right;
}

.add-to-cart-button:disabled {
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: not-allowed;
}

@media (max-width: 1180px) {
  .flex-caliber-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .flexible-spec-grid,
  .flex-caliber-grid,
  .publicity-controls,
  .publicity-result {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .site-header {
  background: rgba(13, 20, 32, 0.92);
}

html[data-theme="dark"] .brand-mark,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .subhero,
html[data-theme="dark"] .card-icon,
html[data-theme="dark"] .material-link,
html[data-theme="dark"] .advertising-link,
html[data-theme="dark"] .service-link,
html[data-theme="dark"] .shape-card,
html[data-theme="dark"] .model-count,
html[data-theme="dark"] .cart-toggle,
html[data-theme="dark"] .cart-whatsapp-button,
html[data-theme="dark"] .cart-download-button,
html[data-theme="dark"] .cart-clear-button,
html[data-theme="dark"] .add-to-cart-button {
  color: #ffffff;
}

html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .models-table th,
html[data-theme="dark"] .catalog-table th,
html[data-theme="dark"] .models-table th.cart-action-heading {
  color: #ffffff;
  background: #0a111d;
}

html[data-theme="dark"] .card-icon,
html[data-theme="dark"] .cart-tabs button.is-active {
  color: #ffffff;
  background: #24324a;
  border-color: #31425d;
}

html[data-theme="dark"] .models-table tbody tr:hover,
html[data-theme="dark"] .catalog-table tbody tr:hover {
  background: #202b3a;
}

html[data-theme="dark"] .cart-backdrop {
  background: rgba(0, 0, 0, 0.62);
}

html[data-theme="dark"] .theme-toggle {
  color: #ffffff;
  background: #102a4c;
  border-color: #31425d;
}

html[data-theme="dark"] .add-to-cart-button:disabled {
  color: var(--muted);
  background: var(--paper);
  border-color: var(--line);
}
