/* ═══════════════════════════════════════════════════
   BISCAVE — TEMPLATE 1 (Original Aesthetic)
   The signature warm-leather storefront design
═══════════════════════════════════════════════════ */

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(253,250,246,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--line);
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
/* Subtle, stronger glass when scrolled so it never clashes with page content */
nav.scrolled {
  padding-top: 0.85rem; padding-bottom: 0.85rem;
  background: rgba(253,250,246,0.9);
  box-shadow: 0 6px 28px rgba(44,31,14,0.07);
  backdrop-filter: blur(18px) saturate(140%);
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--espresso); text-decoration: none;
}
.nav-logo img { height: 30px; width: auto; display: block; object-fit: contain; }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
  font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--havane); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--espresso); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-lang {
  font-size: 0.62rem; letter-spacing: 0.2em;
  padding: 4px 10px; border: 0.5px solid var(--fauve);
  border-radius: 2px; color: var(--muted); cursor: pointer;
  background: transparent; font-family: var(--font-body);
  transition: all 0.2s;
}
.nav-lang:hover { background: var(--fauve); color: var(--white); }
.nav-cart {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.68rem; letter-spacing: 0.2em;
  cursor: pointer; color: var(--havane); position: relative;
  text-decoration: none;
}
.nav-cart:hover { color: var(--espresso); }
.cart-badge {
  position: absolute; top: -8px; right: -10px;
  background: var(--espresso); color: var(--white);
  font-size: 9px; width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 400;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; background: var(--cream);
  overflow: hidden; padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(201,169,122,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(122,92,58,0.08) 0%, transparent 60%);
}
.hero-texture {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232c1f0e' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; padding: 0 2rem;
  animation: fadeUp 1.2s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-size: 0.62rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; display: block; width: 40px; height: 0.5px; background: var(--fauve);
}
.hero-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(4rem,10vw,9rem);
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--espresso); line-height: 0.9; margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; color: var(--havane); }
.hero-sub {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.2rem; color: var(--havane);
  letter-spacing: 0.05em; margin-bottom: 3rem;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 14px 40px; border: 0.5px solid var(--espresso);
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--espresso); text-decoration: none;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.hero-cta::before {
  content: ''; position: absolute; inset: 0;
  background: var(--espresso); transform: translateX(-101%);
  transition: transform 0.3s ease;
}
.hero-cta:hover::before { transform: translateX(0); }
.hero-cta:hover { color: var(--white); }
.hero-cta span { position: relative; z-index: 1; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.5} 50%{opacity:1} }
.scroll-line { width: 0.5px; height: 40px; background: var(--fauve); animation: grow 2s ease-in-out infinite; }
@keyframes grow { 0%,100%{transform:scaleY(.3)} 50%{transform:scaleY(1)} }

/* ── HERO — with a background photo (.has-hero-image) ──
   When a hero image is uploaded, the centered dark text/ghost CTA become
   illegible over the photo. Move the content into the lower-left negative
   space, lighten the type, and make the CTA solid. */
.hero.has-hero-image .hero-bg { background-color: var(--espresso); }
.hero.has-hero-image .hero-bg::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top,   rgba(18,11,4,0.74) 0%, rgba(18,11,4,0.22) 42%, rgba(18,11,4,0) 72%),
    linear-gradient(to right, rgba(18,11,4,0.55) 0%, rgba(18,11,4,0) 58%);
}
.hero.has-hero-image { align-items: flex-end; justify-content: flex-start; }
.hero.has-hero-image .hero-content {
  text-align: left; max-width: 660px;
  padding: 0 2rem 7rem 5rem;
}
.hero.has-hero-image .hero-eyebrow {
  justify-content: flex-start; color: var(--fauve);
}
.hero.has-hero-image .hero-eyebrow::after { display: none; }
.hero.has-hero-image .hero-title {
  color: var(--white);
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 0.22em; line-height: 0.92; margin-bottom: 1rem;
  text-shadow: 0 2px 28px rgba(0,0,0,0.45);
}
.hero.has-hero-image .hero-title em { color: var(--fauve); }
.hero.has-hero-image .hero-sub {
  font-family: var(--font-body); font-style: normal; font-weight: 300;
  font-size: 1rem; letter-spacing: 0.18em; text-transform: none;
  color: var(--cream); margin-bottom: 2.2rem;
  text-shadow: 0 1px 14px rgba(0,0,0,0.55);
}
/* Solid premium CTA — dark base, crisp white text, gold hover */
.hero.has-hero-image .hero-cta {
  background: var(--espresso); border-color: var(--espresso);
  color: var(--white); box-shadow: 0 12px 32px rgba(0,0,0,0.38);
}
.hero.has-hero-image .hero-cta::before { background: var(--fauve); }
.hero.has-hero-image .hero-cta:hover { color: var(--espresso); }
.hero.has-hero-image .hero-scroll { color: var(--cream); opacity: 0.85; }

/* ── SECTION COMMONS ── */
.section { padding: 6rem 3rem; }
.section-eyebrow {
  font-size: 0.58rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.section-eyebrow::after { content: ''; flex: 1; height: 0.5px; background: var(--line); }
.section-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2rem,5vw,3.5rem);
  letter-spacing: 0.08em; color: var(--espresso); margin-bottom: 0.5rem;
}
.section-title em { font-style: italic; color: var(--havane); }

