/* ==========================================================================
   LA CASETTA — SITE STYLESHEET
   All visual styling for every page. Organised by section; each section
   header matches the equivalent section in the original prototype.
   ========================================================================== */

/* ============ TOKENS ============ */
:root{
  --bone:#E8E1D5;
  --warm-white:#F5F1E9;
  --sandstone:#B7A48E;
  --terracotta:#A6533D;
  --olive:#3D4635;
  --espresso:#29221E;

  --line: rgba(41,34,30,0.16);
  --line-strong: rgba(41,34,30,0.32);

  --serif: "Bodoni Moda", Georgia, "Iowan Old Style", serif;
  --sans: "Work Sans", -apple-system, "Segoe UI", sans-serif;
  --logo-serif: "Fraunces", Georgia, "Iowan Old Style", serif; /* logo/wordmark stays on the original typeface — see brief item 1 */

  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--warm-white);
  color:var(--espresso);
  font-family:var(--sans);
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;cursor:pointer;background:none;border:none;color:inherit;}
h1,h2,h3,h4{font-family:var(--serif);font-weight:400;margin:0;text-wrap:balance;}
p{margin:0;}
.eyebrow{
  font-family:var(--sans);
  font-size:11.5px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--terracotta);
  font-weight:600;
}
.wrap{max-width:var(--maxw); margin:0 auto; padding-inline:var(--gutter);}
.rule{height:1px;background:var(--line);border:0;margin:0;}
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-size:13px; letter-spacing:.08em; text-transform:uppercase; font-weight:600;
  padding:15px 30px;
  border:1px solid var(--espresso);
  background:var(--espresso);
  color:var(--warm-white);
  transition:background .25s ease, color .25s ease, border-color .25s ease;
  white-space:nowrap;
}
.btn:hover{background:var(--terracotta); border-color:var(--terracotta);}
.btn.ghost{background:transparent; color:var(--espresso);}
.btn.ghost:hover{background:var(--espresso); color:var(--warm-white);}
.btn.line{border-color:var(--line-strong); color:var(--espresso); background:transparent;}
.btn.line:hover{border-color:var(--espresso);}
.btn:disabled{opacity:.45; cursor:not-allowed;}
.btn:disabled:hover{background:var(--espresso); color:var(--warm-white);}
.btn.small{padding:10px 18px; font-size:11.5px;}

[hidden]{display:none!important;}

/* ============ HEADER ============ */
header.site{
  position:sticky; top:0; z-index:40;
  background:var(--warm-white);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding-block:16px 10px;
  max-width:var(--maxw); margin:0 auto; padding-inline:var(--gutter);
  gap:20px;
}
.header-inner .header-spacer{flex:1;}
.header-nav-row{
  display:flex; justify-content:center;
  padding-block:10px 14px;
  max-width:var(--maxw); margin:0 auto; padding-inline:var(--gutter);
  border-top:1px solid var(--line);
}
nav.primary{display:flex; gap:30px; justify-content:center;}
nav.primary a{
  font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; font-weight:500;
  padding-block:4px; position:relative; color:var(--espresso); white-space:nowrap;
}
nav.primary a::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:1px;
  background:var(--terracotta); transform:scaleX(0); transform-origin:left;
  transition:transform .25s ease;
}
nav.primary a:hover::after, nav.primary a.active::after{transform:scaleX(1);}
.logotype{
  font-family:var(--logo-serif); font-size:22px; letter-spacing:.12em; font-weight:500;
  text-align:center; flex-shrink:0;
}
.logotype small{display:block; font-family:var(--sans); font-size:9px; letter-spacing:.24em; font-weight:500; color:var(--sandstone); margin-top:3px;}
.header-actions{display:flex; align-items:center; gap:20px; flex:1; justify-content:flex-end;}
.icon-btn{position:relative; display:flex; align-items:center; gap:8px; font-size:12px; letter-spacing:.06em; text-transform:uppercase;}
.icon-btn svg{width:19px; height:19px; stroke:var(--espresso); fill:none; stroke-width:1.4;}
.cart-count{
  position:absolute; top:-7px; right:-10px;
  background:var(--terracotta); color:var(--warm-white);
  font-size:10px; font-weight:600; width:16px; height:16px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.nav-toggle{display:none;}

@media (max-width:900px){
  nav.primary{display:none;}
  .header-nav-row{border-top:none; padding-block:0;}
  .nav-toggle{display:flex;}
  .header-actions{justify-content:flex-end;}
}

/* ============ HERO ============ */
.hero{position:relative; display:grid; grid-template-columns: 1.05fr .95fr; background:var(--espresso);}
.hero-media{position:relative; min-height:460px;}
.hero-media img{width:100%; height:100%; object-fit:cover; object-position:50% 30%;}
.hero-copy{
  display:flex; flex-direction:column; justify-content:center; gap:26px;
  padding:clamp(40px,6vw,88px);
  background:var(--espresso); color:var(--warm-white);
}
.hero-copy h1{font-size:clamp(38px,4.6vw,64px); line-height:1.04; color:var(--warm-white); font-weight:400;}
.hero-copy h1 em{font-style:italic; color:var(--sandstone);}
.hero-copy p{font-size:16px; line-height:1.7; max-width:42ch; color:rgba(245,241,233,.78);}
.hero-actions{display:flex; gap:16px; flex-wrap:wrap;}
.hero-copy .btn{background:var(--warm-white); color:var(--espresso); border-color:var(--warm-white);}
.hero-copy .btn:hover{background:var(--terracotta); color:var(--warm-white); border-color:var(--terracotta);}
.hero-copy .btn.ghost{background:transparent; color:var(--warm-white); border:1px solid rgba(245,241,233,.4);}
.hero-copy .btn.ghost:hover{background:rgba(245,241,233,.12); border-color:var(--warm-white);}

@media (max-width:900px){
  .hero{grid-template-columns:1fr;}
  .hero-media{min-height:340px; order:1;}
  .hero-copy{order:2; padding:44px var(--gutter);}
}

/* ============ SECTIONS ============ */
section{padding-block:clamp(64px,9vw,112px);}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:44px; flex-wrap:wrap;}
.section-head h2{font-size:clamp(30px,3.4vw,44px); font-weight:400;}
.section-head .eyebrow{display:block; margin-bottom:14px;}
.section-intro{font-size:15px; line-height:1.8; max-width:60ch; color:rgba(41,34,30,.72);}

/* format tiles */
.format-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
.format-tile{position:relative; aspect-ratio:3/4; overflow:hidden; background:var(--espresso); display:flex; align-items:flex-end;}
.format-tile img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .7s ease;}
.format-tile .visual-fill{position:absolute; inset:0;}
.format-tile:hover img{transform:scale(1.06);}
.format-tile .tile-scrim{position:absolute; inset:0; background:linear-gradient(180deg, rgba(41,34,30,0) 40%, rgba(41,34,30,.82) 100%);}
.format-tile .tile-copy{position:relative; z-index:2; padding:26px; color:var(--warm-white);}
.format-tile h3{color:var(--warm-white); font-size:22px; margin-bottom:6px;}
.format-tile span{font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--sandstone); border-bottom:1px solid rgba(245,241,233,.4); padding-bottom:2px;}

@media (max-width:760px){.format-grid{grid-template-columns:1fr; }}

/* fragrance cards (home) */
.frag-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:2px; background:var(--line);}
.frag-card{background:var(--warm-white); padding:34px 26px 30px; display:flex; flex-direction:column; gap:14px;}
.frag-card .frag-visual{aspect-ratio:1; background:var(--bone); display:flex; align-items:center; justify-content:center; overflow:hidden;}
.frag-card .frag-visual img{width:78%; height:78%; object-fit:contain;}
.frag-card h3{font-size:24px; font-style:italic;}
.frag-card p{font-size:13.5px; line-height:1.6; color:rgba(41,34,30,.68); flex:1;}
.frag-card .frag-link{font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; font-weight:600; color:var(--terracotta); border-bottom:1px solid var(--terracotta); padding-bottom:2px; align-self:flex-start;}

