@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Inter:wght@300;400;500&display=swap');

/* =====================
    VARIABLES
===================== */
:root {
  --bg-main: #faf8f4;
  --bg-white: #ffffff;
  --text-main: #1a1a1a;
  --text-muted: #6f6f6f;
  --accent: #c9a24d;
  --border-soft: #eae6de;
  --z-index-header: 1000;
  --z-index-cart-icon: 1100;
  --z-index-overlay: 2000;
  --z-index-drawer: 2100;

  /* Header sizing: logo must adapt to header height */
  --header-height: 96px;          /* desktop header height */
  --header-pad-x: 40px;           /* desktop horizontal padding */
  --header-logo-pad-y: 2px;      /* breathing space inside header for logo */

  /* Floating logo sizes (hero) */
  --hero-logo-height: 400px;      /* desktop hero logo */
  --hero-logo-gap-below: 12px;    /* space between logo and h1 */
}

/* Mobile: bigger logo in hero + header as requested */
@media (max-width: 900px){
  :root{
    --header-height: 108px;       /* header taller on mobile => logo taller */
    --header-pad-x: 16px;
    --header-logo-pad-y: 2px;

    --hero-logo-height: 240px;    /* hero logo bigger on mobile */
    --hero-logo-gap-below: 10px;
  }
}

/* =====================
    RESET
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* =====================
    A11Y UTILITIES
===================== */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* =====================
    HEADER
===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-index-header);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);

  /* fixed height => logo adapts to header, not the inverse */
  height: var(--header-height);
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  height: 100%;
  padding: 0 var(--header-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO (image version) */
.logo { display: flex; align-items: center; }

.logo-link{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo-img{
  height: calc(var(--header-height) - (var(--header-logo-pad-y) * 2));
  width: auto;
  display: block;
}

/* =====================
    HEADER NAV
===================== */
.site-header a {
  text-decoration: none;
  color: inherit;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-btn {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.25s ease;
}

.nav-primary {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
}
/* IMPORTANT: avoid turning text black-on-black */
.nav-primary:hover { border-color: var(--text-main); }

.nav-secondary {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
}
.nav-secondary:hover { border-color: var(--text-main); }

.nav-outline { border: 1px solid var(--text-main); }
.nav-outline:hover { background: var(--text-main); color: #fff; }

.nav-muted {
  font-size: 13px;
  color: var(--text-muted);
  border: none;
  padding: 12px 16px;
}
.nav-muted:hover { color: var(--text-main); }

/* =====================
    PREMIUM CART TOGGLE (NEW REFINED DESIGN)
===================== */
.cart-toggle {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 58px;
  height: 58px;
  background: var(--bg-white);
  color: var(--text-main);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: var(--z-index-cart-icon);
  border: 1px solid var(--border-soft);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cart-toggle:hover {
  transform: translateY(-5px);
  border-color: var(--text-main);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cart-toggle svg { width: 22px; height: 22px; }

.cart-count-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--text-main);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-main);
}

/* =====================
    HERO
===================== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-image:
    linear-gradient(rgba(250,248,244,0.88), rgba(250,248,244,0.88)),
    url("../img/hero-french-croissants.jpg");
  background-size: cover;
  background-position: center;
}

.hero-content { max-width: 760px; }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 54px;
  font-weight: 500;

  /* you asked to move title up more */
  margin-top: -30px;
  margin-bottom: 24px;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* =====================
    IMAGE GRID (INDEX FIX)
===================== */
.image-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  padding: 60px 40px;
  max-width: 1200px;
  margin: auto;
}

.image-grid img {
  width: calc(33.33% - 16px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* =====================
    KEY MESSAGE
===================== */
.key-message {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-white);
}

.key-message p {
  font-size: 19px;
  line-height: 1.6;
  max-width: 800px;
  margin: auto;
}

/* =====================
    VALUES
===================== */
.values {
  background: var(--bg-white);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 60px;
  padding: 80px 80px 120px;
}

.value {
  padding: 40px 32px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.value h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
}

.value p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* =====================
    IMAGE + STATEMENT
===================== */
.image-statement {
  background: var(--bg-white);
  padding: 80px 40px;
}

.image-statement-inner {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.image-statement-image img {
  width: 100%;
  border-radius: 6px;
}

.image-statement-text blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  line-height: 1.4;
}

/* =====================
    ORNAMENTAL DIVIDER
===================== */
.ornamental-divider {
  position: relative;
  width: 220px;
  height: 2px;
  margin: 100px auto;
  background: #111;
}

.ornamental-divider::before,
.ornamental-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border: 2px solid #111;
  transform: translateY(-50%) rotate(45deg);
}

.ornamental-divider::before { left: -14px; }
.ornamental-divider::after { right: -14px; }

/* =====================
    HOW IT WORKS
===================== */
.how-it-works {
  padding: 80px 40px;
  text-align: center;
}

.how-it-works h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  margin-bottom: 80px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: 1100px;
  margin: auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.step img {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.step span {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
}

.step p {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  max-width: 220px;
}

/* =====================
    BUTTONS
===================== */
.btn {
  display: inline-block;
  padding: 16px 36px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn.primary { background: var(--text-main); color: white; }
.btn.primary:hover { background: #000; }
.btn.large { padding: 20px 48px; }

/* =====================
    BEFORE / AFTER BAKING
===================== */
.before-after {
  background: var(--bg-main);
  padding: 120px 40px;
  text-align: center;
}

.before-after h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  margin-bottom: 60px;
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: auto;
}

.before-after-item img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 16px;
}

.before-after-item span {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =====================
    FINAL CTA
===================== */
.final-cta {
  background: var(--bg-white);
  padding: 120px 40px;
  text-align: center;
}

.final-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  margin-bottom: 20px;
}

.final-cta p {
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* =====================
    FOOTER
===================== */
footer {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* =====================
    SHOP
===================== */
.shop-hero {
  text-align: center;
  padding: 120px 20px 60px;
}

.shop-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  margin-bottom: 16px;
}

.shop-hero p { color: var(--text-muted); }

.shop-filters {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.filter-btn {
  padding: 12px 26px;
  border: 1px solid var(--border-soft);
  background: var(--bg-white);
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--text-main);
  color: white;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 60px;
  padding: 0 80px 160px;
}

.shop-card {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .3s ease;
}

.shop-card:hover { transform: translateY(-6px); }

.shop-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.shop-card-body { padding: 28px; }

.shop-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 10px;
}

.shop-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.shop-card-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.shop-card-footer .price {
  font-size: 16px;
  font-weight: 500;
}

.shop-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =====================
    CART OVERLAY & DRAWER
===================== */
#cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
  z-index: var(--z-index-overlay);
}

#cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

#cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: right .35s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: var(--z-index-drawer);
  box-shadow: -10px 0 30px rgba(0,0,0,0.05);
}

#cart-drawer.active { right: 0; }

#cart-drawer h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 20px;
}

