/* ============================================================
   DAILYFRESH v2 - Complete Stylesheet
   Architecture: Design Tokens > Reset > Typography > Layout >
   Navigation > Footer > Shared Components > Pages > Decorations >
   Preserved Components > Responsive Overrides
   ============================================================ */

/* ===========================================
   1. DESIGN TOKENS (:root custom properties)
   =========================================== */
:root {
  /* === Brand Colors === */
  --color-primary: #269674;
  --color-secondary: #99a670;
  --color-accent-orange: #ee964b;
  --color-accent-blue: #5193d2;
  --color-accent-brown: #8b6914;

  /* === Neutral Colors === */
  --color-black: #000000;
  --color-gray-dark: #555555;
  --color-gray-mid: #888888;
  --color-gray-light: #cccccc;
  --color-white: #ffffff;
  --color-green-white: #F6F9F2;

  /* === Semantic Tokens === */
  --text-heading: var(--color-black);
  --text-body: var(--color-gray-dark);
  --text-price: var(--color-accent-orange);
  --text-link: var(--color-primary);
  --text-nav: var(--color-gray-dark);
  --text-nav-active: var(--color-primary);
  --text-footer: #e9f7f4;

  --bg-page: var(--color-white);
  --bg-card: var(--color-white);
  --bg-section-alt: var(--color-green-white);
  --bg-footer: var(--color-gray-dark);
  --bg-cta-section: var(--color-primary);

  --border-card: transparent;
  --border-input: #e0e0e0;
  --border-input-focus: var(--color-primary);

  /* === Font Families === */
  --font-primary: 'Roboto', system-ui, -apple-system, sans-serif;
  --font-secondary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-chinese: 'Noto Sans TC', var(--font-primary);

  /* === Font Sizes === */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* === Font Weights === */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;

  /* === Line Heights === */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  /* === Spacing Scale (4px base) === */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* === Layout === */
  --max-width: 1440px;
  --content-width: 1320px;
  --content-padding: 0px;
  --content-padding-tablet: 0px;
  --content-padding-mobile: 0px;

  /* === Border Radius === */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 36px;
  --radius-pill: 100px;
  --radius-circle: 50%;

  /* === Shadows (warm tones) === */
  --shadow-card: 0 4px 20px rgba(38, 150, 116, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 12px 32px rgba(38, 150, 116, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-nav: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-dropdown: 0 12px 24px rgba(0, 0, 0, 0.15);

  /* === Z-Index Scale === */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;

  /* === Transitions === */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* === Temperature Label Tokens === */
  --temp-frozen: #5193d2;
  --temp-chilled: var(--color-primary);
  --temp-ambient: #8b6914;

  /* === Legacy support === */
  --intro-shift-x: 22px;
}


/* ===========================================
   2. CSS RESET / BASE STYLES
   =========================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-chinese);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: #F6F9F2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-overflow-scrolling: touch;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ===========================================
   3. TYPOGRAPHY
   =========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-chinese);
  color: var(--text-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-4) 0;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin: 0 0 var(--space-4) 0;
  line-height: var(--leading-relaxed);
}

.text-center { text-align: center; }
.text-orange { color: var(--text-price); }
.text-green { color: var(--color-primary); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }


/* ===========================================
   4. LAYOUT (containers, grids, sections)
   =========================================== */
.page-wrapper {
  width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
}

.content-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: var(--content-padding);
  padding-right: var(--content-padding);
}

.section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
  position: relative;
  overflow: hidden;
}

.section--alt {
  background: linear-gradient(180deg, rgba(245,248,241,0.7) 0%, rgba(240,245,234,0.7) 100%);
}

.page-header {
  text-align: center;
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.page-header__english {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-gray-mid);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-2);
}

.page-header__title {
  font-size: var(--text-4xl);
  color: var(--text-heading);
  margin-bottom: var(--space-4);
}

.page-header__desc {
  font-size: var(--text-sm);
  color: var(--text-body);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* Card Grid System */
.card-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
}

.card-grid--3col {
  grid-template-columns: repeat(1, 1fr);
}

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


/* ===========================================
   5. NAVIGATION
   =========================================== */
/* --- Outer frosted glass container --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  display: flex;
  justify-content: center;
  padding: 20px var(--space-8);
  transition: background var(--transition-base);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-width);
  width: 100%;
  height: 100px;
  padding: 10px 30px;
  background: linear-gradient(
    168.67deg,
    rgba(255, 255, 255, 0.6) 1.21%,
    rgba(196, 196, 196, 0.1) 100%
  );
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 2px solid var(--color-white);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 1px -2px rgba(0, 0, 0, 0.1);
}

.site-nav__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-nav__logo-img {
  height: 60px;
  width: auto;
}

/* Right-side group: nav pill + search + download */
.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
}

/* --- Inner white menu pill --- */
.nav-pill {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--color-white);
  border-radius: var(--radius-pill);
  padding: 15px 50px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  justify-content: center;
  position: relative;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  height: 28px;
  font-family: var(--font-chinese);
  font-size: 20px;
  font-weight: var(--weight-bold);
  color: #565656;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast);
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  line-height: 28px;
}

.nav-item:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.nav-item--active {
  color: var(--color-primary);
}

/* Search mode: nav-pill expands to fill available space */
.nav-pill--search {
  flex: 1;
  height: 58px;
  padding: 0;
  margin-left: 98px;
}

/* Nav search (fills the nav-pill when search mode active) */
.nav-search-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 1;
  padding: 0 21px;
}

.nav-search-wrap__icon {
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  margin-right: 12px;
}

.nav-search-wrap__input {
  flex: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  font-family: var(--font-chinese);
}

.nav-search-wrap__close {
  flex-shrink: 0;
  background: none;
  border: 0;
  padding: 0;
  margin-left: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.nav-search-wrap__close-icon {
  display: block;
  width: 30px;
  height: 30px;
}

/* Nav action buttons */
.site-nav__search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.site-nav__search-icon {
  width: 58px;
  height: 58px;
}

.site-nav__download-btn {
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
  gap: 8px;
  background: var(--color-white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0 15px;
  height: 58px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.site-nav__download-icon {
  width: 26px;
  height: 21px;
  flex-shrink: 0;
}

.site-nav__download-text {
  font-size: 18px;
  font-weight: var(--weight-bold);
  color: #565656;
  line-height: 1.23;
  white-space: nowrap;
}

/* Mobile menu button */
.site-nav__mobile-btn {
  display: none;
  background: none;
  border: 0;
  padding: 0 var(--space-4);
  margin-left: auto;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.site-nav__mobile-btn-img {
  display: block;
  height: 28px;
  width: 40px;
}

/* Mobile nav overlay + panel */
.mobile-nav-overlay {
  display: none;
}

.mobile-nav {
  display: none;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 32px;
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  color: var(--text-body);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  cursor: pointer;
}

.mobile-nav-item:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.mobile-nav-download {
  display: none;
}

.mobile-nav-download-ico {
  display: block;
  width: 82px;
  height: auto;
}

/* Top spacing for content below fixed nav */
.page-content {
  padding-top: 80px;
}


/* ===========================================
   6. FOOTER
   =========================================== */
.site-footer {
  background: linear-gradient(180deg, #4a4a4a 0%, #3d3d3d 100%);
  color: var(--text-footer);
  padding: var(--space-16) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-8);
}

.footer__col-title {
  font-family: var(--font-chinese);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-footer);
  margin-bottom: var(--space-4);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-footer);
  text-decoration: none;
  font-size: var(--text-base);
  transition: background var(--transition-fast);
}

.footer__social-link:hover {
  background: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin-bottom: var(--space-2);
}

.footer__links a {
  color: var(--text-footer);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-footer);
}

.footer__contact-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: var(--space-8);
  padding: var(--space-4) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-4);
}

.footer__bottom-links a {
  color: var(--text-footer);
  font-size: var(--text-xs);
  text-decoration: none;
}

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

.footer__logo-img {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-3);
}


/* ===========================================
   7. SHARED COMPONENTS
   =========================================== */

/* --- Glass Card (Reusable Frosted Glass) --- */
/* Glassmorphism recipe (ref: Medium/hybrid-x):
   1. Ultra-thin surface gradient (white 0.1 → clear)
   2. Light backdrop blur for transparency
   3. Gradient border: white highlight (top-left) → green accent (bottom-right)
   4. Soft shadow for floating depth */
.glass-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 45px;
  position: relative;
}

.glass-card--sm {
  border-radius: 24px;
}

.glass-card--sm::before {
  padding: 1px;
}

.glass-card--lg {
  border-radius: 45px;
  padding: 46px 65px;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #269674 0%, #1a7a5c 40%, #2aab84 100%);
  padding: var(--space-20) var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.cta-section__desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-relaxed);
}

.cta-section__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-8);
  background: var(--color-white);
  color: var(--color-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cta-section__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-chinese);
  font-weight: var(--weight-bold);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
}

.btn--primary:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.btn--pill {
  border-radius: var(--radius-pill);
}

.btn--icon {
  border-radius: var(--radius-circle);
  padding: 0;
}

/* --- Featured Products Banner --- */
.featured-banner {
  position: relative;
  width: 100%;
  height: 142px;
  border-radius: 20px;
  overflow: hidden;
}

