:root {
  --green: #136f38;
  --green-dark: #0a3f24;
  --green-soft: #e7f5eb;
  --orange: #f58220;
  --orange-dark: #b8530a;
  --ink: #17211b;
  --muted: #66736c;
  --line: #d8e2dc;
  --surface: #ffffff;
  --warning: #fff2dc;
  --danger: #ffe8df;
  --shadow: 0 18px 45px rgba(23, 33, 27, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #f6f8f5;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

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

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav,
.contact-actions,
.hero-actions,
.admin-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

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

.icon-btn,
.whatsapp,
.primary,
.secondary,
.file-btn {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.icon-btn {
  width: 42px;
  padding: 0;
  background: var(--green-soft);
  color: var(--green-dark);
}

.whatsapp,
.primary {
  color: white;
  background: var(--green);
}

.mode-toggle {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.admin-mode .mode-toggle {
  background: var(--orange);
  border-color: var(--orange);
}

.secondary,
.file-btn {
  color: var(--green-dark);
  background: #fff;
  border: 1px solid var(--line);
}

.primary:hover,
.whatsapp:hover {
  background: var(--green-dark);
}

.secondary:hover,
.file-btn:hover,
.icon-btn:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}

.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: 540px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--green-dark);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 42, 23, 0.88), rgba(6, 42, 23, 0.42) 52%, rgba(245, 130, 32, 0.32));
}

.hero-overlay {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 40px));
  margin: 0 auto 58px;
  color: white;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  font-size: 20px;
  line-height: 1.45;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-band article {
  padding: 24px;
  background: white;
}

.stats-band span {
  display: block;
  color: var(--green);
  font-size: 34px;
  font-weight: 900;
}

.stats-band small {
  color: var(--muted);
  font-weight: 700;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0;
}

.catalog-tools {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.search-box {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.search-box input,
select,
.admin-form input,
.admin-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
}

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

.product-card {
  display: grid;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(23, 33, 27, 0.07);
}

.product-card.aged {
  border-color: var(--orange);
  background: var(--warning);
}

.product-card.low {
  border-color: #e15c32;
  background: var(--danger);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef3ef;
}

.product-body {
  padding: 16px;
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.product-card h3 {
  margin: 0;
  font-size: 20px;
}

.product-card p {
  color: var(--muted);
  line-height: 1.45;
}

.price {
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
}

.badge,
.stock-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  background: var(--green-soft);
  color: var(--green-dark);
}

.stock-badge.warning {
  background: #ffe2bd;
  color: var(--orange-dark);
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.notice {
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #fff3e7;
  border: 1px solid #ffd1a3;
  color: var(--orange-dark);
  font-weight: 700;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 22px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #cfd8d2;
  background: white;
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 900;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: white;
}

.hidden {
  display: none;
}

body:not(.admin-mode) .admin-section,
body:not(.admin-mode) .admin-card-action,
body:not(.admin-mode) .admin-only {
  display: none;
}

.admin-help {
  margin: -6px 0 18px;
  padding: 14px 16px;
  border-left: 5px solid var(--orange);
  background: #fff7ed;
  color: #44240c;
  line-height: 1.45;
}

.image-drop-zone {
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 96px;
  padding: 18px;
  border: 2px dashed var(--green);
  background: #f7faf8;
  color: var(--green-dark);
  text-align: center;
}

.image-drop-zone.dragging {
  border-color: var(--orange);
  background: #fff7ed;
}

.image-drop-zone strong,
.image-drop-zone span {
  display: block;
}

.image-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px dashed var(--line);
  background: #f7faf8;
}

.image-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preview-thumb {
  position: relative;
  width: 112px;
}

.preview-thumb img {
  width: 112px;
  height: 84px;
  object-fit: cover;
  background: #e8eee9;
}

.preview-thumb button {
  width: 100%;
  min-height: 28px;
  border: 0;
  background: var(--orange);
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.image-preview span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.payment-section,
.about-section {
  width: 100%;
  padding-left: max(18px, calc((100% - 1180px) / 2));
  padding-right: max(18px, calc((100% - 1180px) / 2));
}

.payment-section {
  background: var(--green-dark);
  color: white;
}

.payment-section .section-head {
  width: min(1180px, 100%);
}

.payment-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: min(1180px, 100%);
}

.payment-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.vehicle-finder-panel {
  padding: 0 0 16px;
  background: var(--green-dark);
  border-top: 5px solid var(--orange);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  width: 100%;
}

.vehicle-finder-panel #ws-widget-eec3e4,
.vehicle-finder-panel .vehicle-finder-credit {
  padding-left: 24px;
  padding-right: 24px;
}

.vehicle-finder-credit {
  margin: 14px 0 0;
  font-size: 12px;
  opacity: 0.7;
  text-align: right;
}

.vehicle-finder-credit a {
  color: inherit;
}

.on-order-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
}