#cart-items { flex: 1; overflow-y: auto; }

.cart-item { display: flex; gap: 16px; margin-bottom: 20px; }
.cart-item img { width: 70px; border-radius: 4px; }

.cart-footer {
  border-top: 1px solid var(--border-soft);
  padding-top: 20px;
}

.cart-footer .btn { width: 100%; margin-top: 12px; }

/* =====================
    CART – QUANTITIES & PROMO
===================== */
.cart-item-info { flex: 1; font-size: 14px; }

.cart-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.cart-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-soft);
  background: var(--bg-white);
  cursor: pointer;
  font-size: 16px;
}

.cart-qty span { min-width: 20px; text-align: center; }

.cart-promo { display: flex; gap: 10px; margin: 20px 0; }

.cart-promo input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border-soft);
  font-size: 14px;
}

/* =====================
    AUTH (LOGIN / REGISTER)
===================== */
.auth-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-white);
  padding: 48px 40px;
  border-radius: 8px;
  text-align: center;
}

.auth-card h1 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 10px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form label { text-align: left; font-size: 13px; color: var(--text-muted); }

.auth-form input {
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  font-size: 14px;
}

/* =========================================================
    REGISTER PAGE ENHANCEMENT
========================================================= */
.auth-card.wide {
  max-width: 860px;
  padding: 64px 72px;
  text-align: left;
}

.auth-card.wide h1 { text-align: center; font-size: 38px; }

.auth-card.wide .auth-subtitle {
  text-align: center;
  margin-bottom: 48px;
  font-size: 15px;
}

.auth-form.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 36px;
  align-items: start;
}

