:root {
    --max: 1100px;
    --pad: 18px;
    --header-h: 72px;
    --border: rgba(0, 0, 0, 0.08);
    --muted: rgba(0, 0, 0, 0.65);
    --bg: #fff;
    --bg-soft: #fafafa;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system,"Segoe UI", Arial, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    color: #111;
    background: var(--bg);
    padding-bottom: 90px;
    line-height: 1.6;
}

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

.container {
    width: min(var(--max), calc(100% - var(--pad) * 2));
    margin: 0 auto;
}

.muted {
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.btn.primary {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 78px;
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.header.scrolled {
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    backdrop-filter: blur(10px);
}

/* 透明狀態：文字白色 */
.header:not(.scrolled) .nav a { color: rgba(255,255,255,0.9); }
.header:not(.scrolled) .nav a:hover { color: #fff; }
.header:not(.scrolled) .nav-user { color: rgba(255,255,255,0.9); }
.header:not(.scrolled) .nav-cart { color: rgba(255,255,255,0.9); }
.header:not(.scrolled) .cart-count { background: rgba(255,255,255,0.2); color: #fff; }
.header:not(.scrolled) .brand-logo { filter: brightness(0) invert(1); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

. {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.brand-logo {
    height: 50px;
    width: auto;
    display: block;
}

.brand{
    display:flex;
    align-items:center;
}

.-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    background: #fff;
    font-size: 12px;
}

.nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.78);
}

.nav a {
    padding: 8px 10px;
    border-radius: 10px;
}

.nav a:hover {
    background: rgba(0, 0, 0, 0.04);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.burger {
    display: none;
}

/* ===== Mobile Menu ===== */
.mobile-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.35);
}

.mobile-drawer.open {
    display: block;
}

.mobile-dropdown {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.mobile-drawer.open .mobile-dropdown {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 10px var(--pad);
    gap: 2px;
}

.mobile-nav a {
    padding: 12px 10px;
    border-radius: 12px;
    font-weight: 800;
}

.mobile-nav a:hover {
    background: rgba(0, 0, 0, 0.04);
}

.mobile-panel-actions {
    display: flex;
    gap: 10px;
    padding: 12px var(--pad) 16px;
    border-top: 1px solid var(--border);
}

/* ===== Common Sections ===== */
section {
    scroll-margin-top: calc(var(--header-h) +14px);
}

.section {
    padding: 46px 0;
}

.section.soft {
    background: var(--bg-soft);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.section-head h2 {
    margin: 0 0 6px;
    font-size: 26px;
}

.section-head p {
    margin: 0;
}

.section-actions {
    margin-top: 18px;
}

.kicker {
    color: var(--muted);
    font-weight: 700;
}

h1 {
    margin: 10px 0;
    line-height: 1.1;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.5px;
}

.card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    padding: 16px;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.card p {
    margin: 0;
}

/* ===== Home Hero ===== */

/* ══════════════════════════════════════════════════════════════
   Hero 滿版媒體（首頁）
══════════════════════════════════════════════════════════════ */
.hero-full {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-full-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-full-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-full-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


/* ══════════════════════════════════════════════════════════════
   精選產品：左文字 + 右橫滑卡片
══════════════════════════════════════════════════════════════ */
.featured-section {
  overflow: hidden;
  padding: 72px 0;
}

.featured-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.featured-left {
  padding-right: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-left h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 10px 0 20px;
  line-height: 1.2;
}

.featured-left p {
  color: #666;
  line-height: 1.9;
  font-size: 14px;
}

/* 右側捲動容器 */
.featured-right {
  position: relative;
  overflow: hidden;
}

.featured-track-wrap {
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.featured-track-wrap:active { cursor: grabbing; }

.featured-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

/* 產品卡片 */
.featured-card {
  flex: 0 0 220px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.featured-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f5f3ef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #ccc;
}

.featured-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card-body {
  padding: 16px;
  flex: 1;
}

.featured-card-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b8975a;
  margin-bottom: 6px;
}

.featured-card-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.featured-card-price {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

/* 左右箭頭 */
.featured-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  z-index: 2;
  font-family: inherit;
}

.featured-arrow:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.featured-prev { left: -20px; }
.featured-next { right: -4px; }

/* Hero 文字置中 */
.hero-full-content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding-top: 80px;
}

.hero-full-content .hero-actions {
  justify-content: center;
}

/* 手機版 */
@media (max-width: 900px) {
  .featured-inner {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 32px;
  }
  .featured-left {
    padding-right: 0;
    text-align: center;
  }
  .featured-left .btn {
    align-self: center;
  }
  .featured-card { flex: 0 0 180px; }
  .featured-arrow { display: none; }
}


/* 預設底色（媒體載入前）*/
.hero-full-media:empty {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.hero-full-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.60) 0%,
    rgba(0,0,0,0.35) 60%,
    rgba(0,0,0,0.10) 100%
  );
}

.hero-full-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 640px;
  padding-top: 80px;
}

.hero-full-content .kicker {
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.18em;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-full-content h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: -0.01em;
}

.hero-full-content .lead {
  color: rgba(255,255,255,0.80);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.hero-full-content .hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-full-content .btn {
  border: 2px solid rgba(255,255,255,0.85);
  color: #fff;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
}
.hero-full-content .btn:hover {
  background: rgba(255,255,255,0.22);
  border-color: #fff;
}
.hero-full-content .btn.primary {
  background: #b8975a;
  border-color: #b8975a;
  color: #fff;
}
.hero-full-content .btn.primary:hover {
  background: #a07840;
  border-color: #a07840;
}

@media (max-width: 640px) {
  .hero-full { height: 90vh; }
  .hero-full-content { padding-top: 60px; }
  .hero-full-overlay {
    background: rgba(0,0,0,0.50);
  }
}

.hero {
    background: linear-gradient(180deg, #fff, var(--bg-soft));
    padding: 56px 0 34px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 26px;
    align-items: center;
}

.lead {
    color: rgba(0, 0, 0, 0.72);
    font-size: 16px;
    max-width: 52ch;
}

.hero-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-bullets {
    margin: 14px 0 0;
    padding-left: 18px;
    color: rgba(0, 0, 0, 0.72);
}

.hero-card {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    background: #fff;
    padding: 14px;
}

.hero-image {
    height: 340px;
    border-radius: 20px;
    overflow:hidden;
}

.hero-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:left center;
    display:block;
}

.hero-card-note {
    margin-top: 10px;
    color: rgba(0, 0, 0, 0.55);
    font-size: 13px;
}

/* ===== Other Layout Blocks ===== */
.story-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.grid-2 {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.product-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-2px);
}

.product-image {
    height: 170px;
    background:
    radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.06), transparent 40%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.01));
}

