/* ===============================
   RESET + BASE
================================ */
* { box-sizing: border-box; }

:root{
  --bg: #f7f1e7;
  --ink: #2f2a24;
  --muted: #5e574f;
  --line: rgba(222,214,203,1);
  --btn: #4a3f35;
  --btnHover: #3f362d;
  --max: 1400px;
}

html, body { height: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

/* ===============================
   HEADER
================================ */
.site-header{
  padding: 26px 60px;
}

.header-inner{
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand{
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.brand-mark{
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .02em;
}

.brand-sub{
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .75;
}

/* ===============================
   NAV (WP menus + mobile hamburger)
================================ */
.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;
}

.nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border:1px solid var(--line);
  background: transparent;
  border-radius: 0;
  cursor:pointer;
}

.nav-toggle-bars{
  width:18px;
  height:2px;
  background: var(--ink);
  position:relative;
  display:block;
}
.nav-toggle-bars:before,
.nav-toggle-bars:after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  background: var(--ink);
}
.nav-toggle-bars:before{ top:-6px; }
.nav-toggle-bars:after{ top:6px; }

.main-nav{
  display:flex;
  align-items:center;
}

/* Default WP menu markup */
.main-nav .menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap: 34px;
}

.main-nav .menu > li{
  position:relative;
}

/* Fallback (direct anchors) */
.main-nav > a{
  margin-left: 34px;
}

.main-nav a{
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .9;
}

.main-nav a:hover{ opacity: 1; }

/* Desktop dropdown */
.main-nav .menu > li{ position: relative; }
.main-nav .menu > li > ul.sub-menu{
  list-style:none;
  margin:0;
  padding:10px 0;
  min-width: 220px;
  position:absolute;
  top: calc(100% + 14px);
  left: -14px;
  background: rgba(247,241,231,.98);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(0,0,0,.10);
  pointer-events:auto;
  display:none;
  z-index: 50;
}

/* Hover bridge so dropdown doesn't disappear */
.main-nav .menu > li > ul.sub-menu::before{
  content:"";
  position:absolute;
  top:-14px;
  left:0;
  right:0;
  height:14px;
}

.main-nav .menu > li:hover > ul.sub-menu,
.main-nav .menu > li:focus-within > ul.sub-menu{
  display:block;
}

.main-nav .menu > li > ul.sub-menu a{
  display:block;
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: .14em;
  opacity: .95;
}

.main-nav .menu > li > ul.sub-menu a:hover{
  background: rgba(255,255,255,.35);
}

.nav-overlay{
  display:none;
}

body.nav-open{
  overflow:hidden;
}

/* ===============================
   BUTTONS (Luxury)
================================ */
.btn,
button.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background: var(--btn);
  color: #fff;

  border: 1px solid rgba(0,0,0,.05);
  padding: 14px 30px;

  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;

  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}