.auth-form.grid label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.auth-form.grid input,
.auth-form.grid select {
  width: 100%;
  padding: 16px 18px;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
}

.auth-form .full { grid-column: 1 / -1; }

.auth-form.grid .btn {
  margin-top: 24px;
  padding: 20px;
  font-weight: 600;
}

.auth-card.wide .auth-footer {
  margin-top: 56px;
  text-align: center;
  border-top: 1px solid var(--border-soft);
  padding-top: 32px;
}

@media (max-width: 768px) {
  .auth-card.wide { padding: 48px 24px; }
  .auth-form.grid { grid-template-columns: 1fr; gap: 18px; }
}

/* =====================
   ADD TO CART – MINIMAL LUXE
===================== */
.buy-btn {
  background: #faf8f4;
  color: var(--text-main);
  border: 1px solid var(--text-main);
  padding: 14px 34px;
  font-size: 12px;
  font-family: 'Playfair Display', serif;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.buy-btn:hover {
  background: var(--text-main);
  color: #fff;
  transform: translateY(-1px);
}

.buy-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

/* =====================
   RESPONSIVE (GENERAL SITE)
   IMPORTANT: keep it, but do NOT change header layout here
===================== */
@media (max-width: 900px) {
  .hero h1 { font-size: 40px; }

  .values { padding: 80px 20px; gap: 32px; }

  .image-grid { flex-wrap: wrap; }
  .image-grid img { width: 100%; max-width: 500px; }

  .steps { grid-template-columns: 1fr; gap: 48px; }

  .image-statement-inner { grid-template-columns: 1fr; text-align: center; }

  .image-statement-text blockquote { font-size: 26px; }

  .cart-toggle {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }
}

/* =====================
   ACCOUNT PAGE
===================== */
.account-page{
  padding-bottom: 120px;
}

.account-hero{
  padding: 80px 20px 30px;
  text-align: center;
}

.account-hero-inner{
  max-width: 900px;
  margin: 0 auto;
}

.account-hero h1{
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  font-weight: 500;
  margin-bottom: 10px;
}

.account-subtitle{
  color: var(--text-muted);
  font-size: 15px;
}

.account-section{
  padding: 40px 20px;
}

.account-inner{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.account-card{
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 28px;
}

.account-card-slim{
  position: sticky;
  top: 110px;
}

.account-card-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.account-card h2{
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 500;
}

.orders-list{
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.order-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #fff;
}

.order-title{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.order-number{
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.04em;
  font-size: 16px;
}

.order-meta{
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.order-total{
  color: var(--text-main);
  font-weight: 500;
}

.dot{ opacity: 0.6; }

.status{
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-main);
  color: var(--text-main);
}

.status-ok{ border-color: rgba(26,26,26,0.18); }
.status-warn{ border-color: rgba(201,162,77,0.5); }
.status-bad{
  border-color: rgba(0,0,0,0.25);
  background: rgba(0,0,0,0.04);
}

.account-empty{
  padding: 26px 18px;
  border: 1px dashed var(--border-soft);
  border-radius: 8px;
  text-align: center;
}

.account-empty p{
  color: var(--text-muted);
  margin-bottom: 14px;
}

.muted{
  color: var(--text-muted);
  margin: 10px 0 18px;
}

@media (max-width: 900px){
  .account-inner{ grid-template-columns: 1fr; }
  .account-card-slim{ position: static; }
  .account-hero h1{ font-size: 38px; }
}

/* =====================
   ACCOUNT FORM (ADDRESS)
===================== */
.account-stack{
  display:flex;
  flex-direction:column;
  gap:28px;
}

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

.account-form .field.full{ grid-column: 1 / -1; }

.account-form label{
  display:block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.account-form input,
.account-form select{
  width:100%;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
}

.form-actions{
  margin-top: 18px;
  display:flex;
  justify-content:flex-end;
}

.account-alert{
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  margin-top: 10px;
  font-size: 14px;
}

.account-alert.success{ background: rgba(26,26,26,0.03); }
.account-alert.error{ background: rgba(0,0,0,0.05); }

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

/* =====================
   MOBILE HEADER + LEFT DRAWER
===================== */
.nav-burger{
  display:none;
  width:44px;
  height:44px;
  border:1px solid var(--border-soft);
  background: var(--bg-white);
  border-radius:10px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0;

  /* tap comfort */
  -webkit-tap-highlight-color: transparent;
}

.nav-burger:active{ transform: scale(0.98); }

/* ✅ NEW: SVG icon styling (replaces old spans) */
.nav-burger .burger-icon{
  width:22px;
  height:22px;
  display:block;
  color: var(--text-main);
}

/* (legacy spans kept harmless if you forget to remove them somewhere) */
.nav-burger span{
  display:none;
  width:20px;
  height:1.5px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

.nav-burger span:nth-child(1){ transform: translateY(-4px); }
.nav-burger span:nth-child(3){ transform: translateY(4px); }

.desktop-nav{ display:flex; }
.nav-right-spacer{ display:none; }

/* Overlay + drawer */
.mobile-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: calc(var(--z-index-header) + 900);
}

.mobile-overlay.active{
  opacity: 1;
  visibility: visible;
}

.mobile-drawer{
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  max-width: 86vw;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--border-soft);
  z-index: calc(var(--z-index-header) + 1000);
  transition: left .28s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 18px 18px 22px;
  display:flex;
  flex-direction:column;
}

.mobile-drawer.active{ left: 0; }

.mobile-drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 12px;
}

.mobile-drawer-title{
  font-family: 'Playfair Display', serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--text-muted);
}

.drawer-close{
  width:42px;
  height:42px;
  border:1px solid var(--border-soft);
  background: var(--bg-white);
  border-radius:10px;
  cursor:pointer;
  font-size:18px;
  line-height:1;
}

.mobile-nav{
  display:flex;
  flex-direction:column;
  padding-top: 6px;
}

.mobile-nav a{
  padding: 14px 10px;
  border-bottom: 1px solid var(--border-soft);
  text-decoration:none;
  color: var(--text-main);
  font-family: 'Playfair Display', serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 13px;
}

/* =====================
   RESPONSIVE BEHAVIOR (HEADER ONLY)
===================== */
@media (max-width: 900px){
  .header-inner{
    position: relative;
    padding: 0 var(--header-pad-x);
    flex-direction: row;
    gap: 0;
  }

  /* Hide desktop nav buttons in mobile (drawer replaces it) */
  .desktop-nav{ display:none; }
  .main-nav{ display:none; }

  .nav-burger{ display:inline-flex; }

  /* Perfectly centered logo */
  .logo{
    position:absolute;
    left:50%;
    transform: translateX(-50%);
  }

  .nav-right-spacer{
    display:block;
    width:44px;
    height:44px;
  }
}

/* =====================
   FLOATING LOGO (HERO <-> HEADER)
===================== */

/* Header slot: takes full header height */
#headerLogoSlot{
  display:flex;
  align-items:center;
  height: 100%;
}

