/* ==========================================================================
   SAAO — components.css
   Header, nav, buttons, product cards, modal, cart drawer, forms, footer
   ========================================================================== */

/* ---------- Site header ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out),
              padding var(--dur) var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.8);
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  font-size: var(--fs-lg);
  color: var(--fg);
  flex-shrink: 0;
}

.site-header__logo img,
.site-header__logo svg {
  height: 32px;
  width: auto;
}

.site-header__logo-mark {
  color: var(--accent);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

@media (min-width: 768px) {
  .site-header {
    padding: var(--s-4) var(--s-6);
  }
}

/* ---------- Site nav ------------------------------------------------------- */
.site-nav {
  display: none;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: var(--s-2) 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.01em;
  transition: color var(--dur) var(--ease-out);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-slow) var(--ease-out);
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--accent);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  transform: scaleX(1);
}

@media (min-width: 1024px) {
  .site-nav {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* Mobile menu toggle */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--border);
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.menu-toggle:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  z-index: calc(var(--z-header) - 1);
  padding: var(--s-7) var(--s-6);
  transform: translateY(-120%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.mobile-menu.is-open {
  transform: translateY(0);
}
.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: var(--tracking-tight);
}
.mobile-menu__link:hover { color: var(--accent); }

/* ---------- Language switcher --------------------------------------------- */
.lang-switcher {
  position: relative;
}

.lang-switcher__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  transition: border-color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out);
}
.lang-switcher__trigger:hover {
  border-color: var(--accent);
  background: var(--surface);
}
.lang-switcher__trigger svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
  transition: transform var(--dur) var(--ease-out);
}
.lang-switcher.is-open .lang-switcher__trigger svg {
  transform: rotate(180deg);
}

.lang-switcher__popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: var(--s-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
  z-index: var(--z-raised);
}
.lang-switcher.is-open .lang-switcher__popover {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-switcher__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  width: 100%;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--fg);
  text-align: left;
  transition: background var(--dur-fast) var(--ease-out);
}
.lang-switcher__option:hover {
  background: var(--surface-2);
}
.lang-switcher__option.is-active {
  color: var(--accent);
}
.lang-switcher__option-code {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  text-transform: uppercase;
}

/* ---------- Cart button --------------------------------------------------- */
.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--bg);
  transition: transform var(--dur) var(--ease-back),
              background var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.cart-button:hover {
  background: var(--accent-hover);
  transform: scale(1.08);
  box-shadow: var(--shadow-accent);
}
.cart-button svg {
  width: 20px;
  height: 20px;
}
.cart-button__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--bg);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  transform: scale(0);
  transition: transform var(--dur) var(--ease-back);
}
.cart-button__badge.is-visible {
  transform: scale(1);
}

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--fg);
  --btn-border: var(--border);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--radius-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--bg);
  --btn-border: var(--accent);
}
.btn-primary:hover {
  --btn-bg: var(--accent-hover);
  --btn-border: var(--accent-hover);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-border: var(--border-strong);
}
.btn-ghost:hover {
  --btn-bg: var(--surface);
  --btn-border: var(--fg);
  transform: translateY(-2px);
}

.btn-danger {
  --btn-bg: transparent;
  --btn-fg: var(--danger);
  --btn-border: rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  --btn-bg: rgba(239, 68, 68, 0.1);
  --btn-border: var(--danger);
}

.btn-lg {
  padding: var(--s-4) var(--s-6);
  font-size: var(--fs-base);
  gap: var(--s-3);
}
.btn-lg svg { width: 18px; height: 18px; }

.btn-sm {
  padding: var(--s-2) var(--s-4);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ---------- Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px circle at 20% 30%, rgba(255, 204, 0, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.7) 60%, var(--bg) 100%);
}

.hero__content {
  max-width: 960px;
  padding-block: var(--s-9);
  position: relative;
  z-index: 1;
}

.hero__title {
  margin-block: var(--s-3) var(--s-5);
  text-wrap: balance;
}

.hero__subtitle {
  font-size: var(--fs-md);
  color: var(--fg-muted);
  max-width: 56ch;
  margin-bottom: var(--s-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--s-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  color: var(--fg-muted);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  pointer-events: none;
}
.hero__scroll-hint::after {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.4s var(--ease-inout) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.5; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1;   }
}

/* ---------- Product grid -------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-5);
}

@media (min-width: 768px) {
  .product-grid {
    gap: var(--s-6);
  }
}

/* ---------- Product card -------------------------------------------------- */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur-slow) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out);
  will-change: transform;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-dim);
  background: var(--surface-2);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-out), opacity var(--dur) var(--ease-out);
  opacity: 0;
}
.product-card__media img.is-loaded {
  opacity: 1;
}
.product-card:hover .product-card__media img {
  transform: scale(1.06);
}
.product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
  opacity: 0.6;
}