.featured-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.featured-banner__english {
  font-size: 20px;
  font-weight: var(--weight-bold);
  color: var(--color-white);
  text-transform: uppercase;
  line-height: 28px;
  letter-spacing: 0.5px;
}

.featured-banner__category {
  font-size: 36px;
  font-weight: var(--weight-bold);
  color: var(--color-white);
  line-height: 40px;
  letter-spacing: 0.37px;
}

.featured-banner__line {
  width: 80px;
  height: 4px;
  background: var(--color-white);
  border-radius: var(--radius-pill);
}

/* --- Product Card --- */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 1px -2px rgba(0, 0, 0, 0.1);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  display: flex;
  flex-direction: column;
  border: 2px solid rgba(86, 86, 86, 0.2);
}

.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px);
}

.product-card__image {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: var(--color-green-white);
  border-radius: 30px 30px 0 0;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px 30px 0 0;
}

.product-card__temp-label {
  position: absolute;
  top: 24px;
  right: 0;
  padding: 6px 12px;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  color: var(--color-white);
  font-size: 16px;
  font-weight: var(--weight-bold);
  line-height: 24px;
  z-index: 1;
}

.product-card__temp-label--frozen {
  background: var(--color-accent-blue);
}

.product-card__temp-label--chilled {
  background: var(--color-accent-orange);
}

.product-card__temp-label--ambient {
  background: var(--color-secondary);
}

.product-card__body {
  padding: 0 24px;
  padding-top: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card__seller {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: -40px;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.product-card__seller-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  border: 2px solid var(--color-white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.product-card__seller-name {
  font-size: 20px;
  font-weight: var(--weight-bold);
  color: var(--text-heading);
  line-height: 28px;
}

.product-card__name {
  font-size: 18px;
  font-weight: var(--weight-bold);
  color: var(--text-heading);
  line-height: var(--leading-tight);
}

.product-card__desc {
  font-size: 14px;
  color: var(--text-heading);
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 2px solid rgba(86, 86, 86, 0.2);
  padding: 14px 24px 12px;
}

.product-card__price-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-card__unit {
  font-size: 14px;
  font-weight: var(--weight-bold);
  color: #565656;
  line-height: 20px;
}

.product-card__price {
  font-size: 20px;
  font-weight: var(--weight-bold);
  color: var(--text-price);
  line-height: 28px;
}

.product-card__cart-btn {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-circle);
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: var(--weight-bold);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
  flex-shrink: 0;
  line-height: 1;
}

.product-card__cart-btn:hover {
  transform: scale(1.1);
  background: var(--color-primary);
}

/* --- Horizontal Product Card (Figma: card_prod/large) --- */
.product-card--h {
  flex-direction: row;
  border-radius: 15px;
  border: 1px solid rgba(86, 86, 86, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.product-card--h .product-card__image {
  width: 110px;
  min-width: 110px;
  height: 110px;
  border-radius: 15px 0 0 15px;
  flex-shrink: 0;
}

.product-card--h .product-card__image img {
  border-radius: 15px 0 0 15px;
}

.product-card--h .product-card__seller-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: linear-gradient(180deg, rgba(39, 39, 39, 0.3) 46%, rgba(192, 192, 192, 0) 93%);
  border-radius: 15px 0 0 0;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  z-index: 2;
}

.product-card--h .product-card__seller-badge img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.product-card--h .product-card__seller-badge span {
  font-size: 13px;
  font-weight: 700;
  color: white;
  line-height: 1.37;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card--h .product-card__favorite {
  position: absolute;
  bottom: 6px;
  left: 6px;
  width: 18px;
  height: 18px;
  z-index: 2;
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.product-card--h .product-card__body {
  padding: 6px 0 6px 10px;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.product-card--h .product-card__name {
  font-size: 14px;
  font-weight: 700;
  color: #565656;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card--h .product-card__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.product-card--h .product-card__location,
.product-card--h .product-card__rating {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(86, 86, 86, 0.8);
  line-height: 1.44;
}

.product-card--h .product-card__location svg,
.product-card--h .product-card__rating svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.product-card--h .product-card__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-price);
  line-height: 24px;
}

.product-card--h .product-card__footer {
  border-top: none;
  padding: 0;
  margin-top: 0;
  justify-content: flex-end;
}

.product-card--h .product-card__cart-btn {
  width: auto;
  height: auto;
  border-radius: 100px;
  background: var(--color-secondary);
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 10px;
  line-height: 20px;
}

/* Horizontal card grid: 2 columns */
.card-grid--h {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* --- Store Card --- */
.store-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.store-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px);
}

.store-card__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 300 / 160;
  overflow: hidden;
  background: var(--color-green-white);
}

.store-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-card__body {
  padding: var(--space-4) var(--space-5);
  padding-top: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.store-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  border: 3px solid var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: -32px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.store-card__name {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-heading);
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}

.store-card__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-gray-mid);
}

.store-card__location,
.store-card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.store-card__desc {
  font-size: var(--text-xs);
  color: var(--color-gray-mid);
  margin-bottom: var(--space-4);
  line-height: var(--leading-normal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.store-card__subscribers {
  font-size: var(--text-xs);
  color: var(--color-gray-mid);
}

.store-card__enter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-5);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: filter var(--transition-fast);
}

.store-card__enter-btn:hover {
  filter: brightness(1.1);
  text-decoration: none;
}

/* --- Farmers Page (Figma-aligned) --- */
.farmers-glass {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.farmer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1300px;
}

.farmer-card {
  background: white;
  border: 2px solid rgba(86, 86, 86, 0.2);
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(40px);
  box-shadow: 0px 4px 1px 0px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.farmer-card__top {
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
}

.farmer-card__cover {
  width: 100%;
  height: 162px;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
}

.farmer-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.farmer-card__profile {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 24px;
  margin-top: -41px;
  position: relative;
  z-index: 2;
}

.farmer-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 100px;
  border: 2px solid white;
  overflow: hidden;
  background: white;
  box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.farmer-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.farmer-card__badge {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: #ee964b;
  border: 1.5px solid rgba(238, 150, 75, 0.5);
  border-radius: 100px;
  padding: 6px 12px;
  white-space: nowrap;
  background: white;
}

.farmer-card__name {
  font-family: 'Roboto', 'Noto Sans TC', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: black;
  padding: 0 24px;
  margin: 12px 0 0;
}

.farmer-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  margin-top: 12px;
}

.farmer-card__location,
.farmer-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #565656;
}

.farmer-card__location svg,
.farmer-card__rating svg {
  flex-shrink: 0;
}

.farmer-card__rating strong {
  font-weight: 700;
}

.farmer-card__desc {
  font-family: 'Roboto', 'Noto Sans TC', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #565656;
  padding: 0 24px;
  margin-top: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.farmer-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 12px;
  border-top: 2px solid rgba(86, 86, 86, 0.2);
  border-radius: 0 0 36px 36px;
}

.farmer-card__subscribers {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Roboto', 'Noto Sans TC', sans-serif;
  font-size: 14px;
  color: #565656;
}

.farmer-card__subscribers strong {
  font-size: 16px;
  font-weight: 700;
}

.farmer-card__enter {
  background: #269775;
  color: #f5f6f1;
  font-family: 'Roboto', 'Noto Sans TC', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  padding: 6px 12px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: filter 0.2s;
  white-space: nowrap;
}

.farmer-card__enter:hover {
  filter: brightness(1.1);
}

/* Farmers page responsive */
@media (max-width: 1024px) {
  .farmer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .farmer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .farmers-glass {
    padding: 24px 16px;
  }

  .farmer-card__cover {
    height: 120px;
  }

  .farmer-card__avatar {
    width: 60px;
    height: 60px;
  }

  .farmer-card__profile {
    margin-top: -30px;
    padding: 0 16px;
  }

  .farmer-card__name {
    font-size: 16px;
    padding: 0 16px;
  }

  .farmer-card__meta {
    padding: 0 16px;
    gap: 10px;
  }

  .farmer-card__location,
  .farmer-card__rating {
    font-size: 13px;
  }

  .farmer-card__location svg,
  .farmer-card__rating svg {
    width: 18px;
    height: 18px;
  }

  .farmer-card__desc {
    padding: 0 16px;
    font-size: 12px;
  }

  .farmer-card__bottom {
    padding: 10px 16px;
  }

  .farmer-card__badge {
    font-size: 12px;
    padding: 4px 8px;
  }
}

@media (max-width: 480px) {
  .farmer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Seller Page (Figma-aligned) --- */
.seller-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.seller-hero__cover {
  width: 100%;
  height: 200px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.seller-hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-hero__back {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(86, 86, 86, 0.2);
  border-radius: 100px;
  padding: 8px 16px;
  font-family: 'Roboto', 'Noto Sans TC', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
}

.seller-hero__back:hover {
  background: rgba(255, 255, 255, 1);
}

.seller-hero__back svg {
  flex-shrink: 0;
}

.seller-hero__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.seller-hero__avatar {
  width: 160px;
  height: 160px;
  border-radius: 100px;
  border: 4px solid white;
  overflow: hidden;
  background: white;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.12);
}

.seller-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-hero__name {
  font-family: 'Roboto', 'Noto Sans TC', sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
  color: black;
  margin: 12px 0 0;
  text-align: center;
}

.seller-hero__location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-family: 'Roboto', 'Noto Sans TC', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #565656;
}

