:root{
  --bg:#fff; --ink:#0a0a0a; --muted:#6b7280; --ring:rgba(0,0,0,.08);
  --icon-box:48px;          /* mobile icon button box */
  --icon-size:24px;         /* mobile icon size */
  --logo-h:22px;            /* mobile logo height (text lockup) */
  --container-pad:16px;     /* mobile page gutters */
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink); background:var(--bg)
}

/* Header */
.header{position:sticky; top:0; z-index:40; background:#fff; border-bottom:1px solid var(--ring)}
.nav{
  height:56px; display:flex; align-items:center; justify-content:space-between;
  padding:0 var(--container-pad);
}
.icon-btn{
  width:var(--icon-box); height:var(--icon-box);
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:10px; border:1px solid transparent; background:transparent; cursor:pointer;
  position:relative;
}
.icon-btn:hover{border-color:var(--ring)}
.icon-btn svg{width:var(--icon-size); height:auto; display:block}

.nav-left,.nav-right{flex:0 0 var(--icon-box); display:flex; align-items:center; justify-content:center}
.brand{flex:1 1 auto; display:flex; justify-content:center}
.brand img{height:var(--logo-h); width:auto; display:block}

/* Hero */
.hero{position:relative; overflow:hidden}
.hero img{display:block; width:100%; height:62vh; object-fit:cover}
.hero .cta{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  border:1.5px solid #fff; color:#fff; padding:10px 22px;
  font-weight:600; letter-spacing:.06em; text-decoration:none; backdrop-filter: blur(1px);
}

/* Sections */
.section{padding:28px var(--container-pad) 48px}
.section .inner{max-width:1100px; margin:0 auto}
h2{margin:0 0 18px; font-size:14px; font-weight:600; color:#111}

/* Footer */
.footer{border-top:1px solid var(--ring); padding:20px var(--container-pad) 28px}
.foot-inner{max-width:900px; margin:0 auto; display:flex; flex-direction:column; align-items:center; gap:16px}
.ig{width:36px; height:36px; display:flex; align-items:center; justify-content:center}
.legal{font-size:12px; color:#111; display:flex; gap:8px; flex-wrap:wrap; align-items:center; justify-content:center}
.legal a{color:inherit; text-decoration:none}
.dot{opacity:.4}

/* Tablet / Desktop */
@media (min-width:768px){
  :root{ --icon-box:56px; --icon-size:26px; --logo-h:26px; --container-pad:24px; }
  .nav{height:64px}
  .hero img{height:75vh}
}
@media (min-width:1024px){
  :root{ --icon-box:64px; --icon-size:28px; --logo-h:30px; --container-pad:28px; }
  .nav{height:72px}
  .hero img{height:100vh}
}

/* Hero slideshow */
.slides{ position:relative; width:100%; height:62vh; }
.slides img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; animation: heroFade 12s infinite;
}
.slides img:nth-child(1){ animation-delay:0s }
.slides img:nth-child(2){ animation-delay:6s }

@keyframes heroFade{
  0%,45%{opacity:1} 50%,95%{opacity:0} 100%{opacity:1}
}
@media (prefers-reduced-motion:reduce){ .slides img{ animation:none; opacity:1 } }
@media (min-width:768px){ .slides{ height:75vh } }
@media (min-width:1024px){ .slides{ height:100vh } }

/* ===== Mobile menu (drawer from left) ===== */
.overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.45);
  opacity:0; pointer-events:none;
  transition:opacity .25s ease;
  z-index:60;
}
.drawer{
  position:fixed; inset:0 auto 0 0;
  width:min(85vw, 420px); height:100dvh;
  background:#fff;
  transform:translateX(-100%);
  transition:transform .32s ease;
  z-index:70; display:flex; flex-direction:column;
  padding:16px 0 28px;
}
.close-btn{
  position:absolute; top:12px; right:14px;
  font-size:28px; line-height:1; background:transparent; border:0; cursor:pointer;
}
.drawer-nav{ margin-top:40px; display:flex; flex-direction:column; gap:14px }
.drawer-nav .item{ padding:5px 22px; font-size:17px; text-decoration:none; color:#0a0a0a; transition:background-color .2s ease }
.drawer-nav .item.is-active,
.drawer-nav .item:hover{ background:#ebebeb }
.drawer-nav .item:is(:focus-visible){ outline:2px solid rgba(0,0,0,.3); outline-offset:2px }
.drawer-ig{ margin-top:auto; align-self:center; color:#0a0a0a; text-decoration:none; width:44px; height:44px; display:grid; place-items:center }

.body-menu-open{ overflow:hidden }
.body-menu-open .overlay{ opacity:1; pointer-events:auto }
.body-menu-open .drawer{ transform:translateX(0) }
@media (prefers-reduced-motion:reduce){ .overlay, .drawer{ transition:none } }

/* Badge on cart icon */
.badge, .cart-badge{
  position:absolute; top:-4px; right:-4px;
  min-width:18px; height:18px; padding:0 4px;
  background:#000; color:#fff; border-radius:999px;
  font-size:11px; line-height:18px; text-align:center;
  display:none; align-items:center; justify-content:center;
}

/* ===== Full-page Cart Overlay ===== */

/* Base overlay: white surface, blocked until active */
#cart-overlay.overlay{
  position:fixed; inset:0; background:#fff;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .25s ease, visibility .25s ease;
  z-index:1000;
}
#cart-overlay.active{
  opacity:1; visibility:visible; pointer-events:auto;
}

/* Cart container fills viewport; subtle drop-in */
#cart-overlay .cart-slideout{
  position:fixed; inset:0; width:100vw; height:100vh;
  background:transparent; border-left:none;
  transform:translateY(16px); opacity:0;
  transition:transform .25s ease, opacity .25s ease;
  display:flex; flex-direction:column;
}
#cart-overlay.active .cart-slideout{ transform:translateY(0); opacity:1 }