@media (max-width:900px){.frag-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:520px){.frag-grid{grid-template-columns:1fr;}}

/* featured collections (home) */
.collections-grid{display:grid; grid-template-columns:1fr 1fr; gap:30px; margin-top:20px;}
.collection-card{
  background:var(--bone); border:1px solid var(--line); overflow:hidden;
  display:flex; flex-direction:column;
}
.collection-card .collection-img{width:100%; aspect-ratio:4/3; object-fit:cover;}
.collection-card-body{padding:28px 32px 32px; display:flex; flex-direction:column; align-items:flex-start; gap:12px;}
.collection-card h3{font-size:24px; font-weight:500;}
.collection-card .collection-tagline{
  font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; font-weight:600; color:var(--terracotta);
}
.collection-card p:not(.collection-tagline){font-size:14.5px; line-height:1.8; color:rgba(41,34,30,.75); margin-bottom:6px;}
@media (max-width:760px){.collections-grid{grid-template-columns:1fr;}}

/* stay teaser (home) */
.story-teaser{display:grid; grid-template-columns:.85fr 1.15fr; gap:60px; align-items:center; background:var(--bone);}
.story-teaser img{width:100%; aspect-ratio:4/3; object-fit:cover; object-position:center 85%;}
.story-teaser .txt p{font-size:15px; line-height:1.85; color:rgba(41,34,30,.75); margin-bottom:26px; max-width:52ch;}
@media (max-width:860px){.story-teaser{grid-template-columns:1fr; gap:30px;} }

/* newsletter */
.newsletter-ribbon{background:var(--espresso); color:var(--warm-white); padding-block:18px;}
.news-ribbon-row{display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;}
.news-ribbon-text{display:flex; align-items:baseline; gap:12px; flex-wrap:wrap;}
.newsletter-ribbon h2{color:var(--warm-white); font-size:16px; font-weight:500; white-space:nowrap;}
.newsletter-ribbon .news-ribbon-text p{color:rgba(245,241,233,.65); font-size:13px; margin:0; max-width:44ch;}
.news-form{display:flex; max-width:320px; border-bottom:1px solid rgba(245,241,233,.4); flex:0 0 auto;}
.news-form input{flex:1; background:transparent; border:0; padding:6px 4px; color:var(--warm-white); font-size:13px; font-family:var(--sans);}
.news-form input::placeholder{color:rgba(245,241,233,.5);}
.news-form button{font-size:11px; letter-spacing:.1em; text-transform:uppercase; font-weight:600; color:var(--sandstone); padding:6px 6px;}
.newsletter-ribbon .news-note{font-size:10.5px; margin-top:8px; color:rgba(245,241,233,.4); text-align:right;}
@media (max-width:700px){
  .news-ribbon-row{flex-direction:column; align-items:flex-start;}
  .news-form{max-width:100%; width:100%;}
  .newsletter-ribbon .news-note{text-align:left;}
}

/* ============ FOOTER ============ */
footer.site{background:var(--bone); border-top:1px solid var(--line);}
.footer-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:40px; padding-block:50px;}
.footer-col h4{font-family:var(--sans); font-size:11.5px; letter-spacing:.12em; text-transform:uppercase; font-weight:600; margin-bottom:18px; color:var(--espresso);}
.footer-col ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:11px;}
.footer-col a{font-size:13.5px; color:rgba(41,34,30,.68);}
.footer-col a:hover{color:var(--terracotta);}
.footer-bottom{border-top:1px solid var(--line); padding-block:22px; display:flex; justify-content:space-between; font-size:11.5px; color:rgba(41,34,30,.5); flex-wrap:wrap; gap:10px;}
@media (max-width:760px){.footer-grid{grid-template-columns:1fr 1fr; }}

/* ============ SHOP ============ */
.shop-head{padding-block:52px 0;}
.shop-controls{
  display:flex; justify-content:space-between; align-items:center; gap:20px;
  flex-wrap:wrap; padding-block:26px; border-bottom:1px solid var(--line); margin-bottom:40px;
}
.filter-row{display:flex; gap:10px; flex-wrap:wrap;}
.chip{
  font-size:12px; letter-spacing:.05em; text-transform:uppercase; font-weight:500;
  padding:9px 18px; border:1px solid var(--line-strong); color:rgba(41,34,30,.7);
  transition:all .2s ease;
}
.chip.active, .chip:hover{border-color:var(--espresso); color:var(--espresso); background:var(--bone);}
.result-count{font-size:12.5px; color:rgba(41,34,30,.5); letter-spacing:.04em;}

.product-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:44px 30px; padding-bottom:90px;}
.product-card .card-visual{
  aspect-ratio:1; background:var(--bone); display:flex; align-items:center; justify-content:center;
  overflow:hidden; margin-bottom:18px; position:relative;
}
.product-card .card-visual img{width:66%; height:66%; object-fit:contain; transition:transform .5s ease;}
.product-card:hover .card-visual img{transform:scale(1.045);}
.product-card .card-format{
  position:absolute; top:14px; left:14px; font-size:10.5px; letter-spacing:.1em; text-transform:uppercase;
  background:var(--warm-white); padding:5px 10px; color:var(--espresso); font-weight:600;
}
.product-card h3{font-size:19px; font-weight:400; margin-bottom:4px;}
.product-card .card-sub{font-size:12.5px; color:rgba(41,34,30,.55); margin-bottom:10px;}
.product-card .card-row{display:flex; justify-content:space-between; align-items:center;}
.product-card .price{font-size:14px; font-weight:500; font-variant-numeric:tabular-nums;}
.product-card .card-row-actions{display:flex; align-items:center; gap:12px;}
.product-card .discover{font-size:11px; letter-spacing:.1em; text-transform:uppercase; font-weight:600; color:var(--terracotta); border-bottom:1px solid var(--terracotta);}
.product-card .quick-add{
  display:flex; align-items:center; justify-content:center; width:30px; height:30px;
  border:1px solid var(--line-strong); background:var(--warm-white); flex-shrink:0;
  transition:background .2s ease, border-color .2s ease;
}
.product-card .quick-add svg{width:15px; height:15px; stroke:var(--espresso); fill:none; stroke-width:1.6;}
.product-card .quick-add:hover{background:var(--espresso); border-color:var(--espresso);}
.product-card .quick-add:hover svg{stroke:var(--warm-white);}

@media (max-width:900px){.product-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.product-grid{grid-template-columns:1fr; gap:50px;}}

/* format visual (mist / diffuser placeholders) */
.format-visual{width:100%; height:100%; display:flex; align-items:center; justify-content:center;}
.format-visual svg{width:44%; height:44%;}