.product-body {
    padding: 14px;
}

.product-title {
    font-weight: 800;
    margin-bottom: 6px;
}

.service-banner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.service-banner-img {
    min-height: 240px;
    background:
    radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.06), transparent 40%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.01));
}

.service-banner-body {
    padding: 18px;
}

.service-banner-body h2 {
    margin: 0 0 8px;
}

.service-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.article-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    padding: 16px;
}

.article-title {
    font-weight: 900;
    margin-bottom: 6px;
}

.article-meta {
    margin-bottom: 8px;
    font-size: 13px;
}

.article-excerpt {
    margin: 0;
}

details {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 10px 0;
}

details:first-of-type {
    border-top: none;
}

summary {
    cursor: pointer;
    font-weight: 800;
}

details p {
    margin: 8px 0 0;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 22px 0;
    background: #fff;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.footer- {
    font-weight: 900;
    margin-bottom: 6px;
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: rgba(0, 0, 0, 0.78);
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ===== Products List Page ===== */
.cat-hero {
    background: #f7f4ef;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 52px 0 24px;
}

.cat-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 26px;
    align-items: center;
}

.cat-title {
    margin: 10px 0 8px;
    font-size: clamp(30px, 4vw, 54px);
    letter-spacing: -0.8px;
    line-height: 1.05;
}

.cat-desc {
    max-width: 60ch;
    margin: 0;
}

.cat-hero-media {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.55);
}

.cat-hero-img {
    height: 320px;
    background:
    radial-gradient(circle at 30% 30%, rgba(0, 0, 0, 0.07), transparent 45%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.01));
}

.cat-points {
    margin-top: 16px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.point {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.7);
    min-width: 140px;
}

.point-num {
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 2px;
}

.toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.toolbar-left {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    z-index: 20;
}

.cat-dropdown {
    position: relative;
    z-index: 30;
}

.toolbar-title-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    color: #111;
}