/* Replace your current .cart-inner block with this */
.cart-inner{
  width: 100%;
  height: 100%;
  margin: 0;                /* no need for margin:auto anymore */
  display: block;           /* your single scroll container */

 
  overflow-y: scroll;
}

/* Cart container fills viewport */
#cart-overlay .cart-slideout{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  border-left: none;
  transform: translateY(16px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;

  display: flex;              /* keep your column layout */
  flex-direction: column;
          /* <-- move scrolling here */
  scrollbar-gutter: stable;   /* keeps layout from shifting when bar shows */
}

/* Cart sections */
.cart-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 0; border-bottom:1px solid #eee;
}
.cart-title{ font-weight:600 }
.cart-items{  padding:16px 0 }
.cart-footer{ border-top:1px solid #eee; padding:16px 0 }
.checkout-btn{
  display:block; width:100%; text-align:center;
  background:#000; color:#fff; border:0; padding:.75rem;
   text-decoration:none;
   font-weight: 800;
   font-size: 20px;
}

/* Line item + quantity controls */
.cart-item{
  display:flex; gap:.8rem; align-items:center;
  padding:.8rem; border:1px solid #eee; border-radius:.6rem;
  margin-bottom:.8rem; background:#fafafa;
}
.cart-item img{ width:48px; height:48px; object-fit:cover; border-radius:6px; filter:grayscale(100%) }
.cart-item-info{ flex:1 }
.cart-item-name{ font-size:.8rem; font-weight:600; margin-bottom:2px }
.cart-item-meta{ font-size:.75rem; color:#666 }
.cart-row-right{ text-align:right }

.cart-qty{ display:flex; align-items:center; gap:.4rem; margin-top:.35rem }
.cart-qty button{
  width:26px; height:26px; border:1px solid #ddd; background:#fff;
  border-radius:6px; cursor:pointer;
}
.cart-qty .qty-input{
  width:44px; height:26px; text-align:center; border:1px solid #ddd; border-radius:6px;
}
.remove-item-btn{ border:none; background:transparent; padding:.25rem; cursor:pointer; opacity:.7 }
.remove-item-btn:hover{ opacity:1 }

/* ===== Empty Cart (centered hero) ===== */
.cart-items.centered{
  display:flex; align-items:center; justify-content:center;
}
.cart-empty-hero{
  text-align:center; width:100%;
  padding: clamp(48px, 18vh, 180px) 16px;
}
.cart-empty-title{
  font-size: 40px;
  font-weight:600; letter-spacing:.01em; margin:0 0 22px;
}
.ghost-btn{
  display:inline-block; padding:12px 22px;
  border:1px solid #1a1a1a;
  background:#fff; color:#111; text-decoration:none; font-weight:500;
}
.ghost-btn:hover{ background:#f6f6f6 }
/* === List-style cart (when items exist) === */
.cart-header.grid {
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:28px 0;
}
.cart-header .cart-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight:400; letter-spacing:.01em;
}
.cart-header .continue-shopping {
  color:#666; text-decoration:underline; font-size:18px;
}
.cart-header .continue-shopping:hover { color:#111; }

/* header row above products */
.product-header {
  display:flex; justify-content:space-between;
  padding:18px 0; border-bottom:1px solid #000; margin-bottom:26px;
}
.product-label,.total-label {
  font-size:14px; color:#666; letter-spacing:1px;
}

/* line item */
.product-item{
  display:flex; gap:12px; align-items:flex-start;
  padding-bottom:26px; margin-bottom:26px; border-bottom:1px solid #000;
}
.product-image{
  width:clamp(100px,18vw,200px); height:clamp(100px,18vw,200px);
  object-fit:cover; flex-shrink:0;
}
.product-details{ flex:1; min-width:0; }
.product-name{ font-size:18px; font-weight:400; margin-bottom:10px; letter-spacing:1px; }
.product-price{ font-size:18px; margin-bottom:12px; color:#111; }
.product-option{ font-size:15px; color:#666; margin-bottom:6px; }

.quantity-controls{ display:flex; align-items:center; gap:14px; margin-top:10px; }
.quantity-container{ display:flex; background:#000; }
.quantity-btn{
  width:40px; height:40px; background:#000; color:#fff; border:0; font-size:18px; cursor:pointer;
}
.quantity-btn:hover{ background:#333; }
.quantity-display{
  min-width:60px; height:40px; display:flex; align-items:center; justify-content:center;
  padding:0 14px; background:#000; color:#fff; font-size:16px;
}
.delete-btn{ background:none; border:0; cursor:pointer; padding:6px; }
.delete-btn svg{ width:22px; height:22px; fill:#333; }

.product-total{ text-align:right; font-size:18px; color:#666; white-space:nowrap; }

/* summary area at the bottom */
.cart-summary{ text-align:center; margin-top:24px; }
.estimated-total{
  font-size:22px; margin-bottom:14px; color:#000; font-weight:700;
}
.shipping-note{ color:#666; margin-bottom:22px; font-size:14px; }
.checkout-btn{ max-width:520px; margin:0 auto; }

/* Make the whole cart column scroll, not just the items list */
.cart-inner{
  width: min(1100px, 92vw);
  margin: 0 auto;

  /* turn off the grid “header | items | footer” layout */
  display: block;
 
  /* comfortable gutters so footer isn't flush to bottom */
  padding: 0 40px;
}

/* Let items be normal flow (no internal scrolling) */
.cart-items{
   border-top:1px solid #000;

  padding: 16px 0;
}

/* Footer participates in the same scroll, not fixed/pinned */
.cart-footer{
  position: static;
  border-top: 1px solid #eee;
  padding: 16px 0;
}

/* Optional: keep a little breathing room below the button */
.checkout-btn{ margin-top: 10px; }