/* ============ PRODUCT DETAIL ============ */
.breadcrumb{font-size:12px; color:rgba(41,34,30,.5); padding-block:22px; letter-spacing:.03em;}
.breadcrumb a:hover{color:var(--terracotta);}
.pdp{display:grid; grid-template-columns:1fr 1fr; gap:70px; padding-bottom:80px;}
.pdp-visual{background:var(--bone); aspect-ratio:1; display:flex; align-items:center; justify-content:center; position:sticky; top:100px; align-self:start;}
.pdp-visual img{width:56%; height:56%; object-fit:contain;}
.pdp-visual .format-visual svg{width:38%; height:38%;}
.pdp-info h1{font-size:clamp(34px,3.6vw,46px); font-style:italic; margin-bottom:6px;}
.pdp-tagline{font-size:15px; color:rgba(41,34,30,.6); font-style:italic; margin-bottom:22px;}
.pdp-price{font-size:20px; font-weight:500; margin-bottom:30px; font-variant-numeric:tabular-nums;}
.format-select{display:flex; gap:10px; margin-bottom:30px; flex-wrap:wrap;}
.format-opt{
  border:1px solid var(--line-strong); padding:12px 18px; font-size:12.5px; letter-spacing:.04em;
  display:flex; flex-direction:column; gap:2px; min-width:130px;
}
.format-opt strong{font-size:13px; font-weight:600;}
.format-opt span{font-size:11px; color:rgba(41,34,30,.55); font-variant-numeric:tabular-nums;}
.format-opt.active{border-color:var(--espresso); background:var(--bone);}

.qty-row{display:flex; align-items:center; gap:18px; margin-bottom:18px;}
.stepper{display:flex; align-items:center; border:1px solid var(--line-strong);}
.stepper button{width:38px; height:44px; font-size:16px;}
.stepper span{width:34px; text-align:center; font-size:14px; font-variant-numeric:tabular-nums;}
.pdp-info .btn{width:100%; justify-content:center; padding-block:17px; margin-bottom:14px;}
.add-note{font-size:12px; color:rgba(41,34,30,.5); margin-bottom:30px;}

/* gift box */
.gift-toggle{
  display:flex; align-items:center; gap:10px; padding:14px 16px; border:1px solid var(--line-strong);
  margin-bottom:30px; cursor:pointer; font-size:13px; font-weight:500;
}
.gift-toggle input{width:16px; height:16px; accent-color:var(--terracotta);}
.gift-panel{border:1px solid var(--line-strong); border-top:0; margin-top:-30px; margin-bottom:30px; padding:20px 16px; display:flex; flex-direction:column; gap:14px;}
.gift-panel label{font-size:11.5px; letter-spacing:.06em; text-transform:uppercase; font-weight:600; color:rgba(41,34,30,.6); display:block; margin-bottom:6px;}
.gift-panel input[type=text], .gift-panel textarea{
  width:100%; border:1px solid var(--line-strong); padding:10px 12px; font-family:var(--sans); font-size:13.5px; background:var(--warm-white);
}
.gift-panel textarea{resize:vertical; min-height:60px;}
.gift-check{display:flex; align-items:center; gap:8px; font-size:13px;}
.gift-check input{width:15px; height:15px; accent-color:var(--terracotta);}
.gift-note{font-size:11.5px; color:rgba(41,34,30,.55); font-style:italic;}

.pyramid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; padding:30px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin-bottom:36px;}
.pyramid-col .eyebrow{margin-bottom:10px; color:var(--espresso); font-size:10.5px;}
.pyramid-col p{font-size:13px; line-height:1.7; color:rgba(41,34,30,.7);}
@media (max-width:560px){.pyramid{grid-template-columns:1fr; gap:18px;}}

.accordion-item{border-bottom:1px solid var(--line);}
.accordion-item button.acc-trigger{
  width:100%; display:flex; justify-content:space-between; align-items:center;
  padding-block:20px; font-size:13.5px; letter-spacing:.03em; text-transform:uppercase; font-weight:500;
}
.acc-trigger .plus{font-size:18px; font-weight:300; transition:transform .25s ease;}
.accordion-item.open .plus{transform:rotate(45deg);}
.acc-panel{max-height:0; overflow:hidden; transition:max-height .3s ease;}
.acc-panel-inner{padding-bottom:22px; font-size:13.5px; line-height:1.8; color:rgba(41,34,30,.7); max-width:60ch;}

@media (max-width:860px){
  .pdp{grid-template-columns:1fr; gap:32px;}
  .pdp-visual{position:static;}
}

.related-heading{font-size:12px; letter-spacing:.12em; text-transform:uppercase; font-weight:600; color:var(--espresso); margin-bottom:26px;}
section.related{padding-top:0;}

/* ============ STAY PAGE ============ */
.stay-hero{position:relative; min-height:56vh; display:flex; align-items:flex-end; background:var(--espresso);}
.stay-hero img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center center; opacity:.9;}
.stay-hero .scrim{position:absolute; inset:0; background:linear-gradient(0deg, rgba(41,34,30,.88), rgba(41,34,30,.1));}
.stay-hero .wrap{position:relative; z-index:2; padding-block:64px; color:var(--warm-white);}
.stay-hero .eyebrow{font-size:19px; letter-spacing:.14em;}
.stay-hero h1{color:var(--warm-white); font-size:clamp(36px,5vw,64px); max-width:16ch;}

.stay-body{max-width:900px; margin:0 auto; display:flex; flex-direction:column; gap:24px; text-align:left;}
.stay-body p{font-size:17px; line-height:1.9; color:rgba(41,34,30,.8);}
.stay-body p:first-child{font-size:22px; font-family:var(--serif); font-style:italic; color:var(--espresso); line-height:1.6;}

.gallery-grid{display:grid; grid-template-columns:repeat(4,1fr); grid-auto-rows:220px; gap:6px;}
.gallery-grid figure{position:relative; margin:0; overflow:hidden;}
.gallery-grid img{width:100%; height:100%; object-fit:cover; transition:transform .5s ease;}
.gallery-grid figure:hover img{transform:scale(1.05);}
.gallery-grid figcaption{
  position:absolute; left:10px; bottom:10px; font-size:10.5px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--warm-white); background:rgba(41,34,30,.55); padding:5px 10px; font-weight:500;
}
.gallery-grid .g-wide{grid-column:span 2;}
@media (max-width:900px){.gallery-grid{grid-template-columns:repeat(2,1fr); grid-auto-rows:180px;} .gallery-grid .g-wide{grid-column:span 2;}}
@media (max-width:520px){.gallery-grid{grid-template-columns:1fr; grid-auto-rows:220px;} .gallery-grid .g-wide{grid-column:span 1;}}

.stay-cta{text-align:center; background:var(--bone);}
.stay-cta h2{margin-bottom:16px;}
.stay-cta p{max-width:52ch; margin:0 auto 30px; color:rgba(41,34,30,.72); font-size:15px; line-height:1.8;}
.booking-tabs{display:flex; justify-content:center; gap:16px; flex-wrap:wrap;}
.placeholder-note{font-size:11px; color:rgba(41,34,30,.45); margin-top:16px; font-style:italic;}