.product-card__category {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  padding: var(--s-1) var(--s-3);
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--fg);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  z-index: 2;
}

.product-card__body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}

.product-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: var(--tracking-tight);
  line-height: 1.2;
}

.product-card__meta {
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--s-3);
}

.product-card__add {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.product-card__add:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.product-card__add svg { width: 14px; height: 14px; }

/* ---------- Filter bar ---------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--s-2);
  overflow-x: auto;
  padding: var(--s-3) 0;
  margin-bottom: var(--s-6);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-bar__chip {
  flex-shrink: 0;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.filter-bar__chip:hover {
  color: var(--fg);
  border-color: var(--border-strong);
}
.filter-bar__chip.is-active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}

.filter-bar__count {
  font-size: var(--fs-xs);
  margin-left: var(--s-2);
  opacity: 0.6;
}

@media (min-width: 768px) {
  .filter-bar {
    flex-wrap: wrap;
  }
}

/* ---------- Product modal ------------------------------------------------- */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out);
}
.product-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.product-modal__card {
  position: relative;
  width: 100%;
  max-width: 1080px;
  max-height: 92vh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: scale(0.94) translateY(20px);
  transition: transform var(--dur-slow) var(--ease-out);
  overflow-y: auto;
}
.product-modal.is-open .product-modal__card {
  transform: scale(1) translateY(0);
}

.product-modal__close {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(8px);
  color: var(--fg);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.product-modal__close:hover {
  background: var(--danger);
  transform: rotate(90deg);
}

.product-modal__gallery {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--bg);
}

.product-modal__main-image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}
.product-modal__main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal__thumbs {
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  padding-bottom: var(--s-2);
  scrollbar-width: none;
}
.product-modal__thumbs::-webkit-scrollbar { display: none; }

.product-modal__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-out);
}
.product-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-modal__thumb.is-active {
  border-color: var(--accent);
}

.product-modal__content {
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.product-modal__title {
  font-size: var(--fs-2xl);
  line-height: 1.05;
}

.product-modal__desc {
  color: var(--fg-muted);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}

.product-modal__specs {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-modal__specs th,
.product-modal__specs td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--border);
}
.product-modal__specs tr:last-child th,
.product-modal__specs tr:last-child td {
  border-bottom: 0;
}
.product-modal__specs th {
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-size: var(--fs-xs);
  background: var(--surface-2);
  width: 40%;
}
.product-modal__specs td {
  color: var(--fg);
  font-weight: 500;
}

.product-modal__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}

@media (min-width: 900px) {
  .product-modal__card {
    grid-template-columns: 1.1fr 1fr;
  }
  .product-modal__gallery {
    padding: var(--s-6);
  }
}

/* ---------- Cart drawer --------------------------------------------------- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  z-index: var(--z-drawer);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: calc(var(--z-drawer) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out);
}
.cart-drawer__backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--border);
}
.cart-drawer__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
}
.cart-drawer__count {
  margin-left: var(--s-2);
  color: var(--fg-muted);
  font-weight: 400;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-4) var(--s-6);
}

.cart-drawer__empty {
  text-align: center;
  padding: var(--s-8) var(--s-4);
  color: var(--fg-muted);
}
.cart-drawer__empty svg {
  width: 48px;
  height: 48px;
  margin-inline: auto;
  margin-bottom: var(--s-4);
  opacity: 0.3;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--s-3);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item:last-child { border-bottom: 0; }

.cart-item__img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
}
.cart-item__img img {
  width: 100%; height: 100%; object-fit: cover;
}

.cart-item__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  min-width: 0;
}
.cart-item__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cart-item__cat {
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-2);
}
.cart-item__qty button {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease-out);
}
.cart-item__qty button:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.cart-item__qty span {
  min-width: 24px;
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cart-item__remove {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out);
}
.cart-item__remove:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
}
.cart-item__remove svg { width: 16px; height: 16px; }

.cart-drawer__footer {
  padding: var(--s-5) var(--s-6);
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.cart-drawer__note {
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  text-align: center;
  line-height: 1.5;
}

/* ---------- Stepper ------------------------------------------------------- */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  position: relative;
  padding: var(--s-5) 0;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.stepper::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 24px;
  height: 1px;
  width: var(--stepper-progress, 0%);
  max-width: calc(100% - 48px);
  background: var(--accent);
  z-index: 0;
  transition: width var(--dur-slow) var(--ease-out);
}