.toolbar-title-btn .chevron {
    font-size: 14px;
    transform: translateY(2px);
}

.toolbar-sub {
    font-size: 13px;
}

.cat-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 5000;
    pointer-events: auto;
}

.cat-menu.open {
    display: block;
}

.cat-item {
    width: 100%;
    display: block;
    text-align: left;
    background: none;
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    cursor: pointer;
}

.cat-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

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

.p-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.p-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.p-media {
    position: relative;
    height: 260px;
    background: #f5f5f5;
    overflow: hidden;
}

.p-img {
    position: absolute;
    inset: 0;
    background:
    radial-gradient(circle at 35% 25%, rgba(0, 0, 0, 0.06), transparent 45%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.01));
    transition: opacity 0.18s ease;
}

.p-img.plant {
    opacity: 1;
}

.p-img.bottle {
    opacity: 0;
}

.p-body {
    padding: 12px 14px 14px;
}

.p-name {
    font-weight: 900;
    margin-bottom: 4px;
}

.p-meta {
    font-size: 13px;
}

@media (hover: hover) {
    .p-card:hover .p-img.plant {
        opacity: 0;
    }

    .p-card:hover .p-img.bottle {
        opacity: 1;
    }
}

/* ===== Product Page ===== */
.p-page {
    padding: 22px 0 60px;
}

.p-breadcrumb {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.62);
    margin: 10px 0 18px;
}

.p-breadcrumb .sep {
    margin: 0 8px;
    color: rgba(0, 0, 0, 0.35);
}

.p-breadcrumb a:hover {
    text-decoration: underline;
}

.p-top {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 16px;
    align-items: start;
}

/* gallery */
.p-gallery {
    padding: 0;
    overflow: hidden;
}

.p-main-img {
    height: 420px;
    background:
    radial-gradient(circle at 40% 30%, rgba(0, 0, 0, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.02));
}

.p-thumbs {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.8);
}

.p-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background:
    radial-gradient(circle at 40% 30%, rgba(0, 0, 0, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.02));
    cursor: pointer;
    opacity: 0.8;
}

.p-thumb.active {
    outline: 2px solid rgba(0, 0, 0, 0.35);
    opacity: 1;
}

/* buy box */
.p-buy {
    padding: 18px;
}

.p-title {
    margin: 0 0 8px;
    font-size: 34px;
    letter-spacing: -0.8px;
}

.p-sub {
    font-weight: 700;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 2px;
}

.p-latin {
    color: rgba(0, 0, 0, 0.55);
    font-style: italic;
    margin-bottom: 14px;
}

.p-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin: 10px 0 16px;
}

.p-price {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.p-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.p-tag {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.62);
    background: rgba(255, 255, 255, 0.65);
}

.p-field {
    margin-top: 14px;
}

.p-label {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.62);
    margin-bottom: 8px;
    font-weight: 800;
}

/* variant pills */
.p-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.p-pill {
    border: 1px solid rgba(0, 0, 0, 0.16);
    background: #fff;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 900;
    cursor: pointer;
}

.p-pill.active {
    background: rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 0, 0, 0.26);
}

/* qty */
.p-qty {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.p-qty-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
}

.p-qty-input {
    border: none;
    text-align: center;
    font-weight: 900;
    outline: none;
}

/* actions */
.p-actions3 {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.p-buy-now {
    border: none;
    background: #4b6a58;
    color: #fff;
    border-radius: 999px;
    padding: 12px 14px;
    font-weight: 900;
    cursor: pointer;
}

.p-add-cart {
    border: none;
    background: #6c5b4f;
    color: #fff;
    border-radius: 999px;
    padding: 12px 14px;
    font-weight: 900;
    cursor: pointer;
}

.p-fav {
    border: none;
    background: transparent;
    color: rgba(0, 0, 0, 0.7);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 900;
    cursor: pointer;
    padding: 10px 8px;
    border-radius: 12px;
}

.p-fav:hover {
    background: rgba(0, 0, 0, 0.04);
}

.p-note {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.55);
}

/* middle section */
.p-mid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
    align-items: start;
}

.p-box {
    padding: 16px;
}