/* ============ CART DRAWER ============ */
.scrim-overlay{
  position:fixed; inset:0; background:rgba(41,34,30,.5); z-index:60; opacity:0; pointer-events:none;
  transition:opacity .3s ease;
}
.scrim-overlay.show{opacity:1; pointer-events:auto;}
.cart-drawer{
  position:fixed; top:0; right:0; height:100%; width:min(440px,92vw); background:var(--warm-white);
  z-index:61; transform:translateX(100%); transition:transform .35s ease;
  display:flex; flex-direction:column;
}
.cart-drawer.open{transform:translateX(0);}
.cart-head{display:flex; justify-content:space-between; align-items:center; padding:26px 28px; border-bottom:1px solid var(--line);}
.cart-head h2{font-size:20px; font-style:italic;}
.cart-close{font-size:22px; line-height:1;}
.cart-items{flex:1; overflow-y:auto; padding:10px 28px;}
.cart-line{display:flex; gap:16px; padding-block:20px; border-bottom:1px solid var(--line);}
.cart-line .cl-visual{width:78px; height:78px; background:var(--bone); flex-shrink:0; display:flex; align-items:center; justify-content:center;}
.cart-line .cl-visual img{width:70%; height:70%; object-fit:contain;}
.cart-line .cl-visual svg{width:40%; height:40%;}
.cl-body{flex:1; display:flex; flex-direction:column; gap:6px;}
.cl-body h4{font-size:14.5px; font-weight:500;}
.cl-body .cl-sub{font-size:11.5px; color:rgba(41,34,30,.55); text-transform:uppercase; letter-spacing:.04em;}
.cl-gift{font-size:11px; color:var(--terracotta); font-weight:600;}
.cl-bottom{display:flex; justify-content:space-between; align-items:center; margin-top:auto;}
.cl-remove{font-size:11px; text-decoration:underline; color:rgba(41,34,30,.5);}
.cart-empty{padding:60px 0; text-align:center; color:rgba(41,34,30,.55); font-size:14px;}
.cart-foot{padding:20px 28px 30px; border-top:1px solid var(--line);}
.bundle-row{display:flex; justify-content:space-between; font-size:12.5px; color:var(--olive); margin-bottom:8px; gap:12px;}
.bundle-row span:last-child{font-variant-numeric:tabular-nums; white-space:nowrap;}
.cart-subtotal{display:flex; justify-content:space-between; font-size:15px; margin-bottom:18px; font-weight:500; font-variant-numeric:tabular-nums; padding-top:10px; border-top:1px dashed var(--line);}
.cart-shipping{display:flex; justify-content:space-between; font-size:12px; color:rgba(41,34,30,.6); margin:-10px 0 16px;}
.cart-foot .btn{width:100%; justify-content:center; margin-bottom:10px;}
.cart-foot .note{font-size:11px; color:rgba(41,34,30,.5); text-align:center;}

/* ============ PROFILE MODAL ============ */
.modal-overlay{
  position:fixed; inset:0; background:rgba(41,34,30,.55); z-index:70; opacity:0; pointer-events:none;
  display:flex; align-items:center; justify-content:center; padding:20px;
  transition:opacity .25s ease;
}
.modal-overlay.show{opacity:1; pointer-events:auto;}
.modal-box{background:var(--warm-white); width:min(400px,100%); padding:38px 32px; position:relative;}
.modal-close{position:absolute; top:14px; right:16px; font-size:20px;}
.modal-box h2{font-size:24px; font-style:italic; margin-bottom:12px;}
.modal-box p{font-size:13.5px; line-height:1.7; color:rgba(41,34,30,.68); margin-bottom:24px;}
.modal-box label{font-size:11px; letter-spacing:.06em; text-transform:uppercase; font-weight:600; color:rgba(41,34,30,.6); display:block; margin-bottom:6px;}
.modal-box input{width:100%; border:1px solid var(--line-strong); padding:11px 12px; font-family:var(--sans); font-size:13.5px; background:var(--warm-white); margin-bottom:16px;}
.modal-box .btn{width:100%; justify-content:center;}
.modal-note{font-size:11px; color:rgba(41,34,30,.45); text-align:center; margin-top:14px;}

/* ============ LEGAL PAGES ============ */
.legal-wrap{max-width:760px; margin:0 auto;}
.legal-wrap .eyebrow{display:block; margin-bottom:10px;}
.legal-wrap h1{font-size:clamp(30px,3.6vw,42px); margin-bottom:6px;}
.legal-updated{font-size:12px; color:rgba(41,34,30,.5); margin-bottom:44px; display:block;}
.legal-wrap h2{font-size:19px; font-weight:600; font-family:var(--sans); margin-top:38px; margin-bottom:12px;}
.legal-wrap h2:first-of-type{margin-top:0;}
.legal-wrap p{font-size:14.5px; line-height:1.85; color:rgba(41,34,30,.75); margin-bottom:14px;}
.legal-wrap ul{margin:0 0 14px; padding-left:20px; display:flex; flex-direction:column; gap:8px;}
.legal-wrap li{font-size:14.5px; line-height:1.7; color:rgba(41,34,30,.75);}
.legal-wrap a.inline-link{color:var(--terracotta); text-decoration:underline;}
.legal-note-box{background:var(--bone); padding:18px 20px; font-size:13px; line-height:1.7; color:rgba(41,34,30,.7); margin-bottom:30px;}

/* focus states */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{outline:2px solid var(--terracotta); outline-offset:2px;}

@media (prefers-reduced-motion: reduce){
  *{transition-duration:.001ms!important; animation-duration:.001ms!important; scroll-behavior:auto!important;}
}

/* ============================================================
   ACCOUNTS & OPERATIONS CONSOLE (added by the developer)
   ============================================================ */
:root{--ink:var(--espresso); --accent:var(--terracotta);}
@media (prefers-reduced-motion: reduce){
  *{transition-duration:.001ms!important; animation-duration:.001ms!important; scroll-behavior:auto!important;}
}

/* ============ APPLICATION-SPECIFIC STYLES ============ */
.form-message{font-size:12.5px!important;color:var(--terracotta)!important;margin:14px 0 0!important;}
.checkout-box{width:min(460px,100%);}.checkout-box form{display:grid;gap:0;}.checkout-box .eyebrow{display:block;margin-bottom:10px;}.checkout-success{width:min(430px,100%);text-align:center;}.checkout-success .eyebrow{display:block;margin-bottom:12px;}.checkout-success .btn{width:auto;margin-top:6px;}