.seller-hero__location svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

.seller-hero__stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  background: white;
  border: 2px solid rgba(86, 86, 86, 0.15);
  border-radius: 100px;
  padding: 10px 28px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.06);
}

.seller-hero__stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: #565656;
}

.seller-hero__stat strong {
  font-size: 20px;
  font-weight: 700;
  color: black;
}

.seller-hero__stat svg {
  align-self: center;
  flex-shrink: 0;
}

.seller-hero__stat-sub {
  font-size: 14px;
  color: #888;
}

.seller-hero__stat-divider {
  width: 1.5px;
  height: 24px;
  background: rgba(86, 86, 86, 0.2);
}

.seller-hero__tabs {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 24px;
  padding-bottom: 2px;
}

.seller-hero__tab {
  font-family: 'Roboto', 'Noto Sans TC', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: #888;
  background: none;
  border: none;
  padding: 8px 4px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.seller-hero__tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  border-radius: 2px;
  transition: background 0.2s;
}

.seller-hero__tab--active {
  font-weight: 700;
  font-size: 24px;
  color: var(--color-primary);
}

.seller-hero__tab--active::after {
  background: var(--color-primary);
}

.seller-hero__tab:hover:not(.seller-hero__tab--active) {
  color: #565656;
}

/* Seller products glass panel */
.seller-products-glass {
  margin-top: 24px;
  padding: 32px;
  width: 100%;
  max-width: 1300px;
}

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

/* Seller product card */
.seller-prod-card {
  background: white;
  border: 2px solid rgba(86, 86, 86, 0.2);
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seller-prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
}

.seller-prod-card__hero {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  border-radius: 34px 34px 0 0;
}

.seller-prod-card__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-prod-card__temp {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: 'Roboto', 'Noto Sans TC', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  color: white;
}

.seller-prod-card__temp--chilled {
  background: var(--color-accent-blue);
}

.seller-prod-card__temp--frozen {
  background: #6b8dd6;
}

.seller-prod-card__body {
  padding: 16px 20px 12px;
  flex: 1;
}

.seller-prod-card__name {
  font-family: 'Roboto', 'Noto Sans TC', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: black;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seller-prod-card__desc {
  font-family: 'Roboto', 'Noto Sans TC', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: #888;
  margin: 6px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seller-prod-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 16px;
  border-top: 1.5px solid rgba(86, 86, 86, 0.1);
}

.seller-prod-card__pricing {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.seller-prod-card__unit {
  font-family: 'Roboto', 'Noto Sans TC', sans-serif;
  font-size: 12px;
  color: #888;
}

.seller-prod-card__price {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent-orange);
}

.seller-prod-card__cart {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(86, 86, 86, 0.15);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.seller-prod-card__cart:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.seller-prod-card__cart:hover svg {
  color: white;
}

.seller-prod-card__cart svg {
  color: #565656;
  transition: color 0.2s;
}

/* Seller page responsive */
@media (max-width: 1024px) {
  .seller-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .seller-hero__avatar {
    width: 120px;
    height: 120px;
  }

  .seller-hero__profile {
    margin-top: -50px;
  }

  .seller-hero__name {
    font-size: 24px;
    line-height: 32px;
  }
}

@media (max-width: 768px) {
  .seller-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .seller-hero__cover {
    height: 160px;
    border-radius: 20px;
  }

  .seller-hero__avatar {
    width: 100px;
    height: 100px;
  }

  .seller-hero__profile {
    margin-top: -40px;
  }

  .seller-hero__name {
    font-size: 22px;
  }

  .seller-hero__stats {
    padding: 8px 20px;
    gap: 14px;
  }

  .seller-hero__stat strong {
    font-size: 18px;
  }

  .seller-hero__tabs {
    gap: 20px;
  }

  .seller-hero__tab {
    font-size: 16px;
  }

  .seller-hero__tab--active {
    font-size: 18px;
  }

  .seller-products-glass {
    padding: 20px 16px;
  }

  .seller-prod-card__hero {
    height: 140px;
  }

  .seller-prod-card__body {
    padding: 12px 16px 8px;
  }

  .seller-prod-card__footer {
    padding: 10px 16px 14px;
  }
}

@media (max-width: 480px) {
  .seller-products-grid {
    grid-template-columns: 1fr;
  }

  .seller-hero__cover {
    height: 140px;
    border-radius: 16px;
  }

  .seller-hero__avatar {
    width: 80px;
    height: 80px;
  }

  .seller-hero__profile {
    margin-top: -32px;
  }

  .seller-hero__name {
    font-size: 20px;
  }

  .seller-hero__stats {
    flex-direction: column;
    gap: 4px;
    padding: 10px 20px;
    border-radius: 20px;
  }

  .seller-hero__stat-divider {
    width: 60%;
    height: 1.5px;
  }

  .seller-hero__tabs {
    gap: 16px;
  }

  .seller-hero__tab {
    font-size: 15px;
  }

  .seller-hero__tab--active {
    font-size: 17px;
  }
}

/* --- Form Components --- */
.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--text-body);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-family: var(--font-chinese);
  color: var(--text-body);
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--border-input-focus);
  box-shadow: 0 0 0 3px rgba(38, 150, 116, 0.12);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* --- Back to Top --- */
.top-fab {
  position: fixed;
  right: 24px;
  bottom: 80px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--transition-base), transform var(--transition-base);
  z-index: 9;
}

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

.top-icon {
  font-size: 18px;
  display: inline-block;
  animation: bounceUp 1.2s infinite;
}

.top-label {
  font-weight: var(--weight-bold);
  letter-spacing: 0.5px;
}

@keyframes bounceUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}


/* ===========================================
   8. PAGE-SPECIFIC: Homepage (Task 10)
   =========================================== */

/* --- Hero Section --- */
.hero-section {
  padding-top: 140px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero-glass {
  padding: 46px 65px !important;
}

.hero-layout {
  display: flex;
  align-items: center;
  gap: 104px;
}

.hero-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid white;
  border-radius: 100px;
  padding: 6px 15px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 24px;
  margin-bottom: 32px;
  align-self: flex-start;
}

.hero-title {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 72px;
  font-weight: 700;
  color: #565656;
  line-height: 79.2px;
  letter-spacing: 0.123px;
  margin-bottom: 0;
}

.hero-title--accent {
  color: var(--color-secondary);
}

.hero-desc {
  font-size: 20px;
  color: #565656;
  line-height: 28px;
  margin-top: 32px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.hero-btn--primary {
  background: var(--color-accent-orange);
  color: white;
}

.hero-btn--primary:hover {
  filter: brightness(1.08);
}

.hero-btn--primary .hero-btn__icon {
  width: 20px;
  height: 20px;
}

.hero-btn--outline {
  background: white;
  color: #565656;
  border: 1.818px solid var(--color-secondary);
}

.hero-btn--outline:hover {
  filter: brightness(0.95);
}

/* Hero Carousel */
.hero-carousel {
  width: 500px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-carousel__viewport {
  width: 500px;
  height: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  border: 2px solid #297b39;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}

.hero-carousel__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.hero-carousel__slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.hero-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay product card on carousel */
.hero-carousel__overlay {
  position: absolute;
  bottom: 33px;
  left: 26px;
  background: rgba(255, 255, 255, 0.9);
  border: 0.909px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.hero-overlay__header {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
}

.hero-overlay__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 24px;
  flex-shrink: 0;
}

.hero-overlay__info {
  display: flex;
  flex-direction: column;
}

.hero-overlay__title,
.hero-overlay__subtitle {
  font-size: 14px;
  font-weight: 700;
  color: #565656;
  line-height: 20px;
}

.hero-overlay__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  min-width: 152px;
}

.hero-overlay__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent-orange);
  line-height: 1.23;
}

.hero-overlay__badge {
  background: rgba(38, 151, 117, 0.1);
  border-radius: 10px;
  padding: 2px 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 20px;
}

.hero-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(86, 86, 86, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast);
}

.hero-carousel__dot--active {
  background: var(--color-primary);
}

/* --- Section Heading --- */
.section-heading {
  text-align: center;
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-heading);
  margin-bottom: var(--space-8);
}

/* --- Section Action (view more) --- */
.section-action {
  text-align: center;
  margin-top: var(--space-8);
}

.section-action .btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-8);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: filter var(--transition-fast), transform var(--transition-fast);
}

.section-action .btn--primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  text-decoration: none;
}

/* --- Category Circles (Homepage) --- */
.categories-section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.category-circles {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.category-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  transition: transform var(--transition-fast);
}

.category-circle:hover {
  transform: translateY(-4px);
}

.category-circle__emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-circle);
  background: linear-gradient(145deg, #f5f8f1, #eaf2e3);
  font-size: 36px;
  box-shadow: 0 4px 16px rgba(38, 150, 116, 0.08);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.category-circle:hover .category-circle__emoji {
  box-shadow: 0 8px 24px rgba(38, 150, 116, 0.16);
  transform: scale(1.05);
}

.category-circle__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--text-body);
}

/* --- Media Grid (Homepage) --- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: 800px;
  margin: 0 auto;
}

.media-grid__item {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.media-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.media-grid__item:hover img {
  transform: scale(1.05);
}


/* ===========================================
   9. PAGE-SPECIFIC: Featured Products (Task 11)
   =========================================== */

