/* WOVEN STUDIO - V2 European Fashion Editorial Style */
/* ===== DESIGN SYSTEM ===== */
:root {
  /* Colors - based on reference */
  --bg-page: #F7F1E8;        /* warm cream page background */
  --bg-content: #FFFDF9;     /* content background */
  --bg-warm: #EFE3D3;        /* warm beige block */
  --brand-caramel: #B8733F;  /* caramel brown primary */
  --brand-dark: #3B291F;     /* dark coffee text */
  --accent-brown: #76513A;   /* secondary brown */
  --border-light: #E4D6C5;   /* light border */
  --brand-hover: #96572D;    /* button hover */
  --text-gray: #62564D;      /* gray-brown body */
  --white: #FFFFFF;

  /* Fonts */
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 96px;

  /* Layout */
  --container: 1280px;
  --header-h: 76px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-brown); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-hover); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.header {
  background: var(--bg-content);
  border-bottom: 1px solid var(--border-light);
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--header-h);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--brand-caramel);
  letter-spacing: 2px;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav a {
  color: var(--brand-dark);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--brand-caramel); }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--brand-caramel);
}
.header-right { display: flex; align-items: center; gap: 14px; }
.btn-inquire {
  background: var(--brand-caramel);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.btn-inquire:hover { background: var(--brand-hover); }
.lang-btn {
  background: none; border: none;
  color: var(--brand-dark);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 0; margin: 0; line-height: 1;
}
.lang-btn .en-label { font-size: 0.72rem; letter-spacing: 1px; }
.mobile-menu-btn {
  display: none;
  background: none; border: none;
  font-size: 1.4rem; color: var(--brand-dark);
  cursor: pointer;
}

/* ===== HERO (V2.1 - photographic composition) ===== */
.hero {
  background: #EFE3D3;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 520px;
  display: grid;
  grid-template-columns: 38% 62%;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
}
.hero-text {
  align-self: center;
  z-index: 2;
}
.hero-text h1 {
  font-family: var(--font-serif);
  font-size: 58px;
  font-weight: 500;
  color: var(--brand-dark);
  line-height: 1.0;
  letter-spacing: 1px;
  margin-bottom: 20px;
  white-space: nowrap;
}
.hero-text p {
  font-size: 1.02rem;
  color: var(--accent-brown);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 26px;
}
.btn-explore {
  display: inline-block;
  background: var(--brand-caramel);
  color: var(--white) !important;
  padding: 13px 32px;
  border-radius: 2px;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  transition: background .2s;
}
.btn-explore:hover { background: var(--brand-hover); }

/* Product composition stage - trim-based flex layout (V2.9) */
.hero-products {
  position: relative;
  height: 100%;
  z-index: 1;
}
.hero-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0;
}
/* HERO PERF FIX: <picture> is a transparent wrapper so the inner <img>
   (which carries .hero-product/.hero-* classes) remains the flex item,
   restoring the original V2.9 hero layout exactly. (2026-08-10) */
.hero-stage picture { display: contents; }

/* V2.9+RC1: trim-标准化 product wrappers, height-based for proper balance */
.hero-product {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(59,41,31,.18));
}
/* RC1: width-based flex layout (V2.9 validated: no overflow, products fully visible) */
.hero-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0;
}
/* Round - far left */
.hero-round {
  width: 22%;
  margin: 0 -4% 0 2%;
  transform: translateY(2%);
  z-index: 2;
}
/* Bamboo - center */
.hero-bamboo {
  width: 25%;
  margin: 0 -3% 0 -3%;
  z-index: 3;
}
/* Shell - center-front */
.hero-shell {
  width: 20%;
  margin: 0 -3% 0 0;
  transform: translateY(-3%);
  z-index: 4;
}
/* Tote - far right, largest */
.hero-tote {
  width: 29%;
  margin: 0 1% 0 -4%;
  z-index: 2;
}

/* subtle bottom shadow + very light warm glow (no flowers) */
.hero-products::after {
  content: '';
  position: absolute;
  top: -14px; right: -10px;

[410 more lines in file. Use offset=232 to continue.]  width: 160px; height: 160px;
  background: radial-gradient(circle at 30% 30%, rgba(200,154,82,.14), transparent 68%);
  z-index: 0;
  pointer-events: none;
}

/* Carousel dots - de-emphasized on desktop */
.hero-pagination {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 5;
  opacity: .55;
}
.hero-pagination .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(59,41,31,.22);
}
.hero-pagination .dot.active {
  background: var(--brand-caramel);
}