.on-order-head h3 {
  margin: 0 0 6px;
}

.on-order-head p {
  margin: 0 0 20px;
  opacity: 0.75;
  font-size: 14px;
}

.on-order-group {
  margin-bottom: 24px;
}

.on-order-group h4 {
  margin: 0 0 12px;
  color: var(--accent, #ff8a3d);
}

.on-order-badge {
  background: rgba(255, 138, 61, 0.18);
  color: #ff8a3d;
}

.product-card.on-order-card {
  grid-template-rows: none !important;
  overflow: visible !important;
  min-height: auto !important;
  height: auto !important;
}

.product-grid.on-order-grid {
  align-items: start !important;
}

.payment-panel h3,
.terminal-card h3 {
  margin: 0 0 12px;
}

.cart-section {
  width: min(1180px, calc(100% - 36px));
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  align-items: start;
}

.cart-panel,
.cart-summary {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-panel {
  padding: 12px;
}

.cart-items {
  display: grid;
  gap: 10px;
}

.empty-cart {
  padding: 24px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
}

.cart-item img {
  width: 84px;
  height: 70px;
  object-fit: cover;
  background: #eef3ef;
}

.cart-item strong,
.cart-item span,
.cart-item small {
  display: block;
}

.cart-item span,
.cart-item small,
.cart-status {
  color: var(--muted);
}

.cart-qty {
  display: grid;
  grid-template-columns: 34px 38px 34px;
  align-items: center;
  text-align: center;
  border: 1px solid var(--line);
}

.cart-qty button,
.cart-remove {
  min-height: 34px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.cart-qty button {
  background: #f4f7f5;
  color: var(--green-dark);
}

.cart-qty button:disabled,
button:disabled,
.disabled-link {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

.cart-remove {
  padding: 0 10px;
  background: #fff3e7;
  color: var(--orange-dark);
}

.cart-summary {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.cart-summary h3 {
  margin: 0;
}

.cart-summary dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.cart-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.cart-summary dd {
  margin: 0;
  color: var(--orange-dark);
  font-weight: 900;
}

.admin-entry {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.bank-data {
  display: grid;
  gap: 10px;
}

.bank-data div {
  display: grid;
  gap: 3px;
}

.bank-data dt {
  color: #b7dbc5;
  font-size: 12px;
  font-weight: 900;
}

.bank-data dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.admin-form,
.insights {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 18px;
}

.admin-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.wide {
  grid-column: 1 / -1;
}

.file-btn input {
  display: none;
}

.insights {
  padding: 20px;
}

.insights h3,
.insights h4 {
  margin: 0 0 12px;
}

.insights h4 {
  margin-top: 22px;
  color: var(--muted);
}

.insight-list {
  display: grid;
  gap: 10px;
}

.insight-item {
  padding: 12px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.insight-item strong {
  display: block;
}

.insight-item small {
  color: var(--muted);
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  border-radius: 8px;
  background: #fff3e7;
  border: 1px solid #ffd1a3;
  color: var(--orange-dark);
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 900;
}

.about-section {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: center;
}

.about-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.terminal-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.terminal-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  color: white;
  background: var(--green);
  border: 3px solid white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 900;
}

@media (max-width: 920px) {
  .topbar,
  .section-head,
  .about-section {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    position: static;
  }

  .stats-band,
  .product-grid,
  .payment-layout,
  .admin-grid,
  .about-section {
    grid-template-columns: 1fr 1fr;
  }

  .terminal-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 12px 18px;
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: 520px;
  }

  .stats-band,
  .product-grid,
  .payment-layout,
  .admin-grid,
  .about-section,
  .admin-form,
  .terminal-card {
    grid-template-columns: 1fr;
  }

  .section {
    width: min(100% - 24px, 1180px);
    padding: 44px 0;
  }

  .payment-section,
  .about-section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .catalog-tools,
  .catalog-tools > *,
  .admin-actions,
  .admin-actions > * {
    width: 100%;
  }

  .icon-btn,
  .whatsapp,
  .primary,
  .secondary,
  .file-btn {
    width: 100%;
  }
}

/* Catalog redesign inspired by tire-family product pages, adapted to TRAK colors. */
body {
  background: #f4f0ee;
}

.topbar {
  position: sticky;
  background: #050705;
  border-bottom: 0;
  color: white;
  padding: 22px 48px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.brand {
  min-width: 250px;
}

.brand-mark {
  background: var(--orange);
  color: #07110b;
  font-style: italic;
}

.brand strong {
  font-size: 30px;
  font-style: italic;
  line-height: 0.95;
  text-transform: uppercase;
}

.brand small,
.nav a {
  color: rgba(255, 255, 255, 0.82);
}

.nav {
  gap: 34px;
}

.nav a {
  font-size: 15px;
}

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

.contact-actions {
  gap: 8px;
}

.icon-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: white;
}

.whatsapp,
.primary {
  background: var(--orange);
  color: white;
  border: 1px solid var(--orange);
  border-radius: 0;
}

.whatsapp:hover,
.primary:hover {
  background: var(--green);
  border-color: var(--green);
}

.secondary,
.file-btn {
  border-radius: 0;
  border-color: var(--green);
  color: var(--green-dark);
}

.secondary:hover,
.file-btn:hover,
.icon-btn:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}

.hero {
  min-height: 560px;
  align-items: center;
  background: #0b0d0b;
}

.hero img {
  filter: grayscale(1) contrast(1.15) brightness(0.62);
  transform: scale(1.08);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(7, 29, 16, 0.58) 52%, rgba(245, 130, 32, 0.16)),
    radial-gradient(circle at 72% 52%, rgba(245, 130, 32, 0.2), transparent 35%);
}

.hero-overlay {
  width: min(1070px, calc(100% - 48px));
  margin: 56px auto 32px;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(28px, 3.2vw, 46px);
  font-style: italic;
  text-transform: uppercase;
}

.hero-search-columns {
  width: min(1070px, 100%);
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

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

.hero-finder {
  width: 100%;
  margin-top: 0;
  background: var(--green-dark);
  border-top: 5px solid var(--orange);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.hero-finder h2,
.vehicle-finder-panel h2 {
  margin: 0;
  padding: 20px 24px 14px;
  color: white;
  font-size: clamp(16px, 1.6vw, 20px);
  font-style: italic;
  text-transform: uppercase;
}

.hero p:not(.eyebrow) {
  max-width: 720px;
  font-weight: 700;
}

.hero-actions {
  margin-bottom: 34px;
}

.size-finder,
.catalog-size-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 24px 24px;
  align-items: end;
}

.size-finder label,
.catalog-size-panel label {
  display: grid;
  gap: 6px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.size-finder select,
.catalog-size-panel select {
  min-height: 48px;
  border: 0;
  background: white;
  color: #07110b;
  padding: 0 12px;
  font-weight: 900;
}

.inches-finder {
  padding: 0 24px 24px;
}

.inches-finder label {
  display: grid;
  gap: 6px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.inches-finder-row {
  display: flex;
  gap: 8px;
}

.inches-finder-row input {
  flex: 1;
  min-height: 44px;
  border: 0;
  padding: 0 12px;
  font-weight: 700;
}

.catalog-size-panel {
  grid-template-columns: auto repeat(3, minmax(110px, 1fr)) auto auto;
  margin: -8px 0 24px;
  padding: 16px;
  background: var(--green-dark);
  border-top: 4px solid var(--orange);
}

.catalog-size-panel strong {
  align-self: center;
  color: white;
  font-style: italic;
  text-transform: uppercase;
}

.finder-option {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr 48px;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  background: white;
  color: #06120a;
}

.finder-option small,
.finder-option strong {
  display: block;
}

.finder-option small {
  color: var(--muted);
  font-size: 12px;
}

.finder-option strong {
  font-size: 18px;
}

.finder-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--green);
  border: 3px solid var(--green);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 900;
}

.finder-option b {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: white;
  font-size: 34px;
  font-weight: 400;
}

.stats-band {
  width: min(1070px, calc(100% - 48px));
  margin: -1px auto 0;
  border: 0;
  gap: 0;
  background: #d9d9d9;
}

.stats-band article {
  border-right: 1px solid #d9d9d9;
  padding: 20px 24px;
}

.stats-band span {
  color: var(--orange);
}

#catalogo.section {
  width: min(1070px, calc(100% - 48px));
  padding-top: 54px;
}

.section-head {
  align-items: center;
}

.section h2 {
  font-style: italic;
  text-transform: uppercase;
}

.catalog-tools {
  align-items: center;
  background: white;
  border: 1px solid #d8d8d8;
  padding: 12px;
}

.search-box span {
  text-transform: uppercase;
}

.search-box input,
select {
  border-radius: 0;
  border-color: #cfcfcf;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.product-card {
  min-height: 100%;
  display: grid;
  grid-template-rows: 220px 1fr;
  border-radius: 0;
  border: 1px solid #d7d7d7;
  box-shadow: none;
  background: white;
}

.product-card.aged {
  border-top: 7px solid var(--orange);
  background: white;
}

.product-card.low {
  border-top: 7px solid var(--green);
  background: white;
}

.product-media {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f6f6f6, #ececec);
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.product-body {
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr auto auto;
  padding: 20px 16px 16px;
}

.product-brand {
  color: #07110b;
  font-size: 22px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.product-card h3 {
  min-height: 54px;
  margin: 8px 0 6px;
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.rating-row span {
  color: var(--green);
  letter-spacing: 1px;
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.spec-row span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  background: #e5ece8;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.stock-badge {
  width: fit-content;
  border-radius: 0;
  background: #dfe9e3;
}

.stock-badge.warning {
  background: #ffe0bf;
}

.product-card p {
  margin: 16px 0;
  color: #171717;
  font-size: 15px;
  line-height: 1.45;
}

.price {
  margin-top: 8px;
  color: var(--orange-dark);
  font-size: 25px;
}

.inventory-line {
  color: var(--muted) !important;
  font-size: 13px !important;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card-actions .small {
  min-height: 46px;
}

.admin-card-action {
  min-height: 34px !important;
  font-size: 12px;
  opacity: 0.82;
}

.card-actions .admin-card-action:nth-last-child(1) {
  grid-column: 1 / -1;
}

.payment-section {
  background: #08130c;
  border-top: 7px solid var(--orange);
}

.floating-whatsapp {
  border-radius: 0;
  background: var(--green);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.62);
}

.modal.hidden {
  display: none;
}

#productModal {
  z-index: 60;
}

.modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  overflow: auto;
  background: white;
  border-top: 7px solid var(--orange);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  background: #08130c;
  color: white;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.size-results-panel {
  padding: 32px 28px 28px;
  color: #06120a;
}

.size-results-panel #sizeResultsTitle {
  margin: 0 0 18px;
  font-style: italic;
  text-transform: uppercase;
}

.size-results-heading {
  margin: 24px 0 12px;
  padding-top: 16px;
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
  font-size: 15px;
}

.size-results-heading:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.size-results-empty {
  padding: 18px;
  background: #f4f2ea;
  border-radius: 8px;
  text-align: center;
}

.modal-product {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  padding: 28px;
}

.modal-product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f1f1f1;
}

.modal-gallery {
  display: grid;
  gap: 10px;
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.modal-thumbs img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.modal-product h2 {
  margin: 0 42px 12px 0;
  font-size: clamp(28px, 4vw, 44px);
  font-style: italic;
  text-transform: uppercase;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-tags span {
  padding: 7px 10px;
  background: #e5ece8;
  color: var(--green-dark);
  font-weight: 900;
}

.modal-price {
  color: var(--orange-dark);
  font-size: 32px;
  font-weight: 900;
}

.modal-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.modal-data div {
  padding: 12px;
  background: #f6f8f5;
}

.modal-data dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.modal-data dd {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 900;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#cartNavCount {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  min-height: 22px;
  margin-left: 4px;
  padding: 0 6px;
  background: var(--orange);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.cart-section {
  width: min(1070px, calc(100% - 48px));
}

.cart-panel,
.cart-summary {
  border-radius: 0;
  box-shadow: none;
}

.cart-summary {
  border-top: 5px solid var(--orange);
}

.corner-calculator {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 25;
}

.calculator-toggle {
  min-height: 52px;
  padding: 0 18px;
  border: 3px solid white;
  background: #08130c;
  color: white;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 900;
}

.calculator-panel {
  position: absolute;
  left: 0;
  bottom: 64px;
  width: min(430px, calc(100vw - 40px));
  max-height: min(720px, calc(100vh - 110px));
  padding: 12px;
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-top: 5px solid var(--orange);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.28);
}

.tire-widget iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  border: 0;
}

#inch-calculator-icw {
  width: 100%;
  min-height: 620px;
}

@media (max-width: 920px) {
  .topbar {
    padding: 18px 24px;
  }

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

  .cart-summary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .topbar {
    background: #050705;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 24px;
  }

  .hero-overlay,
  .stats-band,
  #catalogo.section {
    width: min(100% - 24px, 1070px);
  }

  .finder-options,
  .size-finder,
  .product-grid,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .catalog-size-panel {
    grid-template-columns: 1fr;
  }

  .finder-option {
    grid-template-columns: auto 1fr 44px;
  }

  .hero-finder h2 {
    padding: 22px 18px 14px;
  }

  .finder-options {
    padding: 0 14px 14px;
  }

  .product-card {
    grid-template-rows: 190px 1fr;
  }

  .modal-product,
  .modal-data {
    grid-template-columns: 1fr;
  }

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

  .cart-item img {
    width: 72px;
    height: 62px;
  }

  .cart-qty,
  .cart-item > strong,
  .cart-remove {
    grid-column: 1 / -1;
  }

  .cart-remove {
    width: 100%;
  }

  .corner-calculator {
    left: 12px;
    bottom: 12px;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
  }

  .calculator-toggle {
    min-height: 46px;
    padding: 0 12px;
    font-size: 13px;
  }
}

.brand-logo { display: block; height: 46px; width: auto; border-radius: 10px; }
.size-results-note { margin: 4px 0 12px; padding: 10px 12px; background: #fff6e5; border-left: 4px solid var(--orange); border-radius: 6px; font-size: 14px; }

.product-card img[data-zoom-id], .modal-main { cursor: zoom-in; }
.modal-thumbs img { cursor: pointer; border: 2px solid transparent; border-radius: 6px; }
.modal-thumbs img.active { border-color: var(--orange); }
.photo-lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.88); }
.photo-lightbox.hidden { display: none; }
.photo-lightbox .lb-image { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 6px; background: #fff; }
.photo-lightbox button { position: absolute; border: 0; color: #fff; background: rgba(255, 255, 255, 0.18); cursor: pointer; line-height: 1; }
.photo-lightbox .lb-close { top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; font-size: 30px; }
.photo-lightbox .lb-nav { top: 50%; width: 48px; height: 64px; margin-top: -32px; border-radius: 10px; font-size: 40px; }
.photo-lightbox .lb-prev { left: 12px; }
.photo-lightbox .lb-next { right: 12px; }
.photo-lightbox.single .lb-nav { display: none; }
.photo-lightbox .lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; }

.data-version-label { margin: 0; padding: 10px 16px 76px; text-align: center; font-size: 12px; color: #8a948e; }

.brand-logo { height: 56px; width: auto; border-radius: 12px; }
@media (max-width: 920px) {
  .topbar { position: sticky; top: 0; flex-wrap: nowrap; gap: 10px; padding: 8px 12px; }
  .brand { flex: none; }
  .brand span { display: none; }
  .brand-logo { height: 44px; }
  .nav { flex: 1; min-width: 0; flex-wrap: nowrap; gap: 18px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
}

.brand small { font-size: 14px; font-weight: 600; letter-spacing: 0.2px; }

.tire-specs{list-style:none;margin:10px 0;padding:0;display:grid;gap:6px}
.tire-specs li{font-size:.95rem;line-height:1.35}
.tire-prose{margin:8px 0 12px;line-height:1.5}

.checkout-form{display:grid;gap:10px;margin:14px 0;padding-top:12px;border-top:1px solid rgba(0,0,0,.12)}
.checkout-form h4{margin:0}
.checkout-form label{display:grid;gap:4px;font-size:.9rem}
.checkout-form input[type=text],.checkout-form input[type=tel],.checkout-form input[type=email],.checkout-form textarea{padding:10px;border:1px solid #c9d1cc;border-radius:8px;font:inherit;width:100%;box-sizing:border-box}
.checkout-form fieldset{border:1px solid #c9d1cc;border-radius:8px;padding:8px 10px;display:grid;gap:6px}
.checkout-form label.radio{display:flex;gap:8px;align-items:flex-start;font-size:.88rem}
.checkout-form label.radio input{margin-top:3px}
.pay-message{margin:0;font-size:.9rem;color:#1f6b3b;min-height:1.2em}
.pay-message.error{color:#b3261e}
.pay-note,.pay-policy{font-size:.82rem;color:#55625b;margin:0}
.pay-policy summary{cursor:pointer;font-weight:600}
#payNow:disabled{opacity:.5;cursor:not-allowed}

/* Tarjeta clicable y ventana del carrito */
.clickable-card { cursor: pointer; }
.cart-modal-panel { max-width: 560px; }
.cart-modal-total { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 4px; font-size: 1.05rem; }
.cart-modal-note { margin: 0 0 12px; font-size: .85rem; opacity: .75; }

/* Menú de compartir */
.share-modal-panel { max-width: 460px; }
.share-preview { display: block; width: 100%; max-height: 340px; object-fit: contain; border-radius: 8px; background: #f3f5f1; margin: 8px 0 12px; }
.share-link input { width: 100%; padding: 10px; border: 1px solid #cfd8d2; border-radius: 8px; font-size: .85rem; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.share-grid .small { text-align: center; }
.share-note { font-size: .85rem; opacity: .8; margin: 0; }