/* ============ CUSTOMER ACCOUNT ============ */
.account-hero{background:var(--bone);padding-block:clamp(58px,9vw,104px);}
.account-auth{max-width:1000px;}.account-auth>h1,.account-head h1,.erp-top h1{font-size:clamp(38px,5vw,58px);margin:10px 0 14px;}.account-auth>h1 em,.account-head h1 em,.erp-top h1 em{font-style:italic;color:var(--terracotta);}.account-auth>p{font-size:15px;line-height:1.8;max-width:62ch;color:rgba(41,34,30,.7);margin-bottom:34px;}
.auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start;}.erp-card{background:var(--warm-white);border:1px solid var(--line);padding:28px;}.erp-card h2{font-size:25px;font-style:italic;margin:7px 0 12px;}.erp-card p{font-size:13.5px;line-height:1.75;color:rgba(41,34,30,.68);margin-bottom:20px;}.erp-card label{font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:600;color:rgba(41,34,30,.65);display:block;margin-bottom:12px;}.erp-card input:not([type="checkbox"]){margin-top:7px;width:100%;border:1px solid var(--line-strong);padding:11px 12px;background:var(--warm-white);font:inherit;font-size:14px;}.erp-card .btn{margin-top:4px;}.check-label{display:flex!important;align-items:flex-start;gap:9px;text-transform:none!important;letter-spacing:0!important;font-size:12px!important;line-height:1.45;}.check-label input{accent-color:var(--terracotta);margin-top:2px;}
.account-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;}.account-head p{font-size:14px;color:rgba(41,34,30,.62);}.account-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:20px;margin-top:38px;}.newsletter-card .eyebrow{display:block;margin-bottom:7px;}.toggle-row{display:flex!important;align-items:center;gap:10px;font-size:13px!important;letter-spacing:0!important;text-transform:none!important;margin:0!important;}.toggle-row input{accent-color:var(--terracotta);width:17px;height:17px;}.inline-link{color:var(--terracotta);text-decoration:underline;font-size:13px;}.account-orders{padding-block:clamp(58px,8vw,96px);}.order-list{border-top:1px solid var(--line);}.order-card{display:grid;grid-template-columns:1.1fr 1.3fr .9fr auto;gap:24px;align-items:center;padding:23px 0;border-bottom:1px solid var(--line);}.order-id{display:block;font-weight:600;font-size:13px;letter-spacing:.04em;}.order-date,.order-card p{font-size:12px;color:rgba(41,34,30,.55);margin-top:5px;}.order-products{font-size:13px;line-height:1.65;color:rgba(41,34,30,.76);}.order-card strong{font-size:14px;font-variant-numeric:tabular-nums;}.status{display:inline-flex;align-items:center;border:1px solid var(--line-strong);padding:5px 9px;font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:600;white-space:nowrap;}.status-confirmed{color:var(--olive);background:rgba(61,70,53,.06);}.status-preparing{color:#8c5315;background:rgba(166,83,61,.08);}.status-dispatched{color:#31577e;background:rgba(61,91,122,.08);}.status-delivered{color:var(--olive);background:rgba(61,70,53,.11);}.status-cancelled{color:var(--terracotta);}.empty-state{background:var(--bone);padding:38px;max-width:680px;}.empty-state h3{font-size:25px;font-style:italic;margin-bottom:10px;}.empty-state p{font-size:14px;line-height:1.7;color:rgba(41,34,30,.68);margin-bottom:20px;}.empty-state.compact{max-width:none;padding:26px;}

/* ============ STAFF ERP ============ */
.erp-shell{max-width:var(--maxw);margin:0 auto;padding:clamp(48px,7vw,90px) var(--gutter);}.erp-top{display:flex;justify-content:space-between;gap:28px;align-items:flex-end;margin-bottom:40px;}.erp-top p{font-size:14px;line-height:1.75;max-width:65ch;color:rgba(41,34,30,.68);}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;background:var(--line);margin-bottom:22px;}.metric{background:var(--bone);padding:25px;display:flex;flex-direction:column;gap:9px;}.metric span{font-size:10.5px;text-transform:uppercase;letter-spacing:.1em;color:rgba(41,34,30,.58);font-weight:600;}.metric strong{font-family:var(--serif);font-size:28px;font-weight:400;font-variant-numeric:tabular-nums;}.erp-notice{border:1px solid rgba(166,83,61,.35);background:rgba(166,83,61,.06);padding:15px 18px;display:flex;gap:16px;align-items:baseline;font-size:13px;margin-bottom:60px;}.erp-notice span{color:rgba(41,34,30,.65);}.erp-section{padding:0 0 60px;}.erp-section .section-head{margin-bottom:22px;}.erp-section .section-head h2{font-size:30px;}.data-table{overflow-x:auto;border:1px solid var(--line);background:var(--warm-white);}.data-table table{border-collapse:collapse;width:100%;min-width:720px;text-align:left;font-size:12.5px;}.data-table th{font-size:10px;text-transform:uppercase;letter-spacing:.09em;font-weight:600;color:rgba(41,34,30,.55);padding:14px 16px;background:var(--bone);}.data-table td{padding:13px 16px;border-top:1px solid var(--line);vertical-align:middle;}.data-table td small{display:block;font-size:10.5px;color:rgba(41,34,30,.54);margin-top:3px;}.data-table input,.data-table select{border:1px solid var(--line-strong);padding:7px 8px;background:var(--warm-white);font:inherit;font-size:12px;}.data-table input{width:72px;}.low-stock{background:rgba(166,83,61,.05);}
@media (max-width:760px){.auth-grid,.account-grid{grid-template-columns:1fr;}.account-head,.erp-top{align-items:flex-start;flex-direction:column;}.order-card{grid-template-columns:1fr 1fr;gap:16px;}.metric-grid{grid-template-columns:1fr 1fr;}.erp-notice{display:block;}.erp-notice span{display:block;margin-top:7px;}}