/* ===== USP SECTION ===== */
.usp {
  background: var(--bg-content);
  padding: var(--space-lg) 0;
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.usp-item { text-align: center; padding: 8px; }
.usp-icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--brand-caramel);
  border-radius: 50%;
  color: var(--brand-caramel);
}
.usp-item h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--brand-dark);
  margin-bottom: 6px;
  font-weight: 600;
}
.usp-item p {
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* ===== SECTION COMMON ===== */
.section { padding: var(--space-xl) 0; }
.section-title-wrap { text-align: center; margin-bottom: var(--space-lg); }
.section-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--brand-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-gray);
  max-width: 640px;
  margin: 0 auto;
}

/* ===== SHOP BY CATEGORY ===== */
.categories {
  background: var(--bg-content);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat-card {
  background: var(--bg-content);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  display: block;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(59,41,31,.08);
  border-color: var(--brand-caramel);
}
.cat-card-img {
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
  background: var(--bg-warm);
}
.cat-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.cat-card:hover .cat-card-img img { transform: scale(1.04); }
.cat-card-body { padding: 18px 20px 22px; }
.cat-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 6px;
}
.cat-card p {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.5;
}

/* ===== BEST SELLERS ===== */
.bestsellers { background: var(--bg-page); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--bg-content);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(59,41,31,.1);
}
.product-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-warm);
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 16px 20px; }
.product-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 6px;
  line-height: 1.35;
}
.product-price {
  font-size: 0.9rem;
  color: var(--brand-caramel);
  font-weight: 600;
  margin-bottom: 10px;
}
.btn-view {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--brand-caramel);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--brand-caramel);
}
.btn-view:hover { color: var(--brand-hover); border-color: var(--brand-hover); }

/* ===== CUSTOM DEVELOPMENT ===== */
.custom {
  background: var(--bg-content);
  position: relative;
}
.custom-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.custom-text .section-title { text-align: left; margin-bottom: 16px; }
.custom-text .section-subtitle { text-align: left; margin: 0 0 32px; }
.custom-options {
  display: flex; flex-wrap: wrap;
  gap: 16px;
}
.custom-option {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 10px 22px;
  font-size: 0.9rem;
  color: var(--brand-dark);
  font-weight: 500;
}
.custom-option .ico { color: var(--brand-caramel); }
.custom-visual {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(59,41,31,.12);
}
.custom-visual img { width: 100%; object-fit: cover; }

/* ===== FOOTER ===== */
.footer {
  background: var(--brand-dark);
  color: rgba(255,253,249,.85);
  padding: var(--space-lg) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer h4 {
  font-family: var(--font-serif);
  color: var(--bg-warm);
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer p, .footer a { font-size: 0.85rem; color: rgba(255,253,249,.7); line-height: 2; }
.footer a:hover { color: var(--white); }
.footer-brand { font-family: var(--font-serif); font-size: 1.4rem; color: var(--bg-warm); margin-bottom: 12px; letter-spacing: 2px; }
.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,253,249,.5);
}
.footer-bottom a { color: rgba(255,253,249,.7); }

/* ===== NOTICE ===== */
/* notice-bar removed for V2.1 - no on-page preview notice */