/* ── COLLECTION ── */
.collection { background: var(--white); }
.collection-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 4rem; flex-wrap: wrap; gap: 1rem;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 2rem;
}
.product-card { cursor: pointer; transition: transform 0.3s; }
.product-card:hover { transform: translateY(-6px); }
.product-img {
  width: 100%; aspect-ratio: 4/3;
  background: var(--cream);
  position: relative; overflow: hidden;
  margin-bottom: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.35s;
}
.product-card:hover .product-img { background: var(--cream-dark); }
.product-img-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-inner { transform: scale(1.04) translateY(-4px); }
.product-badge {
  position: absolute; top: 1rem; left: 1rem;
  font-size: 0.58rem; letter-spacing: 0.25em; text-transform: uppercase;
  padding: 4px 10px; background: var(--espresso); color: var(--white);
}
.product-badge.badge-new { background: var(--havane); }
.product-badge.badge-exclu { background: var(--fauve); color: var(--espresso); }
.product-info { padding: 0 0.25rem; }
.product-ref {
  font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.product-name {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.5rem; color: var(--espresso); margin-bottom: 4px;
}
.product-desc {
  font-size: 0.74rem; color: var(--havane);
  letter-spacing: 0.05em; margin-bottom: 0.8rem; line-height: 1.6;
}
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1rem; color: var(--espresso); letter-spacing: 0.1em; }
.btn-add {
  font-size: 0.58rem; letter-spacing: 0.25em; text-transform: uppercase;
  padding: 8px 20px; border: 0.5px solid var(--espresso);
  background: transparent; color: var(--espresso);
  cursor: pointer; font-family: var(--font-body);
  transition: all 0.25s;
}
.btn-add:hover { background: var(--espresso); color: var(--white); }

/* ── SAVOIR-FAIRE ── */
.savoir { background: var(--cream); }
.savoir-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; margin-top: 3rem;
}
.savoir-visual {
  aspect-ratio: 4/5; background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.savoir-visual::before {
  content: ''; position: absolute;
  top: 1.5rem; left: 1.5rem; right: -1.5rem; bottom: -1.5rem;
  border: 0.5px solid var(--fauve); z-index: 0;
}
.savoir-illustration {
  position: relative; z-index: 1; width: 70%; height: 70%;
  display: flex; align-items: center; justify-content: center;
}
.savoir-points { display: flex; flex-direction: column; gap: 2.5rem; }
.savoir-num { font-size: 0.58rem; letter-spacing: 0.3em; color: var(--fauve); margin-bottom: 0.5rem; }
.savoir-point-title {
  font-family: var(--font-display); font-size: 1.3rem; font-style: italic;
  color: var(--espresso); margin-bottom: 0.4rem;
}
.savoir-point-text { font-size: 0.78rem; color: var(--havane); line-height: 1.8; letter-spacing: 0.03em; }

/* ── FOOTER ── */
footer {
  background: var(--espresso); color: var(--fauve-light);
  padding: 4rem 3rem 2rem;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
  border-bottom: 0.5px solid rgba(201,169,122,0.15);
  padding-bottom: 3rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 300; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--fauve-light); margin-bottom: 1rem;
}
.footer-tagline { font-style: italic; font-size: 0.9rem; color: rgba(201,169,122,0.6); letter-spacing: 0.05em; }
.footer-col-title {
  font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(201,169,122,0.5); margin-bottom: 1.2rem;
}
.footer-col a, .footer-col p {
  display: block; font-size: 0.76rem; color: rgba(201,169,122,0.7);
  text-decoration: none; margin-bottom: 0.6rem;
  letter-spacing: 0.05em; transition: color 0.2s;
}
.footer-col a:hover { color: var(--fauve-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.62rem; color: rgba(201,169,122,0.35);
  letter-spacing: 0.15em; flex-wrap: wrap; gap: 0.5rem;
}

/* ── CHECKOUT / FORM SHEET ── */
.overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(28,18,8,0.6); backdrop-filter: blur(4px);
  align-items: flex-end; justify-content: center;
}
.overlay.active { display: flex; }
.sheet {
  width: 100%; max-width: 560px; background: var(--white);
  max-height: 92vh; overflow-y: auto;
  position: relative; animation: sheetUp 0.32s ease both; margin: 0 auto;
}
@keyframes sheetUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sheet-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1rem; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s; z-index: 5;
}
.sheet-close:hover { color: var(--espresso); }

/* ── RESPONSIVE T1 ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.5rem; }
  .section { padding: 4rem 1.5rem; }
  .savoir-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-title { font-size: clamp(3rem,15vw,6rem); }
  .nav-links { display: none; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  /* Hero-with-image: tighter padding + hide scroll cue to avoid overlap */
  .hero.has-hero-image .hero-content { padding: 0 1.5rem 4.5rem 1.5rem; }
  .hero.has-hero-image .hero-title { font-size: clamp(2.6rem,13vw,4rem); letter-spacing: 0.16em; }
  .hero.has-hero-image .hero-scroll { display: none; }
}
@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
}