/* ============ ACCOUNT / AUTH — REFINED ============ */
.account-shell{
  max-width:var(--maxw);
  margin:0 auto;
  padding:clamp(52px,7vw,92px) var(--gutter) clamp(70px,9vw,110px);
}
.auth-wrap{max-width:1120px;margin:0 auto;}
.auth-heading{max-width:720px;margin-bottom:44px;}
.auth-heading h1{font-size:clamp(48px,6.4vw,78px);line-height:.98;margin:12px 0 20px;letter-spacing:-.035em;}
.auth-heading h1 span,.account-head h1 span{color:var(--terracotta);}
.auth-heading p{font-size:15px;line-height:1.85;color:rgba(41,34,30,.64);max-width:60ch;}
.auth-layout{display:grid;grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr);border:1px solid var(--line);background:var(--bone);box-shadow:0 18px 50px rgba(41,34,30,.06);}
.auth-intro{padding:clamp(30px,4vw,54px);background:var(--espresso);color:var(--warm-white);min-height:560px;display:flex;flex-direction:column;}
.auth-intro .eyebrow{color:#d7a18f;}
.auth-intro-mark{width:54px;height:54px;border:1px solid rgba(245,241,233,.28);display:grid;place-items:center;font-family:var(--serif);font-size:20px;letter-spacing:.08em;margin-bottom:auto;}
.auth-intro h2{font-size:clamp(31px,3.5vw,45px);line-height:1.04;margin:12px 0 16px;max-width:9ch;}
.auth-intro p{font-size:13.5px;line-height:1.8;color:rgba(245,241,233,.66);max-width:34ch;}
.auth-points{margin-top:42px;border-top:1px solid rgba(245,241,233,.16);}
.auth-points div{display:flex;gap:18px;padding:15px 0;border-bottom:1px solid rgba(245,241,233,.16);font-size:11px;letter-spacing:.08em;text-transform:uppercase;align-items:center;}
.auth-points strong{font-size:10px;color:#d7a18f;font-weight:600;}
.auth-points span{color:rgba(245,241,233,.7);}
.auth-forms{display:grid;grid-template-columns:1fr 1fr;background:var(--warm-white);}
.auth-card{padding:clamp(30px,4vw,48px);display:flex;flex-direction:column;min-width:0;}
.auth-card + .auth-card{border-left:1px solid var(--line);}
.auth-card-head{margin-bottom:30px;}
.auth-card h2{font-size:29px;line-height:1.1;margin:9px 0 10px;}
.auth-card-head p{font-size:12.5px;line-height:1.7;color:rgba(41,34,30,.55);}
.auth-field{display:block;margin-bottom:18px;}
.auth-field>span{display:block;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;font-weight:600;color:rgba(41,34,30,.58);margin-bottom:7px;}
.auth-field input{display:block;width:100%;height:48px;border:1px solid var(--line-strong);background:#fbf9f4;color:var(--espresso);padding:0 13px;font:inherit;font-size:13.5px;outline:none;transition:border-color .2s,box-shadow .2s,background .2s;}
.auth-field input::placeholder{color:rgba(41,34,30,.32);}
.auth-field input:focus{border-color:var(--terracotta);background:#fffdf9;box-shadow:0 0 0 3px rgba(166,83,61,.08);}
.auth-submit{width:100%;justify-content:space-between;margin-top:7px;min-height:49px;}
.auth-submit span,.empty-state .btn span{font-size:17px;line-height:1;transition:transform .2s;}
.auth-submit:hover span,.empty-state .btn:hover span{transform:translateX(3px);}
.form-message{min-height:19px;font-size:11.5px!important;line-height:1.5!important;color:var(--terracotta)!important;margin:13px 0 0!important;}
.auth-card .btn:disabled{opacity:.55;}

.account-dashboard{max-width:1120px;margin:0 auto;}
.account-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;padding-bottom:34px;border-bottom:1px solid var(--line);}
.account-head h1{font-size:clamp(42px,5.5vw,64px);line-height:1;margin:10px 0 12px;letter-spacing:-.025em;}
.account-head p{font-size:13px;color:rgba(41,34,30,.56);}
.account-grid{display:grid;grid-template-columns:1fr 260px;gap:2px;background:var(--line);margin-top:2px;}
.account-grid .erp-card{border:0;}
.account-summary{background:var(--espresso);color:var(--warm-white);padding:30px;display:flex;flex-direction:column;justify-content:center;}
.account-summary .eyebrow{color:#d7a18f;}
.account-summary strong{font-family:var(--serif);font-weight:400;font-size:54px;line-height:1;margin:12px 0 5px;}
.account-summary>span:last-child{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:rgba(245,241,233,.55);}
.newsletter-card h2{font-size:28px;margin:8px 0 9px;}
.newsletter-card p{max-width:58ch!important;margin-bottom:22px!important;}
.toggle-row{cursor:pointer;width:max-content;max-width:100%;}
.toggle-row span{font-size:12px;}
.account-orders{padding-top:58px!important;}
.account-orders .section-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:22px;}
.account-orders .section-head h2{font-size:34px;margin-top:7px;}
.order-card{grid-template-columns:1fr 1.6fr .6fr auto;}
.order-card>div:last-child{display:flex;flex-direction:column;align-items:flex-end;gap:6px;}
.order-card .status{margin:0;}
.account-error{margin:40px auto;}

@media(max-width:900px){
  .auth-layout{grid-template-columns:1fr;}
  .auth-intro{min-height:auto;}
  .auth-intro-mark{margin-bottom:42px;}
  .auth-forms{grid-template-columns:1fr;}
  .auth-card + .auth-card{border-left:0;border-top:1px solid var(--line);}
  .account-grid{grid-template-columns:1fr 180px;}
}
@media(max-width:650px){
  .account-shell{padding-top:42px;}
  .auth-heading{margin-bottom:32px;}
  .auth-heading h1{font-size:48px;}
  .auth-intro{padding:28px;}
  .auth-intro h2{max-width:12ch;}
  .auth-card{padding:28px 24px;}
  .account-head{align-items:flex-start;flex-direction:column;}
  .account-grid{grid-template-columns:1fr;}
  .account-summary{min-height:150px;}
  .account-orders{padding-top:45px!important;}
  .order-card{grid-template-columns:1fr 1fr;gap:14px;}
  .order-card>div:last-child{align-items:flex-start;}
}

/* ============================================================
   OPERATIONS / PRODUCT MANAGEMENT
   ============================================================ */

.erp-top-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.erp-tabs{display:flex;gap:4px;margin:-4px 0 34px;border-bottom:1px solid var(--line);overflow:auto}.erp-tab{appearance:none;border:0;background:transparent;padding:13px 18px 15px;color:rgba(41,34,30,.55);font:600 10px/1 var(--sans);letter-spacing:.13em;text-transform:uppercase;cursor:pointer;position:relative;white-space:nowrap}.erp-tab:after{content:"";position:absolute;left:14px;right:14px;bottom:-1px;height:2px;background:transparent}.erp-tab:hover{color:var(--ink)}.erp-tab.active{color:var(--ink)}.erp-tab.active:after{background:var(--accent)}
.erp-overview-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;background:var(--line);margin-bottom:60px}.erp-panel{background:var(--warm-white);padding:30px;min-height:205px}.erp-panel.accent-panel{background:rgba(166,83,61,.055)}.erp-panel strong{display:block;font:300 45px/1 var(--serif);margin:4px 0 8px}.erp-panel h3{font:400 22px/1.1 var(--serif);margin:0 0 9px}.erp-panel p{font-size:13px;line-height:1.7;color:rgba(41,34,30,.63);max-width:34ch}.text-action{padding:0;border:0;background:none;color:var(--accent);font:600 10px/1 var(--sans);letter-spacing:.1em;text-transform:uppercase;cursor:pointer}.text-action:hover{text-decoration:underline}

.product-manager{padding-bottom:60px}.product-manager-head{display:flex;justify-content:space-between;gap:30px;align-items:flex-end;margin-bottom:28px}.product-manager-head h2{font:400 34px/1.05 var(--serif);margin:0 0 8px}.product-manager-head p{font-size:13px;line-height:1.7;color:rgba(41,34,30,.62);max-width:65ch;margin:0}.product-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:12px;padding:18px;border:1px solid var(--line);background:var(--bone)}.search-field{display:block;width:min(420px,100%)}.search-field>span{display:block;font:600 9px/1 var(--sans);letter-spacing:.13em;text-transform:uppercase;color:rgba(41,34,30,.5);margin-bottom:7px}.search-field input{box-sizing:border-box;width:100%;height:42px;border:1px solid var(--line-strong);background:var(--warm-white);padding:0 13px;font:400 12px var(--sans);outline:0}.search-field input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(166,83,61,.08)}.filter-pills{display:flex;gap:5px;flex-wrap:wrap}.filter-pill{border:1px solid var(--line-strong);background:transparent;padding:10px 13px;color:rgba(41,34,30,.58);font:600 9px/1 var(--sans);letter-spacing:.1em;text-transform:uppercase;cursor:pointer}.filter-pill:hover,.filter-pill.active{border-color:var(--ink);background:var(--ink);color:var(--warm-white)}.product-summary{display:flex;justify-content:space-between;gap:20px;padding:12px 2px 14px;color:rgba(41,34,30,.53);font-size:11px}.product-summary strong{color:var(--ink)}.product-table-wrap{overflow:auto;border:1px solid var(--line);background:var(--warm-white)}.product-table{border-collapse:collapse;width:100%;min-width:1050px;text-align:left;font-size:12px}.product-table th{padding:14px 15px;background:var(--bone);color:rgba(41,34,30,.52);font:600 9px/1 var(--sans);letter-spacing:.11em;text-transform:uppercase;white-space:nowrap}.product-table td{padding:14px 15px;border-top:1px solid var(--line);vertical-align:middle}.product-table tr:hover td{background:rgba(255,255,255,.35)}.product-table .archived-row td{opacity:.55}.product-name-cell strong{display:block;font-size:12.5px;font-weight:500}.product-name-cell small{display:block;margin-top:4px;color:rgba(41,34,30,.5);font-size:10px}.product-table code{font:500 10px/1 var(--sans);letter-spacing:.04em;color:rgba(41,34,30,.65)}.stock-input{width:66px;box-sizing:border-box;border:1px solid var(--line-strong);background:var(--warm-white);padding:8px 8px;font:400 12px var(--sans)}.stock-input:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 2px rgba(166,83,61,.08)}.muted{font-size:10px;color:rgba(41,34,30,.4)}.table-action{border:0;background:transparent;color:var(--accent);font:600 9px/1 var(--sans);letter-spacing:.1em;text-transform:uppercase;cursor:pointer}.table-action:hover{text-decoration:underline}.mini-badge{display:inline-block;margin-left:7px;padding:4px 6px;background:#e6ddd1;color:#514941;font:600 8px/1 var(--sans);letter-spacing:.08em;text-transform:uppercase}.mini-badge.bundle{background:rgba(166,83,61,.1);color:var(--accent)}

/* Product modal */
.modal-backdrop{position:fixed;z-index:1000;inset:0;display:flex;align-items:center;justify-content:center;padding:25px;background:rgba(43,37,33,.66)}.product-modal{position:relative;width:min(720px,100%);max-height:calc(100vh - 50px);overflow:auto;background:var(--warm-white);padding:42px;box-shadow:0 25px 80px rgba(0,0,0,.18)}.product-modal h2{font:400 38px/1.05 var(--serif);margin:0 45px 8px 0}.modal-intro{margin:0 0 28px;color:rgba(41,34,30,.62);font-size:13px;line-height:1.7}.product-form{display:grid;gap:17px}.form-grid{display:grid;gap:14px}.form-grid.two{grid-template-columns:1fr 1fr}.form-grid.three{grid-template-columns:repeat(3,1fr)}.product-form label>span{display:block;margin-bottom:7px;color:rgba(41,34,30,.58);font:600 9px/1 var(--sans);letter-spacing:.11em;text-transform:uppercase}.product-form input,.product-form select{box-sizing:border-box;width:100%;height:43px;border:1px solid var(--line-strong);background:#fbf8f2;padding:0 11px;color:var(--ink);font:400 12px var(--sans);outline:0}.product-form input:focus,.product-form select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(166,83,61,.08)}.product-form input[readonly]{background:#e9e1d5;color:rgba(41,34,30,.55)}.form-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:4px}.check-option{display:flex!important;align-items:flex-start;gap:10px;padding:13px;border:1px solid var(--line);background:var(--bone);cursor:pointer}.check-option input{width:16px!important;height:16px!important;margin:1px 0 0;accent-color:var(--accent)}.check-option span{display:block}.check-option strong{display:block;font-size:11px;font-weight:600}.check-option small{display:block;margin-top:4px;color:rgba(41,34,30,.52);font-size:10px;line-height:1.5}.modal-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:8px}.form-message{min-height:18px;margin:0;color:var(--accent);font-size:11px}

@media(max-width:900px){.erp-overview-grid{grid-template-columns:1fr}.product-manager-head{align-items:flex-start;flex-direction:column}.product-toolbar{align-items:stretch;flex-direction:column}.search-field{width:100%}.product-summary{align-items:flex-start;flex-direction:column;gap:6px}.form-grid.three{grid-template-columns:1fr 1fr}.form-options{grid-template-columns:1fr}}
@media(max-width:600px){.erp-top-actions{width:100%}.erp-top-actions .btn{flex:1;text-align:center}.form-grid.two,.form-grid.three{grid-template-columns:1fr}.product-modal{padding:32px 22px}.product-modal h2{font-size:31px}.modal-backdrop{padding:10px}.erp-panel{padding:24px}}

/* ============================================================
   ORDER FULFILMENT / PICKING
   ============================================================ */

.order-fulfilment-list {
  display: grid;
  gap: 22px;
  margin-top: 8px;
}


/* Main order card */

.fulfilment-card {
  border: 1px solid var(--line);
  background: var(--warm-white);
  box-shadow: 0 10px 35px rgba(41, 34, 30, .035);
}


/* ------------------------------------------------------------
   ORDER HEADER
   ------------------------------------------------------------ */

.fulfilment-header {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 24px 26px;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
}

.fulfilment-order {
  min-width: 0;
}

.fulfilment-order-number {
  font: 500 18px/1 var(--sans);
  letter-spacing: .04em;
  color: var(--ink);
}

.fulfilment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  margin-top: 9px;
  color: rgba(41, 34, 30, .55);
  font-size: 11px;
}

.fulfilment-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 18px;
  color: rgba(41, 34, 30, .25);
}

