/* woo-cart/index.css — page composition CSS. Mobile-first. */

/* ─── Atoms ────────────────────────────────────────────────────────── */
@import url('../../_components/atoms/btn-primary/btn-primary.css');
@import url('../../_components/atoms/input-wrap-woo/input-wrap-woo.css');
@import url('../../_components/atoms/field-input/field-input.css');

/* ─── Molecules ────────────────────────────────────────────────────── */
@import url('../../_components/molecules/qty-selector/qty-selector.css');
@import url('../../_components/molecules/order-total-row/order-total-row.css');

/* ─── Sections ─────────────────────────────────────────────────────── */
@import url('../../_components/sections/header-full/header-full.css');
@import url('../../_components/sections/footer-full/footer-full.css');
@import url('../../_components/sections/mobile-menu/mobile-menu.css');
@import url('../../_components/sections/cart-item/cart-item.css');
@import url('../../_components/sections/order-summary/order-summary.css');

/* ─── Page-scoped overrides ─────────────────────────────────────────── */

.page-woo-cart [data-wins-counter] { display: none !important; }

.page-woo-cart .woo-main {
  position: relative;
  overflow: hidden;
}
.page-woo-cart .woo-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

/* Hero — Shopping Cart title (Figma 1484:145 — y=136, no progress stepper above) */
.page-woo-cart .woo-hero {
  text-align: center;
  padding-top: 32px;
  padding-bottom: 24px;
}
.page-woo-cart .woo-hero__title {
  font-family: 'Nationale', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.02em;
  color: rgb(var(--color-lead));
  margin: 0;
}

/* Cart items section */
.page-woo-cart .woo-cart-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Coupon row — Figma y=360. Mobile: stack vertically. Desktop: input+apply LEFT, update RIGHT */
.page-woo-cart .woo-coupon-row {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.page-woo-cart .woo-coupon-form {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Coupon input — 220×40 pill (cart variant) */
.page-woo-cart .woo-coupon-form .input-wrap-woo {
  flex: 1 1 220px;
  max-width: 220px;
}

/* Apply coupon button — soft bg, br 20, padding 10/16, 14/20 semi-bold */
.page-woo-cart .btn-apply-coupon,
.page-woo-cart .btn-update-cart {
  background-color: rgb(var(--color-soft));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 16px;
  font-family: 'Nationale', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: rgb(var(--color-subs));
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.page-woo-cart .btn-apply-coupon:hover,
.page-woo-cart .btn-update-cart:hover  { opacity: 0.85; }
.page-woo-cart .btn-apply-coupon:active,
.page-woo-cart .btn-update-cart:active { opacity: 0.65; }

/* Order summary CTA region — Total row (cart variant: --lg) lives inside order-summary card,
   Proceed-to-checkout CTA appears INSIDE the order-summary card (page-spec from Figma 1619:267) */
.page-woo-cart .woo-order {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 16px;
  margin-bottom: 48px;
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* Cart-variant order-summary: hide title, items list — only total row + CTA */
.page-woo-cart .woo-order .order-summary__title,
.page-woo-cart .woo-order .order-summary__items { display: none; }

/* GOTCHA #3 — woo-cart "Proceed to checkout" CTA: border-radius 4px (NOT 8) */
.page-woo-cart .btn-proceed {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 12px;
  border: 0;
  margin: 0;
  border-radius: 4px;
  background-color: rgb(var(--color-lead));
  color: rgb(var(--color-fore));
  font-family: 'Nationale', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: opacity 0.18s ease;
}
.page-woo-cart .btn-proceed:hover  { opacity: 0.92; }
.page-woo-cart .btn-proceed:active { opacity: 0.86; }

/* Decorative glows hidden on mobile */
.page-woo-cart .woo-glow { display: none; }

/* ─── Desktop ─────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .page-woo-cart .woo-container { padding: 0 24px; }
  .page-woo-cart .woo-hero {
    padding-top: 56px;
    padding-bottom: 24px;
  }
  .page-woo-cart .woo-hero__title {
    font-size: 36px;
    line-height: 48px;
  }

  /* Coupon row: input+apply LEFT, update cart RIGHT */
  .page-woo-cart .woo-coupon-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .page-woo-cart .woo-coupon-form .input-wrap-woo {
    flex: 0 0 220px;
  }

  .page-woo-cart .woo-glow {
    display: block;
    position: absolute;
    z-index: 0;
    pointer-events: none;
    user-select: none;
  }
  .page-woo-cart .woo-glow--top {
    top: -184px;
    left: -8px;
    width: 1456px;
    height: 448px;
  }
  .page-woo-cart .woo-glow--bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 98px;
  }
}