.btn:hover{
  background: var(--btnHover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

.btn:active{ transform: translateY(0); box-shadow: none; }

.btn-outline{
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-outline:hover{
  background: rgba(255,255,255,.35);
  box-shadow: none;
}

/* Smaller “luxury” mini button (for product cards if you use it) */
.btn-mini{
  padding: 10px 22px;
  font-size: 11px;
  letter-spacing: .22em;
}

/* ===============================
   WOOCOMMERCE BUTTONS
   (Woo frontend styles are disabled in this theme, so we restyle core actions.)
================================ */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.checkout-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background: var(--btn);
  color: #fff;

  border: 1px solid rgba(0,0,0,.05);
  padding: 14px 30px;

  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;

  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.checkout-button:hover{
  background: var(--btnHover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
  color: #fff;
}

.woocommerce a.button:active,
.woocommerce button.button:active,
.woocommerce input.button:active,
.woocommerce #respond input#submit:active,
.woocommerce a.checkout-button:active{
  transform: translateY(0);
  box-shadow: none;
}

.woocommerce a.button.disabled,
.woocommerce button.button:disabled,
.woocommerce input.button:disabled{
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===============================
   HERO (Full-width image + overlay text)
================================ */
.hero{
  padding: 0 60px;
  margin: 0 auto 56px;
}

.hero-card{
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* The hero image spans the container (like the mockup) */
.hero-img{
  width: 100%;
  height: clamp(420px, 46vw, 560px);
  object-fit: cover;
  display: block;
}

.hero-media{ display:block; }

/* Optional subtle readability lift ONLY on right edge (not a white block) */
.hero-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(
    90deg,
    rgba(247,241,231,0) 0%,
    rgba(247,241,231,0) 58%,
    rgba(247,241,231,.18) 76%,
    rgba(247,241,231,.28) 100%
  );
}

/* Overlay content area */
.hero-content{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 6%;
  z-index: 2;
}

.hero-panel-main{
  max-width: 460px;
  color: var(--ink);
  /* NO background block (keeps image clear) */
}

.hero-panel-main::before,
.hero-panel-main::after{
  content: none !important;
  display: none !important;
}

.hero-title{
  font-family: "Cormorant Garamond", serif;
  font-size: 52px;
  line-height: 1.05;
  margin: 0 0 10px;
  font-weight: 500;
  text-shadow: 0 1px 18px rgba(0,0,0,.08);
}

.hero-subtitle{
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 24px;
  margin: 0 0 18px;
  text-shadow: 0 1px 18px rgba(0,0,0,.06);
}

.hero-copy{
  font-size: 14px;
  line-height: 1.8;
  color: rgba(47,42,36,.82);
  margin: 0 0 22px;
  max-width: 420px;
}

/* ===============================
   SECTION TITLES + DIVIDERS
================================ */
.section-title{
  margin: 0 auto 18px;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--ink);
}

.section-title.italic,
.section-title[style*="italic"]{
  font-style: italic;
}

.section-divider{
  border: 0;
  height: 1px;
  background: var(--line);
  max-width: 1100px;
  margin: 44px auto;
}

/* ===============================
   COLLECTION PILLS (3 boxes)
================================ */
.collections-row{
  max-width: 1100px;
  margin: 0 auto 54px;
  padding: 0 24px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.collection-pill{
  border: 1px solid var(--line);
  padding: 20px 14px;
  text-align: center;

  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  color: var(--ink);

  background: rgba(255,255,255,.15);
  transition: background .2s ease, transform .15s ease;
}

.collection-pill:hover{
  background: rgba(255,255,255,.32);
  transform: translateY(-1px);
}

/* ===============================
   BEST SELLERS GRID
================================ */
.products{
  max-width: 1100px;
  margin: 0 auto 18px;
  padding: 0 24px;
}

.product-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  align-items: start;
}

.product-card{
  text-align: center;
}

.product-card img{
  width: 100%;
  max-width: 320px;
  margin: 0 auto 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.25);
}

.product-name{
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  margin: 0 0 4px;
}

.product-price{
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  margin: 0 0 12px;
  opacity: .9;
}

/* If you have a button inside product cards, make it match the luxury style */
.product-card button,
.product-card .btn{
  margin: 0 auto;
}

/* ===============================
   BUNDLES GRID (Homepage)
================================ */
.bundles{
  max-width: 1100px;
  margin: 0 auto 22px;
  padding: 0 24px;
}

.bundles.bundles-inline{
  margin-top: 18px;
}


.bundle-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.bundle-card{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.15);
  padding: 24px 22px 22px;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;

  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
}

.bundle-card:hover{
  background: rgba(255,255,255,.32);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

.bundle-eyebrow{
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .70;
}

.bundle-title{
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 500;
  margin: 0;
}

.bundle-copy{
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(47,42,36,.78);
  margin: 0;
  flex: 1;
}

.bundle-card .btn{
  align-self: flex-start;
}

/* ===============================
   OUR STORY
================================ */
.center-copy{
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;

  font-family: "Inter", sans-serif;
  color: rgba(47,42,36,.78);
  line-height: 1.9;
  font-size: 14px;
}

.text-link{
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(47,42,36,.35);
  padding-bottom: 3px;
}

.text-link:hover{
  border-bottom-color: rgba(47,42,36,.7);
}

/* ===============================
   NEWSLETTER
================================ */
.email{
  text-align: center;
  padding: 0 24px 60px;
}

.email p{
  margin: 0 0 16px;
  color: rgba(47,42,36,.78);
  font-size: 14px;
}

.email form{
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
}

.email input{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.25);
  padding: 14px 14px;
  font-size: 14px;
  outline: none;
}

.email input:focus{
  background: rgba(255,255,255,.40);
}

.email button{
  border-left: 0;
  padding: 14px 26px;
}

/* ===============================
   FOOTER
================================ */
.site-footer{
  padding: 26px 60px 34px;
}

.footer-inner{
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: rgba(47,42,36,.75);
  font-size: 13px;
}

.footer-links{
  display: flex;
  gap: 18px;
}

.footer-links a:hover{ color: rgba(47,42,36,1); }

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 980px){
  .site-header{ padding: 22px 22px; }
  .hero{ padding: 0 22px; }
  /* Mobile nav becomes a drawer with hamburger */
  .nav-toggle{ display:inline-flex; }
  .main-nav{
    display:none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 360px);
    background: var(--bg);
    border-left: 1px solid var(--line);
    padding: 96px 22px 22px;
    z-index: 1001;
    overflow: auto;
  }
  body.nav-open .main-nav{ display:block; }
  .nav-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.25);
    z-index: 1000;
  }
  body.nav-open .nav-overlay{ display:block; }

  .main-nav .menu{
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .main-nav .menu > li{
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(222,214,203,.7);
  }
  .main-nav .menu > li:last-child{ border-bottom: 0; }
  .main-nav a{
    display:block;
    width:100%;
    padding: 6px 0;
  }
  .main-nav .menu > li > ul.sub-menu{
    display:block;
    position: static;
    min-width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 6px 0 0 14px;
    margin: 0;
  }
  .main-nav .menu > li > ul.sub-menu a{
    padding: 8px 0;
    font-size: 12px;
  }
  .hero-content{ justify-content: center; padding: 0 22px; }
  .hero-panel-main{ max-width: 560px; text-align: center; }
  .hero-title{ font-size: 44px; }
  .collections-row{ grid-template-columns: 1fr; }
  .product-grid{ grid-template-columns: 1fr; }
  .bundle-grid{ grid-template-columns: 1fr; }
  .footer-inner{ flex-direction: column; }
}
/* =========================================================
   HOMEPAGE POLISH PATCH (drop at VERY BOTTOM of styles.css)
   Fixes: section titles, dividers, best-sellers add button,
          newsletter layout + button style
========================================================= */