.fulfilment-summary {
  display: flex;
  align-items: center;
  gap: 30px;
}

.fulfilment-stat {
  text-align: right;
}

.fulfilment-stat span {
  display: block;
  margin-bottom: 5px;
  color: rgba(41, 34, 30, .45);
  font: 600 8px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fulfilment-stat strong {
  font: 400 18px/1 var(--serif);
}


.fulfilment-status {
  min-width: 145px;
}

.fulfilment-status select {
  width: 100%;
  height: 39px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  background: var(--warm-white);
  color: var(--ink);
  font: 500 11px var(--sans);
  outline: none;
}

.fulfilment-status select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(166, 83, 61, .08);
}

.fulfilment-status small {
  display: block;
  margin-top: 6px;
  color: rgba(41, 34, 30, .45);
  font-size: 9px;
}


/* ------------------------------------------------------------
   CUSTOMER / DELIVERY INFORMATION
   ------------------------------------------------------------ */

.fulfilment-info-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr .8fr;
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.fulfilment-info-block {
  min-height: 105px;
  padding: 20px 24px;
  background: var(--warm-white);
}

.fulfilment-info-block .eyebrow {
  display: block;
  margin-bottom: 10px;
}

.fulfilment-info-block strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.fulfilment-info-block small {
  display: block;
  margin-top: 5px;
  color: rgba(41, 34, 30, .5);
  font-size: 10.5px;
  line-height: 1.5;
}

.pick-progress {
  font: 400 24px/1 var(--serif) !important;
  color: var(--accent);
}


/* ------------------------------------------------------------
   PICK LIST
   ------------------------------------------------------------ */

.order-lines-section {
  padding: 25px 26px 8px;
}

.order-lines-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.order-lines-heading h3 {
  margin: 5px 0 0;
  font: 400 25px/1 var(--serif);
}

.order-lines-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}


.order-lines {
  border-top: 1px solid var(--line);
}


.order-line {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 17px 5px;
  border-bottom: 1px solid var(--line);
  transition:
    background .18s ease,
    opacity .18s ease;
}

.order-line:hover {
  background: rgba(166, 83, 61, .025);
}

.order-line.picked {
  background: rgba(75, 105, 72, .045);
}

.order-line.picked .order-line-product strong {
  text-decoration: line-through;
  text-decoration-color: rgba(41, 34, 30, .25);
  opacity: .62;
}


/* Checkbox */

.pick-checkbox {
  position: relative;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  cursor: pointer;
}

.pick-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pick-checkbox span {
  position: absolute;
  inset: 0;
  display: block;
  border: 1px solid var(--line-strong);
  background: var(--warm-white);
  transition: all .18s ease;
}

.pick-checkbox span::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 7px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .15s ease;
}

.pick-checkbox input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
}

.pick-checkbox input:checked + span::after {
  transform: rotate(45deg) scale(1);
}


/* Line content */

.order-line-main {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 70px 90px 90px;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.order-line-product strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.order-line-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 6px;
  color: rgba(41, 34, 30, .46);
  font-size: 9px;
}

.order-line-meta code {
  color: rgba(41, 34, 30, .65);
  font: 600 9px/1 var(--sans);
  letter-spacing: .06em;
}

.order-line-meta span {
  text-transform: capitalize;
}

.order-line-qty,
.order-line-price,
.order-line-total {
  text-align: right;
}

.order-line-qty span,
.order-line-price span,
.order-line-total span {
  display: block;
  margin-bottom: 5px;
  color: rgba(41, 34, 30, .4);
  font: 600 8px/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.order-line-qty strong {
  font: 500 18px/1 var(--sans);
}

.order-line-price strong,
.order-line-total strong {
  font: 500 12px/1 var(--sans);
}


/* Gift bag */

.order-line-bag {
  background: rgba(166, 83, 61, .035);
}

.order-line-bag .order-line-product strong {
  color: var(--accent);
}

.order-line-bag .mini-badge {
  vertical-align: middle;
}


/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */

.fulfilment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 19px 26px;
  border-top: 1px solid var(--line);
  background: #fbf8f2;
}

.fulfilment-totals {
  display: flex;
  align-items: center;
  gap: 24px;
}