/* --- Category Filter Tabs --- */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-5);
  background: var(--color-white);
  color: var(--text-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  font-family: var(--font-chinese);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.category-tab--active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.category-tab--active:hover {
  color: var(--color-white);
}

/* --- Empty state --- */
.empty-state {
  text-align: center;
  padding: var(--space-16) 0;
  color: var(--color-gray-mid);
  font-size: var(--text-lg);
}


/* ===========================================
   10. PAGE-SPECIFIC: Local Farmers (Task 12)
   =========================================== */

/* 4-column grid variant for store cards */
.card-grid--4col {
  grid-template-columns: repeat(1, 1fr);
}


/* ===========================================
   11. PAGE-SPECIFIC: Seller Page (Task 13)
   =========================================== */

/* --- Seller Profile Header --- */
.seller-profile {
  position: relative;
  overflow: hidden;
}

.seller-profile__cover {
  width: 100%;
  height: 280px;
  overflow: hidden;
  margin-top: 80px;
}

.seller-profile__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-profile__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -50px;
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-6);
}

.seller-profile__avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  border: 4px solid var(--color-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.seller-profile__name {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--text-heading);
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
}

.seller-profile__location {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-gray-mid);
  font-size: var(--text-sm);
}

/* --- Seller Tabs --- */
.seller-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e8e8e8;
}

.seller-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  font-family: var(--font-chinese);
  color: var(--color-gray-mid);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.seller-tab:hover {
  color: var(--color-primary);
}

.seller-tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* --- Rating Summary --- */
.rating-summary {
  display: flex;
  gap: var(--space-10);
  align-items: flex-start;
  background: var(--color-green-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
}

.rating-summary__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  flex-shrink: 0;
}

.rating-summary__number {
  font-size: 48px;
  font-weight: var(--weight-bold);
  color: var(--text-heading);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.rating-summary__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-1);
}

.rating-summary__count {
  font-size: var(--text-xs);
  color: var(--color-gray-mid);
}

.rating-summary__bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* --- Rating Bars --- */
.rating-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.rating-bar__label {
  font-size: var(--text-xs);
  color: var(--color-gray-mid);
  min-width: 36px;
  text-align: right;
}

.rating-bar__track {
  flex: 1;
  height: 10px;
  background: #e8e8e8;
  border-radius: 5px;
  overflow: hidden;
}

.rating-bar__fill {
  height: 100%;
  background: var(--color-accent-orange);
  border-radius: 5px;
  transition: width var(--transition-base);
}

.rating-bar__pct {
  font-size: var(--text-xs);
  color: var(--color-gray-mid);
  min-width: 36px;
}

/* --- Reviews List --- */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* --- Review Card --- */
.review-card {
  background: var(--bg-card);
  border: 1px solid #eee;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  flex-shrink: 0;
}

.review-card__meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-card__author {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--text-heading);
}

.review-card__stars {
  display: flex;
  gap: 1px;
}

.review-card__date {
  font-size: var(--text-xs);
  color: var(--color-gray-mid);
  flex-shrink: 0;
}

.review-card__text {
  font-size: var(--text-sm);
  color: var(--text-body);
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-3) 0;
}

.review-card__photos {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.review-card__photo {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.review-card__photo:hover {
  transform: scale(1.05);
}


/* ===========================================
   12-15. Other pages (Return Policy, FAQ, etc.)
   =========================================== */

/* --- Refund Policy Page (Figma-aligned) --- */
.refund-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  text-align: center;
}

.refund-header__en {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: var(--color-primary);
  text-transform: uppercase;
}

.refund-header__title {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  color: #565656;
  margin: 0;
}

.refund-header__bar {
  width: 80px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 100px;
}

.refund-header__desc {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: #565656;
  max-width: 786px;
  margin: 0;
}

/* Important Notice */
.refund-notice {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 25px 60px;
  margin-bottom: 36px;
  border-radius: 36px;
}

.refund-notice__icon {
  flex-shrink: 0;
}

.refund-notice__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.refund-notice__label {
  font-family: 'Roboto', 'Noto Sans TC', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: #FF2E31;
  margin: 0;
}

.refund-notice__text {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: #565656;
  margin: 0;
}

.refund-notice__highlight {
  font-family: 'Roboto', 'Noto Sans TC', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #FF2E31;
}

/* Two-column layout */
.refund-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
  align-items: start;
}

/* Steps card */
.refund-steps {
  padding: 42px 36px;
  border-radius: 45px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.refund-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.refund-step__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #269775;
  border: 3.6px solid #f6f9f2;
  box-shadow: 0px 10px 15px rgba(38, 151, 117, 0.2), 0px 4px 6px rgba(38, 151, 117, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.refund-step__num {
  display: none;
}

.refund-step__icon svg {
  width: 22px;
  height: 22px;
  color: white;
}

.refund-step__content {
  padding-top: 4px;
}

.refund-step__title {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: #565656;
  margin: 0 0 8px;
}

.refund-step__desc {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: #565656;
  margin: 0;
}

/* Q&A card */
.refund-qa {
  padding: 42px 36px;
  border-radius: 45px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.refund-qa__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: #565656;
  margin: 0;
}

.refund-qa__heading-bar {
  width: 8px;
  height: 32px;
  background: #269775;
  border-radius: 100px;
  flex-shrink: 0;
}

.refund-qa__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.refund-qa__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.refund-qa__question {
  display: flex;
  align-items: center;
  gap: 8px;
}

.refund-qa__q-label {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: #99a670;
}

.refund-qa__q-text {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: #565656;
}

.refund-qa__answer {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: #565656;
  padding-left: 24px;
  margin: 0;
}

/* About section */
.refund-about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 42px 60px;
  border-radius: 45px;
  gap: 40px;
}

.refund-about__left {
  flex: 1;
  max-width: 580px;
}

.refund-about__title {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 48px;
  color: #565656;
  margin: 0 0 16px;
}

.refund-about__bar {
  width: 64px;
  height: 4px;
  background: #ee964b;
  border-radius: 100px;
  margin-bottom: 16px;
}

.refund-about__text {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 29px;
  color: #565656;
  opacity: 0.9;
  margin: 0 0 8px;
}

.refund-about__stats {
  display: flex;
  gap: 36px;
  margin-top: 24px;
}

.refund-about__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.refund-about__stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  color: #ee964b;
}

.refund-about__stat-label {
  font-family: 'Roboto', 'Noto Sans TC', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #565656;
  opacity: 0.8;
}