/* Section titles – match luxe serif look */
h2,
.section-title{
  font-family: "Cormorant Garamond", serif !important;
  font-weight: 500 !important;
  font-size: 40px !important;
  line-height: 1.1 !important;
  text-align: center !important;
  margin: 0 auto 22px !important;
  color: #2f2a24 !important;
}

/* "Our Story" – italic like mockup */
#story h2,
#story .section-title{
  font-style: italic !important;
}

/* Divider line – thin + centered */
.section-divider,
hr{
  border: 0 !important;
  height: 1px !important;
  background: rgba(222,214,203,1) !important;
  max-width: 1100px !important;
  margin: 44px auto !important;
}

/* Best sellers card button: force luxury mini button */
.product-card button,
.product-card .btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #4a3f35 !important;
  color: #fff !important;
  border: 1px solid rgba(0,0,0,.06) !important;
  padding: 10px 22px !important;
  font-family: "Inter", sans-serif !important;
  font-size: 11px !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease !important;
}

.product-card button:hover,
.product-card .btn:hover{
  background: #3f362d !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.10) !important;
}

/* Newsletter section: center + correct spacing */
.email{
  text-align: center !important;
  padding: 0 24px 70px !important;
}

.email p{
  margin: 0 0 16px !important;
  color: rgba(47,42,36,.78) !important;
  font-size: 14px !important;
}

/* Newsletter form – fixed width + clean layout */
.email form{
  max-width: 560px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 0 !important;
}

.email input{
  border: 1px solid rgba(222,214,203,1) !important;
  border-right: 0 !important;
  background: rgba(255,255,255,.25) !important;
  padding: 14px 14px !important;
  font-size: 14px !important;
  outline: none !important;
}

.email button{
  border: 1px solid rgba(0,0,0,.06) !important;
  background: #4a3f35 !important;
  color: #fff !important;
  padding: 14px 26px !important;
  font-family: "Inter", sans-serif !important;
  font-size: 12px !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
}