.fulfilment-totals > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.fulfilment-totals span {
  color: rgba(41, 34, 30, .45);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.fulfilment-totals strong {
  font-size: 11px;
  font-weight: 500;
}

.fulfilment-totals .grand-total {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.fulfilment-totals .grand-total strong {
  font: 400 20px/1 var(--serif);
  color: var(--ink);
}

.fulfilment-note {
  color: rgba(41, 34, 30, .48);
  font-size: 10px;
}

.pick-complete {
  color: #5c7659;
  font-weight: 600;
}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 1000px) {

  .fulfilment-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .fulfilment-summary {
    width: 100%;
    justify-content: space-between;
  }

  .fulfilment-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fulfilment-info-block:last-child {
    grid-column: 1 / -1;
  }

  .order-line-main {
    grid-template-columns: minmax(180px, 1fr) 60px 80px 80px;
  }
}


@media (max-width: 700px) {

  .fulfilment-header {
    padding: 20px;
  }

  .fulfilment-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .fulfilment-stat {
    text-align: left;
  }

  .fulfilment-status {
    grid-column: 1 / -1;
    width: 100%;
  }

  .fulfilment-info-grid {
    grid-template-columns: 1fr;
  }

  .fulfilment-info-block:last-child {
    grid-column: auto;
  }

  .order-lines-section {
    padding: 22px 18px 8px;
  }

  .order-lines-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-line {
    align-items: flex-start;
  }

  .order-line-main {
    grid-template-columns: 1fr 60px;
    gap: 14px;
  }

  .order-line-price,
  .order-line-total {
    text-align: left;
  }

  .fulfilment-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .fulfilment-totals {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .fulfilment-totals .grand-total {
    padding-left: 0;
    border-left: 0;
  }
}

/* ============================================================
   DATABASE PRODUCT DETAIL PAGE
   ============================================================ */

.product-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 22px;
  font: 500 11px/1 var(--sans);
  letter-spacing: .04em;
}

.product-stock small {
  margin-left: 5px;
  color: rgba(41, 34, 30, .42);
  font-size: 10px;
  font-weight: 400;
}

.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.product-stock.available .stock-dot {
  background: #66805f;
}

.product-stock.available {
  color: #5d7357;
}

.product-stock.low .stock-dot {
  background: var(--accent);
}

.product-stock.low {
  color: var(--accent);
}

.product-stock.out .stock-dot {
  background: #8c817b;
}

.product-stock.out {
  color: #7b706b;
}


/* ------------------------------------------------------------
   PRODUCT METADATA
   ------------------------------------------------------------ */

.product-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 0 24px;
}

.product-meta > div {
  padding: 15px 12px 15px 0;
}

.product-meta > div + div {
  padding-left: 15px;
  border-left: 1px solid var(--line);
}

.product-meta span {
  display: block;
  margin-bottom: 6px;
  color: rgba(41, 34, 30, .42);
  font: 600 8px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.product-meta strong {
  display: block;
  color: var(--ink);
  font: 500 10px/1.4 var(--sans);
}


/* ------------------------------------------------------------
   PRODUCT VISUAL
   ------------------------------------------------------------ */

.pdp-visual {
  position: relative;
}

.pdp-product-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  padding: 8px 11px;
  background: rgba(248, 245, 238, .88);
  border: 1px solid rgba(41, 34, 30, .12);
  color: rgba(41, 34, 30, .62);
  font: 600 8px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}


/* ------------------------------------------------------------
   LOADING
   ------------------------------------------------------------ */

.product-loading {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
}

.product-loading h1 {
  margin: 14px 0 8px;
  font: 400 42px/1.1 var(--serif);
}

.product-loading p {
  margin: 0;
  color: rgba(41, 34, 30, .5);
}


/* ------------------------------------------------------------
   ERROR
   ------------------------------------------------------------ */

.product-error {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 80px;
  padding-bottom: 80px;
}

.product-error h1 {
  margin: 12px 0;
  font: 400 48px/1.05 var(--serif);
}

.product-error p {
  max-width: 520px;
  margin-bottom: 28px;
  color: rgba(41, 34, 30, .55);
  line-height: 1.7;
}


/* ------------------------------------------------------------
   DISABLED ADD BUTTON
   ------------------------------------------------------------ */

.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 700px) {

  .product-meta {
    grid-template-columns: 1fr;
  }

  .product-meta > div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .product-meta > div {
    padding: 13px 0;
  }

  .product-loading h1,
  .product-error h1 {
    font-size: 36px;
  }

}

/* ============================================================
   ERP PRODUCT IMAGES
   ============================================================ */

.product-image-frame {
  width: 100%;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #eee9e0;
}

.product-detail-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.product-image-placeholder {
  width: 100%;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 500 12px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(41, 34, 30, .45);
}

.card-product-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.product-detail-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 700px) {
  .product-image-frame,
  .product-detail-image,
  .product-image-placeholder {
    min-height: 420px;
  }

  .product-detail-related-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   ERP PRODUCT IMAGE MANAGEMENT
   ============================================================ */

.form-grid.one {
  grid-template-columns: minmax(0, 1fr);
}

.field-help {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(41, 34, 30, .58);
}

.field-help code {
  font-size: 10px;
}

.erp-product-thumb {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: cover;
  border-radius: 4px;
  background: #eee9e0;
}

.product-image-preview {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -4px 0 18px;
  padding: 10px;
  border: 1px solid rgba(41, 34, 30, .12);
  background: #f7f4ee;
}

.product-image-preview img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  display: block;
}

.product-image-preview span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(41, 34, 30, .58);
}

.product-image-preview.is-broken img {
  display: none;
}

/* ============================================================
   CHECKOUT (delivery options + Yoco hand-off) & PAYMENT NOTICES
   ============================================================ */
.modal-box.checkout-box{width:min(560px,100%); max-height:calc(100vh - 40px); overflow-y:auto;}
.co-grid{display:grid; grid-template-columns:1fr 1fr; gap:0 14px;}
.co-grid .co-wide{grid-column:1/-1;}
.co-field{display:block;}
.co-field > span{display:block; font-size:11px; letter-spacing:.06em; text-transform:uppercase; font-weight:600; color:rgba(41,34,30,.6); margin-bottom:6px;}
.checkout-box select{width:100%; border:1px solid var(--line-strong); padding:11px 12px; font-family:var(--sans); font-size:13.5px; background:var(--warm-white); margin-bottom:16px;}
.checkout-box .btn{width:100%; justify-content:center; margin-top:6px;}
.co-rates{border:0; padding:0; margin:8px 0 0;}
.co-rates legend{font-size:11px; letter-spacing:.06em; text-transform:uppercase; font-weight:600; color:rgba(41,34,30,.6); margin-bottom:8px;}
.co-rate{display:flex !important; align-items:center; gap:12px; padding:13px 14px; border:1px solid var(--line-strong); margin-bottom:8px !important; cursor:pointer; text-transform:none !important; letter-spacing:0 !important; font-weight:400 !important; color:var(--espresso) !important; font-size:13.5px !important;}
.co-rate input{width:16px; height:16px; margin:0; accent-color:var(--terracotta);}
.co-rate:has(input:checked){border-color:var(--espresso); background:var(--bone);}
.co-rate-name{flex:1;}
.co-rate-name small{display:block; font-size:12px; color:rgba(41,34,30,.55); margin-top:2px;}
.co-rate-fee{font-weight:500; font-variant-numeric:tabular-nums;}
.co-summary{border-top:1px solid var(--line); margin:14px 0 6px; padding-top:12px; font-size:13.5px;}
.co-summary > div{display:flex; justify-content:space-between; padding:4px 0; font-variant-numeric:tabular-nums;}
.co-summary .co-total{font-weight:600; font-size:15px; border-top:1px solid var(--line); margin-top:6px; padding-top:10px;}
.checkout-box .form-message{color:var(--terracotta); font-size:13px; margin-top:10px;}
@media (max-width:560px){.co-grid{grid-template-columns:1fr;}}

.payment-notice{display:flex; flex-direction:column; gap:4px; padding:16px 18px; margin:24px 0 0; border:1px solid var(--line-strong); background:var(--bone); font-size:14px; line-height:1.6;}
.payment-notice strong{font-family:var(--serif); font-size:18px; font-weight:400;}
.payment-ok{border-color:var(--olive);}
.payment-warn{border-color:var(--terracotta);}
