/* ===========================
   Hermits Holistics — Style v2
   Mobile-first • CSP-safe
   Fix rounded border/text collisions
   Add warm/herbal palette (less monotone)
   Improve shop layout + readability
   =========================== */

:root{
  /* Core palette */
  --bg: #fbf7ec;
  --surface: rgba(255,255,255,.55);
  --card: rgba(250,245,232,.88);
  --card-2: rgba(240,233,216,.70);
  --ink: #d8c4a3; /* light earthy tan */
  --muted: #c5b299;
  --line: rgba(88,72,46,.22);
  --shadow: 0 12px 30px rgba(40,32,20,.10);

  /* Accents */
  --sage: #7f9d82;
  --sage-2: #a9c6ac;
  --clay: #c88962;
  --clay-2: #e7b590;
  --berry: #9a4f5e;
  --gold: #b79a4b;

  /* UI */
  --focus: rgba(127,157,130,.55);
  --danger: rgba(154,79,94,.18);
  --danger-line: rgba(154,79,94,.35);

  /* Radius + spacing (prevents border cutting text) */
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 14px;

  --pad-1: 12px;
  --pad-2: 16px;
  --pad-3: 20px;

  /* Motion */
  --ease: cubic-bezier(.25,.1,.25,1);
  --ease2: cubic-bezier(.4,0,.2,1);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(900px 380px at 12% 8%, rgba(127,157,130,.16), transparent 60%),
    radial-gradient(920px 420px at 88% 10%, rgba(200,137,98,.14), transparent 55%),
    radial-gradient(740px 420px at 50% 92%, rgba(183,154,75,.10), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.5;
  display:flex;
  flex-direction:column;
}

a{ color: inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button,input,select,textarea{ font: inherit; color: inherit; }

.wrap{
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

/* Accessible skip link */
.skip{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip:focus{
  position:fixed;
  left:14px;
  top:14px;
  width:auto;
  height:auto;
  z-index:9999;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
}

/* ===========================
   Header / Nav
   =========================== */

.siteHeader{
  position: sticky;
  top:0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(251,247,236,.82);
  backdrop-filter: blur(8px);
}

.siteHeader__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
.brand__logo{
  width: 36px;
  height: 36px;
  opacity: .95;
  flex: 0 0 auto;
}
.brand__name{
  font-family: Georgia, serif;
  font-weight: 750;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.nav__link{
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #d8c4a3;
  transition: background 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}
.nav__link:hover{
  background: rgba(255,255,255,.55);
  border-color: rgba(127,157,130,.25);
  transform: translateY(-1px);
}
.nav__link.is-active{
  background: rgba(255,255,255,.72);
  border-color: rgba(200,137,98,.35);
}

.nav__cart{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(88,72,46,.28);
  background: linear-gradient(180deg, rgba(255,255,255,.60), rgba(240,233,216,.55));
  padding: 9px 12px;
  cursor:pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.nav__cart:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(200,137,98,.35);
}
.nav__cartCount{
  display:inline-block;
  min-width: 22px;
  text-align:center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(127,157,130,.16);
  border: 1px solid rgba(127,157,130,.26);
  font-size: 12px;
}

/* ===========================
   Global sections / cards
   =========================== */

.main{ flex: 1; }
.section{ padding: 34px 0; }

.section__head{ margin-bottom: 18px; }
.section__title{
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: clamp(24px, 2.8vw, 36px);
}
.section__sub{
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(250,245,232,.85));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  /* Important: prevents border from visually touching text */
  padding: var(--pad-2);
}

/* Smaller cards should still have safe padding */
.card--tight{ padding: var(--pad-1); border-radius: var(--r-md); }
.card--flat{ background: rgba(255,255,255,.50); }

.kicker{
  margin: 0 0 10px;
  color: rgba(34,28,20,.62);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
}

/* ===========================
   Hero
   =========================== */

.hero{
  padding: 30px 0 12px;
}
.hero__inner{
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}
.hero__title{
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-weight: 850;
  line-height: 1.07;
  letter-spacing: .2px;
  font-size: clamp(30px, 4.2vw, 48px);
}
.hero__sub{
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 62ch;
}
.hero__cta{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}

.hero__panel{
  position:relative;
  border-radius: var(--r-lg);
  border: 1px solid rgba(88,72,46,.22);
  overflow:hidden;
  min-height: 220px;
  background:
    radial-gradient(240px 240px at 18% 24%, rgba(127,157,130,.22), transparent 62%),
    radial-gradient(280px 280px at 86% 22%, rgba(200,137,98,.20), transparent 64%),
    radial-gradient(280px 280px at 52% 86%, rgba(183,154,75,.14), transparent 66%),
    rgba(255,255,255,.42);
}
.hero__card{
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(88,72,46,.20);
  padding: 14px;
}
.hero__cardTop{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.chip{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(88,72,46,.20);
  background: rgba(240,233,216,.72);
  color: #d8c4a3;
}
.hero__cardText{ margin: 0 0 10px; color: #d8c4a3; }
.hero__cardHint{ margin: 0; color: #d8c4a3; font-size: 13px; }

/* ===========================
   Buttons
   =========================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(88,72,46,.28);
  background: rgba(255,255,255,.60);
  padding: 10px 14px;
  cursor:pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
  user-select:none;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(200,137,98,.35);
}
.btn:active{ transform: translateY(0); }
.btn--primary{
  background: linear-gradient(180deg, rgba(127,157,130,.34), rgba(127,157,130,.18));
  border-color: rgba(127,157,130,.38);
}
.btn--primary:hover{
  border-color: rgba(127,157,130,.55);
}
.btn--ghost{
  background: rgba(255,255,255,.20);
}
.btn--small{
  padding: 8px 12px;
  font-size: 13px;
}
.btn--danger{
  background: rgba(154,79,94,.14);
  border-color: rgba(154,79,94,.30);
}

/* Focus for keyboard users */
:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 12px;
}

/* ===========================
   Product grid/cards
   =========================== */

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.product{
  overflow:hidden;
  color: #d8c4a3;
  border-radius: var(--r-lg);
  padding: 0; /* product has its own internal spacing to avoid border/text collisions */
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(250,245,232,.88));
  transition: transform 420ms var(--ease2), box-shadow 420ms var(--ease2);
}
.product:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product__imgWrap{
  position:relative;
  border-bottom: 1px solid rgba(88,72,46,.18);
  background: rgba(255,255,255,.40);
}
.product__img{
  width: 100%;
  height: 230px;
  object-fit: cover;
  display:block;
}
.badge{
  position:absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(127,157,130,.40);
  background: rgba(127,157,130,.18);
  color: rgba(34,28,20,.85);
  backdrop-filter: blur(6px);
}

.product__body{
  color: #d8c4a3;
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.product__meta{
  color: #d8c4a3;
  min-width:0;
}
.product__name{
  margin:0;
  color: #d8c4a3;
  font-weight: 800;
  letter-spacing:.2px;
  line-height: 1.25;
}
.product__cat{
  color: #d8c4a3;
  margin: 4px 0 0;
  color: rgba(34,28,20,.62);
  font-size: 13px;
}

.product__row{
  color: #d8c4a3;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.price{
  display:flex;
  color: #d8c4a3;
  align-items:baseline;
  gap: 10px;
}
.price__now{
  color: #d8c4a3;
  font-weight: 900;
  letter-spacing:.2px;
}
.price__was{
  color: #d8c4a3;
  font-size: 13px;
  color: rgba(34,28,20,.52);
  text-decoration: line-through;
}

/* ===========================
   Story / Gallery
   =========================== */

.story__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.story__card{ padding: var(--pad-2); border-radius: var(--r-lg); }
.story__title{
  margin:0 0 8px;
  font-family: Georgia, serif;
  font-weight: 800;
}
.story__text{ margin:0; 
  color: #d8c4a3; }

.gallery{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gallery__item{
  border-radius: var(--r-lg);
  overflow:hidden;
  border: 1px solid rgba(88,72,46,.20);
  background: rgba(45, 27, 8, 0.53);
  transition: transform 420ms var(--ease2), box-shadow 420ms var(--ease2);
}
.gallery__item:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ===========================
   Forms (fix border/text overlap)
   =========================== */

.form{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap: 10px;
}
.form--stack{
  flex-direction:column;
  align-items:stretch;
  gap: 12px;
}

.form__row{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.field{
  display:flex;
  flex-direction:column;
  gap: 6px;
  min-width: 0;
}

.label{
  color: #d8c4a3;
  font-size: 13px;
}

.input,.textarea,.select{
  width:100%;
  border-radius: var(--r-sm);
  border: 1px solid rgba(88,72,46,.22);
  background: rgba(255,255,255,.58);
  padding: 11px 12px;
  line-height: 1.35; /* prevents text from touching borders */
  box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
}
.input::placeholder,
.textarea::placeholder{
  color: rgba(34,28,20,.45);
}
.textarea{
  resize: vertical;
  min-height: 130px;
}

.select{
  padding-right: 34px;
}

.form__hint{
  margin:0;
  color: #d8c4a3;
  font-size: 13px;
}

.srOnly{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* Alert/flash */
.alert{
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--danger-line);
  background: var(--danger);
}

/* ===========================
   Shop page controls (new look)
   =========================== */

.shopControls{
  padding: var(--pad-2);
  border-radius: var(--r-lg);
  background:
    radial-gradient(240px 160px at 10% 0%, rgba(127,157,130,.16), transparent 70%),
    radial-gradient(240px 160px at 95% 10%, rgba(200,137,98,.14), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(240,233,216,.70));
}

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

.controls__row{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items:end;
}

.controls__actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  align-items:end;
}

.grid--shop{
  margin-top: 14px;
}

/* Pagination */
.pager{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  flex-wrap:wrap;
}
.pager__btn,
.pager__page{
  border: 1px solid rgba(88,72,46,.22);
  background: rgba(255,255,255,.52);
  border-radius: 999px;
  padding: 8px 12px;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.pager__btn:hover,
.pager__page:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(200,137,98,.35);
}
.pager__page.is-active{
  background: rgba(200,137,98,.16);
  border-color: rgba(200,137,98,.40);
}
.is-disabled{
  opacity:.45;
  pointer-events:none;
}

/* Empty states */
.empty{
  padding: var(--pad-3);
  border-radius: var(--r-lg);
}
.empty__title{
  margin:0 0 8px;
  font-family: Georgia, serif;
  font-weight: 800;
}
.empty__text{ margin:0; color: #d8c4a3; }

/* ===========================
   Checkout summary
   =========================== */

.checkoutLayout{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.checkoutCard{ padding: var(--pad-3); }
.checkoutCard__title{
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-weight: 800;
}

.summary{
  padding: var(--pad-3);
  border-radius: var(--r-lg);
  background:
    radial-gradient(260px 180px at 60% 0%, rgba(183,154,75,.14), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(240,233,216,.72));
}
.summary__title{
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-weight: 800;
}
.summary__items{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.summary__row{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  color: #d8c4a3;
}
.summary__total{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(88,72,46,.18);
  display:flex;
  justify-content:space-between;
}
.summary__back{
  margin-top: 12px;
  width:100%;
}

/* Payment notice */
.notice{
  padding: var(--pad-3);
  border-radius: var(--r-lg);
}
.notice__title{
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-weight: 900;
}
.notice__text{
  margin:0 0 10px;
  color: rgba(34,28,20,.75);
}
.notice__meta{
  margin:0 0 14px;
  color: #d8c4a3;
}

/* ===========================
   Admin tables (cleaner)
   =========================== */

.tableCard{
  padding: var(--pad-2);
  border-radius: var(--r-lg);
  overflow:auto;
}

.table{
  width:100%;
  border-collapse: collapse;
  min-width: 720px;
}
.table th,
.table td{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(88,72,46,.16);
  text-align:left;
  font-size: 14px;
  vertical-align: middle;
}
.table th{
  font-weight: 800;
  color: #d8c4a3;
  background: rgba(45, 27, 8, 0.53);
}

.tdActions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
  white-space: nowrap;
}

.inline{ display:inline; }

.check{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* ===========================
   Footer
   =========================== */

.siteFooter{
  margin-top:auto;
  border-top: 1px solid rgba(88,72,46,.18);
  background: rgba(240,233,216,.62);
  padding: 18px 0 14px;
}

.footerGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.footerBrand{
  margin:0 0 6px;
  font-family: Georgia, serif;
  font-weight: 900;
}
.footerNote{ margin:0; color: rgba(34,28,20,.66); }

.footerHead{
  margin:0 0 8px;
  font-weight: 800;
  color: #d8c4a3;
}
.footerLink{
  display:block;
  padding: 6px 0;
  color: #d8c4a3;
}

.footerBottom{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(88,72,46,.16);
  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
  color: rgba(34,28,20,.62);
}

/* ===========================
   Cart drawer
   =========================== */

.cart{
  position:fixed;
  inset:0;
  z-index: 200;
  opacity:0;
  pointer-events:none;
  transition: opacity 220ms var(--ease);
}
.cart.is-open{
  opacity:1;
  pointer-events:auto;
}
.cart__backdrop{
  position:absolute;
  inset:0;
  background: rgba(18,14,10,.22);
}
.cart__panel{
  position:absolute;
  right: 12px;
  top: 12px;
  bottom: 12px;
  width: min(420px, calc(100% - 24px));
  border-radius: var(--r-lg);
  border: 1px solid rgba(88,72,46,.22);
  background: rgba(36, 79, 51, 0.98);
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  transform: translateY(6px);
  transition: transform 220ms var(--ease);
}
.cart.is-open .cart__panel{ transform: translateY(0); }

.cart__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px;
  border-bottom: 1px solid rgba(88,72,46,.16);
  background: rgba(45, 27, 8, 0.53);
}
.cart__title{
  margin:0;
  font-family: Georgia, serif;
  font-weight: 900;
}
.cart__close{
  border: 1px solid rgba(88,72,46,.22);
  background: rgba(255,255,255,.55);
  border-radius: 12px;
  padding: 8px 10px;
  cursor:pointer;
}
.cart__items{
  padding: 14px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.cartItem{
  display:grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items:center;
  border-radius: var(--r-md);
  border: 1px solid rgba(88,72,46,.16);
  background: rgba(134, 111, 56, 0.4);
  padding: 10px;
}
.cartItem__img{
  width:56px;
  height:56px;
  border-radius: 14px;
  border: 1px solid rgba(88,72,46,.16);
  object-fit:cover;
}
.cartItem__name{
  margin:0;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
}
.cartItem__meta{
  margin:2px 0 0;
  color: rgba(34,28,20,.62);
  font-size: 13px;
}
.cartItem__controls{
  display:flex;
  gap: 8px;
  align-items:center;
  justify-content:flex-end;
}
.qtyBtn{
  border-radius: 12px;
  border: 1px solid rgba(88,72,46,.20);
  background: rgba(255,255,255,.60);
  padding: 6px 9px;
  cursor:pointer;
}
.qtyNum{
  min-width: 18px;
  text-align:center;
  color: #d8c4a3;
}

.cart__foot{
  border-top: 1px solid rgba(88,72,46,.16);
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  background: rgba(45, 27, 8, 0.53);
}
.cart__total{
  display:flex;
  justify-content:space-between;
}
.cart__checkout{
  width:100%;
}
.cart__hint{
  margin:0;
  color: #d8c4a3;
  font-size: 13px;
}

/* ===========================
   Reveal animation
   =========================== */

.reveal{
  opacity:0;
  transform: translateY(10px);
  transition: opacity 600ms var(--ease2), transform 600ms var(--ease2);
}
.reveal.is-in{
  opacity:1;
  transform: translateY(0);
}

/* ===========================
   Responsive enhancements
   =========================== */

@media (min-width: 720px){
  .hero__inner{
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
  }
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .story__grid{ grid-template-columns: repeat(3, 1fr); }
  .gallery{ grid-template-columns: repeat(4, 1fr); }
  .form__row{ grid-template-columns: 1fr 1fr; }
  .controls__row{ grid-template-columns: 1fr 1fr; }
  .footerGrid{ grid-template-columns: 1.2fr 1fr 1fr 1fr; }
  .checkoutLayout{ grid-template-columns: 1.2fr .8fr; }
}

@media (min-width: 980px){
  .grid{ grid-template-columns: repeat(3, 1fr); }
  .grid--shop{ grid-template-columns: repeat(4, 1fr); }
  .product__img{ height: 210px; }
}

/* ===========================
   Reduced motion
   =========================== */

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; }
  .reveal, .product, .btn, .cart, .cart__panel, .gallery__item{ transition:none !important; }
}
/* ---------- Carousel (shop cards) ---------- */

.carousel{
  position: relative;
  overflow: hidden;
}

.carousel__viewport{
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel__track{
  display: flex;
  width: 100%;
}

.carousel__slide{
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.carousel__btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 1px solid rgba(88,72,46,.25);
  background: rgba(255,255,255,.70);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  user-select: none;
}
.carousel__btn--prev{ left: 10px; }
.carousel__btn--next{ right: 10px; }
.carousel__btn.is-disabled{ opacity: .45; pointer-events: none; }

/* Make buttons appear more on desktop */
@media (hover:hover) and (pointer:fine){
  .carousel__btn{ opacity: .95; }
}

/* Description line */
.product__desc{
  margin: 10px 0 0;

  color: #d8c4a3;
  color: rgba(34,28,20,.72);
  font-size: 13px;
  line-height: 1.45;
}

/* ---------- Lightbox ---------- */

.noScroll{ overflow: hidden; }

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.lightbox.is-open{
  opacity: 1;
  pointer-events: auto;
}

.lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(10,8,6,.55);
}

.lightbox__panel{
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  bottom: 12px;
  background: rgba(251,247,236,.98);
  border: 1px solid rgba(88,72,46,.22);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,.20);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lightbox__head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(88,72,46,.16);
  background: rgba(45, 27, 8, 0.53);
}

.lightbox__title{
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox__close{
  border: 1px solid rgba(88,72,46,.22);
  background: rgba(255,255,255,.65);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

.lightbox__body{
  background: rgba(255,255,255,.65);
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.lightbox__img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(88,72,46,.14);
  background: rgba(255,255,255,.45);
}

.lightbox__btn{
  border-radius: 999px;
  border: 1px solid rgba(88,72,46,.25);
  background: rgba(255,255,255,.75);
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.lightbox__btn.is-disabled{ opacity: .45; pointer-events: none; }

.lightbox__meta{
  padding: 10px 14px;
  border-top: 1px solid rgba(88,72,46,.16);
  color: #d8c4a3;
  font-size: 13px;
}

@media (min-width: 860px){
  .lightbox__panel{
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, calc(100% - 48px));
  }
}
.fadeReady { transition: opacity 240ms cubic-bezier(0.4,0,0.2,1); }
.fadeReady.isFading { opacity: 0; }
/* ---------- Fade nav (JS toggles classes) ---------- */
.fadeReady { transition: opacity 240ms cubic-bezier(0.4,0,0.2,1); }
.fadeReady.isFading { opacity: 0; }

/* ---------- Cart overlay: prevents accidental close ---------- */
/* Expectation:
   [data-cart] is the overlay container
   inside it, the visible drawer/panel should be a distinct element (first child is fine).
*/
[data-cart]{
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
}
[data-cart].is-open{ display: block; }

/* Backdrop layer (if you have a dedicated element with data-cart-backdrop, this styles it) */
[data-cart] [data-cart-backdrop]{
  position:absolute;
  inset:0;
  background: rgba(10,8,6,.45);
}

/* Panel should sit above backdrop */
[data-cart] [data-cart-panel]{
  position:absolute;
  right: 12px;
  top: 12px;
  bottom: 12px;
  width: min(420px, calc(100% - 24px));
  border-radius: 22px;
  overflow: hidden;
  z-index: 1;
}

/* If you DON'T have data-cart-panel in markup, at least keep first child above backdrop */
[data-cart] > *{
  position: relative;
  z-index: 1;
}

/* ---------- Carousel essentials ---------- */
.carousel{ position:relative; overflow:hidden; }
.carousel__viewport{
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.carousel__track{ display:flex; width:100%; }
.carousel__slide{
  flex:0 0 100%;
  scroll-snap-align:start;
  border:0;
  padding:0;
  background:transparent;
  cursor: zoom-in;
}
.carousel__btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid rgba(88,72,46,.25);
  background:rgba(255,255,255,.75);
  z-index:2;
}
.carousel__btn--prev{ left:10px; }
.carousel__btn--next{ right:10px; }
.carousel__btn.is-disabled{ opacity:.45; pointer-events:none; }

/* ---------- Lightbox: center image correctly ---------- */
.noScroll{ overflow:hidden; }

.lightbox{
  position:fixed;
  inset:0;
  z-index:999;
  opacity:0;
  pointer-events:none;
  transition: opacity 220ms ease;
}
.lightbox.is-open{ opacity:1; pointer-events:auto; }

.lightbox__backdrop{
  position:absolute;
  inset:0;
  background:rgba(10,8,6,.55);
}

.lightbox__panel{
  position:absolute;
  left:12px;
  right:12px;
  top:12px;
  bottom:12px;
  border-radius:24px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

/* ✅ Switch body to centered flex; buttons absolute so they don't push image */
.lightbox__body{
  background: rgba(255,255,255,.65);
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.lightbox__img{
  display:block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
}

/* Buttons sit over the image area without affecting centering */
.lightbox__btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
}
.lightbox__btn--prev{ left: 12px; }
.lightbox__btn--next{ right: 12px; }
.lightbox__btn.is-disabled{ opacity:.45; pointer-events:none; }

@media (min-width: 860px){
  .lightbox__panel{
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, calc(100% - 48px));
  }
}
/* ============================================================
   Hermits Holistics — Mobile-first site styles (CSP-safe)
   ============================================================ */

:root{
  --bg: #fbf5ea;
  --bg2:#f2e7d7;
  --card:#ffffffcc;
  --ink:#1f1a14;
  --muted:#5b5147;

  --brand:#2a6f6b;      /* teal */
  --brand2:#a25b2a;     /* warm clay */
  --accent:#7a3db8;     /* violet */
  --gold:#c58b2e;

  --line: rgba(31,26,20,.14);
  --line2: rgba(31,26,20,.10);
  --shadow: 0 18px 42px rgba(0,0,0,.12);

  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 14px;

  --pad: 14px;
  --wrap: 1120px;

  --focus: 0 0 0 3px rgba(42,111,107,.25);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--ink);
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(42,111,107,.10), transparent 55%),
    radial-gradient(800px 480px at 90% 0%, rgba(162,91,42,.10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  line-height:1.45;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button,input,select,textarea{ font:inherit; }

.noScroll{ overflow:hidden; }

/* ---------- Layout ---------- */

.wrap{
  width: min(var(--wrap), calc(100% - 2*var(--pad)));
  margin: 0 auto;
}

.main{ padding: 18px 0 36px; }

.section{ padding: 14px 0; }
.section__head{ margin-bottom: 14px; }
.section__title{
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.section__sub{
  margin:0;
  color: rgba(31,26,20,.72);
  max-width: 68ch;
}

/* Reveal animation (class only) */
.reveal{ opacity: 0; transform: translateY(10px); transition: opacity 420ms ease, transform 420ms ease; }
.reveal.is-in{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ transition:none; opacity:1; transform:none; }
}

/* ---------- Cards & UI ---------- */

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  backdrop-filter: blur(8px);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  user-select:none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
  background: rgba(255,255,255,.70);
}
.btn:active{ transform: translateY(1px); }
.btn:focus{ outline:none; box-shadow: var(--focus); }
.btn--primary{
  background: linear-gradient(180deg, rgba(42,111,107,.92), rgba(42,111,107,.82));
  border-color: rgba(42,111,107,.25);
  color: #fff;
}
.btn--ghost{
  background: rgba(255,255,255,.55);
}
.btn--danger{
  background: linear-gradient(180deg, rgba(162,56,42,.92), rgba(162,56,42,.82));
  border-color: rgba(162,56,42,.25);
  color:#fff;
}
.btn--small{
  padding: 9px 12px;
  font-size: 14px;
}

.label{ display:block; font-weight:700; font-size: 13px; margin-bottom: 6px; color: #d8c4a3; }
.input,.select,.textarea{
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.70);
  padding: 11px 12px;
}
.textarea{ resize: vertical; min-height: 110px; }
.input:focus,.select:focus,.textarea:focus{ outline:none; box-shadow: var(--focus); }
.form__hint{ margin: 8px 0 0; color: rgba(31,26,20,.68); font-size: 13px; }

.alert{
  border: 1px solid rgba(162,56,42,.35);
  background: rgba(162,56,42,.10);
  color: rgba(31,26,20,.92);
  padding: 12px 14px;
  border-radius: var(--r-md);
}

/* ---------- Shop controls ---------- */

.shopControls{ padding: 14px; margin-bottom: 14px; }
.controls{ display:flex; flex-direction:column; gap: 12px; }
.controls__row{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.controls__actions{ display:flex; gap: 10px; align-items:center; }

.field{ display:flex; flex-direction:column; }

@media (min-width: 760px){
  .controls__row{ flex-direction:row; align-items:end; }
  .controls__row .label{ margin-bottom:6px; color: #d8c4a3; }
  .field{ min-width: 160px; }
  .controls__actions{ margin-left:auto; }
}

/* ---------- Grid ---------- */

.grid{
  display:grid;
  gap: 14px;
}
.grid--shop{
  padding: 0 2px; /* helps avoid edge clipping with rounded corners */
  grid-template-columns: 1fr;
}
@media (min-width: 560px){
  .grid--shop{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px){
  .grid--shop{ grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Product cards ---------- */

.product{ overflow:hidden; }
.product__imgWrap{
  position: relative;
  border-bottom: 1px solid var(--line2);
  background:
    radial-gradient(520px 180px at 20% 0%, rgba(42,111,107,.14), transparent 55%),
    radial-gradient(520px 180px at 80% 0%, rgba(162,91,42,.12), transparent 55%),
    rgba(255,255,255,.65);
}
.product__img{
  width:100%;
  height: 240px;
  object-fit: cover;
}
@media (min-width: 560px){
  .product__img{ height: 220px; }
}
@media (min-width: 980px){
  .product__img{ height: 230px; }
}

.badge{
  position:absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(122,61,184,.95), rgba(122,61,184,.78));
  color:#fff;
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 800;
  font-size: 12px;
}

.product__body{ padding: 14px; display:flex; flex-direction:column; gap: 12px; color: #d8c4a3; }
.product__name{ margin:0; font-size: 18px; letter-spacing:-0.01em; }
.product__cat{ margin: 4px 0 0; color: #d8c4a3; font-size: 13px; }
.product__desc{ margin: 10px 0 0; color: #d8c4a3; font-size: 13px; line-height: 1.45; }

.product__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.price{ display:flex; align-items:baseline; gap: 10px; }
.price__now{ font-weight: 900; font-size: 18px; color: #d8c4a3; }
.price__was{ font-size: 13px; color: #d8c4a3; text-decoration: line-through; }

/* ---------- Pager ---------- */

.pager{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  margin-top: 16px;
}
.pager__btn, .pager__page{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.65);
}
.pager__btn.is-disabled{ opacity:.45; pointer-events:none; }
.pager__pages{ display:flex; gap: 8px; }
.pager__page.is-active{
  background: linear-gradient(180deg, rgba(197,139,46,.90), rgba(197,139,46,.70));
  color:#fff;
  border-color: rgba(197,139,46,.35);
}

/* ---------- Fade nav ---------- */
.fadeReady{ transition: opacity 240ms cubic-bezier(0.4,0,0.2,1); }
.fadeReady.isFading{ opacity: 0; }

/* ============================================================
   Carousel (shop cards)
   ============================================================ */

.carousel{ position: relative; }
.carousel__viewport{
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel__viewport::-webkit-scrollbar{ display:none; }

.carousel__track{
  display:flex;
  width: 100%;
}
.carousel__slide{
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
  cursor: pointer;
}
.carousel__btn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(31,26,20,.18);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
  z-index: 3;
  cursor: pointer;
}
.carousel__btn--prev{ left: 10px; }
.carousel__btn--next{ right: 10px; }
.carousel__btn.is-disabled{ opacity:.45; pointer-events:none; }

/* Zoom button */
.zoomBtn{
  position:absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(31,26,20,.18);
  background: rgba(255,255,255,.85);
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
  cursor:pointer;
}
.zoomBtn:focus{ outline:none; box-shadow: var(--focus); }

/* ============================================================
   Cart Drawer (right sidebar)
   ============================================================ */

[data-cart]{
  position: fixed;
  inset: 0;
  z-index: 950;
  pointer-events: none;
}
[data-cart].is-open{ pointer-events: auto; }

/* Backdrop we inject via JS */
.cartBackdrop,
[data-cart] [data-cart-backdrop]{
  position:absolute;
  inset:0;
  background: rgba(10,8,6,.48);
  opacity: 0;
  transition: opacity 200ms ease;
}
[data-cart].is-open .cartBackdrop,
[data-cart].is-open [data-cart-backdrop]{
  opacity: 1;
}

/* Panel: we assume your existing panel is the last child inside [data-cart]
   If you have data-cart-panel it will match too. */
[data-cart] [data-cart-panel],
[data-cart] > :not([data-cart-backdrop]):not(.cartBackdrop){
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);
  transform: translateX(110%);
  transition: transform 220ms cubic-bezier(0.2,0.7,0.2,1);
  border-left: 1px solid var(--line);
  background: rgba(5, 49, 10, 0.98);
  box-shadow: -18px 0 44px rgba(0,0,0,.18);
  overflow: auto;
  border-top-left-radius: var(--r-lg);
  border-bottom-left-radius: var(--r-lg);
}

[data-cart].is-open [data-cart-panel],
[data-cart].is-open > :not([data-cart-backdrop]):not(.cartBackdrop){
  transform: translateX(0);
}

/* Cart item UI helpers (won't break if your markup differs) */
.cartItem{ display:flex; gap: 10px; align-items:center; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.cartItem__img{ width: 46px; height: 46px; border-radius: 14px; object-fit: cover; border:1px solid var(--line2); background: rgba(255,255,255,.6); }
.cartItem__name{ margin:0; font-weight: 850; font-size: 14px; }
.cartItem__meta{ margin:4px 0 0; color: rgba(31,26,20,.70); font-size: 12px; }
.cartItem__controls{ margin-left:auto; display:flex; align-items:center; gap: 8px; }
.qtyBtn{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.75);
  cursor:pointer;
}
.qtyNum{ min-width: 18px; text-align:center; font-weight: 800; }

/* ============================================================
   Lightbox (centered image)
   ============================================================ */

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.lightbox.is-open{ opacity: 1; pointer-events:auto; }

.lightbox__backdrop{
  position:absolute;
  inset:0;
  background: rgba(10,8,6,.62);
}

.lightbox__panel{
  position:absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  bottom: 12px;
  background: rgba(251,245,234,.98);
  border: 1px solid rgba(31,26,20,.18);
  border-radius: var(--r-lg);
  overflow:hidden;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
}

.lightbox__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line2);
  background: rgba(255,255,255,.50);
}
.lightbox__title{ font-weight: 900; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lightbox__close{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.75);
  cursor:pointer;
}

.lightbox__body{
  background: rgba(255,255,255,.65);
  position: relative;
  flex: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 12px;
}
.lightbox__img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  border-radius: var(--r-md);
  border: 1px solid rgba(31,26,20,.14);
  background: rgba(255,255,255,.50);
}

.lightbox__btn{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border:1px solid rgba(31,26,20,.18);
  background: rgba(255,255,255,.82);
  cursor:pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}
.lightbox__btn--prev{ left: 12px; }
.lightbox__btn--next{ right: 12px; }
.lightbox__btn.is-disabled{ opacity:.45; pointer-events:none; }

.lightbox__meta{
  padding: 10px 14px;
  border-top: 1px solid var(--line2);
  color: rgba(31,26,20,.70);
  font-size: 13px;
}

@media (min-width: 860px){
  .lightbox__panel{
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, calc(100% - 48px));
  }
}
/* ===========================
   Hermits Holistics — Style v2
   Mobile-first • CSP-safe
   Fix rounded border/text collisions
   Add warm/herbal palette (less monotone)
   Improve shop layout + readability
   =========================== */

:root{
  /* Core palette */
  --bg: #fbf7ec;
  --surface: rgba(255,255,255,.55);
  --card: rgba(250,245,232,.88);
  --card-2: rgba(240,233,216,.70);
  --ink: rgba(34,28,20,.92);
  --muted: rgba(34,28,20,.68);
  --line: rgba(88,72,46,.22);
  --shadow: 0 12px 30px rgba(40,32,20,.10);

  /* Accents */
  --sage: #7f9d82;
  --sage-2: #a9c6ac;
  --clay: #c88962;
  --clay-2: #e7b590;
  --berry: #9a4f5e;
  --gold: #b79a4b;

  /* UI */
  --focus: rgba(127,157,130,.55);
  --danger: rgba(154,79,94,.18);
  --danger-line: rgba(154,79,94,.35);

  /* Radius + spacing (prevents border cutting text) */
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 14px;

  --pad-1: 12px;
  --pad-2: 16px;
  --pad-3: 20px;

  /* Motion */
  --ease: cubic-bezier(.25,.1,.25,1);
  --ease2: cubic-bezier(.4,0,.2,1);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(900px 380px at 12% 8%, rgba(127,157,130,.16), transparent 60%),
    radial-gradient(920px 420px at 88% 10%, rgba(200,137,98,.14), transparent 55%),
    radial-gradient(740px 420px at 50% 92%, rgba(183,154,75,.10), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.5;
  display:flex;
  flex-direction:column;
}

a{ color: inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button,input,select,textarea{ font: inherit; color: inherit; }

.wrap{
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

/* Accessible skip link */
.skip{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip:focus{
  position:fixed;
  left:14px;
  top:14px;
  width:auto;
  height:auto;
  z-index:9999;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
}

/* ===========================
   Header / Nav
   =========================== */

.siteHeader{
  position: sticky;
  top:0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(251,247,236,.82);
  backdrop-filter: blur(8px);
}

.siteHeader__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
.brand__logo{
  width: 36px;
  height: 36px;
  opacity: .95;
  flex: 0 0 auto;
}
.brand__name{
  font-family: Georgia, serif;
  font-weight: 750;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.nav__link{
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #d8c4a3;
  transition: background 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}
.nav__link:hover{
  background: rgba(255,255,255,.55);
  border-color: rgba(127,157,130,.25);
  transform: translateY(-1px);
}
.nav__link.is-active{
  background: rgba(255,255,255,.72);
  border-color: rgba(200,137,98,.35);
}

.nav__cart{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(88,72,46,.28);
  background: linear-gradient(180deg, rgba(255,255,255,.60), rgba(240,233,216,.55));
  padding: 9px 12px;
  cursor:pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.nav__cart:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(200,137,98,.35);
}
.nav__cartCount{
  display:inline-block;
  min-width: 22px;
  text-align:center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(127,157,130,.16);
  border: 1px solid rgba(127,157,130,.26);
  font-size: 12px;
}

/* ===========================
   Global sections / cards
   =========================== */

.main{ flex: 1; }
.section{ padding: 34px 0; }

.section__head{ margin-bottom: 18px; }
.section__title{
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: clamp(24px, 2.8vw, 36px);
}
.section__sub{
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(250,245,232,.85));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  /* Important: prevents border from visually touching text */
  padding: var(--pad-2);
}

/* Smaller cards should still have safe padding */
.card--tight{ padding: var(--pad-1); border-radius: var(--r-md); }
.card--flat{ background: rgba(255,255,255,.50); }

.kicker{
  margin: 0 0 10px;
  color: rgba(34,28,20,.62);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
}

/* ===========================
   Hero
   =========================== */

.hero{
  padding: 30px 0 12px;
}
.hero__inner{
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}
.hero__title{
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-weight: 850;
  line-height: 1.07;
  letter-spacing: .2px;
  font-size: clamp(30px, 4.2vw, 48px);
}
.hero__sub{
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 62ch;
}
.hero__cta{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}

.hero__panel{
  position:relative;
  border-radius: var(--r-lg);
  border: 1px solid rgba(88,72,46,.22);
  overflow:hidden;
  min-height: 220px;
  background:
    radial-gradient(240px 240px at 18% 24%, rgba(127,157,130,.22), transparent 62%),
    radial-gradient(280px 280px at 86% 22%, rgba(200,137,98,.20), transparent 64%),
    radial-gradient(280px 280px at 52% 86%, rgba(183,154,75,.14), transparent 66%),
    rgba(255,255,255,.42);
}
.hero__card{
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(88,72,46,.20);
  padding: 14px;
}
.hero__cardTop{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.chip{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(88,72,46,.20);
  background: rgba(240,233,216,.72);
  color: #d8c4a3;
}
.hero__cardText{ margin: 0 0 10px; color: #d8c4a3; }
.hero__cardHint{ margin: 0; color: #d8c4a3; font-size: 13px; }

/* ===========================
   Buttons
   =========================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(88,72,46,.28);
  background: rgba(255,255,255,.60);
  padding: 10px 14px;
  cursor:pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
  user-select:none;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(200,137,98,.35);
}
.btn:active{ transform: translateY(0); }
.btn--primary{
  background: linear-gradient(180deg, rgba(127,157,130,.34), rgba(127,157,130,.18));
  border-color: rgba(127,157,130,.38);
}
.btn--primary:hover{
  border-color: rgba(127,157,130,.55);
}
.btn--ghost{
  background: rgba(255,255,255,.20);
}
.btn--small{
  padding: 8px 12px;
  font-size: 13px;
}
.btn--danger{
  background: rgba(154,79,94,.14);
  border-color: rgba(154,79,94,.30);
}

/* Focus for keyboard users */
:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 12px;
}

/* ===========================
   Product grid/cards
   =========================== */

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.product{
  overflow:hidden;
  border-radius: var(--r-lg);
  padding: 0; /* product has its own internal spacing to avoid border/text collisions */
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(250,245,232,.88));
  transition: transform 420ms var(--ease2), box-shadow 420ms var(--ease2);
}
.product:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product__imgWrap{
  position:relative;
  border-bottom: 1px solid rgba(88,72,46,.18);
  background: rgba(255,255,255,.40);
}
.product__img{
  width: 100%;
  height: 230px;
  object-fit: cover;
  display:block;
}
.badge{
  position:absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(127,157,130,.40);
  background: rgba(127,157,130,.18);
  color: rgba(34,28,20,.85);
  backdrop-filter: blur(6px);
}

.product__body{
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.product__meta{
  min-width:0;
}
.product__name{
  margin:0;
  font-weight: 800;
  letter-spacing:.2px;
  line-height: 1.25;
}
.product__cat{
  margin: 4px 0 0;
  color: rgba(34,28,20,.62);
  font-size: 13px;
}

.product__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.price{
  display:flex;
  align-items:baseline;
  gap: 10px;
}
.price__now{
  font-weight: 900;
  letter-spacing:.2px;
}
.price__was{
  font-size: 13px;
  color: rgba(34,28,20,.52);
  text-decoration: line-through;
}

/* ===========================
   Story / Gallery
   =========================== */

.story__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.story__card{ padding: var(--pad-2); border-radius: var(--r-lg); }
.story__title{
  margin:0 0 8px;
  font-family: Georgia, serif;
  font-weight: 800;
}
.story__text{ margin:0; 
  color: #d8c4a3; }

.gallery{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gallery__item{
  border-radius: var(--r-lg);
  overflow:hidden;
  border: 1px solid rgba(88,72,46,.20);
  background: rgba(45, 27, 8, 0.53);
  transition: transform 420ms var(--ease2), box-shadow 420ms var(--ease2);
}
.gallery__item:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ===========================
   Forms (fix border/text overlap)
   =========================== */

.form{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap: 10px;
}
.form--stack{
  flex-direction:column;
  align-items:stretch;
  gap: 12px;
}

.form__row{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.field{
  display:flex;
  flex-direction:column;
  gap: 6px;
  min-width: 0;
}

.label{
  color: #d8c4a3;
  font-size: 13px;
}

.input,.textarea,.select{
  width:100%;
  border-radius: var(--r-sm);
  border: 1px solid rgba(88,72,46,.22);
  background: rgba(255,255,255,.58);
  padding: 11px 12px;
  line-height: 1.35; /* prevents text from touching borders */
  box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
}
.input::placeholder,
.textarea::placeholder{
  color: rgba(34,28,20,.45);
}
.textarea{
  resize: vertical;
  min-height: 130px;
}

.select{
  padding-right: 34px;
}

.form__hint{
  margin:0;
  color: #d8c4a3;
  font-size: 13px;
}

.srOnly{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* Alert/flash */
.alert{
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--danger-line);
  background: var(--danger);
}

/* ===========================
   Shop page controls (new look)
   =========================== */

.shopControls{
  padding: var(--pad-2);
  border-radius: var(--r-lg);
  background:
    radial-gradient(240px 160px at 10% 0%, rgba(127,157,130,.16), transparent 70%),
    radial-gradient(240px 160px at 95% 10%, rgba(200,137,98,.14), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(240,233,216,.70));
}

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

.controls__row{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items:end;
}

.controls__actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  align-items:end;
}

.grid--shop{
  margin-top: 14px;
}

/* Pagination */
.pager{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  flex-wrap:wrap;
}
.pager__btn,
.pager__page{
  border: 1px solid rgba(88,72,46,.22);
  background: rgba(255,255,255,.52);
  border-radius: 999px;
  padding: 8px 12px;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.pager__btn:hover,
.pager__page:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(200,137,98,.35);
}
.pager__page.is-active{
  background: rgba(200,137,98,.16);
  border-color: rgba(200,137,98,.40);
}
.is-disabled{
  opacity:.45;
  pointer-events:none;
}

/* Empty states */
.empty{
  padding: var(--pad-3);
  border-radius: var(--r-lg);
}
.empty__title{
  margin:0 0 8px;
  font-family: Georgia, serif;
  font-weight: 800;
}
.empty__text{ margin:0; color: #d8c4a3; }

/* ===========================
   Checkout summary
   =========================== */

.checkoutLayout{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.checkoutCard{ padding: var(--pad-3); }
.checkoutCard__title{
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-weight: 800;
}

.summary{
  padding: var(--pad-3);
  border-radius: var(--r-lg);
  background:
    radial-gradient(260px 180px at 60% 0%, rgba(183,154,75,.14), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(240,233,216,.72));
}
.summary__title{
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-weight: 800;
}
.summary__items{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.summary__row{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  color: #d8c4a3;
}
.summary__total{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(88,72,46,.18);
  display:flex;
  justify-content:space-between;
}
.summary__back{
  margin-top: 12px;
  width:100%;
}

/* Payment notice */
.notice{
  padding: var(--pad-3);
  border-radius: var(--r-lg);
}
.notice__title{
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-weight: 900;
}
.notice__text{
  margin:0 0 10px;
  color: rgba(34,28,20,.75);
}
.notice__meta{
  margin:0 0 14px;
  color: #d8c4a3;
}

/* ===========================
   Admin tables (cleaner)
   =========================== */

.tableCard{
  padding: var(--pad-2);
  border-radius: var(--r-lg);
  overflow:auto;
}

.table{
  width:100%;
  border-collapse: collapse;
  min-width: 720px;
}
.table th,
.table td{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(88,72,46,.16);
  text-align:left;
  font-size: 14px;
  vertical-align: middle;
}
.table th{
  font-weight: 800;
  color: #d8c4a3;
  background: rgba(45, 27, 8, 0.53);
}

.tdActions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
  white-space: nowrap;
}

.inline{ display:inline; }

.check{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* ===========================
   Footer
   =========================== */

.siteFooter{
  margin-top:auto;
  border-top: 1px solid rgba(88,72,46,.18);
  background: rgba(240,233,216,.62);
  padding: 18px 0 14px;
}

.footerGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.footerBrand{
  margin:0 0 6px;
  font-family: Georgia, serif;
  font-weight: 900;
}
.footerNote{ margin:0; color: rgba(34,28,20,.66); }

.footerHead{
  margin:0 0 8px;
  font-weight: 800;
  color: #d8c4a3;
}
.footerLink{
  display:block;
  padding: 6px 0;
  color: #d8c4a3;
}

.footerBottom{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(88,72,46,.16);
  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
  color: rgba(34,28,20,.62);
}

/* ===========================
   Cart drawer
   =========================== */

.cart{
  position:fixed;
  inset:0;
  z-index: 200;
  opacity:0;
  pointer-events:none;
  transition: opacity 220ms var(--ease);
}
.cart.is-open{
  opacity:1;
  pointer-events:auto;
}
.cart__backdrop{
  position:absolute;
  inset:0;
  background: rgba(18,14,10,.22);
}
.cart__panel{
  position:absolute;
  right: 12px;
  top: 12px;
  bottom: 12px;
  width: min(420px, calc(100% - 24px));
  border-radius: var(--r-lg);
  border: 1px solid rgba(88,72,46,.22);
  background: rgba(251,247,236,.96);
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  transform: translateY(6px);
  transition: transform 220ms var(--ease);
}
.cart.is-open .cart__panel{ transform: translateY(0); }

.cart__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px;
  border-bottom: 1px solid rgba(88,72,46,.16);
  background: rgba(45, 27, 8, 0.53);
}
.cart__title{
  margin:0;
  font-family: Georgia, serif;
  font-weight: 900;
}
.cart__close{
  border: 1px solid rgba(88,72,46,.22);
  background: rgba(255,255,255,.55);
  border-radius: 12px;
  padding: 8px 10px;
  cursor:pointer;
}
.cart__items{
  padding: 14px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.cartItem{
  display:grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items:center;
  border-radius: var(--r-md);
  border: 1px solid rgba(88,72,46,.16);
  background: rgba(255,255,255,.45);
  padding: 10px;
}
.cartItem__img{
  width:56px;
  height:56px;
  border-radius: 14px;
  border: 1px solid rgba(88,72,46,.16);
  object-fit:cover;
}
.cartItem__name{
  margin:0;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
}
.cartItem__meta{
  margin:2px 0 0;
  color: rgba(34,28,20,.62);
  font-size: 13px;
}
.cartItem__controls{
  display:flex;
  gap: 8px;
  align-items:center;
  justify-content:flex-end;
}
.qtyBtn{
  border-radius: 12px;
  border: 1px solid rgba(88,72,46,.20);
  background: rgba(255,255,255,.60);
  padding: 6px 9px;
  cursor:pointer;
}
.qtyNum{
  min-width: 18px;
  text-align:center;
  color: #d8c4a3;
}

.cart__foot{
  border-top: 1px solid rgba(88,72,46,.16);
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  background: rgba(45, 27, 8, 0.53);
}
.cart__total{
  display:flex;
  justify-content:space-between;
}
.cart__checkout{
  width:100%;
}
.cart__hint{
  margin:0;
  color: #d8c4a3;
  font-size: 13px;
}

/* ===========================
   Reveal animation
   =========================== */

.reveal{
  opacity:0;
  transform: translateY(10px);
  transition: opacity 600ms var(--ease2), transform 600ms var(--ease2);
}
.reveal.is-in{
  opacity:1;
  transform: translateY(0);
}

/* ===========================
   Responsive enhancements
   =========================== */

@media (min-width: 720px){
  .hero__inner{
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
  }
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .story__grid{ grid-template-columns: repeat(3, 1fr); }
  .gallery{ grid-template-columns: repeat(4, 1fr); }
  .form__row{ grid-template-columns: 1fr 1fr; }
  .controls__row{ grid-template-columns: 1fr 1fr; }
  .footerGrid{ grid-template-columns: 1.2fr 1fr 1fr 1fr; }
  .checkoutLayout{ grid-template-columns: 1.2fr .8fr; }
}

@media (min-width: 980px){
  .grid{ grid-template-columns: repeat(3, 1fr); }
  .grid--shop{ grid-template-columns: repeat(4, 1fr); }
  .product__img{ height: 210px; }
}

/* ===========================
   Reduced motion
   =========================== */

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; }
  .reveal, .product, .btn, .cart, .cart__panel, .gallery__item{ transition:none !important; }
}

/* ---------- Carousel (shop cards) ---------- */

.carousel{
  position: relative;
  overflow: hidden;
}

.carousel__viewport{
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel__track{
  display: flex;
  width: 100%;
}

.carousel__slide{
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.carousel__btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 1px solid rgba(88,72,46,.25);
  background: rgba(255,255,255,.70);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  user-select: none;
}
.carousel__btn--prev{ left: 10px; }
.carousel__btn--next{ right: 10px; }
.carousel__btn.is-disabled{ opacity: .45; pointer-events: none; }

/* Make buttons appear more on desktop */
@media (hover:hover) and (pointer:fine){
  .carousel__btn{ opacity: .95; }
}

/* Description line */
.product__desc{
  margin: 10px 0 0;
  color: rgba(34,28,20,.72);
  font-size: 13px;
  line-height: 1.45;
}

/* ---------- Lightbox ---------- */

.noScroll{ overflow: hidden; }

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.lightbox.is-open{
  opacity: 1;
  pointer-events: auto;
}

.lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(10,8,6,.55);
}

.lightbox__panel{
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  bottom: 12px;
  background: rgba(30, 64, 28, 0.98);
  border: 1px solid rgba(88,72,46,.22);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,.20);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lightbox__head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(88,72,46,.16);
  background: rgba(45, 27, 8, 0.53);
}

.lightbox__title{
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox__close{
  border: 1px solid rgba(88,72,46,.22);
  background: rgba(255,255,255,.65);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

.lightbox__body{
  background: rgba(255,255,255,.65);
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.lightbox__img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(88,72,46,.14);
  background: rgba(255,255,255,.45);
}

.lightbox__btn{
  border-radius: 999px;
  border: 1px solid rgba(88,72,46,.25);
  background: rgba(255,255,255,.75);
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.lightbox__btn.is-disabled{ opacity: .45; pointer-events: none; }

.lightbox__meta{
  padding: 10px 14px;
  border-top: 1px solid rgba(88,72,46,.16);
  color: #d8c4a3;
  font-size: 13px;
}

@media (min-width: 860px){
  .lightbox__panel{
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, calc(100% - 48px));
  }
}

.fadeReady { transition: opacity 240ms cubic-bezier(0.4,0,0.2,1); }
.fadeReady.isFading { opacity: 0; }
/* ---------- Fade nav (JS toggles classes) ---------- */
.fadeReady { transition: opacity 240ms cubic-bezier(0.4,0,0.2,1); }
.fadeReady.isFading { opacity: 0; }

/* ---------- Cart overlay: prevents accidental close ---------- */
/* Expectation:
   [data-cart] is the overlay container
   inside it, the visible drawer/panel should be a distinct element (first child is fine).
*/
[data-cart]{
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
}
[data-cart].is-open{ display: block; }

/* Backdrop layer (if you have a dedicated element with data-cart-backdrop, this styles it) */
[data-cart] [data-cart-backdrop]{
  position:absolute;
  inset:0;
  background: rgba(10,8,6,.45);
}

/* Panel should sit above backdrop */
[data-cart] [data-cart-panel]{
  position:absolute;
  right: 12px;
  top: 12px;
  bottom: 12px;
  width: min(420px, calc(100% - 24px));
  border-radius: 22px;
  overflow: hidden;
  z-index: 1;
}

/* If you DON'T have data-cart-panel in markup, at least keep first child above backdrop */
[data-cart] > *{
  position: relative;
  z-index: 1;
}

/* ---------- Carousel essentials ---------- */
.carousel{ position:relative; overflow:hidden; }
.carousel__viewport{
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.carousel__track{ display:flex; width:100%; }
.carousel__slide{
  flex:0 0 100%;
  scroll-snap-align:start;
  border:0;
  padding:0;
  background:transparent;
  cursor: zoom-in;
}
.carousel__btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid rgba(88,72,46,.25);
  background:rgba(255,255,255,.75);
  z-index:2;
}
.carousel__btn--prev{ left:10px; }
.carousel__btn--next{ right:10px; }
.carousel__btn.is-disabled{ opacity:.45; pointer-events:none; }

/* ---------- Lightbox: center image correctly ---------- */
.noScroll{ overflow:hidden; }

.lightbox{
  position:fixed;
  inset:0;
  z-index:999;
  opacity:0;
  pointer-events:none;
  transition: opacity 220ms ease;
}
.lightbox.is-open{ opacity:1; pointer-events:auto; }

.lightbox__backdrop{
  position:absolute;
  inset:0;
  background:rgba(10,8,6,.55);
}

.lightbox__panel{
  position:absolute;
  left:12px;
  right:12px;
  top:12px;
  bottom:12px;
  border-radius:24px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

/* ✅ Switch body to centered flex; buttons absolute so they don't push image */
.lightbox__body{
  background: rgba(255,255,255,.65);
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.lightbox__img{
  display:block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
}

/* Buttons sit over the image area without affecting centering */
.lightbox__btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
}
.lightbox__btn--prev{ left: 12px; }
.lightbox__btn--next{ right: 12px; }
.lightbox__btn.is-disabled{ opacity:.45; pointer-events:none; }

@media (min-width: 860px){
  .lightbox__panel{
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, calc(100% - 48px));
  }
}

/* ============================================================
   FINAL OVERRIDES (DO NOT REMOVE OLD CONFIGS)
   Fix: extra blank left panel when cart opens
   ============================================================ */

/* 1) Always treat [data-cart] as an overlay layer (not display none/block layout) */
[data-cart]{
  display: block !important;
  opacity: 0;
  pointer-events: none;
}
[data-cart].is-open{
  opacity: 1;
  pointer-events: auto;
}

/* 2) Make sure any .cart__backdrop behaves like a real backdrop inside [data-cart] */
[data-cart] .cart__backdrop{
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(18,14,10,.22) !important;
}

/* 3) Force the drawer panel to be ONLY the right sidebar:
      Prefer [data-cart-panel], otherwise use .cart__panel */
[data-cart] [data-cart-panel],
[data-cart] .cart__panel{
  position: absolute !important;
  top: 12px !important;
  bottom: 12px !important;
  right: 12px !important;
  left: auto !important;
  width: min(420px, calc(100% - 24px)) !important;
  height: auto !important;
  overflow: hidden !important;
  border-radius: var(--r-lg) !important;
  z-index: 3 !important;
  transform: translateX(110%) !important;
  transition: transform 220ms var(--ease2) !important;
}
[data-cart].is-open [data-cart-panel],
[data-cart].is-open .cart__panel{
  transform: translateX(0) !important;
}

/* 4) The “blank left panel” is almost always another direct child being styled
      by generic selectors. We neutralize/hide any extra direct children that are
      NOT the drawer panel and NOT a backdrop. */
[data-cart] > *{
  z-index: auto !important; /* cancel old blanket z-index rules */
}

[data-cart] > :not([data-cart-panel]):not([data-cart-backdrop]):not(.cartBackdrop):not(.cart__panel):not(.cart__backdrop){
  display: none !important;
}

/* 5) If a backdrop exists (either injected or markup), ensure it’s under the panel */
[data-cart] [data-cart-backdrop],
[data-cart] .cartBackdrop{
  position: absolute !important;
  inset: 0 !important;
  background: rgba(10,8,6,.48) !important;
  z-index: 2 !important;
}

/* 6) Keep your zoom button consistent with current shop markup */
.zoomBtn{
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(88,72,46,.22);
  background: rgba(255,255,255,.70);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.zoomBtn:hover{ transform: translateY(-1px); }

/* 7) Ensure carousel slides are always full width (prevents partial/ghost columns) */
.carousel__slide{
  min-width: 100% !important;
  flex: 0 0 100% !important;
}
/* ============================================================
   Hermits Holistics — Deep Forest Edition
   Dramatic • Dark • Old Money • Nature / Woods
   Mobile-first • CSP-safe
   ============================================================ */

:root{
  /* ===========================
     Core palette (dark forest)
     =========================== */

  --bg: #0e1411;                 /* forest night */
  --bg-2: #131c17;               /* deep pine */
  --surface: rgba(22,30,26,.78); /* elevated surface */
  --card: rgba(26,36,30,.92);
  --card-2: rgba(22,30,26,.85);

  --ink: rgba(236,232,220,.94);  /* parchment */
  --muted: rgba(200,195,180,.70);

  --line: rgba(180,165,120,.22);
  --shadow: 0 18px 50px rgba(0,0,0,.55);

  /* ===========================
     Accents (old money)
     =========================== */

  --forest: #2f4a3a;
  --forest-2: #3f5f4c;

  --earth: #5a4632;
  --earth-2: #7a6046;

  --moss: #6b7f5f;
  --gold: #b79a4b;
  --gold-soft: rgba(183,154,75,.25);

  --danger: rgba(122,60,60,.22);
  --danger-line: rgba(122,60,60,.40);

  /* ===========================
     UI
     =========================== */

  --focus: rgba(183,154,75,.55);

  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 14px;

  --pad-1: 12px;
  --pad-2: 16px;
  --pad-3: 20px;

  --ease: cubic-bezier(.25,.1,.25,1);
  --ease2: cubic-bezier(.4,0,.2,1);
}

/* ===========================
   Base
   =========================== */

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(63,95,76,.22), transparent 60%),
    radial-gradient(900px 400px at 85% 0%, rgba(90,70,50,.22), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.55;
  display:flex;
  flex-direction:column;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button,input,select,textarea{ font:inherit; color:inherit; }

.wrap{
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

/* ===========================
   Header / Nav
   =========================== */

.siteHeader{
  position: sticky;
  top:0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(38, 55, 35, 0.82);
  backdrop-filter: blur(10px);
}

.siteHeader__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
}
.brand__logo{
  width: 36px;
  height: 36px;
  opacity: .95;
}
.brand__name{
  font-family: Georgia, serif;
  font-weight: 800;
  letter-spacing: .3px;
}

/* ===========================
   Navigation
   =========================== */

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

.nav__link{
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(236,232,220,.78);
  transition: all 220ms var(--ease);
}
.nav__link:hover{
  background: rgba(63,95,76,.35);
  border-color: rgba(183,154,75,.30);
  transform: translateY(-1px);
}
.nav__link.is-active{
  background: rgba(63,95,76,.45);
  border-color: var(--gold-soft);
}

/* ===========================
   Cards / Sections
   =========================== */

.main{ flex:1; }
.section{ padding: 34px 0; }

.section__title{
  font-family: Georgia, serif;
  font-weight: 900;
  font-size: clamp(26px, 3vw, 38px);
  margin: 0 0 10px;
}
.section__sub{
  color: var(--muted);
  max-width: 70ch;
}

.card{
  background: linear-gradient(
    180deg,
    rgba(40,55,46,.95),
    rgba(28,38,32,.95)
  );
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: var(--pad-2);
}

/* ===========================
   Hero
   =========================== */

.hero__title{
  font-family: Georgia, serif;
  font-weight: 900;
  line-height: 1.05;
  font-size: clamp(34px, 4.5vw, 52px);
}

.hero__panel{
  border-radius: var(--r-lg);
  background:
    radial-gradient(300px 300px at 20% 20%, rgba(63,95,76,.35), transparent 60%),
    radial-gradient(300px 300px at 80% 80%, rgba(183,154,75,.18), transparent 60%),
    rgba(22,30,26,.95);
  border: 1px solid var(--line);
  min-height: 220px;
  position: relative;
}

.hero__card{
  background: rgba(18,24,21,.85);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
}

/* ===========================
   Buttons
   =========================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(30,40,34,.85);
  padding: 10px 16px;
  cursor:pointer;
  transition: all 220ms var(--ease);
}
.btn:hover{
  background: rgba(63,95,76,.55);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.btn--primary{
  background: linear-gradient(
    180deg,
    rgba(183,154,75,.95),
    rgba(140,110,55,.95)
  );
  border-color: rgba(183,154,75,.55);
  color: #1a1408;
  font-weight: 800;
}

.btn--danger{
  background: rgba(122,60,60,.40);
  border-color: rgba(122,60,60,.60);
}

:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ===========================
   Product Cards
   =========================== */

.product{
  border-radius: var(--r-lg);
  overflow:hidden;
  background: rgba(22,30,26,.92);
  border: 1px solid var(--line);
  transition: transform 420ms var(--ease2), box-shadow 420ms var(--ease2);
}
.product:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product__imgWrap{
  background: rgba(12,18,15,.85);
  border-bottom: 1px solid var(--line);
}
.product__img{
  width:100%;
  height:230px;
  object-fit:cover;
}

.badge{
  position:absolute;
  left:12px;
  top:12px;
  background: rgba(183,154,75,.85);
  color:#1a1408;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
}

.product__body{
  padding: 14px;
}
.product__name{
  font-weight: 900;
}
.product__cat{
  color: var(--muted);
  font-size: 13px;
}

/* ===========================
   Forms
   =========================== */

.input,.select,.textarea{
  background: rgba(18,24,21,.85);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 12px;
  color: var(--ink);
}

.input::placeholder,
.textarea::placeholder{
  color: rgba(200,195,180,.45);
}

.alert{
  background: var(--danger);
  border: 1px solid var(--danger-line);
  border-radius: var(--r-md);
  padding: 12px 14px;
}

/* ===========================
   Footer
   =========================== */

.siteFooter{
  border-top: 1px solid var(--line);
  background: rgba(38, 55, 35, 0.82);
  padding: 18px 0;
}

.footerBrand{
  font-family: Georgia, serif;
  font-weight: 900;
}
.footerNote{
  color: var(--muted);
}

/* ===========================
   Motion
   =========================== */

.reveal{
  opacity:0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease2), transform 600ms var(--ease2);
}
.reveal.is-in{
  opacity:1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; }
}
body {
  color: var(--ink);
}
:root {
  --ink: #d8c4a3;
}
.product__name {
  color: var(--ink-strong);
}

.section__sub {
  color: var(--ink-muted);
}

.badge {
  color: var(--ink-accent);
}
.product__price {
  color: var(--ink-strong);
}

.section__sub {
  color: var(--ink-muted);
}

.badge {
  color: var(--ink-accent);
}