.email button:hover{
  background: #3f362d !important;
}

/* Mobile */
@media (max-width: 720px){
  .email form{
    grid-template-columns: 1fr !important;
  }
  .email input{
    border-right: 1px solid rgba(222,214,203,1) !important;
    margin-bottom: 10px !important;
  }
}

/* ===============================
   FREE SHIPPING PROGRESS (Cart/Checkout)
================================ */
.lk-free-ship{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.35);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 18px;
}
.lk-free-ship__msg{
  font-size: 13px;
  color: var(--ink);
  line-height: 1.35;
}
.lk-free-ship__msg strong{ font-weight: 600; }
.lk-free-ship__bar{
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  overflow: hidden;
}
.lk-free-ship__bar span{
  display: block;
  height: 100%;
  width: 0;
  background: var(--btn);
}

/* More compact in mini-cart widgets */
.lk-free-ship--mini{
  padding: 10px 12px;
  margin: 10px 0 12px;
}
.lk-free-ship--mini .lk-free-ship__msg{ font-size: 12px; }

/* Give it a little breathing room inside Woo pages */
.woocommerce-cart .lk-free-ship,
.woocommerce-checkout .lk-free-ship{
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}


/* Newsletter form feedback */
.lk-form-msg{
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.3;
}
.lk-form-msg.is-success{ font-weight: 600; }
.lk-form-msg.is-error{ font-weight: 600; }

/* ===============================
   HOMEPAGE BLOG TEASER (Latest Articles)
================================ */
.home-blog{
  max-width: 1100px;
  margin: 0 auto 26px;
  padding: 0 24px;
  text-align: center;
}

.blog-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 255px));
  justify-content: center;
  gap: 22px;
  align-items: stretch;
  margin-top: 10px;
}

.blog-card{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.15);
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.blog-thumb{
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.25);
}

.blog-thumb img,
.blog-thumb picture,
.blog-thumb video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-title{
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 500;
  margin: 6px 0 0;
  line-height: 1.2;
}

.blog-card-title a:hover{ opacity: .9; }

.blog-excerpt{
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(47,42,36,.78);
  flex: 1;
}

.home-blog-actions{ margin-top: 18px; }

@media (max-width: 980px){
  .blog-grid{
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    justify-content: stretch;
  }
}

@media (max-width: 720px){
  .blog-grid{
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
}

/* ===============================
   HERO — MOBILE SAFETY (iPhone/Safari)
   Ensures hero text sits correctly inside the translucent panel.
================================ */
@media (max-width: 520px){
  .hero{ padding: 0 16px; margin-bottom: 44px; }
  .hero-content{ padding: 0 14px; }

  /* Prevent iPhone Safari from rendering a "second panel" artifact */
  .hero-card::after{ content: "" !important; background: none !important; opacity: 0 !important; }

  /* Show more of the hero image behind the panel on narrow screens */
  .hero-img{
    height: clamp(420px, 105vw, 520px);
    object-position: center 25%;
  }

  /* Mobile glass panel behind the text for readability */
  .hero-panel-main{
    /* Slightly narrower so more hero image shows around the panel */
    max-width: min(88vw, 430px);
    border: 1px solid rgba(222,214,203,.85);
    border-radius: 26px;
    padding: 14px 16px 16px;
    position: relative;
    overflow: hidden;

    /* iPhone fix: avoid iOS blur filter (can render a "second panel" look).
       Keep the panel mostly opaque so packaging shapes don't read as another layer. */
    background: rgba(247,241,231,.94);
  }

  /* iPhone fix: disable the glass pseudo-layer entirely (prevents double-panel look). */
  .hero-panel-main::before{ content: none !important; display: none !important; }

  /* Keep typography balanced inside the panel */
  .hero-title{
    font-size: 38px;
    line-height: 1.02;
    margin: 0 0 10px;
    letter-spacing: -0.2px;
  }
  .hero-subtitle{ font-size: 19px; margin: 0 0 12px; }
  .hero-copy{ font-size: 13px; line-height: 1.7; margin: 0 0 16px; }

  /* Prevent iOS Safari from inflating text and shifting layout */
  html{ -webkit-text-size-adjust: 100%; }
}