.stepper__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  flex: 0 0 auto;
}

.stepper__circle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-back);
}
.stepper__label {
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-weight: 500;
  display: none;
}

.stepper__step.is-active .stepper__circle {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 0 0 6px var(--accent-dim);
}
.stepper__step.is-active .stepper__label { color: var(--fg); }

.stepper__step.is-complete .stepper__circle {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

@media (min-width: 768px) {
  .stepper__label { display: inline; }
}

/* ---------- Forms --------------------------------------------------------- */
.form-field {
  position: relative;
  display: block;
  margin-bottom: var(--s-4);
}

.form-field__input,
.form-field__textarea,
.form-field__select {
  width: 100%;
  padding: 22px 16px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.5;
  transition: border-color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

.form-field__textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 28px;
}

.form-field__input:hover,
.form-field__textarea:hover,
.form-field__select:hover {
  border-color: var(--border-strong);
}

.form-field__input:focus,
.form-field__textarea:focus,
.form-field__select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-field__label {
  position: absolute;
  top: 16px;
  left: 16px;
  color: var(--fg-muted);
  font-size: var(--fs-base);
  pointer-events: none;
  transition: transform var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              font-size var(--dur) var(--ease-out);
  transform-origin: left center;
}

.form-field__input:focus + .form-field__label,
.form-field__input:not(:placeholder-shown) + .form-field__label,
.form-field__textarea:focus + .form-field__label,
.form-field__textarea:not(:placeholder-shown) + .form-field__label,
.form-field__select:focus + .form-field__label,
.form-field__select.has-value + .form-field__label {
  transform: translateY(-10px) scale(0.75);
  color: var(--accent);
}

.form-field__input::placeholder,
.form-field__textarea::placeholder {
  color: transparent;
}

.form-field__hint {
  display: block;
  margin-top: var(--s-1);
  padding-left: var(--s-3);
  font-size: var(--fs-xs);
  color: var(--fg-muted);
}

.form-field.has-error .form-field__input,
.form-field.has-error .form-field__textarea,
.form-field.has-error .form-field__select {
  border-color: var(--danger);
}
.form-field.has-error .form-field__hint {
  color: var(--danger);
}

/* Select native arrow replacement */
.form-field__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='none' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M2 4l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 768px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- Radio card (incoterms) ---------------------------------------- */
.radio-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 768px) {
  .radio-group { grid-template-columns: repeat(3, 1fr); }
}

.radio-card {
  position: relative;
  display: block;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.radio-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: var(--s-2);
}
.radio-card__title::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-strong);
  transition: border-color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.radio-card__desc {
  color: var(--fg-muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.radio-card:has(input:checked),
.radio-card.is-active {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(255, 204, 0, 0.08), rgba(255, 204, 0, 0) 60%), var(--surface-2);
  box-shadow: 0 0 0 1px var(--accent), 0 10px 30px -10px var(--accent-glow);
}
.radio-card:has(input:checked) .radio-card__title::after,
.radio-card.is-active .radio-card__title::after {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 4px var(--surface-2);
}

/* ---------- Success / confetti scene -------------------------------------- */
.success-scene {
  padding-block: var(--s-9);
  text-align: center;
}
.success-scene__check {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--s-5);
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px -10px var(--accent-glow);
}
.success-scene__check svg { width: 48px; height: 48px; stroke-width: 3; }

/* ---------- Site footer --------------------------------------------------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: var(--s-8) var(--s-5);
  color: var(--fg-muted);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--border);
}

.site-footer__col-title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.site-footer__links a {
  color: var(--fg-muted);
  font-size: var(--fs-sm);
  transition: color var(--dur) var(--ease-out);
}
.site-footer__links a:hover { color: var(--accent); }

.site-footer__brand p {
  color: var(--fg-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  max-width: 38ch;
}

.site-footer__social {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.site-footer__social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.site-footer__social a:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.site-footer__social svg { width: 16px; height: 16px; }

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-top: var(--s-5);
  font-size: var(--fs-xs);
  color: var(--fg-dim);
  letter-spacing: var(--tracking-wide);
}
.site-footer__bottom a { color: var(--fg-muted); }
.site-footer__bottom a:hover { color: var(--accent); }

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---------- WhatsApp CTA / Contact cards ---------------------------------- */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  transition: border-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
}

/* ---------- Badge --------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-muted);
}
.badge-accent {
  background: var(--accent-dim);
  border-color: transparent;
  color: var(--accent);
}