.p-h2 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.p-kv {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.p-kv dt {
    color: rgba(0, 0, 0, 0.62);
    font-weight: 800;
}

.p-kv dd {
    margin: 0;
    color: rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

/* composition */
.p-comp-panel {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.p-bars {
    display: grid;
    gap: 12px;
}

.p-bar {
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 12px;
    align-items: center;
}

.p-bar-name {
    font-weight: 900;
    color: rgba(0, 0, 0, 0.72);
    margin-bottom: 6px;
}

.p-bar-track {
    height: 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.p-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    transition: width 0.45s ease;
}

.p-bar-val {
    text-align: right;
    color: rgba(0, 0, 0, 0.65);
    font-weight: 900;
    font-size: 13px;
}

/* docs */
.p-docs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.p-doc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    font-weight: 900;
    font-size: 13px;
}

.p-doc-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* long content */
.p-long {
    margin-top: 16px;
    padding: 18px;
}

.p-prose {
    color: rgba(0, 0, 0, 0.76);
    font-weight: 700;
}

.p-prose p {
    margin: 0 0 12px;
}

.p-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 16px 0;
}

.p-list {
    margin: 0 0 12px;
    padding-left: 18px;
    color: rgba(0, 0, 0, 0.76);
    font-weight: 700;
}

/* ===== Floating Social Buttons ===== */
.social-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1200;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.fab-text {
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #fff;
}

.fab.line {
    background: linear-gradient(135deg, #09d463, #06c755, #05b84d);
    position: relative;
    overflow: hidden;
}

.fab.line::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 45%);
    transform: rotate(15deg);
    pointer-events: none;
}

.fab.line .fab-text {
    position: relative;
}

.fab.ig {
    background: linear-gradient(
    135deg,
    rgba(245, 197, 107, 0.9),
    rgba(240, 138, 60, 0.9),
    rgba(201, 75, 120, 0.9),
    rgba(123, 75, 183, 0.9),
    rgba(75, 108, 183, 0.9)
    );
}

/* ===== Responsive ===== */
@media (min-width: 641px) {
    .header-cta {
        display: none;
    }
}

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

    .cat-hero-img {
        height: 260px;
    }

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

    .p-top {
        grid-template-columns: 1fr;
    }

    .p-main-img {
        height: 360px;
    }

    .p-mid {
        grid-template-columns: 1fr;
    }

    .p-docs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nav {
        display: none;
    }

    .burger {
        display: inline-block;
    }

    .grid-3,
    .grid-2,
    .story-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
    }

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

    .toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar-left {
        width: 100%;
    }

    .cat-menu {
        left: 0;
        right: 0;
        width: 100%;
        min-width: unset;
    }

    .hero {
        padding-top: 0;
        padding-bottom: 24px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        order: -1;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        padding: 0;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        margin-top: 0;
    }

    .hero-image {
        border: none;
        border-radius: 0;
        height: 240px;
    }

    .social-fab {
        right: 14px;
        bottom: 14px;
    }

    .fab {
        width: 48px;
        height: 48px;
    }

    .fab-text {
        font-size: 12px;
    }
    .cat-dropdown {
        width: 100%;
    }
    .brand-logo{
        height:36px;
    }
    .hero-image{
        height:260px;
    }
}


.toolbar,
.section,
.container {
    overflow: visible;
}


.product-image {
    height: 220px;
    overflow: hidden;
    background: #f7f4ef;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-image-fallback {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 30%, rgba(0, 0, 0, 0.05), transparent 50%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.01));
}

.product-desc {
    margin-top: 6px;
}

.product-price {
    margin-top: 10px;
    font-weight: 800;
}

.nav-user {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  text-decoration: none;
  background: transparent;
  transition: background .2s ease, opacity .2s ease;
}

.nav-user:hover {
  background: rgba(0,0,0,.05);
}

.user-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-user.logged-in {
  width: auto;
  padding: 0 12px;
  gap: 8px;
  border: 1px solid #eee;
  background: #fff;
}

.nav-user.logged-in #userEmail {
  font-size: 13px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-user:not(.logged-in) #userEmail {
  display: none;
}

.nav-cart {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  text-decoration: none;
  background: transparent;
}

.nav-cart:hover {
  background: rgba(0,0,0,.05);
}

.cart-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  position: absolute;
  right: -2px;
  top: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  display: none;
}