.refund-about__image {
  width: 530px;
  height: 298px;
  border-radius: 30px;
  overflow: hidden;
  border: 2px solid #565656;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.refund-about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Refund page responsive */
@media (max-width: 1024px) {
  .refund-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .refund-about {
    flex-direction: column;
    padding: 32px 24px;
  }

  .refund-about__image {
    width: 100%;
    height: 240px;
  }

  .refund-about__title {
    font-size: 28px;
    line-height: 36px;
  }
}

@media (max-width: 768px) {
  .refund-header__title {
    font-size: 28px;
    line-height: 34px;
  }

  .refund-header__desc {
    font-size: 16px;
    line-height: 24px;
  }

  .refund-notice {
    padding: 20px 24px;
    border-radius: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .refund-steps,
  .refund-qa {
    padding: 28px 24px;
    border-radius: 30px;
  }

  .refund-about {
    border-radius: 30px;
  }

  .refund-about__stats {
    gap: 24px;
  }

  .refund-about__stat-value {
    font-size: 28px;
  }

  .refund-about__image {
    height: 200px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .refund-header__en {
    font-size: 16px;
  }

  .refund-header__title {
    font-size: 24px;
  }

  .refund-steps,
  .refund-qa {
    padding: 24px 20px;
    border-radius: 24px;
    gap: 24px;
  }

  .refund-qa__heading {
    font-size: 20px;
  }

  .refund-about__title {
    font-size: 24px;
    line-height: 32px;
  }

  .refund-about__text {
    font-size: 15px;
  }

  .refund-about__stats {
    flex-wrap: wrap;
  }
}


/* ===========================================
   16. BACKGROUND DECORATIONS
   =========================================== */
.bokeh-decoration {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}

.bokeh-decoration--green {
  background: radial-gradient(circle, #269674 0%, rgba(38, 150, 116, 0.3) 40%, transparent 70%);
}

.bokeh-decoration--light {
  background: radial-gradient(circle, #99a670 0%, rgba(153, 166, 112, 0.3) 40%, transparent 70%);
}

.bokeh-decoration--warm {
  background: radial-gradient(circle, rgba(238, 150, 75, 0.4) 0%, rgba(238, 150, 75, 0.1) 40%, transparent 70%);
}

.bokeh-decoration--1 {
  width: 500px;
  height: 500px;
  top: -120px;
  right: -120px;
}

.bokeh-decoration--2 {
  width: 400px;
  height: 400px;
  bottom: 20%;
  left: -100px;
}

.bokeh-decoration--3 {
  width: 450px;
  height: 450px;
  top: 40%;
  right: -80px;
}

.bokeh-decoration--4 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
}

.bokeh-holder {
  position: relative;
  overflow: hidden;
}

/* --- Animated Orbs Background --- */
#orbs-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #F6F9F2;
  pointer-events: none;
}

.page-wrapper {
  position: relative;
  z-index: 1;
}


/* ===========================================
   17. PRESERVED COMPONENTS (intro, TOS, lightbox)
   =========================================== */

/* --- Intro loading overlay --- */
.intro-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.intro-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  animation: introScale 1.6s ease-out forwards;
}

.intro-logo {
  display: block;
  width: 400px;
  height: auto;
}

.intro-counter {
  position: absolute;
  left: calc(50% - var(--intro-shift-x, 10px));
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 120px;
  font-weight: 900;
  color: #ffffff;
}

@keyframes introScale {
  from { transform: scale(0.2); opacity: 0.85; }
  to { transform: scale(1); opacity: 1; }
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  cursor: zoom-out;
}

.lightbox-img {
  width: 96vw;
  height: 96vh;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* --- Dialog (Coming Soon image) --- */
.dialog {
  position: fixed;
  inset: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.dialog-box {
  position: relative;
  width: min(92vw, 780px);
  max-height: 96vh;
}

.dialog-bg {
  display: block;
  width: 80%;
  max-width: 520px;
  height: auto;
  pointer-events: none;
  margin: 0 auto;
}

/* --- TOS dialog --- */
.dialog.tos {
  background: transparent;
}

.tos-box {
  position: relative;
  width: min(92vw, 820px);
  max-height: 88vh;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tos-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-bottom: 1px solid #e9ecef;
}

.tos-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1f3a37;
}

.tos-body {
  padding: 16px 18px;
  overflow: auto;
  line-height: 1.8;
  font-size: 14px;
  color: #222;
}

/* --- QA Accordion (for news + faq legacy pages) --- */
.qa-list {
  width: 100%;
  max-width: 1080px;
  margin: 16px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.qa-item {
  background: rgba(245, 242, 232, 1);
  border: 1px solid #E8E3D6;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25), 0 8px 14px rgba(0, 0, 0, 0.06);
}

.qa-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.qa-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qa-num {
  font-size: 28px;
  font-weight: 800;
  font-style: italic;
  color: #686868;
  line-height: 1;
}

.qa-title {
  font-size: 22px;
  font-weight: 700;
  color: #4f4f4f;
}

.qa-toggle {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1.5px solid #8b8b8b;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qa-chevron {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

.qa-div {
  margin-top: 12px;
  height: 1px;
  background: #bdbdbd;
}

.qa-body {
  color: #5f5f5f;
  font-size: 16px;
  line-height: 1.7;
  margin-top: 10px;
}

/* --- Contact form (legacy, preserved) --- */
.contact-card {
  width: 100%;
  max-width: 720px;
  margin: 16px auto 12px;
  background: #F7F3E7;
  border: 1px solid #E8E3D6;
  border-radius: var(--radius-lg);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.08), 0 10px 18px rgba(0, 0, 0, 0.08);
  padding: 16px 18px;
  position: relative;
  z-index: 1;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.form-row > label {
  flex: 0 0 100px;
  color: var(--text-body);
  font-weight: 700;
  font-size: 16px;
}

.form-row input,
.form-row textarea,
.form-row select {
  flex: 1 1 auto;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
  outline: none;
  font-family: var(--font-chinese);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(38, 151, 117, 0.12);
}

.form-row textarea {
  min-height: 160px;
}

.form-row-text {
  align-items: flex-start;
}

.form-row-text > label {
  margin-top: 8px;
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.btn-submit {
  min-width: 140px;
  height: 42px;
  padding: 0 22px;
  border-radius: 21px;
  border: 0;
  background: #dad5c9;
  color: #444;
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
  font-family: var(--font-chinese);
}

.btn-submit:disabled {
  background: #cfcfcf;
  color: #999;
  cursor: not-allowed;
}

.btn-submit.enabled {
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
}

.btn-submit.enabled:hover {
  filter: brightness(0.95);
}

.contact-extra {
  width: 100%;
  max-width: 980px;
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.contact-extra-main {
  display: block;
  max-width: 100%;
  height: auto;
}

.contact-extra-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.contact-extra-link {
  display: inline-block;
  line-height: 0;
}

.contact-extra-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 12px;
}

.contact-extra-img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Content pages (news/faq/contact legacy) */
.content-page {
  min-height: 40vh;
  padding-top: var(--space-8);
}

.content-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--content-padding-mobile);
}

.content-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  will-change: transform, opacity;
  transform-origin: center center;
  position: relative;
  z-index: 0;
}

.page-img {
  display: block;
  max-width: 100%;
  height: auto;
}


/* ===========================================
   18. RESPONSIVE OVERRIDES
   =========================================== */

/* --- Tablet: 768px+ --- */
@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

/* --- Desktop: 1024px+ --- */
@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--3col {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--4col {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Wide: 1440px+ --- */
@media (min-width: 1440px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
  }
}

/* --- Large desktop content centering --- */
@media (min-width: 1441px) {
  .content-container {
    max-width: var(--content-width);
  }
}

/* --- Below max-width responsive padding --- */
@media (max-width: 1440px) {
  .content-container {
    padding-left: var(--content-padding-tablet);
    padding-right: var(--content-padding-tablet);
  }
}

/* --- Small desktop: 1024-1280px nav item spacing --- */
@media (max-width: 1280px) and (min-width: 769px) {
  .nav-pill {
    gap: 20px;
    padding: 12px 30px;
  }

  .nav-item {
    font-size: 16px;
  }

  .site-nav__inner {
    padding: 10px 20px;
    height: 80px;
  }

  .site-nav__logo-img {
    height: 48px;
  }

  .site-nav__actions {
    gap: 12px;
  }
}

/* --- Mobile: below 768px --- */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .content-container {
    padding-left: var(--content-padding-mobile);
    padding-right: var(--content-padding-mobile);
  }

  .glass-card--lg {
    border-radius: 24px;
    padding: 24px 20px;
  }

  .featured-banner {
    height: 100px;
    border-radius: 12px;
  }

  .featured-banner__img {
    border-radius: 12px;
  }

  .featured-banner__overlay {
    gap: 6px;
    border-radius: 12px;
  }

  .featured-banner__english {
    font-size: 14px;
    line-height: 20px;
  }

  .featured-banner__category {
    font-size: 24px;
    line-height: 28px;
  }

  .featured-banner__line {
    width: 50px;
    height: 3px;
  }

  .card-grid--h {
    grid-template-columns: 1fr;
  }

  .product-card__image {
    height: 120px;
  }

  .product-card__seller-avatar {
    width: 60px;
    height: 60px;
  }

  .product-card__seller {
    margin-top: -30px;
  }

  .product-card__seller-name {
    font-size: 16px;
  }

  .product-card__footer {
    padding: 10px 16px;
  }

  .section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  .page-content {
    padding-top: 72px;
  }

  /* Navigation mobile */
  .site-nav__actions {
    display: none;
  }

  .site-nav__mobile-btn {
    display: flex;
  }

  .site-nav {
    padding: var(--space-3) var(--space-4);
  }

  .site-nav__inner {
    height: auto;
    padding: 8px 16px;
    border-radius: 24px;
  }

  .mobile-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    z-index: 18;
  }

  .mobile-nav-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-dropdown);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-base), opacity var(--transition-base);
    z-index: 19;
    padding: var(--space-3) 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

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

  .mobile-nav-download {
    display: flex;
    margin: var(--space-4) 0 var(--space-2) 32px;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  /* Footer mobile */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  /* QA accordion mobile */
  .qa-list {
    gap: 10px;
  }

  .qa-item {
    padding: 12px 16px;
  }

  .qa-num {
    font-size: 16px;
  }

  .qa-title {
    font-size: 16px;
  }

  .qa-toggle {
    width: 28px;
    height: 28px;
  }

  .qa-div {
    display: none;
  }

  .qa-body {
    padding: 12px 12px;
    margin-top: 8px;
  }

  /* Contact form mobile */
  .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .form-row > label {
    flex: none;
  }

  .contact-extra-row {
    flex-direction: column;
    gap: 12px;
  }

  /* Homepage mobile */
  .hero-section {
    padding-top: 96px;
    padding-bottom: 30px;
  }



  .hero-glass {
    padding: 32px 24px !important;
  }

  .hero-layout {
    flex-direction: column;
    gap: 32px;
  }

  .hero-label {
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: 36px;
    line-height: 1.15;
  }

  .hero-desc {
    font-size: 16px;
    margin-top: 16px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-btn {
    font-size: 16px;
  }

  .hero-carousel {
    width: 100%;
  }

  .hero-carousel__viewport {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .category-circles {
    gap: var(--space-4);
  }

  .category-circle__emoji {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

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

  /* Category tabs mobile */
  .category-tabs {
    gap: var(--space-1);
  }

  .category-tab {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
  }

  /* Seller profile mobile */
  .seller-profile__cover {
    height: 180px;
  }

  .seller-profile__avatar {
    width: 80px;
    height: 80px;
  }

  .seller-profile__name {
    font-size: var(--text-2xl);
  }

  /* Rating summary mobile */
  .rating-summary {
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--space-5);
  }

  /* Policy layout mobile */
  .policy-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* Stats row mobile */
  .stats-row {
    gap: var(--space-8);
  }

  .stats-row__value {
    font-size: var(--text-2xl);
  }

  /* CTA section mobile */
  .cta-section {
    padding: var(--space-12) var(--space-4);
  }

  .cta-section__title {
    font-size: var(--text-2xl);
  }

  .cta-section::before {
    width: 250px;
    height: 250px;
  }

  /* Intro overlay mobile */
  .intro-logo {
    width: 280px;
  }

  .intro-counter {
    font-size: 80px;
  }
}

/* --- Small mobile: 480px and below --- */
@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .page-header__title {
    font-size: var(--text-2xl);
  }

  .hero-title {
    font-size: var(--text-2xl);
  }

  .hero-search__btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
  }

  .category-circles {
    gap: var(--space-3);
  }

  .category-circle__emoji {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .category-circle__label {
    font-size: var(--text-xs);
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .review-card__photo {
    width: 80px;
    height: 56px;
  }

  .stats-row {
    flex-direction: column;
    gap: var(--space-6);
  }

  .intro-logo {
    width: 220px;
  }

  .intro-counter {
    font-size: 60px;
  }
}


/* ===========================================
   TASK 15: FAQ Page Styles
   =========================================== */

/* --- FAQ v2 Layout (Figma-aligned) --- */
.faq2-layout {
  display: grid;
  grid-template-columns: 308px 1fr;
  gap: 60px;
  align-items: flex-start;
}

/* --- FAQ v2 Sidebar --- */
.faq2-sidebar {
  padding: 24px;
  border-radius: 30px;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq2-sidebar__title {
  font-family: 'Roboto', 'Noto Sans TC', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: black;
  padding: 0 16px;
}

.faq2-sidebar__divider {
  width: 100%;
  height: 1px;
  background: rgba(86, 86, 86, 0.15);
}

.faq2-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq2-sidebar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: #565656;
  font-family: 'Roboto', 'Noto Sans TC', sans-serif;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.faq2-sidebar__item:hover {
  background: rgba(38, 151, 117, 0.08);
}

.faq2-sidebar__item--active {
  background: rgba(38, 151, 117, 0.12);
  color: var(--color-primary);
  font-weight: 700;
}

.faq2-sidebar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.faq2-sidebar__icon svg {
  stroke: #565656;
}

.faq2-sidebar__item--active .faq2-sidebar__icon svg {
  stroke: var(--color-primary);
}

.faq2-sidebar__label {
  flex: 1;
}

.faq2-sidebar__contact {
  background: white;
  border: 1px solid rgba(86, 86, 86, 0.2);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq2-sidebar__contact-title {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #565656;
  margin: 0;
}

.faq2-sidebar__contact-desc {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #565656;
  margin: 0;
}

.faq2-sidebar__contact-btn {
  width: 100%;
  padding: 7px 0;
  background: #269775;
  color: white;
  font-family: 'Roboto', 'Noto Sans TC', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: filter 0.2s;
}

.faq2-sidebar__contact-btn:hover {
  filter: brightness(1.1);
}

/* --- FAQ v2 Content --- */
.faq2-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.faq2-section__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.faq2-section__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq2-section__title {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: #565656;
  margin: 0;
}

.faq2-section__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq2-item {
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
}

.faq2-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 25px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: 'Roboto', 'Noto Sans TC', sans-serif;
  transition: background 0.2s;
}

.faq2-item__question:hover {
  background: rgba(38, 151, 117, 0.04);
}

.faq2-item__q-text {
  font-family: 'Roboto', 'Noto Sans TC', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: black;
}

.faq2-item__chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq2-item__chevron--open {
  transform: rotate(180deg);
}

.faq2-item__answer {
  padding: 0 25px 20px;
}

.faq2-item__answer p {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: #565656;
  margin: 0;
}

/* FAQ v2 responsive */
@media (max-width: 1024px) {
  .faq2-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq2-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 16px;
    gap: 4px;
  }

  .faq2-sidebar__title {
    width: 100%;
  }

  .faq2-sidebar__divider {
    width: 100%;
  }

  .faq2-sidebar__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .faq2-sidebar__item {
    width: auto;
    height: auto;
    padding: 8px 14px;
    font-size: 15px;
  }

  .faq2-sidebar__contact {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .faq2-sidebar__contact-btn {
    width: auto;
    padding: 7px 24px;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .faq2-sidebar__item {
    font-size: 14px;
    padding: 6px 12px;
  }

  .faq2-section__title {
    font-size: 20px;
  }

  .faq2-item__q-text {
    font-size: 16px;
  }

  .faq2-item__question {
    padding: 14px 20px;
  }

  .faq2-item__answer {
    padding: 0 20px 16px;
  }
}

@media (max-width: 480px) {
  .faq2-sidebar__contact {
    flex-direction: column;
  }

  .faq2-sidebar__contact-btn {
    width: 100%;
  }
}


/* ===========================================
   TASK 16: Contact Page V2 Styles
   =========================================== */

.page-header--contact {
  padding-bottom: var(--space-4);
}

.contact-card--v2 {
  background: var(--color-white);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-8) var(--space-6);
}

.form-row--v2 > label {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--text-heading);
}

.form-row--v2 input,
.form-row--v2 textarea,
.form-row--v2 select {
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-row--v2 input:focus,
.form-row--v2 textarea:focus,
.form-row--v2 select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(38, 150, 116, 0.12);
}

.btn-submit--v2 {
  min-width: 160px;
  height: 46px;
  padding: 0 var(--space-8);
  border-radius: var(--radius-pill);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  border: none;
  transition: all var(--transition-fast);
}

.btn-submit--v2.enabled {
  background: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(38, 150, 116, 0.3);
}

.btn-submit--v2.enabled:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(38, 150, 116, 0.35);
}


/* ===========================================
   TASK 17: News Page Styles
   =========================================== */

.news-qa-list {
  margin-top: var(--space-4);
}

.news-qa-item {
  background: rgba(245, 242, 232, 0.8);
  border: 1px solid #E8E3D6;
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition-base);
}

.news-qa-item:hover {
  box-shadow: var(--shadow-card-hover);
}


/* ===========================================
   TASKS 15-17: Responsive Overrides
   =========================================== */

@media (max-width: 768px) {
  /* FAQ sidebar becomes horizontal on mobile */
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-4);
  }

  .faq-sidebar__title {
    width: 100%;
    margin-bottom: var(--space-2);
  }

  .faq-sidebar__item {
    padding: var(--space-2) var(--space-3);
    margin-bottom: 0;
    font-size: var(--text-xs);
  }

  .faq-sidebar__contact {
    width: 100%;
    margin-top: var(--space-3);
    padding-top: var(--space-3);
  }

  .faq-content__category-title {
    font-size: var(--text-lg);
  }

  .faq-content__q-text {
    font-size: var(--text-sm);
  }
}

