/* ==============================================
   日本藥妝代購 — MUJI 風格設計系統
   ============================================== */

/* ── CSS Variables ─────────────────────────── */
:root {
  --color-primary:    #e8989e;
  --color-primary-dk: #c97079;
  --color-bg:         #fcfaf2;
  --color-bg-2:       #f4dddf;
  --color-bg-3:       #ffffff;
  --color-taupe:      #d6c4bb;
  --color-text:       #2d1f1f;
  --color-text-2:     #4a3030;
  --color-text-muted: #a0887f;
  --color-border:     #d6c4bb;
  --color-border-lt:  #eddcde;
  --shadow-low:       rgba(100,60,60,.08) 0 2px 8px 0;
  --shadow-mid:       rgba(100,60,60,.12) 0 4px 16px 0;
  --font-main:        "Helvetica Neue","NotoSansCJKtc","Microsoft JhengHei",Arial,sans-serif;
  --radius-sm:        4px;
  --radius-md:        8px;
  --radius-lg:        20px;
  --radius-pill:      100px;
  --container:        1280px;
  --spacing:          8px;
  /* legacy aliases */
  --red:        #e8989e;
  --red-dark:   #c97079;
  --gold:       #e0a86a;
  --white:      #ffffff;
  --gray-100:   #fcfaf2;
  --gray-200:   #eddcde;
  --gray-300:   #d6c4bb;
  --gray-400:   #a0887f;
  --gray-500:   #a0887f;
  --gray-600:   #5b4c53;
  --gray-800:   #2d1f1f;
  --radius:     8px;
  --shadow:     rgba(100,60,60,.08) 0 2px 8px 0;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Layout ─────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── Typography ─────────────────────────────── */
h1 { font-size: 24px; font-weight: 700; color: var(--color-text); }
h2 { font-size: 20px; font-weight: 700; color: var(--color-text); }
h3 { font-size: 16px; font-weight: 700; color: var(--color-text); }
h4 { font-size: 14px; font-weight: 600; color: var(--color-text); }

/* ── Section Heading ─────────────────────────── */
.section-title {
  font-size: 20px; font-weight: 700; color: var(--color-text);
  letter-spacing: 0.04em; display: flex; align-items: center; gap: 12px;
}
.section-title::after { content:''; flex:1; height:1px; background:var(--color-border-lt); }
.section-more {
  font-size: 12px; color: var(--color-text-muted); letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-text-muted); padding-bottom: 1px;
  transition: color .2s, border-color .2s; white-space: nowrap;
}
.section-more:hover { color: var(--color-primary); border-color: var(--color-primary); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-header-inner { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 24px; font-size: 13px; font-weight: 500; border-radius: var(--radius-sm);
  border: 1px solid transparent; transition: all .2s; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color:#fff; border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dk); border-color: var(--color-primary-dk); }
.btn-outline { background: transparent; color: var(--color-text); border-color: var(--color-text); }
.btn-outline:hover { background: var(--color-text); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-text-muted); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-text); color: var(--color-text); }
.btn-accent { background: var(--color-primary); color:#fff; border-color: var(--color-primary); }
.btn-accent:hover { opacity:.88; }
.btn-sm { padding: 7px 16px; font-size: 12px; }
.btn-full { width: 100%; }
.btn-disabled { background:#e0e0e0; color:#aaa; border-color:#e0e0e0; cursor:not-allowed; pointer-events:none; }
.btn-preorder { background:transparent; color:var(--color-primary); border-color:var(--color-primary); }
.btn-preorder:hover { background:var(--color-primary); color:#fff; }

/* ── ======================================== */
/*    HEADER                                   */
/* ======================================== */
.announcement { display: none; }
.top-bar {
  background: var(--color-text); color:#fff; font-size:11px; letter-spacing:.04em;
  padding:6px 0; display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.top-bar .marquee-track { display:flex; width:max-content; animation:marqueeScroll 22s linear infinite; }
.top-bar .marquee-text { padding:0 60px; white-space:nowrap; display:inline-block; }
@keyframes marqueeScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.top-bar a { color:#fff; opacity:.8; transition:opacity .2s; }
.top-bar a:hover { opacity:1; }

#header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-bg-3);
  border-bottom: 1px solid var(--color-border-lt);
}
.header-main { padding: 0; }
.header-inner {
  display: flex; align-items: center; gap: 24px; height: 64px;
}
.header-main .container { display:flex; align-items:center; gap:24px; height:64px; }

/* Logo */
.logo { flex-shrink:0; display:flex; align-items:center; }
.logo img, .logo-img { height:38px; width:auto; display:block; }
.logo-badge {
  background: var(--color-primary); color:#fff; font-size:9px; font-weight:700;
  padding:2px 5px; border-radius:2px; letter-spacing:.08em;
}

/* Search */
.header-search { flex:1; max-width:360px; position:relative; }
.header-search input, .search-box input {
  width:100%; height:36px; padding:0 12px 0 36px;
  border:1px solid var(--color-border); border-radius:var(--radius-pill);
  font-size:13px; font-family:inherit; background:#fff;
  color:var(--color-text); outline:none; transition:border-color .2s, background .2s;
}
.header-search input:focus { border-color:var(--color-text); }
.header-search input::placeholder { color:var(--color-text-muted); }
.header-search svg {
  position:absolute; left:11px; top:50%; transform:translateY(-50%); pointer-events:none;
}
/* Legacy search-box (PHP uses form.search-box) */
.search-box {
  flex:1; max-width:360px; position:relative;
  display:flex; border:1px solid var(--color-border); border-radius:var(--radius-pill); overflow:hidden;
}
.search-box input { padding:0 12px; border:none; border-radius:0; padding-left:36px; }
.search-box button {
  background:none; border:none; padding:0 14px; color:var(--color-text-muted); cursor:pointer;
  display:flex; align-items:center;
}
.search-box button:hover { color:var(--color-primary); }

/* Tools */
.header-tools { display:flex; align-items:center; gap:4px; margin-left:auto; }
.tool-btn {
  display:flex; flex-direction:column; align-items:center; gap:2px;
  padding:6px 10px; border-radius:var(--radius-sm); font-size:10px;
  color:var(--color-text-2); letter-spacing:.03em;
  transition:color .2s, background .2s; position:relative; border:none; background:none;
}
.tool-btn:hover { color:var(--color-primary); }
.tool-btn svg { display:block; }
.tool-btn .icon { display:flex; align-items:center; justify-content:center; }
.tool-btn span { color:inherit; }
.tool-btn.line-btn { color:inherit; }
.tool-btn.line-btn:hover { color:var(--color-primary); }
.cart-btn { position:relative; }
.cart-badge {
  position:absolute; top:3px; right:6px;
  background:var(--color-primary); color:#fff; font-size:9px; font-weight:700;
  min-width:16px; height:16px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; padding:0 3px;
}

/* Mobile hamburger */
.mobile-menu-btn, .mobile-menu-toggle {
  display:none; background:none; border:none; padding:8px; color:var(--color-text); cursor:pointer;
}

/* Nav */
#nav { background:var(--color-bg-3); border-bottom:1px solid var(--color-border-lt); }
.nav-inner {
  display:flex; align-items:center; gap:0; height:44px;
  overflow-x:auto; scrollbar-width:none;
}
.nav-inner::-webkit-scrollbar { display:none; }
.nav-item { position:relative; }
.nav-link {
  display:flex; align-items:center; gap:4px; padding:0 18px; height:44px;
  font-size:13px; font-weight:400; color:var(--color-text-2); white-space:nowrap;
  transition:color .2s; border-bottom:2px solid transparent; letter-spacing:.02em;
}
.nav-link:hover, .nav-link.active { color:var(--color-primary); border-bottom-color:var(--color-primary); }
.nav-link svg { display:none; }
.nav-arrow { font-size:9px; opacity:.5; }

/* Dropdown */
.nav-item:hover .dropdown, .nav-item.open .dropdown { display:block; }
.dropdown {
  display:none; position:absolute; top:44px; left:0; background:#fff;
  border:1px solid var(--color-border-lt); border-radius:var(--radius-md);
  box-shadow:var(--shadow-mid); min-width:160px; padding:8px 0; z-index:200;
}
.dropdown a {
  display:block; padding:9px 20px; font-size:13px; color:var(--color-text-2);
  transition:background .15s, color .15s;
}
.dropdown a:hover { background:var(--color-bg-2); color:var(--color-primary); }

/* ── ======================================== */
/*    HERO — MUJI SPLIT STYLE                  */
/* ======================================== */
.hero-split {
  display:grid; grid-template-columns:1fr 1fr; min-height:520px; overflow:hidden;
}
.hero-split-text {
  background:var(--color-bg); padding:80px 60px;
  display:flex; flex-direction:column; justify-content:center;
}
.hero-split-image {
  background:var(--color-bg-2); display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden;
}
.hero-split-image-inner { width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.hero-eyebrow {
  font-size:10px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--color-primary); margin-bottom:16px; display:block;
}
.hero-title {
  font-size:40px; font-weight:700; line-height:1.25; color:var(--color-text);
  margin-bottom:20px; letter-spacing:-.01em;
}
.hero-sub { font-size:14px; color:var(--color-text-muted); line-height:1.8; margin-bottom:32px; }
.hero-link {
  display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600;
  color:var(--color-text); letter-spacing:.04em; border-bottom:1px solid var(--color-text);
  padding-bottom:2px; transition:color .2s,border-color .2s; width:fit-content;
}
.hero-link:hover { color:var(--color-primary); border-color:var(--color-primary); }
.hero-dots { display:flex; gap:6px; margin-top:40px; }
.hero-dot {
  width:20px; height:3px; background:var(--color-border); border:none; cursor:pointer;
  transition:background .2s, width .2s; border-radius:2px;
}
.hero-dot.active { background:var(--color-primary); width:40px; }

/* Legacy hero (for existing PHP banners) */
.banner-placeholder {
  background: var(--color-bg-2); position:relative; min-height:420px;
  display:flex; align-items:center; justify-content:center;
  background-size:cover; background-position:center;
}
.hero-slide-bg {
  position:absolute; inset:0; background-size:cover; background-position:center;
  opacity:0; transition:opacity .8s ease;
}
.hero-slide-bg.active { opacity:1; }
.banner-overlay { position:absolute; inset:0; background:rgba(0,0,0,.35); }
.banner-inner, .hero-text-slide {
  position:relative; z-index:2; text-align:center; padding:0 24px; color:#fff;
  opacity:0; transition:opacity .6s ease; pointer-events:none;
}
.hero-text-slide.active { opacity:1; pointer-events:auto; }
.banner-placeholder:not(.hero-multi) .banner-inner { opacity:1; }
.banner-inner h2 { font-size:36px; font-weight:700; margin-bottom:12px; }
.banner-inner p { font-size:16px; margin-bottom:24px; opacity:.9; }
.hero-btn {
  display:inline-block; padding:12px 32px; border:2px solid #fff; color:#fff;
  font-size:14px; font-weight:600; border-radius:var(--radius-sm); transition:all .2s;
}
.hero-btn:hover { background:#fff; color:var(--color-text); }
.hslider-prev, .hslider-next {
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(255,255,255,.2); border:none; color:#fff; font-size:24px;
  width:44px; height:44px; border-radius:50%; cursor:pointer; z-index:10;
  display:flex; align-items:center; justify-content:center; transition:background .2s;
}
.hslider-prev { left:16px; } .hslider-next { right:16px; }
.hslider-prev:hover, .hslider-next:hover { background:rgba(255,255,255,.4); }
.hslider-dots { position:absolute; bottom:16px; left:50%; transform:translateX(-50%); display:flex; gap:8px; }
.hslider-dot {
  width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.5); border:none; cursor:pointer;
}
.hslider-dot.active { background:#fff; }

/* ── ======================================== */
/*    CATEGORY TILES                           */
/* ======================================== */
.cat-shortcuts { padding:32px 0; background:var(--color-bg); border-top:1px solid var(--color-border-lt); border-bottom:1px solid var(--color-border-lt); }
.cat-tile-row { display:flex; gap:10px; overflow-x:auto; scrollbar-width:none; padding:4px 0 6px; }
.cat-tile-row::-webkit-scrollbar { display:none; }
.cat-tile {
  flex:0 0 auto; display:flex; flex-direction:column; align-items:center; gap:10px;
  padding:18px 18px 14px; background:var(--color-bg-3); border:1px solid var(--color-border-lt);
  border-radius:var(--radius-md); min-width:84px; cursor:pointer;
  transition:background .15s, border-color .15s, transform .15s;
}
.cat-tile:hover { background:var(--color-bg-2); border-color:var(--color-primary); transform:translateY(-2px); }
.cat-tile-icon { display:none; }
.cat-tile-name { font-size:11px; color:var(--color-text-2); text-align:center; white-space:nowrap; }
/* Legacy category grid */
.cat-grid { display:flex; gap:10px; overflow-x:auto; scrollbar-width:none; padding:32px 0; }
.cat-item {
  flex:0 0 auto; display:flex; flex-direction:column; align-items:center; gap:8px;
  min-width:72px; text-align:center; text-decoration:none;
}
.cat-icon {
  width:52px; height:52px; border-radius:50%; background:var(--color-bg-2);
  display:flex; align-items:center; justify-content:center;
  transition:background .15s;
}
.cat-icon svg { stroke:var(--color-primary); }
.cat-item:hover .cat-icon { background:var(--color-primary); }
.cat-item:hover .cat-icon svg { stroke:#fff; }
.cat-name { font-size:11px; color:var(--color-text-2); }

/* ── ======================================== */
/*    PRODUCT CARD / GRID                      */
/* ======================================== */
.product-section { padding:48px 0; }
.product-section + .product-section { border-top:1px solid var(--color-border-lt); }
.home-section { padding:32px 0; }
.home-section + .home-section { border-top:1px solid var(--color-border-lt); }
.product-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px;
}
.product-card {
  display:flex; flex-direction:column; background:var(--color-bg-3);
  border-radius:var(--radius-md); overflow:hidden; transition:box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow:var(--shadow-low); transform:translateY(-2px); }
.product-thumb {
  aspect-ratio:1/1; background:#f9f4f2; overflow:hidden; position:relative;
}
.product-thumb img, .product-card .img-wrap img {
  width:100%; height:100%; object-fit:contain; transition:transform .35s ease;
}
.product-card:hover .product-thumb img, .product-card:hover .img-wrap img { transform:scale(1.04); }
.product-thumb-placeholder, .product-card .img-wrap {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  aspect-ratio:1/1; background:#f9f4f2; overflow:hidden; position:relative;
}
.product-badge, .badge {
  position:absolute; top:10px; left:10px;
  background:var(--color-text); color:#fff; font-size:10px; font-weight:600;
  padding:3px 8px; border-radius:var(--radius-sm); letter-spacing:.05em;
}
.product-badge.pre, .badge-preorder { background:var(--color-primary); }
.product-badge.sale, .badge-sale { background:var(--color-primary); }
.badge-new, .badge-instock { background:#1a7f4b; }
.badge-hot { background:var(--gold); }
.product-info, .card-body {
  padding:14px 14px 16px; display:flex; flex-direction:column; flex:1; gap:6px;
}
.product-cat, .cat-label { font-size:11px; color:var(--color-text-muted); letter-spacing:.04em; }
.product-name, .prod-name {
  font-size:13px; color:var(--color-text); line-height:1.5; flex:1;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.product-name:hover, .prod-name:hover { color:var(--color-primary); }
.product-price, .price-wrap { display:flex; align-items:baseline; gap:6px; margin-top:4px; }
.price-main, .price-current { font-size:16px; font-weight:700; color:var(--color-text); }
.price-sale { color:var(--color-primary); }
.price-orig, .price-original {
  font-size:12px; color:var(--color-text-muted); text-decoration:line-through;
}
.product-action { margin-top:10px; }
.product-card .rating { font-size:12px; color:var(--gold); margin-bottom:8px; }
.rating .count { color:var(--color-text-muted); }

/* Add to cart buttons */
.btn-add-cart {
  display:block; width:100%; padding:8px; background:var(--color-primary); color:#fff;
  border:none; border-radius:var(--radius-sm); font-size:13px; cursor:pointer; transition:background .2s; text-align:center;
}
.btn-add-cart:hover { background:var(--color-primary-dk); }
.btn-add-cart.out-of-stock, .btn-add-cart.btn-disabled { background:var(--color-text-muted); cursor:not-allowed; }
.btn-add-cart.btn-preorder { background:transparent; color:var(--color-primary); border:1px solid var(--color-primary); }
.btn-add-cart.btn-preorder:hover { background:var(--color-primary); color:#fff; }
.btn-view-product {
  width:100%; padding:8px; background:#fff; color:var(--color-text); border:1px solid var(--color-border);
  border-radius:var(--radius-sm); font-size:13px; transition:all .2s; text-align:center; display:block;
}
.btn-view-product:hover { border-color:var(--color-text); background:var(--color-text); color:#fff; }

/* ── ======================================== */
/*    SHOP / CATEGORY PAGE                     */
/* ======================================== */
.shop-wrap, .shop-layout {
  display:grid; grid-template-columns:220px 1fr; gap:32px; padding:32px 0 64px;
}
.sidebar-title {
  font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--color-text); padding-bottom:10px; border-bottom:2px solid var(--color-text); margin-bottom:12px;
}
.sidebar-categories li a, .sidebar-cat-link {
  display:flex; align-items:center; justify-content:space-between;
  padding:8px 0; font-size:13px; color:var(--color-text-2);
  border-bottom:1px solid var(--color-border-lt); transition:color .15s;
}
.sidebar-categories li a:hover, .sidebar-cat-link:hover, .sidebar-cat-link.active { color:var(--color-primary); }
.sidebar-categories .sub-cats a { padding-left:12px; font-size:12px; color:var(--color-text-muted); }
.sidebar-cat-count { font-size:11px; color:var(--color-text-muted); }
.price-range { display:flex; align-items:center; gap:8px; margin-top:10px; }
.price-range input {
  flex:1; height:34px; padding:0 8px; border:1px solid var(--color-border);
  border-radius:var(--radius-sm); font-size:12px; font-family:inherit; color:var(--color-text); outline:none;
}
.price-range input:focus { border-color:var(--color-text); }
.shop-main { min-width:0; }
.shop-toolbar, .filter-bar {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:20px; padding-bottom:16px; border-bottom:1px solid var(--color-border-lt);
}
.shop-count, .result-count { font-size:13px; color:var(--color-text-muted); }
.sort-select, .filter-sort select {
  height:32px; padding:0 28px 0 10px; border:1px solid var(--color-border);
  border-radius:var(--radius-sm); font-size:12px; font-family:inherit;
  background:var(--color-bg); -webkit-appearance:none; cursor:pointer; color:var(--color-text); outline:none;
}
.product-grid-5, .product-grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.product-grid-6 { display:grid; grid-template-columns:repeat(6,1fr); gap:20px; }
/* 新品上市 兩排滿版 grid（header 在 container，grid 本身全寬） */
.product-grid-2row {
  display:grid; grid-template-columns:repeat(6,1fr); gap:20px;
  padding:8px 24px 40px;
}
/* 新品上市 carousel 改 2 排：grid 取代 flex，items 由上往下填欄再往右 */
.product-carousel-2row {
  display:grid !important;
  grid-template-rows:repeat(2, auto);
  grid-auto-flow:column;
  grid-auto-columns:260px;
}
/* Sort tab bar */
.sort-tabbar {
  display:flex; align-items:center; gap:8px; overflow-x:auto; scrollbar-width:none;
}
.sort-tabbar::-webkit-scrollbar { display:none; }
.sort-tab {
  flex-shrink:0; padding:5px 14px; border:1px solid var(--color-border);
  border-radius:var(--radius-pill); font-size:12px; color:var(--color-text-2);
  background:none; cursor:pointer; white-space:nowrap; transition:all .15s;
}
.sort-tab:hover { border-color:var(--color-primary); color:var(--color-primary); }
.sort-tab.active { background:var(--color-text); color:#fff; border-color:var(--color-text); font-weight:600; }
.result-count-sm { font-size:12px; color:var(--color-text-muted); white-space:nowrap; flex-shrink:0; margin-right:4px; }
.sort-tabs-wrap { display:flex; gap:6px; flex-shrink:0; }

/* ── ======================================== */
/*    PRODUCT DETAIL PAGE                      */
/* ======================================== */
.product-detail, .product-detail-layout {
  display:grid; grid-template-columns:1fr 480px; gap:48px; padding:32px 0 64px; align-items:start;
}
/* Gallery */
.product-gallery .main-img, .gallery-main {
  aspect-ratio:1/1; background:var(--color-bg-2); border-radius:var(--radius-md);
  overflow:hidden; margin-bottom:12px; cursor:zoom-in;
}
.product-gallery .main-img img, .gallery-main img { width:100%; height:100%; object-fit:contain; }
.product-gallery .thumb-list, .gallery-thumbs { display:flex; gap:8px; flex-wrap:wrap; }
.product-gallery .thumb, .gallery-thumb {
  width:68px; height:68px; background:var(--color-bg-2); border-radius:var(--radius-sm);
  border:2px solid transparent; overflow:hidden; cursor:pointer; transition:border-color .15s; flex-shrink:0;
}
.product-gallery .thumb img, .gallery-thumb img { width:100%; height:100%; object-fit:contain; }
.product-gallery .thumb.active, .gallery-thumb.active { border-color:var(--color-text); }
/* Product info panel */
.product-info .prod-title { font-size:22px; font-weight:700; color:var(--color-text); line-height:1.4; margin-bottom:16px; }
.product-info .prod-badges { display:flex; gap:6px; margin-bottom:14px; }
.product-info .prod-meta { font-size:13px; color:var(--color-text-muted); margin-bottom:4px; }
.product-info .prod-price {
  display:flex; align-items:baseline; gap:10px; margin-bottom:20px; padding-bottom:20px;
  border-bottom:1px solid var(--color-border-lt); font-size:28px; font-weight:700; color:var(--color-text);
}
.product-info .prod-price .orig { font-size:16px; color:var(--color-text-muted); text-decoration:line-through; font-weight:400; }
#prodPriceBox { font-size:28px; font-weight:700; color:var(--color-text); margin:16px 0 8px; }
.stock-info { font-size:13px; margin-bottom:14px; }
.stock-in { color:#1a7f4b; } .stock-out { color:var(--color-primary); } .stock-pre { color:var(--gold); }
/* SKU selector */
.sku-group { margin-bottom:20px; }
.sku-group-label { font-size:13px; font-weight:600; margin-bottom:8px; color:var(--color-text); }
.sku-options { display:flex; flex-wrap:wrap; gap:8px; }
.sku-opt-card, .sku-btn {
  padding:7px 16px; border:1.5px solid var(--color-border); border-radius:var(--radius-sm);
  background:var(--color-bg); font-size:13px; color:var(--color-text);
  cursor:pointer; transition:all .15s; user-select:none; font-family:inherit;
}
.sku-opt-card:hover, .sku-btn:hover { border-color:var(--color-text); }
.sku-opt-card.selected, .sku-btn.active { border-color:var(--color-text); background:var(--color-text); color:#fff; }
.sku-opt-card.disabled, .sku-btn.disabled { opacity:.35; cursor:not-allowed; pointer-events:none; }
.sku-img-card {
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:8px 10px; border:1.5px solid var(--color-border); border-radius:var(--radius-sm);
  background:var(--color-bg-3); cursor:pointer; font-size:12px; color:var(--color-text);
  transition:all .15s; min-width:72px; text-align:center; user-select:none;
}
.sku-img-card img { width:56px; height:56px; object-fit:cover; border-radius:4px; }
.sku-img-card:hover { border-color:var(--color-text); }
.sku-img-card.selected { border-color:var(--color-text); background:var(--color-bg-2); }
.sku-img-card.disabled { opacity:.35; cursor:not-allowed; pointer-events:none; }
/* Qty */
.qty-control {
  display:flex; align-items:center; border:1px solid var(--color-border);
  border-radius:var(--radius-sm); overflow:hidden; width:fit-content;
}
.qty-control button { width:36px; height:40px; background:var(--color-bg); border:none; font-size:18px; cursor:pointer; }
.qty-control input { width:60px; height:40px; text-align:center; border:none; border-left:1px solid var(--color-border); border-right:1px solid var(--color-border); font-size:15px; outline:none; }
.btn-add-cart-lg {
  width:100%; padding:13px; background:var(--color-text); color:#fff; border:2px solid var(--color-text);
  border-radius:var(--radius-sm); font-size:15px; font-weight:700; cursor:pointer; transition:all .2s; margin-bottom:10px;
}
.btn-add-cart-lg:hover { background:var(--color-primary); border-color:var(--color-primary); }
.btn-buy-now {
  width:100%; padding:13px; background:var(--color-primary); color:#fff; border:none;
  border-radius:var(--radius-sm); font-size:16px; font-weight:700; cursor:pointer; margin-bottom:10px; transition:background .2s;
}
.btn-buy-now:hover { background:var(--color-primary-dk); }
.shipping-info {
  background:var(--color-bg-2); border-radius:var(--radius-md); padding:14px; margin-top:16px;
}
.shipping-info p { font-size:13px; color:var(--color-text-muted); display:flex; align-items:flex-start; gap:8px; margin-bottom:6px; }
/* Tabs */
.product-tabs { margin-top:30px; }
.tab-nav { display:flex; border-bottom:1px solid var(--color-border-lt); }
.tab-nav button, .tab-btn {
  padding:14px 24px; font-size:13px; font-weight:500; color:var(--color-text-muted);
  background:none; border:none; border-bottom:2px solid transparent; cursor:pointer;
  transition:color .15s, border-color .15s; margin-bottom:-1px; letter-spacing:.03em;
}
.tab-nav button:hover, .tab-btn:hover { color:var(--color-text); }
.tab-nav button.active, .tab-btn.active { color:var(--color-text); border-bottom-color:var(--color-text); }
.tab-content, .tab-panel { display:none; padding:20px; font-size:14px; line-height:1.8; color:var(--color-text-2); }
.tab-content.active, .tab-panel.active { display:block; }
/* Preorder note */
.preorder-note {
  background:var(--color-bg-2); border:1px solid var(--color-border); border-radius:var(--radius-sm);
  padding:10px 14px; font-size:12px; color:var(--color-primary-dk); margin-bottom:16px; line-height:1.5;
}
/* Customer service link */
.cs-link {
  display:flex; align-items:center; gap:8px; padding:14px 16px;
  background:var(--color-bg-2); border-radius:var(--radius-md); font-size:13px; color:var(--color-text-2); transition:background .15s;
}
.cs-link:hover { background:var(--color-border-lt); }

/* ── ======================================== */
/*    BREADCRUMB                               */
/* ======================================== */
.breadcrumb {
  display:flex; align-items:center; gap:6px; font-size:12px;
  color:var(--color-text-muted); padding:20px 0 16px; flex-wrap:wrap;
}
.breadcrumb a { color:var(--color-text-muted); transition:color .15s; }
.breadcrumb a:hover { color:var(--color-text); }
.breadcrumb .sep, .breadcrumb-sep { opacity:.4; }
.breadcrumb .current, .breadcrumb-current { color:var(--color-text-2); }

/* ── ======================================== */
/*    CART PAGE                                */
/* ======================================== */
.cart-layout { display:grid; grid-template-columns:1fr 300px; gap:20px; padding:32px 0 64px; }
.cart-table { background:var(--color-bg-3); border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-low); }
.cart-table table { width:100%; border-collapse:collapse; }
.cart-table th { background:var(--color-bg); padding:12px 16px; text-align:left; font-size:13px; color:var(--color-text-muted); font-weight:600; }
.cart-table td { padding:12px 16px; border-bottom:1px solid var(--color-border-lt); vertical-align:middle; }
.cart-product { display:flex; align-items:center; gap:12px; }
.cart-product img { width:70px; height:70px; object-fit:cover; border-radius:var(--radius-sm); border:1px solid var(--color-border-lt); }
.cart-product .name { font-size:13px; font-weight:500; }
.cart-product .variant { font-size:11px; color:var(--color-text-muted); }
.cart-qty { display:flex; align-items:center; gap:6px; }
.cart-qty input { width:50px; text-align:center; padding:4px; border:1px solid var(--color-border); border-radius:var(--radius-sm); }
.cart-qty button { background:none; border:1px solid var(--color-border); border-radius:var(--radius-sm); width:28px; height:28px; cursor:pointer; }
.cart-remove { color:var(--color-text-muted); background:none; border:none; font-size:16px; cursor:pointer; }
.cart-remove:hover { color:var(--color-primary); }
.cart-price { font-weight:700; color:var(--color-text); }
.cart-summary { background:var(--color-bg-3); border-radius:var(--radius-md); padding:20px; box-shadow:var(--shadow-low); height:fit-content; }
.cart-summary .summary-title { font-size:16px; font-weight:700; margin-bottom:16px; padding-bottom:10px; border-bottom:1px solid var(--color-border-lt); color:var(--color-text); }
.summary-row { display:flex; justify-content:space-between; font-size:14px; margin-bottom:10px; }
.summary-row.total { font-size:18px; font-weight:700; color:var(--color-text); border-top:1px solid var(--color-border-lt); padding-top:12px; margin-top:4px; }
.free-ship-notice { font-size:12px; color:#1a7f4b; text-align:center; margin:10px 0; background:#d4edda; padding:6px 10px; border-radius:var(--radius-sm); }
.btn-checkout {
  display:block; width:100%; padding:14px; background:var(--color-text); color:#fff;
  text-align:center; border-radius:var(--radius-sm); font-size:15px; font-weight:700; transition:background .2s; border:none; cursor:pointer;
}
.btn-checkout:hover { background:var(--color-primary); }
.btn-continue-shop { display:block; text-align:center; margin-top:10px; font-size:13px; color:var(--color-text-muted); }
.btn-continue-shop:hover { color:var(--color-primary); }

/* ── ======================================== */
/*    CHECKOUT PAGE                            */
/* ======================================== */
.checkout-layout { display:grid; grid-template-columns:1fr 380px; gap:24px; padding:32px 0 64px; }
.checkout-form { background:var(--color-bg-3); border-radius:var(--radius-md); padding:24px; box-shadow:var(--shadow-low); }
.form-group { margin-bottom:16px; }
.form-group label { display:block; font-size:13px; font-weight:600; margin-bottom:5px; color:var(--color-text); }
.form-group label .required { color:var(--color-primary); }
.form-group input, .form-group select, .form-group textarea {
  width:100%; padding:9px 12px; border:1px solid var(--color-border); border-radius:var(--radius-sm);
  font-size:13px; font-family:inherit; outline:none; transition:border-color .2s; background:#fff; color:var(--color-text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color:var(--color-text); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-section-title {
  font-size:15px; font-weight:700; color:var(--color-text); margin:20px 0 12px;
  padding-bottom:8px; border-bottom:1px solid var(--color-border-lt);
}
.payment-options { display:flex; flex-direction:column; gap:10px; }
.payment-option {
  display:flex; align-items:center; gap:10px; padding:12px;
  border:1px solid var(--color-border); border-radius:var(--radius-sm); cursor:pointer; transition:border-color .2s;
}
.payment-option:has(input:checked) { border-color:var(--color-text); background:var(--color-bg-2); }

/* ── ======================================== */
/*    AUTH PAGES (Login / Register)            */
/* ======================================== */
.auth-page { min-height:80vh; display:flex; align-items:center; justify-content:center; padding:40px 15px; }
.auth-box {
  background:var(--color-bg-3); border-radius:var(--radius-md); padding:36px 40px;
  box-shadow:var(--shadow-mid); width:100%; max-width:440px;
}
.auth-logo { text-align:center; margin-bottom:24px; }
.auth-logo img { height:44px; margin:0 auto; }
.auth-title { font-size:22px; font-weight:700; text-align:center; color:var(--color-text); margin-bottom:24px; }
.auth-switch { text-align:center; margin-top:16px; font-size:13px; color:var(--color-text-muted); }
.auth-switch a { color:var(--color-primary); text-decoration:underline; }
.btn-auth {
  width:100%; padding:12px; background:var(--color-text); color:#fff; border:none;
  border-radius:var(--radius-sm); font-size:15px; font-weight:700; cursor:pointer; margin-top:6px; transition:background .2s;
}
.btn-auth:hover { background:var(--color-primary); }
.btn-line-login {
  width:100%; padding:12px; background:#06C755; color:#fff; border:none;
  border-radius:var(--radius-sm); font-size:15px; font-weight:700; cursor:pointer; transition:background .2s;
  display:flex; align-items:center; justify-content:center; gap:10px;
}
.btn-line-login:hover { background:#05a548; }
.divider { display:flex; align-items:center; gap:12px; margin:20px 0; }
.divider::before, .divider::after { content:''; flex:1; height:1px; background:var(--color-border-lt); }
.divider span { font-size:12px; color:var(--color-text-muted); white-space:nowrap; }

/* ── ======================================== */
/*    ACCOUNT PAGE                             */
/* ======================================== */
.account-layout { display:grid; grid-template-columns:220px 1fr; gap:20px; padding:32px 0 64px; }
.account-sidebar { background:var(--color-bg-3); border-radius:var(--radius-md); padding:16px; box-shadow:var(--shadow-low); height:fit-content; }
.account-user { text-align:center; padding-bottom:16px; border-bottom:1px solid var(--color-border-lt); margin-bottom:14px; }
.account-user .avatar {
  width:64px; height:64px; border-radius:50%; background:var(--color-bg-2);
  color:var(--color-text); display:flex; align-items:center; justify-content:center; font-size:26px; margin:0 auto 8px;
}
.account-user .user-name { font-weight:700; font-size:15px; color:var(--color-text); }
.account-nav a {
  display:flex; align-items:center; gap:8px; padding:9px 10px; color:var(--color-text-2);
  border-radius:var(--radius-sm); font-size:14px; transition:all .2s;
}
.account-nav a:hover, .account-nav a.active { color:var(--color-primary); background:var(--color-bg-2); }
.order-card { background:var(--color-bg-3); border-radius:var(--radius-md); padding:16px; box-shadow:var(--shadow-low); margin-bottom:14px; }
.order-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; padding-bottom:10px; border-bottom:1px solid var(--color-border-lt); }
.order-number { font-weight:700; font-size:14px; }
.order-status { padding:3px 10px; border-radius:20px; font-size:12px; font-weight:600; }
.status-warning { background:#fff3cd; color:#856404; }
.status-info { background:#d1ecf1; color:#0c5460; }
.status-success { background:#d4edda; color:#155724; }
.status-danger { background:#f8d7da; color:#721c24; }
.status-primary { background:#cce5ff; color:#004085; }
.status-secondary { background:var(--color-bg-2); color:var(--color-text-muted); }

/* ── ======================================== */
/*    PROMO BANNERS                            */
/* ======================================== */
.promo-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; padding:48px 0; }
.promo-banners { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:16px 0; }
.promo-card {
  background:var(--color-bg-2); border-radius:var(--radius-lg); overflow:hidden;
  position:relative; height:200px; display:flex; align-items:flex-end; padding:24px;
}
.promo-banner { border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-low); }
.promo-banner img { width:100%; height:150px; object-fit:cover; transition:transform .3s; }
.promo-banner:hover img { transform:scale(1.03); }
.promo-placeholder {
  width:100%; height:150px; background:linear-gradient(135deg,var(--color-bg-2),var(--color-taupe));
  display:flex; align-items:center; justify-content:center; color:var(--color-text); font-size:18px; font-weight:700;
}
.promo-card-bg { position:absolute; inset:0; background-size:cover; background-position:center; }
.promo-card-overlay { position:absolute; inset:0; background:linear-gradient(to top,rgba(0,0,0,.5) 0%,transparent 70%); }
.promo-card-content { position:relative; z-index:2; color:#fff; }
.promo-card-title { font-size:18px; font-weight:700; margin-bottom:6px; }
.promo-card-sub { font-size:12px; opacity:.85; margin-bottom:12px; }
.promo-btn {
  display:inline-block; padding:6px 16px; background:#fff; color:var(--color-text);
  font-size:12px; font-weight:600; border-radius:var(--radius-sm); transition:background .2s;
}
.promo-btn:hover { background:var(--color-primary); color:#fff; }

/* ── ======================================== */
/*    FOOTER                                   */
/* ======================================== */
#footer {
  background:#fcfaf2; color:#5b4c53; font-size:13px;
  border-top:1px solid var(--color-border-lt); margin-top:0;
}
.footer-top, .footer-main {
  display:grid; grid-template-columns:280px 1fr; gap:48px; padding:56px 0 40px;
}
.footer-logo { display:block; margin-bottom:16px; }
.footer-logo-img { height:36px; width:auto; display:block; }
.logo-area img { height:44px; width:auto; display:block; margin-bottom:10px; }
.footer-tagline, .footer-about p { font-size:12px; line-height:1.8; color:#5b4c53; margin-bottom:8px; }
.footer-social { display:flex; gap:10px; margin-top:14px; }
.social-btn {
  width:36px; height:36px; border:1px solid var(--color-border); border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:#5b4c53; transition:border-color .2s, color .2s;
}
.social-btn:hover { border-color:var(--color-primary); color:var(--color-primary); }
.footer-links, .footer-links-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
.footer-col h4 {
  font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color:var(--color-text-2); margin-bottom:16px;
}
.footer-col ul { display:flex; flex-direction:column; gap:9px; }
.footer-col ul a, .footer-col a { font-size:12px; color:#5b4c53; transition:color .15s; }
.footer-col ul a:hover, .footer-col a:hover { color:var(--color-primary); }
.footer-col p { font-size:12px; color:#5b4c53; }
.footer-bottom {
  border-top:1px solid var(--color-border-lt); padding:18px 0;
  display:flex; align-items:center; justify-content:center; gap:32px; flex-wrap:wrap;
  font-size:11px; color:#5b4c53; letter-spacing:.03em; text-align:center;
}
.footer-bottom a { color:#5b4c53; }
.footer-bottom a:hover { color:var(--color-primary); }
.extra-info p { font-size:12px; color:#5b4c53; }

/* ── ======================================== */
/*    TOAST / ALERTS                           */
/* ======================================== */
#toast-container { position:fixed; bottom:24px; right:24px; z-index:9999; display:flex; flex-direction:column; gap:8px; }
.toast {
  padding:12px 18px; border-radius:var(--radius-md); font-size:13px; color:#fff;
  background:var(--color-text); box-shadow:var(--shadow-mid); animation:toastIn .3s ease;
  min-width:260px; max-width:380px;
}
.toast.success { background:#1a7f4b; }
.toast.error { background:var(--color-primary); }
.toast.warning { background:var(--gold); }
@keyframes toastIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
.alert { padding:12px 16px; border-radius:var(--radius-sm); font-size:14px; margin-bottom:16px; }
.alert-danger { background:#f8d7da; color:#721c24; border:1px solid #f5c6cb; }
.alert-success { background:#d4edda; color:#155724; border:1px solid #c3e6cb; }
.alert-info { background:#d1ecf1; color:#0c5460; border:1px solid #bee5eb; }
.alert-warning { background:#fff3cd; color:#856404; border:1px solid #ffeeba; }

/* ── ======================================== */
/*    PAGINATION                               */
/* ======================================== */
.pagination { display:flex; align-items:center; justify-content:center; gap:6px; padding:40px 0 0; }
.pagination ul { display:flex; align-items:center; justify-content:center; gap:6px; list-style:none; }
.page-btn, .pagination li a {
  width:36px; height:36px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--color-border); border-radius:var(--radius-sm);
  font-size:13px; color:var(--color-text-2); background:var(--color-bg); cursor:pointer; transition:all .15s;
}
.page-btn:hover, .pagination li a:hover { border-color:var(--color-text); color:var(--color-text); }
.page-btn.active, .pagination li.active a { background:var(--color-text); color:#fff; border-color:var(--color-text); }
.page-btn.disabled { opacity:.35; cursor:not-allowed; }
nav.pagination { margin:24px 0; }
nav.pagination ul { list-style:none; display:flex; gap:6px; justify-content:center; }

/* ── ======================================== */
/*    UTILS                                    */
/* ======================================== */
.mt-16 { margin-top:16px; } .mb-16 { margin-bottom:16px; }
.text-center { text-align:center; } .text-red { color:var(--color-primary); }
.bg-white { background:var(--color-bg-3); } .rounded { border-radius:var(--radius-md); } .shadow { box-shadow:var(--shadow-low); }
.empty-state { text-align:center; padding:60px 20px; color:var(--color-text-muted); }
.empty-state .icon { font-size:60px; margin-bottom:16px; opacity:.4; }
.empty-state p { font-size:16px; }
.page-wrap { min-height:60vh; padding:32px 0 64px; }

/* ── ======================================== */
/*    PRODUCT CAROUSEL                         */
/* ======================================== */
.product-carousel-section { padding:48px 0 0; }
.product-carousel-section + .product-carousel-section { border-top:1px solid var(--color-border-lt); }
.carousel-outer { position:relative; }
.product-carousel {
  display:flex; gap:20px; overflow-x:scroll; scrollbar-width:none;
  cursor:grab; -webkit-overflow-scrolling:touch; user-select:none; padding:8px 0 40px;
}
.product-carousel::-webkit-scrollbar { display:none; }
.product-carousel.is-dragging { cursor:grabbing; }
.carousel-card { flex:0 0 260px; width:260px; }
.carousel-nav-btn {
  position:absolute; top:calc(50% - 20px); transform:translateY(-50%);
  width:44px; height:44px; background:var(--color-bg-3); border:1px solid var(--color-border);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  cursor:pointer; z-index:10; box-shadow:var(--shadow-low);
  transition:background .2s, border-color .2s, color .2s; color:var(--color-text); font-size:20px; line-height:1;
}
.carousel-nav-btn:hover { background:var(--color-primary); border-color:var(--color-primary); color:#fff; }
.carousel-nav-prev { left:10px; } .carousel-nav-next { right:10px; }

/* ── ======================================== */
/*    ORDER COMPLETE / STATIC PAGES            */
/* ======================================== */
.order-complete-box {
  max-width:560px; margin:60px auto; background:var(--color-bg-3);
  border-radius:var(--radius-md); padding:48px 40px; text-align:center; box-shadow:var(--shadow-mid);
}
.order-complete-icon { font-size:64px; margin-bottom:16px; }
.order-complete-box h2 { font-size:26px; margin-bottom:12px; }
.order-complete-box p { color:var(--color-text-muted); margin-bottom:6px; }
.order-complete-box .order-no { font-size:18px; font-weight:700; color:var(--color-primary); margin:14px 0; }
.static-page { max-width:780px; margin:0 auto; padding:40px 0 64px; line-height:1.9; }
.static-page h1 { margin-bottom:24px; }
.static-page h2 { font-size:16px; margin-top:28px; margin-bottom:10px; }
.static-page p { margin-bottom:12px; color:var(--color-text-2); }

/* ── ======================================== */
/*    LIGHTBOX                                 */
/* ======================================== */
.lightbox {
  display:none; position:fixed; inset:0; background:rgba(0,0,0,.85); z-index:9000;
  align-items:center; justify-content:center;
}
.lightbox.open { display:flex; }
.lightbox-inner { position:relative; max-width:90vw; max-height:90vh; }
.lightbox-inner img { max-width:90vw; max-height:90vh; object-fit:contain; border-radius:var(--radius-sm); }
.lightbox-close {
  position:absolute; top:-16px; right:-16px; background:#fff; border:none; border-radius:50%;
  width:36px; height:36px; font-size:20px; cursor:pointer; display:flex; align-items:center; justify-content:center;
  color:var(--color-text); box-shadow:var(--shadow-mid);
}

/* ── ======================================== */
/*    RESPONSIVE                               */
/* ======================================== */
@media (max-width:1024px) {
  .product-grid, .product-grid-5, .product-grid-4 { grid-template-columns:repeat(3,1fr); }
  .product-grid-6 { grid-template-columns:repeat(4,1fr); }
  .product-grid-2row { grid-template-columns:repeat(4,1fr); }
  .product-detail, .product-detail-layout { grid-template-columns:1fr; gap:32px; }
  .shop-wrap, .shop-layout { grid-template-columns:180px 1fr; gap:24px; }
  .promo-grid, .promo-banners { grid-template-columns:1fr; }
  .footer-top, .footer-main { grid-template-columns:1fr; gap:32px; }
  .checkout-layout { grid-template-columns:1fr; }
}
@media (max-width:768px) {
  .container { padding:0 16px; }

  /* ── Header: grid 兩列佈局 ───────────────── */
  .header-main .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 54px auto;
    grid-template-areas:
      "logo tools toggle"
      "search search search";
    align-items: center;
    height: auto;
    padding: 0 16px;
    gap: 0 8px;
  }
  .logo          { grid-area: logo; }
  .header-tools  { grid-area: tools; justify-self: end; margin-left: 0; }
  .mobile-menu-btn,
  .mobile-menu-toggle { grid-area: toggle; }
  .header-search,
  .search-box {
    grid-area: search;
    width: 100%;
    max-width: none;
    margin: 0 0 10px;
  }

  .tool-btn > span:last-child { display:none; }
  .mobile-menu-btn, .mobile-menu-toggle { display:flex; align-items:center; }

  /* ── Nav ──────────────────────────────────── */
  #nav { display:none; }
  #nav.open { display:block; }
  .nav-inner { flex-direction:column; height:auto; overflow:visible; }
  .nav-link { height:44px; padding:0 16px; border-bottom:1px solid var(--color-border-lt); }
  .nav-item.open .dropdown { display:block; position:static; border:none; box-shadow:none; padding:0 0 0 16px; border-radius:0; }

  /* ── Hero：隱藏圖片，僅保留文字 ────────────── */
  .hero-split { grid-template-columns:1fr; min-height:auto; }
  .hero-split-image { display:none; }
  .hero-split-text { padding:40px 24px 36px; }
  .hero-title { font-size:28px; }

  /* ── Products ─────────────────────────────── */
  .product-grid, .product-grid-5, .product-grid-4, .product-grid-6 { grid-template-columns:repeat(2,1fr); gap:12px; }
  .product-grid-2row { grid-template-columns:repeat(3,1fr); gap:12px; padding:8px 16px 32px; }
  .product-carousel-2row { grid-auto-columns:192px; }
  .shop-wrap, .shop-layout { grid-template-columns:1fr; }
  .sidebar { display:none; }

  /* ── Footer ───────────────────────────────── */
  .footer-links, .footer-links-grid { grid-template-columns:repeat(3,1fr); }
  .footer-bottom { flex-direction:column; gap:6px; text-align:center; }

  /* ── Others ───────────────────────────────── */
  .cart-layout { grid-template-columns:1fr; }
  .account-layout { grid-template-columns:1fr; }
  .carousel-card { flex:0 0 192px; width:192px; }
  .product-carousel-section { padding-top:36px; }
  .carousel-nav-btn { display:none; }
}
@media (max-width:480px) {
  .carousel-card { flex:0 0 160px; width:160px; }
  .product-carousel { gap:14px; }
  .product-grid, .product-grid-5, .product-grid-4, .product-grid-6 { grid-template-columns:repeat(2,1fr); gap:8px; }
  .product-grid-2row { grid-template-columns:repeat(2,1fr); gap:8px; padding:8px 16px 24px; }
  .product-carousel-2row { grid-auto-columns:160px; }
  .auth-box { padding:28px 20px; }
}