.cart-toast {
  position: fixed;
  right: 24px;
  top: 96px;
  width: 280px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e8e8e8;
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
  z-index: 9999;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cart-toast strong {
  display: block;
  margin-bottom: 6px;
}

.cart-toast span {
  display: block;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.cart-toast a {
  display: inline-block;
  margin-top: 10px;
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

.cart-page {
  padding: 72px 20px;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 28px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.cart-list {
  display: grid;
  gap: 16px;
}

.cart-summary {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 100px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  font-size: 18px;
}

.cart-item {
  padding: 20px;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  align-items: center;
}

.cart-item-img {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background: #f3f3f3;
  overflow: hidden;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.cart-qty button,
.cart-remove {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.cart-remove {
  color: #666;
}

@media (max-width: 820px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

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

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

.checkout-page {
  padding: 72px 20px;
}

.checkout-head {
  margin-bottom: 28px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.checkout-form,
.checkout-summary {
  padding: 28px;
}

.checkout-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.checkout-field label {
  font-weight: 700;
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 15px;
  border: 1px solid #ddd;
  border-radius: 16px;
  font-size: 16px;
  background: #fff;
}

.checkout-field textarea {
  min-height: 96px;
  resize: vertical;
}

.checkout-item {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.checkout-item-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.checkout-item-meta {
  color: #666;
  font-size: 14px;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  margin: 24px 0;
  font-size: 18px;
}

@media (max-width: 860px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}
/* 規格按鈕 */
.spec-selector { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.spec-btn {
  padding: 4px 14px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.spec-btn.active, .spec-btn:hover {
  border-color: #111;
  background: #111;
  color: #fff;
}

/* 已售完 */
.sold-out-tag {
  font-size: 13px;
  color: #999;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 8px 16px;
}

/* 精選徽章 */
.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: #b8975a;
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* Skeleton 動畫 */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ══════════════════════════════════════════════════════════════
   首頁重設計（暖灰/米白色系，按客戶示意圖）
══════════════════════════════════════════════════════════════ */

/* ── 全站暖色調整 ── */
:root {
  --hp-cream:   #f5f0e8;
  --hp-warm:    #ede7da;
  --hp-stone:   #c8b89a;
  --hp-dark:    #2d2416;
  --hp-mid:     #6b5c48;
  --hp-accent:  #b8975a;
}

/* ── Hero ── */
.hp-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hp-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hp-hero-media video,
.hp-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.45) 50%,
    rgba(0,0,0,0.30) 100%
  );
}

.hp-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 24px;
  max-width: 780px;
}

.hp-hero-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
}

.hp-hero-content h1 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
}

.hp-hero-sub {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
}

.hp-btn-outline {
  display: inline-block;
  padding: 13px 36px;
  border: 1.5px solid rgba(255,255,255,0.85);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}

.hp-btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

/* ── 共用按鈕 ── */
.hp-btn-dark {
  display: inline-block;
  padding: 12px 28px;
  background: var(--hp-dark);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.hp-btn-dark:hover { background: #1a1208; }

.hp-btn-outline-dark {
  display: inline-block;
  padding: 12px 28px;
  border: 1.5px solid var(--hp-dark);
  color: var(--hp-dark);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.hp-btn-outline-dark:hover {
  background: var(--hp-dark);
  color: #fff;
}

.hp-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hp-mid);
  margin-bottom: 14px;
}

.hp-kicker-light { color: rgba(255,255,255,0.65); }

/* ── 精選系列 ── */
.hp-featured {
  display: flex;
  height: 520px;
  min-height: 520px;
  background: var(--hp-cream);
  overflow: hidden;
}

.hp-featured-left {
  flex: 0 0 320px;
  max-width: 320px;
  height: 100%;
  box-sizing: border-box;
  padding: 72px 48px 72px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: max-width 0.45s ease, padding 0.45s ease, opacity 0.35s ease;
  overflow: hidden;
  white-space: nowrap;
}

.hp-featured-left.collapsed {
  max-width: 0;
  padding-left: 0;
  padding-right: 0;
  opacity: 0;
}

.hp-featured-left * {
  white-space: normal;
}

.hp-featured-left h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--hp-dark);
  margin: 0 0 20px;
  line-height: 1.3;
}

.hp-featured-desc {
  font-size: 13px;
  line-height: 2;
  color: var(--hp-mid);
  margin-bottom: 28px;
}

/* 卡片軌道 */
.hp-featured-right {
  position: relative;
  overflow: hidden;
  padding: 48px 0;
  background: var(--hp-cream);
  flex: 1;
  min-width: 0;
}

.hp-cards-viewport {
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 60px;
}

.hp-cards-track {
  display: flex;
  flex: 1 0 auto;
  gap: 20px;
  padding: 8px 32px;
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
  cursor: grab;
  align-items: stretch;
}

/* 收合後所有卡片都已經完整顯示、不需要再滑動時，才改成置中對齊，
   避免卡片列靠左、右邊留一大塊空白。
   平時滑動途中維持預設的靠左排列，這樣 JS 算的位移量才會準確對齊。 */
.hp-cards-track.fit-all {
  justify-content: center;
  cursor: default;
}

.hp-cards-track:active { cursor: grabbing; }

/* 單張產品卡片 */
.hp-prod-card {
  flex: 0 0 200px;
  background: transparent;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hp-prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.11);
}

.hp-prod-card-img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  background: var(--hp-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #ccc;
  overflow: hidden;
}

.hp-prod-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-prod-card-body {
  padding: 14px 16px;
  flex: 1;
  background: rgba(255, 255, 255, 0.5);
}

.hp-prod-card-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp-accent);
  margin-bottom: 5px;
}

.hp-prod-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--hp-dark);
  margin-bottom: 5px;
  line-height: 1.3;
}