@media (max-width: 480px) {
  .faq-sidebar__item {
    padding: var(--space-1) var(--space-2);
  }

  .faq-sidebar__label {
    font-size: var(--text-xs);
  }
}


/* ===========================================
   SNAP SECTION HEADERS (Figma alignment)
   =========================================== */
.snap-section-header {
  text-align: center;
  margin-bottom: 36px;
}

.snap-section-header__en {
  display: block;
  font-family: 'Roboto', var(--font-secondary);
  font-size: 20px;
  font-weight: 700;
  color: #269775;
  line-height: 28px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.snap-section-header__title {
  font-size: 36px;
  font-weight: 700;
  color: #565656;
  line-height: 40px;
  letter-spacing: 0.37px;
  margin: 0 0 12px 0;
}

.snap-section-header__divider {
  width: 80px;
  height: 4px;
  background: #269775;
  border-radius: 100px;
  margin: 0 auto 12px;
}

.snap-section-header__desc {
  font-size: 18px;
  color: #565656;
  max-width: 786px;
  margin: 0 auto;
  line-height: 28px;
  letter-spacing: -0.44px;
}

/* ===========================================
   WHY CHOOSE US - Feature Cards (Figma)
   =========================================== */
.why-features {
  display: grid;
  grid-template-columns: repeat(2, 300px);
  gap: 16px 36px;
  justify-content: center;
}

.why-feature-card {
  background: #f6f9f2;
  border: 2px solid #297b39;
  border-radius: 30px;
  padding: 16px 32px;
  text-align: center;
  width: 300px;
  box-sizing: border-box;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.why-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.why-feature-card__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.why-feature-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #565656;
  line-height: 28px;
  letter-spacing: -0.45px;
  margin: 0 0 12px 0;
}

.why-feature-card__desc {
  font-size: 16px;
  color: #565656;
  line-height: 26px;
  letter-spacing: -0.31px;
  margin: 0;
}

/* ===========================================
   RECOMMEND - Product Cards (Figma)
   =========================================== */
.rec-glass {
  padding: 20px 0;
}

.rec-header-action {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 1248px;
  margin: 0 auto;
}

.rec-view-all {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #269775;
  color: white;
  font-family: 'Roboto', 'Noto Sans SC', 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.23;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.rec-view-all:hover {
  opacity: 0.85;
}

.rec-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 24px;
}

.rec-card {
  width: 300px;
  flex-shrink: 0;
  background: white;
  border: 2px solid rgba(86, 86, 86, 0.2);
  border-radius: 36px;
  box-shadow: 0 4px 1px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.rec-card:hover {
  transform: translateY(-4px);
}

/* Card hero: image + avatar + temp label */
.rec-card__hero {
  position: relative;
  width: 300px;
  height: 140px;
}

.rec-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px 30px 0 0;
}

.rec-card__temp {
  position: absolute;
  top: 24px;
  right: 0;
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #f5f6f1;
  padding: 6px 12px;
  border-radius: 100px 0 0 100px;
}

.rec-card__temp--frozen {
  background: #5193d2;
}

.rec-card__temp--chilled {
  background: #ee964b;
}

.rec-card__avatar {
  position: absolute;
  bottom: -40px;
  left: 24px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid white;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.rec-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card body */
.rec-card__body {
  padding: 48px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.rec-card__seller {
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: black;
  margin: 0;
}

.rec-card__name {
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.23;
  color: black;
  margin: 0;
}

.rec-card__desc {
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: black;
  margin: 0;
}

/* Card footer */
.rec-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 12px;
  border-top: 2px solid rgba(86, 86, 86, 0.2);
  margin-top: 16px;
}

.rec-card__pricing {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rec-card__unit {
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: #565656;
}

.rec-card__price {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: #ee964b;
}

.rec-card__cart {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #269775;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.rec-card__cart:hover {
  opacity: 0.85;
}

/* ===========================================
   CATEGORIES - Circular Photo Grid (Figma)
   =========================================== */
.cat-glass {
  padding: 36px 60px;
}

.cat-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.cat-row {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.cat-row--5 {
  justify-content: space-between;
}

.cat-circle {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid white;
  cursor: pointer;
  flex-shrink: 0;
  background: none;
  padding: 0;
  transition: transform 0.3s ease;
}

.cat-circle:hover {
  transform: scale(1.05);
}

.cat-circle__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.cat-circle__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
}

.cat-circle__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.cat-circle__line {
  display: block;
  width: 40px;
  height: 2px;
  background: white;
  opacity: 0.8;
}

.cat-circle__text {
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: white;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}

/* --- Mobile overrides --- */
@media (max-width: 768px) {
  .snap-section-header__en {
    font-size: 16px;
    line-height: 24px;
  }

  .snap-section-header__title {
    font-size: 26px;
    line-height: 34px;
  }

  .snap-section-header__desc {
    font-size: 15px;
    line-height: 24px;
  }

  .why-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .why-feature-card {
    width: 100%;
    padding: 16px 24px;
  }

  .why-feature-card__icon {
    width: 48px;
    height: 48px;
  }

  .why-feature-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .cat-glass {
    padding: 24px 20px;
  }

  .cat-grid {
    gap: 16px;
  }

  .cat-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .cat-circle {
    width: 140px;
    height: 140px;
  }

  .cat-circle__text {
    font-size: 18px;
    line-height: 24px;
  }

  .cat-circle__line {
    width: 24px;
  }

  .rec-glass {
    padding: 16px 0;
  }

  .rec-cards {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .rec-cards::-webkit-scrollbar {
    display: none;
  }

  .rec-card {
    width: 260px;
    min-width: 260px;
  }

  .rec-card__hero {
    width: 260px;
    height: 120px;
  }

  .rec-card__avatar {
    width: 60px;
    height: 60px;
    bottom: -30px;
  }

  .rec-card__body {
    padding-top: 36px;
  }

  .rec-card__seller {
    font-size: 17px;
  }

  .rec-card__name {
    font-size: 16px;
  }

  .rec-view-all {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .why-features {
    gap: 10px;
  }

  .why-feature-card {
    padding: 12px 20px;
  }

  .cat-circle {
    width: 100px;
    height: 100px;
  }

  .cat-circle__text {
    font-size: 14px;
    line-height: 20px;
  }

  .cat-circle__line {
    width: 16px;
  }

  .cat-circle__label {
    gap: 6px;
  }
}


/* ===========================================
   FULLPAGE SCROLL-SNAP (Homepage)
   =========================================== */

/* When snap mode is active, prevent page scroll */
body.snap-active {
  overflow: hidden;
}

body.snap-active .page-content {
  padding-top: 0;
}

/* CTA + footer are now inside snap track as 5th section */

/* Global footer wrap for non-snap pages (uses same snap-footer styles) */
.global-footer-wrap {
  width: 100%;
}

/* Snap container: takes full viewport, JS-driven fullpage scroll */
.snap-container {
  height: calc(100vh - 80px);
  margin-top: 80px;
  overflow: hidden;
  position: relative;
}

.snap-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.snap-track.no-transition {
  transition: none;
}

/* Each snap section fills the viewport */
.snap-section {
  height: calc(100vh - 80px);
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-6) 0;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Hero snap section - slightly different padding */
.snap-section--hero {
  padding-top: var(--space-8);
  padding-bottom: var(--space-4);
}

/* Last snap section: allow content to auto-size (CTA + footer) */
.snap-section--end {
  min-height: auto;
  scroll-snap-align: end;
  flex-direction: column;
  align-items: stretch;
}

/* Footer snap section: CTA + footer stacked */
.snap-section--footer {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow-y: auto;
}

.snap-footer-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* CTA block inside footer section */
.cta-snap {
  background: #e8f0dd;
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid rgba(86, 86, 86, 0.2);
}

.cta-snap__title {
  font-size: 36px;
  font-weight: 700;
  color: #565656;
  line-height: 40px;
  letter-spacing: 0.37px;
  margin: 0 0 16px;
}

.cta-snap__desc {
  font-size: 18px;
  color: #565656;
  line-height: 28px;
  letter-spacing: -0.44px;
  margin: 0 0 16px;
}

.cta-snap__btn {
  display: inline-block;
  background: #565656;
  color: #e8f0dd;
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 16px 20px;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cta-snap__btn:hover {
  opacity: 0.85;
}

/* Snap footer */
.snap-site-footer {
  background: #565656;
  padding: 60px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.snap-footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.snap-footer__col--brand {
  max-width: 300px;
}

.snap-footer__logo {
  height: 56px;
  margin-bottom: 18px;
}

.snap-footer__desc {
  font-size: 14px;
  line-height: 22.75px;
  letter-spacing: -0.15px;
  color: rgba(246, 249, 242, 0.6);
  margin: 0 0 18px;
}

.snap-footer__social {
  display: flex;
  gap: 16px;
}

.snap-footer__social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(246, 249, 242, 0.8);
  transition: background 0.2s;
}

.snap-footer__social-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.snap-footer__col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: white;
  line-height: 28px;
  letter-spacing: -0.44px;
  margin: 0 0 24px;
}

.snap-footer__col-dot {
  display: inline-block;
  width: 6px;
  height: 24px;
  border-radius: 100px;
}

.snap-footer__links {
  list-style: none;
  padding: 0 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.snap-footer__links a {
  font-size: 14px;
  line-height: 20px;
  color: rgba(246, 249, 242, 0.8);
  text-decoration: none;
  letter-spacing: -0.15px;
  transition: color 0.2s;
}

.snap-footer__links a:hover {
  color: white;
}

.snap-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.snap-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0 8px;
  font-size: 14px;
  line-height: 22.75px;
  color: rgba(246, 249, 242, 0.8);
  letter-spacing: -0.15px;
}

.snap-footer__contact-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.snap-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.snap-footer__bottom-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 16px;
  line-height: 24px;
}

.snap-footer__bottom-left a {
  display: flex;
}

.snap-footer__tos {
  color: white;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
}

.snap-footer__tos:hover {
  text-decoration: underline;
}

/* Ensure content container fills width inside snap sections */
.snap-section > .content-container {
  width: 100%;
}

/* Override the old section padding inside snap sections */
.snap-section.section {
  padding-top: 0;
  padding-bottom: 0;
}

/* Glass cards inside snap sections: scrollable if content overflows */
.snap-section .glass-card--lg {
  max-height: calc(100vh - 80px - var(--space-16));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(38, 150, 116, 0.3) transparent;
}

.snap-section .glass-card--lg::-webkit-scrollbar {
  width: 4px;
}

.snap-section .glass-card--lg::-webkit-scrollbar-track {
  background: transparent;
}

.snap-section .glass-card--lg::-webkit-scrollbar-thumb {
  background: rgba(38, 150, 116, 0.3);
  border-radius: 4px;
}

/* --- Snap Navigation Dots --- */
.snap-dots {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: var(--z-sticky);
  transition: opacity 0.3s ease;
}

.snap-dots--hidden {
  opacity: 0;
  pointer-events: none;
}

.snap-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  position: relative;
}

.snap-dot::after {
  content: attr(data-label);
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 12px;
  font-family: var(--font-chinese);
  color: var(--color-gray-dark);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.snap-dot:hover::after {
  opacity: 1;
}

.snap-dot--active {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* Remove hero-section padding when inside snap */
.snap-section.hero-section,
.snap-section .hero-section {
  padding-top: 0;
  padding-bottom: 0;
}

/* --- Products Page: Glass Card & Category Banner --- */
.prod-glass {
  padding: 40px 32px;
  gap: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prod-cat-banner {
  width: 100%;
  max-width: 1248px;
  height: 142px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.prod-cat-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
}

.prod-cat-banner__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
}

.prod-cat-banner__en {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: white;
  text-transform: uppercase;
}

.prod-cat-banner__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  color: white;
  letter-spacing: 0.37px;
  margin: 0;
}

.prod-cat-banner__divider {
  width: 80px;
  height: 4px;
  background: white;
  border-radius: 100px;
}

/* --- Products Sub-page Navigation --- */
.prod-subpage-wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.prod-subpage-viewport {
  width: 100%;
  overflow: hidden;
}

.prod-subpage-track {
  display: flex;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.prod-subpage-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.prod-subpage-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #565656;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.prod-subpage-arrow:hover {
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%) scale(1.08);
}

.prod-subpage-arrow--left {
  left: -22px;
}

.prod-subpage-arrow--right {
  right: -22px;
}

.prod-subpage-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding-top: 4px;
}

.prod-subpage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(86, 86, 86, 0.2);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.prod-subpage-dot--active {
  background: #269775;
  transform: scale(1.3);
}

/* --- Snap Section Transition Animations --- */
.snap-section > .content-container,
.snap-section > .glass-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.snap-section.snap-visible > .content-container,
.snap-section.snap-visible > .glass-card {
  opacity: 1;
  transform: translateY(0);
}

/* --- Tablet: 769px - 1024px --- */
@media (max-width: 1024px) {
  .snap-dots {
    right: 12px;
    gap: 10px;
  }

  .snap-dot {
    width: 10px;
    height: 10px;
  }

  .snap-dot::after {
    display: none;
  }
}

/* --- Mobile: below 768px --- */
@media (max-width: 768px) {
  .snap-container {
    height: calc(100vh - 72px);
    margin-top: 72px;
  }

  .snap-section {
    height: calc(100vh - 72px);
    min-height: 0;
    padding: var(--space-4) 0;
  }

  .snap-section--hero {
    padding-top: 24px;
    padding-bottom: 16px;
  }

  .snap-section--footer {
    overflow-y: auto;
  }

  .cta-snap {
    padding: 30px 16px;
  }

  .cta-snap__title {
    font-size: 24px;
    line-height: 32px;
  }

  .cta-snap__desc {
    font-size: 15px;
    line-height: 24px;
  }

  .snap-site-footer {
    padding: 30px 20px;
    gap: 24px;
  }

  .snap-footer__grid {
    flex-wrap: wrap;
    gap: 24px;
  }

  .snap-footer__col--brand {
    max-width: 100%;
    width: 100%;
  }

  .snap-footer__col {
    width: calc(50% - 12px);
  }

  .snap-footer__bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .snap-footer__bottom-left {
    font-size: 13px;
    flex-wrap: wrap;
  }

  .snap-dots {
    /* Move to bottom horizontal on mobile */
    right: auto;
    top: auto;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 10px;
  }

  .snap-dot {
    width: 8px;
    height: 8px;
  }

  .snap-dot::after {
    display: none;
  }

  .snap-dot--active {
    width: 24px;
    border-radius: 4px;
    transform: scale(1);
  }

  /* Products page mobile overrides */
  .prod-glass {
    padding: 24px 16px;
  }

  .prod-cat-banner {
    height: 100px;
  }

  .prod-cat-banner__en {
    font-size: 16px;
  }

  .prod-cat-banner__title {
    font-size: 26px;
    line-height: 32px;
  }

  .prod-subpage-arrow {
    width: 36px;
    height: 36px;
  }

  .prod-subpage-arrow--left {
    left: -8px;
  }

  .prod-subpage-arrow--right {
    right: -8px;
  }
}

/* --- Small mobile: 480px and below --- */
@media (max-width: 480px) {
  .snap-dots {
    bottom: 12px;
    gap: 8px;
  }

  .snap-dot {
    width: 6px;
    height: 6px;
  }

  .snap-dot--active {
    width: 20px;
    border-radius: 3px;
  }
}

/* ============================================================
   PRODUCT DETAIL PAGE (.pd-*)
   ============================================================ */
.pd-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 100px 24px 60px;
}

/* Back button */
.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: all 0.25s ease;
  margin-bottom: 24px;
}
.pd-back:hover {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Main glass card */
.pd-main {
  border-radius: 36px;
  padding: 40px;
  border: 3px solid rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Images column */
.pd-images__main {
  position: relative;
  width: 100%;
  height: 400px;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 16px;
}
.pd-images__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-images__temp {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.pd-images__temp--frozen { background: #5193d2; }
.pd-images__temp--chilled { background: #269775; }
.pd-images__temp--ambient { background: #ee964b; }

.pd-images__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.pd-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid transparent;
  cursor: pointer;
  background: #fff;
  padding: 0;
  transition: border-color 0.2s ease;
}
.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-thumb--active {
  border-color: #269775;
}

/* Info column */
.pd-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-info__name {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}

.pd-info__meta {
  display: flex;
  gap: 8px;
}
.pd-info__meta-label {
  font-size: 13px;
  color: #888;
}

.pd-info__origin {
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.pd-info__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0;
}

.pd-info__detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
}

.pd-info__rating {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pd-info__stars {
  display: flex;
  gap: 2px;
}
.pd-info__rating-text {
  font-size: 14px;
  color: #888;
}

.pd-info__desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Size selector */
.pd-info__sizes {
  display: flex;
  gap: 10px;
  margin: 4px 0;
}

.pd-size-btn {
  min-width: 56px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 2px solid #ddd;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pd-size-btn:hover {
  border-color: #269775;
}
.pd-size-btn--active {
  background: #269775;
  border-color: #269775;
  color: #fff;
}

/* Price card */
.pd-price-card {
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: #FFF8F0;
  border: 1.5px solid #FFE0B2;
  border-radius: 16px;
  padding: 16px 20px;
}
.pd-price-card__unit {
  font-size: 14px;
  color: #888;
}
.pd-price-card__price {
  font-size: 28px;
  font-weight: 700;
  color: #E8600A;
}

/* Quantity */
.pd-qty {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pd-qty__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pd-qty__btn:hover:not(:disabled) {
  border-color: #269775;
  color: #269775;
}
.pd-qty__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pd-qty__value {
  font-size: 20px;
  font-weight: 600;
  min-width: 32px;
  text-align: center;
}

/* Add to cart */
.pd-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: #269775;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease;
  margin-top: 4px;
}
.pd-cart-btn:hover {
  background: #1e7d60;
}

/* Sections below main card */
.pd-section {
  margin-bottom: 32px;
}
.pd-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.pd-section__title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px;
}
.pd-section__header .pd-section__title {
  margin-bottom: 0;
}
.pd-section__link {
  font-size: 14px;
  color: #269775;
  font-weight: 500;
  text-decoration: none;
}
.pd-section__link:hover {
  text-decoration: underline;
}

.pd-section__card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 24px;
  padding: 28px 32px;
}
.pd-section__card p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin: 0;
}

/* Certifications */
.pd-certs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pd-cert {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  border: 1px solid rgba(86,86,86,0.2);
  border-radius: 15px;
  background: #f6f9f2;
}
.pd-cert__img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.pd-cert__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pd-cert__name {
  font-size: 16px;
  font-weight: 700;
  color: #565656;
  line-height: 1.5;
}
.pd-cert__desc {
  font-size: 13px;
  color: rgba(86,86,86,0.8);
  line-height: 1.44;
}

/* Reviews */
.pd-reviews {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pd-review {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 24px;
  padding: 24px 28px;
}
.pd-review__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.pd-review__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.pd-review__meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pd-review__author {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.pd-review__date {
  font-size: 12px;
  color: #999;
}
.pd-review__stars {
  display: flex;
  gap: 2px;
}
.pd-review__text {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin: 0 0 12px;
}
.pd-review__photos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pd-review__photo {
  width: 100px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.pd-review__photo:hover {
  transform: scale(1.05);
}

/* ===== Product Detail Responsive ===== */
@media (max-width: 1024px) {
  .pd-main {
    padding: 28px;
    border-radius: 28px;
  }
  .pd-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pd-images__main {
    height: 320px;
  }
  .pd-info__name {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .pd-page {
    padding: 80px 16px 40px;
  }
  .pd-main {
    padding: 20px;
    border-radius: 24px;
    border-width: 2px;
  }
  .pd-images__main {
    height: 260px;
    border-radius: 20px;
  }
  .pd-images__thumbs {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
  .pd-thumb {
    border-radius: 12px;
    border-width: 2px;
  }
  .pd-info__name {
    font-size: 24px;
  }
  .pd-price-card__price {
    font-size: 24px;
  }
  .pd-section__card {
    padding: 20px;
    border-radius: 20px;
  }
  .pd-review {
    padding: 18px 20px;
    border-radius: 20px;
  }
  .pd-certs {
    grid-template-columns: 1fr;
  }
  .pd-cert__img {
    width: 50px;
    height: 50px;
  }
  .pd-cert__name {
    font-size: 14px;
  }
  .pd-cert__desc {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .pd-images__main {
    height: 220px;
    border-radius: 16px;
  }
  .pd-images__thumbs {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }
  .pd-thumb {
    border-radius: 10px;
  }
  .pd-info__name {
    font-size: 20px;
  }
  .pd-price-card {
    flex-direction: column;
    gap: 4px;
  }
  .pd-price-card__price {
    font-size: 22px;
  }
  .pd-cart-btn {
    font-size: 15px;
    padding: 14px;
  }
}
