/* ==========================================================
   Shop / Merch - Full E-Commerce 2025
   Primary:  #6b0f2b   Accent: #e94560
   Text:     #1a1a2e   Muted:  #666
   BG:       #f5f6fa   Card:   #ffffff
   Border:   #e8e8ec
   ========================================================== */

/* ---- CSS Variables ---- */
:root {
  --mp:      #6b0f2b;
  --ma:      #e94560;
  --mt:      #1a1a2e;
  --muted:   #666;
  --mbg:     #f5f6fa;
  --mcard:   #ffffff;
  --mborder: #e8e8ec;
  --mgreen:  #22c55e;
  --morange: #f59e0b;
  --mrad:    12px;
}

/* ---- Full-width page wrapper ---- */
.merch-page {
  background: #f5f6fa;
  margin-top: 0;
  padding-top: 0;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
}

/* ---- 2-column layout: filter sidebar + main content ---- */
.merch-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--header-height, 56px));
  align-items: start;
  width: 100%;
  margin: 0;
  padding-top: 0;
  align-content: start;
}

/* ---- Filter sidebar — sticky on desktop, flush to top of content area ---- */
.merch-cat-sidebar {
  background: #fff;
  border-right: 1px solid #e8e8ec;
  position: sticky;
  top: 0;  /* content-wrap already starts below header — 0 is flush */
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e8e8ec transparent;
  margin-top: 0;
  align-self: start;
}

/* ---- Sidebar overlay backdrop (mobile only) ---- */
.merch-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 499;
  background: rgba(0,0,0,.45);
}
.merch-sidebar-overlay.is-visible {
  display: block;
}

/* ---- Filter button — hidden on desktop, shown on mobile ---- */
.merch-filter-mob-btn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid #e8e8ec;
  background: #fff;
  font-size: .875rem;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
}
.merch-filter-mob-btn:hover { background: #f0f0f4; }

/* ---- Main area ---- */
.merch-main { padding: 0 24px 80px; min-width: 0; }

.merch-cat-sidebar__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #6b0f2b;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
}