/* ===== BREADCRUMB ===== */
.breadcrumb {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 0.8rem;
  color: var(--text-gray);
}
.breadcrumb a { color: var(--text-gray); }
.breadcrumb a:hover { color: var(--brand-caramel); }

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px;
}
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.pd-gallery-main {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-content);
}
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs {
  display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap;
}
.pd-thumb {
  width: 76px; height: 76px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid var(--border-light);
  overflow: hidden;
  transition: border-color .2s;
}
.pd-thumb.active, .pd-thumb:hover { border-color: var(--brand-caramel); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--brand-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}
.pd-cn {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.pd-id { color: var(--text-gray); font-size: 0.8rem; margin-bottom: 20px; }
.price-box {
  background: var(--bg-content);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 24px;
  margin: 24px 0;
}
.price-main {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--brand-caramel);
  font-weight: 600;
}
.price-note { color: var(--text-gray); font-size: 0.82rem; margin-top: 8px; }
.pd-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.pd-table th, .pd-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border-light); }
.pd-table th { width: 140px; font-weight: 600; color: var(--accent-brown); font-size: 0.85rem; }
.btn-inquiry, .btn-whatsapp {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-top: 16px;
  border: none;
  cursor: pointer;
}
.btn-inquiry {
  background: var(--brand-caramel);
  color: var(--white) !important;
  margin-right: 12px;
}
.btn-inquiry:hover { background: var(--brand-hover); }
.btn-whatsapp {
  background: #25D366;
  color: var(--white) !important;
}
.btn-whatsapp:hover { background: #1DA851; }

/* ===== ALL PRODUCTS / CATEGORY HEAD ===== */
.category-head {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; height: auto; padding: 48px 24px 40px; gap: 20px; }
  .hero-text h1 { font-size: 2.5rem; white-space: normal; }
  .hero-products { min-height: 380px; }
  /* V2.9 flex: keep widths from base, adjust for tablet */
  .hero-round { width: 22%; }
  .hero-bamboo { width: 25%; }
  .hero-shell { width: 20%; transform: translateY(-3%); }
  .hero-tote { width: 29%; }
  .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .custom-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 66px; }
  /* V2.5: 3-column grid header with globe visible */
  .header-inner {
    display: grid;
    grid-template-columns: 44px minmax(0,1fr) 44px;
    align-items: center;
    padding: 0 10px;
    height: var(--header-h);
    max-width: 100%;
    box-sizing: border-box;
  }
  .logo {
    text-align: center;
    font-size: 1.1rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    grid-column: 2;
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 44px;
    height: 66px;
    padding: 0;
    margin: 0;
    border: none;
    text-align: left;
    line-height: 1;
    grid-column: 1;
  }
  .header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    min-width: 0;
    line-height: 1;
    grid-column: 3;
    align-self: center;
    height: 100%;
  }
  .header-right .btn-inquire { display: none !important; }
  .header-right .lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    height: 100%;
    line-height: 1;
    width: 44px;
    align-self: center;
  }
  .lang-btn .en-label { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-content);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border-light);
  }
  .nav.open { display: flex; }
  .header nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    z-index: 99;
  }
  /* V2.5: hero mobile */
  .hero { overflow: hidden; }
  .hero-inner { padding: 24px 16px 12px; height: auto; gap: 12px; width: 100%; max-width: 100%; box-sizing: border-box; }
  .hero-text { width: 100%; max-width: 100%; box-sizing: border-box; }
  .hero-text h1 { font-size: 2rem; line-height: 1.05; white-space: normal; max-width: 100%; }
  .hero-text p { max-width: 100%; width: 100%; box-sizing: border-box; font-size: 0.98rem; overflow-wrap: normal; }
  .btn-explore { margin-top: 2px; }
  .hero-products { height: 200px; width: 100%; max-width: 100%; position: relative; min-height: 0; overflow: hidden; }
  /* RC1 mobile: height-based, tight under CTA */
  .hero-stage { width: 100%; height: 100%; position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 0; overflow: visible; }
  .hero-round { width: 21%; margin: 0 -2% 0 1%; transform: translateY(3%); z-index: 2; }
  .hero-bamboo { width: 25%; margin: 0 -3% 0 -2%; z-index: 3; }
  .hero-shell { width: 20%; margin: 0 -2% 0 -1%; transform: translateY(-4%); z-index: 4; }
  .hero-tote { width: 30%; margin: 0 1% 0 -3%; z-index: 2; }
  /* V2.5: USP 2×2 with no overflow */
  .usp { padding: 48px 0; }
  .usp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 24px 12px;
  }
  .usp-item { padding: 4px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pd-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 1.8rem; }
}

@media (max-width: 460px) {
  /* V2.5: strict 390px containment */
  body, .hero, .hero-inner, .hero-text, .hero-products, .hero-stage,
  .container, .usp, .usp-grid, .usp-item, .section, .header, .header-inner,
  .cat-grid, .product-grid, .custom-inner, .footer, .footer-grid {
    max-width: 100%;
    box-sizing: border-box;
  }
  img { max-width: 100%; height: auto; }
  .hero { overflow: hidden; }
  .hero-inner { padding: 22px 14px 10px; gap: 10px; width: 100%; max-width: 100%; box-sizing: border-box; }
  .hero-text { width: 100%; max-width: 100%; box-sizing: border-box; }
  .hero-text h1 { font-size: 1.5rem; line-height: 1.08; white-space: normal; max-width: 100%; }
  .hero-text p { font-size: 0.86rem; line-height: 1.45; margin-bottom: 12px; max-width: 100%; width: 100%; box-sizing: border-box; }
  .hero-products { height: 240px; width: 100%; max-width: 100%; position: relative; min-height: 0; overflow: hidden; }
  /* RC1: width-flex, tight under CTA */
  .hero-stage { width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 0; overflow: visible; }
  .hero-round { width: 21%; margin: 0 -2% 0 1%; transform: translateY(3%); z-index: 2; }
  .hero-bamboo { width: 25%; margin: 0 -3% 0 -2%; z-index: 3; }
  .hero-shell { width: 20%; margin: 0 -2% 0 -1%; transform: translateY(-4%); z-index: 4; }
  .hero-tote { width: 30%; margin: 0 1% 0 -3%; z-index: 2; }
  .hero-pagination { bottom: -2px; opacity: 1; }
  /* USP body text */
  .usp-item p { font-size: 0.8rem; line-height: 1.4; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