/* 箭頭 */
.hp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #ddd;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  transition: all 0.15s;
  z-index: 3;
  font-family: inherit;
  line-height: 1;
}

.hp-arrow:hover {
  background: var(--hp-dark);
  border-color: var(--hp-dark);
  color: #fff;
}

.hp-arrow-prev {
  left: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.hp-arrow-prev.visible {
  opacity: 1;
  pointer-events: auto;
}

.hp-arrow-next {
  right: 12px;
}

/* ── 客製化服務 ── */
.hp-service {
  background: var(--hp-warm);
  margin-bottom: 28px;
}

.hp-service-inner {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: 0;
  align-items: stretch;
  min-height: 520px;
}

.hp-service-text {
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hp-service-text h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--hp-dark);
  margin: 0 0 20px;
  line-height: 1.3;
}

.hp-service-desc {
  color: var(--hp-mid);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 28px;
}

.hp-service-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hp-service-img {
  overflow: hidden;
  height: 100%;
}

.hp-service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── 氛圍照片橫排 ── */
.hp-gallery {
  background: var(--hp-warm);
  padding-bottom: 0;
}

.hp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.hp-gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.hp-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.hp-gallery-item:hover img {
  transform: scale(1.04);
}

/* ── 品牌故事 ── */
.hp-brand {
  background: var(--hp-cream);
  padding: 80px 0;
}

.hp-brand-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.hp-brand-inner h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--hp-dark);
  margin: 0 0 20px;
  line-height: 1.6;
}

.hp-brand-body {
  color: var(--hp-mid);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 28px;
}

/* ── 最新文章 ── */
.hp-articles {
  background: #fff;
  padding: 72px 0;
}

.hp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.hp-link-more {
  font-size: 13px;
  color: var(--hp-accent);
  text-decoration: none;
  font-weight: 600;
}

.hp-link-more:hover { text-decoration: underline; }

/* ── 手機版 ── */
@media (max-width: 900px) {
  .hp-featured {
    grid-template-columns: 1fr;
  }
  .hp-featured-left {
    padding: 48px 24px 24px;
    text-align: center;
  }
  .hp-featured-left.hidden {
    display: none;
  }
  .hp-service-inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 32px;
  }
  .hp-service-img { order: -1; }
  .hp-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hp-arrow { display: none; }
}

@media (max-width: 600px) {
  .hp-gallery-grid { grid-template-columns: 1fr; }
  .hp-hero-content h1 { font-size: 28px; }
}


/* 非首頁：fixed header 補 padding */
body:not(.hp-page) > main,
body:not(.hp-page) > .container:first-child {
  padding-top: 78px;
}


/* 非首頁：header 固定白底 */
body:not(.hp-page) .header {
  background: rgba(255,255,255,0.97) !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06) !important;
}

body:not(.hp-page) .header .nav a,
body:not(.hp-page) .header .nav-user,
body:not(.hp-page) .header .nav-cart {
  color: var(--text-primary) !important;
}

body:not(.hp-page) .header .brand-logo {
  filter: none !important;
}

body:not(.hp-page) .header .cart-count {
  background: var(--accent) !important;
  color: #fff !important;
}