.merch-cat-list { list-style: none; padding: 0; margin: 0; }
.merch-cat-list__item { border-bottom: 1px solid #e8e8ec; }

.merch-cat-list__link {
  display: flex;
  align-items: center;
  padding: 11px 18px;
  font-size: 0.875rem;
  color: #444;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.merch-cat-list__link:hover { background: #f8f8fb; color: #1a1a2e; }

.merch-cat-list__item.is-active .merch-cat-list__link {
  background: #fdf0f3;
  color: #6b0f2b;
  font-weight: 700;
  border-left: 3px solid #6b0f2b;
}

.merch-cat-list__name { flex: 1; }

.merch-cat-list__count {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #999;
  background: #f0f0f4;
  border-radius: 10px;
  padding: 2px 7px;
  margin-right: 6px;
}
.merch-cat-list__item.is-active .merch-cat-list__count { background: #6b0f2b; color: #fff; }

.merch-cat-list__arrow { color: #ccc; transition: transform .15s, color .15s; }
.merch-cat-list__link:hover .merch-cat-list__arrow { transform: translateX(3px); color: #e94560; }

/* Sidebar sections */
.merch-cat-sidebar__section { padding: 14px 18px; border-bottom: 1px solid #e8e8ec; }

.merch-cat-sidebar__section-title {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #aaa;
  margin-bottom: 10px;
  display: block;
}

.merch-price-range { display: flex; align-items: center; gap: 8px; }

.merch-price-input {
  flex: 1; min-width: 0; width: 0;
  padding: 7px 10px;
  border: 1.5px solid #e8e8ec;
  border-radius: 8px;
  font-size: 0.8125rem;
  color: #1a1a2e;
  background: #fff;
  outline: none;
}
.merch-price-input:focus { border-color: #6b0f2b; }
.merch-price-sep { color: #666; flex-shrink: 0; }

.merch-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #1a1a2e;
  cursor: pointer;
  padding: 4px 0;
}
.merch-toggle input[type="checkbox"] { width: 15px; height: 15px; accent-color: #6b0f2b; cursor: pointer; }

.merch-cat-sidebar__clear {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 18px;
  background: none;
  border: none;
  border-top: 1px solid #e8e8ec;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e94560;
  cursor: pointer;
}
.merch-cat-sidebar__clear:hover { background: #fff5f7; }

/* Trust badges */
.merch-cat-sidebar__trust { padding: 14px 18px; display: flex; flex-direction: column; gap: 14px; }
.merch-trust-item { display: flex; align-items: flex-start; gap: 10px; }
.merch-trust-item svg { color: #6b0f2b; flex-shrink: 0; margin-top: 2px; }
.merch-trust-item div { display: flex; flex-direction: column; gap: 2px; }
.merch-trust-item strong { font-size: 0.8125rem; font-weight: 700; color: #1a1a2e; display: block; }
.merch-trust-item span   { font-size: 0.75rem; color: #666; display: block; }


/* ---- Right main area ---- */
/* NOTE: .merch-main is also defined above (padding: 0 24px 80px) — no override here to avoid top gap */

/* ---- Hero Banner ---- */
.merch-hero-banner {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #3d0818 0%, #6b0f2b 50%, #9b1a45 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 44px 48px;
  margin-bottom: 18px;
  min-height: 200px;
  position: relative;
}
.merch-hero-banner__content { position: relative; z-index: 1; max-width: 420px; }
.merch-hero-banner__eyebrow {
  font-size: 0.6875rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .18em; color: rgba(255,255,255,.55); margin-bottom: 10px;
}
.merch-hero-banner__title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem); font-weight: 900; color: #fff;
  line-height: 1.05; letter-spacing: -.03em; margin-bottom: 10px;
}
.merch-hero-banner__accent { color: #e94560; }
.merch-hero-banner__sub { font-size: .9375rem; color: rgba(255,255,255,.65); margin-bottom: 22px; }
.merch-hero-banner__cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #6b0f2b; font-size: .875rem; font-weight: 700;
  padding: 12px 26px; border-radius: 50px; text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.2); transition: background .2s, color .2s, transform .2s;
}
.merch-hero-banner__cta:hover { background: #e94560; color: #fff; transform: translateY(-2px); }
.merch-hero-banner__visual {
  position: absolute; right: 0; top: 0; bottom: 0; width: 40%;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.merch-hero-banner__circle { position: absolute; border-radius: 50%; }
.merch-hero-banner__circle--1 { width: 260px; height: 260px; background: rgba(233,69,96,.18); right: -40px; top: -40px; }
.merch-hero-banner__circle--2 { width: 180px; height: 180px; background: rgba(255,255,255,.07); right: 60px; bottom: -30px; }
.merch-hero-banner__icon { position: relative; z-index: 1; opacity: .35; }

/* ---- Deal Cards ---- */
.merch-deals-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px;
}
.merch-deal-card {
  border-radius: 12px; padding: 22px 24px; text-decoration: none; display: block;
  transition: transform .2s, box-shadow .2s;
}
.merch-deal-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.merch-deal-card--purple { background: linear-gradient(135deg, #4a0e70, #7c3aed); }
.merch-deal-card--cream  { background: #fef9ed; }
.merch-deal-card--blush  { background: #fff0f3; }
.merch-deal-card__type {
  font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px;
}
.merch-deal-card--purple .merch-deal-card__type { color: rgba(255,255,255,.8); }
.merch-deal-card--cream .merch-deal-card__type,
.merch-deal-card--blush .merch-deal-card__type { color: #666; }
.merch-deal-card__headline { font-size: 1.3rem; line-height: 1.2; margin-bottom: 14px; }
.merch-deal-card--purple .merch-deal-card__headline { color: #fff; }
.merch-deal-card--cream .merch-deal-card__headline,
.merch-deal-card--blush .merch-deal-card__headline { color: #1a1a2e; }
.merch-deal-card__link { display: inline-flex; align-items: center; gap: 4px; font-size: .8125rem; font-weight: 700; }
.merch-deal-card--purple .merch-deal-card__link { color: rgba(255,255,255,.85); }
.merch-deal-card--cream .merch-deal-card__link,
.merch-deal-card--blush .merch-deal-card__link { color: #e94560; }

/* ---- Section header ---- */
.merch-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.merch-section-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 800; color: #1a1a2e; margin: 0; }
.merch-section-title__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px; background: #6b0f2b; color: #fff; font-size: .8125rem;
}
.merch-section-header__nav { display: flex; gap: 6px; }
.merch-scroll-btn {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1.5px solid #e8e8ec; background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: #1a1a2e; cursor: pointer; transition: background .15s, color .15s;
}
.merch-scroll-btn:hover { background: #6b0f2b; color: #fff; border-color: #6b0f2b; }

/* ---- Featured row ---- */
.merch-featured-section { margin-bottom: 32px; }
.merch-featured-row {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: #e8e8ec transparent; padding-bottom: 6px;
}
.merch-featured-row::-webkit-scrollbar { height: 3px; }
.merch-featured-row::-webkit-scrollbar-thumb { background: #e8e8ec; border-radius: 3px; }

.merch-feat-card {
  flex: 0 0 175px; scroll-snap-align: start;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.07); transition: transform .2s, box-shadow .2s;
}
.merch-feat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.merch-feat-card__img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: #f5f5f8; }
.merch-feat-card__img-wrap a { display: block; height: 100%; }
.merch-feat-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.merch-feat-card:hover .merch-feat-card__img { transform: scale(1.07); }
.merch-feat-card__body { padding: 10px 12px 12px; }
.merch-feat-card__name {
  font-size: .8125rem; font-weight: 700; color: #1a1a2e; line-height: 1.3; margin-bottom: 5px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
}
.merch-feat-card__name a { color: inherit; text-decoration: none; }
.merch-feat-card__name a:hover { color: #e94560; }
.merch-feat-card__prices { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.merch-feat-card__price { font-size: .875rem; font-weight: 800; color: #6b0f2b; }
.merch-feat-card__orig  { font-size: .75rem; color: #bbb; text-decoration: line-through; }

/* ---- Badges ---- */
.merch-badge {
  position: absolute; z-index: 2;
  font-size: .625rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; padding: 3px 7px; border-radius: 5px; line-height: 1.4;
}
.merch-badge--sale { top: 8px; left: 8px; background: #e94560; color: #fff; }
.merch-badge--new  { top: 8px; right: 8px; background: #16a34a; color: #fff; }
.merch-card .merch-badge--new { right: 36px; }

/* ---- Stars ---- */
.merch-stars { display: flex; align-items: center; gap: 1px; margin-bottom: 6px; }
.merch-star { font-size: .8125rem; line-height: 1; }
.merch-star--full  { color: #f59e0b; }
.merch-star--half  { color: #f59e0b; opacity: .6; }
.merch-star--empty { color: #d1d5db; }
.merch-stars__count { font-size: .6875rem; color: #666; margin-left: 3px; }

/* ---- Stock ---- */
.merch-stock { display: flex; align-items: center; gap: 4px; font-size: .6875rem; font-weight: 600; }
.merch-stock svg { flex-shrink: 0; }
.merch-stock--in  { color: #22c55e; }
.merch-stock--low { color: #f59e0b; }
.merch-stock--oos { color: #e94560; }


/* ---- Toolbar ---- */
.merch-grid-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.merch-grid-toolbar__count { font-size: .875rem; color: #666; font-weight: 500; }
.merch-grid-toolbar__count span { font-weight: 700; color: #1a1a2e; }
.merch-grid-toolbar__filtered { font-style: italic; }
.merch-grid-toolbar__right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.merch-filter-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: #6b0f2b; color: #fff;
  font-size: .6875rem; font-weight: 600; padding: 3px 9px; border-radius: 20px;
}
.merch-filter-tag__x { color: rgba(255,255,255,.7); text-decoration: none; font-size: .875rem; }
.merch-filter-tag__x:hover { color: #fff; }

.merch-toolbar-sort {
  padding: 7px 12px; border: 1.5px solid #e8e8ec; border-radius: 8px;
  font-size: .8125rem; color: #1a1a2e; background: #fff; cursor: pointer; outline: none;
}
.merch-toolbar-sort:focus { border-color: #6b0f2b; }

.merch-filter-mob-btn {
  display: none; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px; border: 1.5px solid #e8e8ec;
  background: #fff; font-size: .875rem; font-weight: 600; color: #1a1a2e; cursor: pointer;
}
.merch-filter-mob-btn:hover { background: #f0f0f4; }

/* ---- Product grid ---- */
.merch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ---- Product card ---- */
.merch-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.merch-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.merch-card--oos { opacity: .8; }

.merch-card__img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: #f5f5f8; }
.merch-card__img-link { display: block; height: 100%; }
.merch-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.merch-card:hover .merch-card__img { transform: scale(1.06); }

.merch-card__wishlist {
  position: absolute; bottom: 8px; right: 8px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #ccc; box-shadow: 0 2px 6px rgba(0,0,0,.12);
  transition: color .15s, background .15s, transform .15s; opacity: 0;
}
.merch-card:hover .merch-card__wishlist { opacity: 1; }
.merch-card__wishlist:hover { color: #e94560; background: #fff; transform: scale(1.1); }

.merch-card__body { padding: 12px 14px 6px; flex: 1; }
.merch-card__cat { font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #aaa; margin-bottom: 4px; }
.merch-card__name { font-size: .875rem; font-weight: 700; color: #1a1a2e; line-height: 1.3; margin-bottom: 6px; }
.merch-card__name a { color: inherit; text-decoration: none; }
.merch-card__name a:hover { color: #e94560; }
.merch-card__prices { display: flex; align-items: baseline; gap: 7px; margin-bottom: 5px; }
.merch-card__price { font-size: 1rem; font-weight: 800; color: #6b0f2b; }
.merch-card__orig  { font-size: .8125rem; color: #bbb; text-decoration: line-through; }

.merch-card__atc {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 10px 14px; margin: 8px 0 0;
  background: #6b0f2b; color: #fff; border: none;
  border-radius: 0 0 12px 12px; cursor: pointer;
  font-size: .8125rem; font-weight: 700; letter-spacing: .02em; transition: background .2s;
}
.merch-card__atc:hover { background: #e94560; }
.merch-card__atc--disabled { background: #d0d0d8; color: #999; cursor: not-allowed; }

/* ---- Empty state ---- */
.merch-empty { grid-column: 1 / -1; text-align: center; padding: 80px 20px; }
.merch-empty svg { display: block; margin: 0 auto 16px; color: #d0d0d8; }
.merch-empty p { font-size: 1.1rem; margin-bottom: 20px; color: #666; }

/* ---- Pagination ---- */
.merch-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.merch-page-btn {
  width: 38px; height: 38px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 600; text-decoration: none;
  border: 1.5px solid #e8e8ec; color: #1a1a2e; background: #fff;
  transition: background .15s, color .15s, border-color .15s;
}
.merch-page-btn:hover,
.merch-page-btn.is-active { background: #6b0f2b; color: #fff; border-color: #6b0f2b; }

/* ---- Responsive ---- */
@media (max-width: 1280px) {
  .merch-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .merch-body { grid-template-columns: 200px 1fr; }
  .merch-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  /* Collapse to single column, sidebar becomes overlay */
  .merch-body { grid-template-columns: 1fr; }
  .merch-cat-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    height: 100vh;
    width: 280px;
    z-index: 500;
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    border-right: none;
    box-shadow: 4px 0 24px rgba(0,0,0,.15);
  }
  .merch-cat-sidebar.is-open { transform: translateX(0); }
  .merch-filter-mob-btn { display: flex; }
  .merch-main { padding: 20px 16px 60px; }
  .merch-deals-row { grid-template-columns: repeat(2, 1fr); }
  .merch-hero-banner__visual { display: none; }
  .merch-hero-banner { padding: 30px 28px; }
}
@media (max-width: 640px) {
  .merch-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .merch-deals-row { grid-template-columns: 1fr; }
  .merch-hero-banner { padding: 24px 18px; }
  .merch-hero-banner__title { font-size: 1.75rem; }
  .merch-main { padding: 16px 12px 60px; }
}
@media (max-width: 400px) {
  .merch-grid { grid-template-columns: 1fr; }
}


/* ================================================================
   LEGACY selectors for product.php, cart.php, checkout.php
   ================================================================ */

.shop-breadcrumb {
  background: #f5f6fa; padding: 12px 0; margin-top: var(--header-height, 72px);
  border-bottom: 1px solid #e8e8e8;
}
.shop-breadcrumb .container { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: #999; }
.shop-breadcrumb a { color: #666; text-decoration: none; }
.shop-breadcrumb a:hover { color: #e94560; }

.shop-body, .shop-product { background: #f5f6fa; padding: 40px 0 80px; }
.shop-product__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.shop-product__main-img-wrap { position: relative; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.shop-product__main-img { width: 100%; display: block; object-fit: cover; }
.shop-product__oos-ribbon { position: absolute; top: 20px; left: -8px; background: #1a1a2e; color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; padding: 6px 20px; letter-spacing: .06em; }
.shop-product__cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #e94560; margin-bottom: 8px; }
.shop-product__name { font-size: clamp(1.75rem,3vw,2.5rem); font-weight: 800; color: #1a1a2e; line-height: 1.1; margin-bottom: 16px; letter-spacing: -.02em; }
.shop-product__price { font-size: 2rem; font-weight: 800; color: #1a1a2e; margin-bottom: 20px; }
.shop-product__desc  { font-size: 1rem; color: #555; line-height: 1.8; margin-bottom: 28px; }
.shop-product__option-group { margin-bottom: 20px; }
.shop-product__option-label { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #999; margin-bottom: 10px; }
.shop-product__options { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-option-btn { padding: 8px 18px; border-radius: 8px; border: 1.5px solid #d0d0d8; font-size: .875rem; font-weight: 600; cursor: pointer; background: #fff; color: #1a1a2e; transition: border-color .15s, background .15s; }
.shop-option-btn:hover, .shop-option-btn.is-selected { border-color: #1a1a2e; background: #1a1a2e; color: #fff; }
.shop-product__qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.shop-qty { display: flex; align-items: center; border: 1.5px solid #d0d0d8; border-radius: 10px; overflow: hidden; }
.shop-qty__btn { width: 40px; height: 44px; background: #f4f5f7; border: none; font-size: 1.25rem; cursor: pointer; transition: background .15s; }
.shop-qty__btn:hover { background: #e8e8e8; }
.shop-qty__input { width: 56px; height: 44px; text-align: center; border: none; font-size: 1rem; font-weight: 700; color: #1a1a2e; background: #fff; }
.shop-product__stock { font-size: .8125rem; color: #28a745; font-weight: 600; }
.shop-product__atc   { width: 100%; justify-content: center; margin-bottom: 12px; }
.shop-product__buy-now { width: 100%; justify-content: center; }
.shop-product__trust { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding-top: 24px; border-top: 1px solid #eee; }
.shop-trust-badge { display: flex; align-items: center; gap: 6px; font-size: .8125rem; color: #666; font-weight: 500; }
.shop-trust-badge i { color: #28a745; }

.shop-cart { background: #f5f6fa; padding: 40px 0 80px; margin-top: var(--header-height, 72px); }
.shop-cart__layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.shop-cart__table-wrap { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.shop-cart__title { font-size: 1.25rem; font-weight: 800; color: #1a1a2e; margin-bottom: 24px; }
.shop-cart-table { width: 100%; border-collapse: collapse; }
.shop-cart-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #aaa; font-weight: 700; padding: 8px 12px 12px; text-align: left; border-bottom: 1px solid #f0f0f4; }
.shop-cart-table td { padding: 16px 12px; vertical-align: middle; border-bottom: 1px solid #f0f0f4; }
.shop-cart-table tr:last-child td { border-bottom: none; }
.shop-cart-item__img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.shop-cart-item__name { font-size: .9375rem; font-weight: 700; color: #1a1a2e; }
.shop-cart-item__variant { font-size: .8125rem; color: #aaa; margin-top: 2px; }
.shop-cart-item__price { font-size: 1rem; font-weight: 700; color: #1a1a2e; }
.shop-cart-item__remove { color: #ccc; background: none; border: none; cursor: pointer; font-size: 1.1rem; }
.shop-cart-item__remove:hover { color: #e94560; }
.shop-cart__summary { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 1px 4px rgba(0,0,0,.06); position: sticky; top: calc(var(--header-height,72px) + 16px); }
.shop-cart__summary-title { font-size: 1.0625rem; font-weight: 800; color: #1a1a2e; margin-bottom: 20px; }
.shop-cart__summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .9rem; color: #666; border-bottom: 1px solid #f4f5f7; }
.shop-cart__summary-row--total { font-size: 1.125rem; font-weight: 800; color: #1a1a2e; border-bottom: none; margin-top: 8px; padding-top: 12px; }
.shop-cart__checkout { width: 100%; margin-top: 20px; justify-content: center; }

.checkout-page { background: #f5f6fa; padding: 40px 0 80px; margin-top: var(--header-height, 72px); }
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.checkout-steps { display: flex; align-items: center; gap: 0; margin-bottom: 32px; }
.checkout-step { display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; color: #999; transition: color .3s; }
.checkout-step.is-active { color: #1a1a2e; }
.checkout-step.is-done   { color: #16a34a; }
.checkout-step span {
  width: 28px; height: 28px; border-radius: 50%;
  background: #d0d0d8; color: #fff;
  font-size: .8125rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s;
}
.checkout-step.is-active span { background: #e94560; }
.checkout-step.is-done span   { background: #16a34a; }
.checkout-step.is-done span::after { content: '✓'; }
.checkout-step-sep { flex: 1; height: 2px; background: #d0d0d8; margin: 0 12px; transition: background .3s; }
.checkout-step-sep.is-done { background: #16a34a; }
.checkout-section { background: #fff; border-radius: 16px; padding: 28px 32px; box-shadow: 0 1px 4px rgba(0,0,0,.06); margin-bottom: 20px; }
.checkout-section__title { font-size: 1.0625rem; font-weight: 700; color: #1a1a2e; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.checkout-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.checkout-stripe-mount { border: 1.5px solid #d0d0d8; border-radius: 10px; padding: 16px; background: #fff; min-height: 56px; }
.checkout-submit { width: 100%; justify-content: center; font-size: 1.0625rem; padding: 16px; border-radius: 12px; margin-top: 8px; }
.checkout-secure-note { text-align: center; font-size: .8125rem; color: #999; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.checkout-summary { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 1px 4px rgba(0,0,0,.06); position: sticky; top: calc(var(--header-height,72px) + 16px); }
.checkout-summary__title { font-size: 1.0625rem; font-weight: 700; color: #1a1a2e; margin-bottom: 20px; }
.checkout-summary__items { margin-bottom: 20px; }
.checkout-summary__item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.checkout-summary__item:last-child { border-bottom: none; }
.checkout-summary__img-wrap { position: relative; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.checkout-summary__img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.checkout-summary__qty { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: #1a1a2e; color: #fff; font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.checkout-summary__item-info { flex: 1; min-width: 0; }
.checkout-summary__item-name    { font-size: .875rem; font-weight: 600; color: #1a1a2e; }
.checkout-summary__item-variant { font-size: .8125rem; color: #999; }
.checkout-summary__item-price   { font-size: .9375rem; font-weight: 700; color: #1a1a2e; flex-shrink: 0; }
.checkout-summary__totals { border-top: 1px solid #eee; padding-top: 16px; }
.checkout-summary__row { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; color: #666; padding: 6px 0; }
.checkout-summary__row--total { font-size: 1.0625rem; font-weight: 800; color: #1a1a2e; border-top: 1px solid #eee; margin-top: 8px; padding-top: 12px; }