/* Hero slot */
#heroLogoSlot{
  display:flex;
  justify-content:center;
  margin-top: 0;
  margin-bottom: var(--hero-logo-gap-below);
}

/* Single moved element */
.floating-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  will-change: transform;
}

/* Default: hero size */
.floating-logo img{
  height: var(--hero-logo-height);
  width: auto;
  display:block;
}

/* When inside header: fill header height (minus padding) */
#headerLogoSlot .floating-logo{
  height: 100%;
  display:flex;
  align-items:center;
}
#headerLogoSlot .floating-logo img{
  height: calc(var(--header-height) - (var(--header-logo-pad-y) * 2));
  width: auto;
}

/* Keep header centered behavior on mobile */
@media (max-width: 900px){
  #headerLogoSlot{ justify-content:center; width:100%; }
}

@media (max-width: 900px){
  #heroLogoSlot{
    margin-top: -100px;   /* remonte le logo */
  }
}

/* Fix burger mobile cliquable (logo centré ne doit pas bloquer) */
@media (max-width: 900px){
  .nav-burger{
    position: relative;
    z-index: 20; /* au-dessus du logo */
  }

  .nav-right-spacer{
    position: relative;
    z-index: 20;
  }

  /* Le conteneur du logo ne doit pas bloquer les taps */
  .logo{
    z-index: 10;
    pointer-events: none;
  }

  /* Mais si tu veux garder le logo cliquable, on réactive le lien */
  .logo .logo-link{
    pointer-events: auto;
  }

  /* Drawer + overlay au-dessus de tout */
  .mobile-overlay{ z-index: 9998; }
  .mobile-drawer{ z-index: 9999; }
}


