/* ============================================================
   NESTIQUE STORE — Brand Stylesheet
   Palette : Paper #F7F3EA, Ink #1C1710, Coral #FF5A5F, Teal #0F5C57, Mustard #F2A93B
   Type    : "Fraunces" (display/large only), "Space Grotesk" (body/UI, never bold-caps small)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root{
  --paper:#F7F3EA;
  --paper-2:#EFE8D8;
  --ink:#1C1710;
  --coral:#FF5A5F;
  --teal:#0F5C57;
  --mustard:#F2A93B;
  --white:#FFFFFF;
  --line:rgba(28,23,16,.12);
  --muted:rgba(28,23,16,.58);
  --radius:16px;
  --ease:cubic-bezier(.16,1,.3,1);
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Space Grotesk',sans-serif;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.display{
  font-family:'Fraunces',serif;
  font-weight:600;
  letter-spacing:-.5px;
  line-height:1.04;
  margin:0;
}
/* Bold/caps reserved for large display headings only — never small UI text */
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit;}
ul{list-style:none;margin:0;padding:0;}
svg{display:block;}
p{margin:0;}

a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{
  outline:2px solid var(--teal);
  outline-offset:3px;
}

/* ---------- Texture layers ---------- */
.grain{
  position:fixed;inset:0;pointer-events:none;z-index:9000;
  opacity:.045;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grid-bg{
  position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:
    linear-gradient(var(--line) 1px,transparent 1px),
    linear-gradient(90deg,var(--line) 1px,transparent 1px);
  background-size:44px 44px;
  opacity:.5;
  mask-image:radial-gradient(ellipse 80% 60% at 50% 20%,#000,transparent 75%);
}
.halftone-bg{
  position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:radial-gradient(var(--ink) 1px,transparent 1.4px);
  background-size:15px 15px;
  opacity:.06;
  mask-image:linear-gradient(180deg,transparent,#000 20%,#000 80%,transparent);
}
.container{max-width:1240px;margin:0 auto;padding:0 24px;position:relative;z-index:1;}
.icon{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}

/* ---------- Nav ---------- */
.nav{
  position:sticky;top:0;z-index:500;
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 28px;
  background:rgba(247,243,234,.82);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.logo{display:flex;align-items:center;gap:10px;font-size:1.25rem;font-family:'Fraunces';font-weight:600;letter-spacing:-.2px;}
.logo-mark{width:38px;height:38px;flex-shrink:0;border-radius:50%;object-fit:cover;}
.nav-links{display:flex;gap:28px;align-items:center;font-weight:500;font-size:.9rem;}
.nav-links a{position:relative;padding:4px 0;}
.nav-links a::after{
  content:"";position:absolute;left:0;bottom:-2px;height:1.5px;width:0;background:var(--coral);
  transition:width .35s var(--ease);
}
.nav-links a:hover::after{width:100%;}
.nav-actions{display:flex;align-items:center;gap:18px;}
.icon-btn{position:relative;display:flex;color:var(--ink);}
.cart-count{
  position:absolute;top:-8px;right:-10px;
  background:var(--coral);color:var(--white);
  font-size:.62rem;font-weight:700;border-radius:50%;
  width:17px;height:17px;display:flex;align-items:center;justify-content:center;
}

/* ---------- Mobile hamburger + full-screen menu ---------- */
.hamburger{display:none;flex-direction:column;justify-content:center;gap:5px;width:34px;height:34px;flex-shrink:0;}
.hamburger span{display:block;width:100%;height:2px;background:var(--ink);border-radius:2px;transition:transform .3s var(--ease),opacity .3s var(--ease);}
.hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.hamburger.open span:nth-child(2){opacity:0;}
.hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
.mobile-nav{
  position:fixed;inset:0;z-index:400;
  background:var(--paper);
  display:flex;flex-direction:column;gap:2px;
  padding:104px 28px 40px;
  transform:translateY(-100%);
  transition:transform .45s var(--ease);
  pointer-events:none;
}
.mobile-nav.open{transform:translateY(0);pointer-events:auto;}
.mobile-nav a{
  padding:18px 2px;font-family:'Fraunces';font-size:1.5rem;font-weight:600;
  border-bottom:1px solid var(--line);color:var(--ink);
}
.mobile-nav a:active{color:var(--coral);}

/* ---------- Hero ---------- */
.hero{position:relative;padding:76px 0 54px;overflow:hidden;}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center;}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:.82rem;font-weight:500;letter-spacing:.2px;
  color:var(--teal);background:rgba(15,92,87,.09);
  padding:6px 14px;border-radius:100px;margin-bottom:22px;
}
.hero h1{font-size:clamp(2.6rem,6vw,4.6rem);color:var(--ink);}
.hero h1 em{font-style:italic;color:var(--coral);}
.hero p.lede{max-width:440px;margin-top:20px;font-size:1.02rem;line-height:1.65;color:var(--muted);}
.hero-ctas{display:flex;gap:16px;margin-top:30px;flex-wrap:wrap;}
.btn{
  padding:14px 26px;border-radius:100px;font-weight:600;font-size:.9rem;
  letter-spacing:.1px;transition:transform .3s var(--ease),box-shadow .3s var(--ease);
  display:inline-flex;align-items:center;gap:8px;
}
.btn-primary{background:var(--ink);color:var(--paper);box-shadow:0 8px 20px -10px rgba(28,23,16,.5);}
.btn-outline{border:1.5px solid var(--line);color:var(--ink);}
.btn-coral{background:var(--coral);color:var(--white);box-shadow:0 8px 20px -10px rgba(255,90,95,.6);}
@media (hover:hover) and (pointer:fine){
  .btn-primary:hover{transform:translateY(-3px);box-shadow:0 14px 26px -10px rgba(28,23,16,.55);}
  .btn-outline:hover{border-color:var(--teal);color:var(--teal);}
  .btn-coral:hover{transform:translateY(-3px);}
}
.btn:active{transform:translateY(0);}

/* --- hero poster stack: dynamic float + drag-tilt --- */
.stack-wrap{position:relative;height:460px;perspective:1400px;}
.poster-stack{position:relative;width:100%;height:100%;transform-style:preserve-3d;}
.stack-card{
  position:absolute;width:240px;height:325px;
  border-radius:10px;overflow:hidden;
  box-shadow:0 26px 50px -18px rgba(28,23,16,.35);
  background:var(--paper-2);
  border:5px solid var(--white);
  animation:float-card 7s ease-in-out infinite;
  will-change:transform;
}
.stack-card img{width:100%;height:100%;object-fit:cover;}
.stack-card::before{
  content:"";position:absolute;top:14px;left:50%;z-index:4;
  width:56px;height:22px;transform:translateX(-50%) rotate(-4deg);
  background:var(--mustard);opacity:.8;mix-blend-mode:multiply;
  box-shadow:0 2px 4px rgba(28,23,16,.15);
}
.stack-card:nth-child(1){top:64px;left:6%;--rot:-9deg;animation-delay:0s;z-index:1;}
.stack-card:nth-child(1)::before{background:var(--coral);transform:translateX(-50%) rotate(4deg);}
.stack-card:nth-child(2){top:20px;left:29%;--rot:3deg;animation-delay:.9s;z-index:3;width:258px;height:350px;}
.stack-card:nth-child(2)::before{background:var(--mustard);transform:translateX(-50%) rotate(-3deg);}
.stack-card:nth-child(3){top:74px;left:52%;--rot:12deg;animation-delay:1.6s;z-index:2;}
.stack-card:nth-child(3)::before{background:var(--teal);opacity:.7;transform:translateX(-50%) rotate(2deg);}
@keyframes float-card{
  0%,100%{ transform: rotate(var(--rot)) translateY(0) translateZ(0); }
  50%{ transform: rotate(calc(var(--rot) - 3deg)) translateY(-16px) translateZ(30px); }
}
.stack-badge{
  position:absolute;bottom:-14px;left:50%;transform:translateX(-50%);
  background:var(--mustard);color:var(--ink);
  font-size:.78rem;font-weight:600;padding:9px 18px;border-radius:100px;
  white-space:nowrap;box-shadow:0 10px 20px -8px rgba(242,169,59,.6);
}

/* ---------- Marquee ---------- */
.marquee{
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  padding:14px 0;overflow:hidden;white-space:nowrap;background:var(--paper-2);
}
.marquee-track{display:inline-block;animation:scroll-left 28s linear infinite;}
.marquee-track span{
  font-family:'Space Grotesk';font-weight:500;font-size:.88rem;letter-spacing:.3px;
  margin:0 22px;color:var(--ink);opacity:.75;
}
.marquee-track span i{color:var(--coral);font-style:normal;margin-right:9px;}
@keyframes scroll-left{from{transform:translateX(0);}to{transform:translateX(-50%);}}

/* ---------- Section heading ---------- */
.section{padding:76px 0;position:relative;scroll-margin-top:76px;}
.section-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:40px;flex-wrap:wrap;gap:20px;}
.section-head h2{font-size:clamp(1.9rem,4vw,2.8rem);}
.section-head p{max-width:380px;color:var(--muted);font-size:.9rem;}
.cart-page .section-head{margin-bottom:52px;}
@media (min-width:860px){
  .cart-page .section-head{margin-bottom:64px;}
}

/* ---------- Filter chips ---------- */
.filters{display:flex;gap:10px;margin-bottom:32px;flex-wrap:wrap;}
.chip{
  padding:9px 17px;border-radius:100px;font-size:.83rem;font-weight:500;
  border:1px solid var(--line);transition:all .25s var(--ease);color:var(--ink);
}
.chip.active{background:var(--ink);color:var(--paper);border-color:var(--ink);}
@media (hover:hover) and (pointer:fine){
  .chip:hover{background:var(--ink);color:var(--paper);border-color:var(--ink);}
}

/* ---------- Product grid ---------- */
.grid-section{position:relative;}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;position:relative;z-index:1;}
.card{
  position:relative;border-radius:var(--radius);
  background:var(--white);
  overflow:hidden;
  opacity:0;transform:translateY(24px);
  transition:opacity .6s var(--ease),transform .6s var(--ease),box-shadow .35s var(--ease),border-color .35s var(--ease);
  border:1px solid var(--line);
}
.card.in-view{opacity:1;transform:translateY(0);}
.card-media{position:relative;aspect-ratio:4/5;overflow:hidden;background:var(--paper-2);}
.card-media img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease);}
.card-badge{
  position:absolute;top:12px;left:12px;z-index:2;
  background:rgba(255,255,255,.9);backdrop-filter:blur(6px);color:var(--ink);
  font-size:.7rem;font-weight:500;
  padding:6px 11px;border-radius:100px;border:1px solid var(--line);
}
.peel{
  position:absolute;top:0;right:0;width:54px;height:54px;z-index:3;
  background:linear-gradient(135deg,transparent 50%,var(--paper) 50%);
  transition:width .4s var(--ease),height .4s var(--ease);
  filter:drop-shadow(-3px 3px 6px rgba(28,23,16,.15));
  display:flex;align-items:flex-start;justify-content:flex-end;
}
.peel svg{width:16px;height:16px;margin:14px 14px 0 0;opacity:0;transition:opacity .3s .1s;color:var(--ink);}
/* Hover-only effects (box-shadow growth, image zoom, corner-peel expansion) are
   scoped to devices that actually have hover + a precise pointer (mouse/trackpad).
   On touch devices, tapping a card would otherwise trigger :hover with no
   matching "leave" event, so the effect gets stuck "on" — making the card look
   like it changed size until the user taps elsewhere. Gating on (hover:hover)
   is the real fix, not just tweaking sizes. */
@media (hover:hover) and (pointer:fine){
  .card:hover{box-shadow:0 22px 44px -22px rgba(28,23,16,.28);border-color:rgba(28,23,16,.2);}
  .card:hover .card-media img{transform:scale(1.05);}
  .card:hover .peel{width:92px;height:92px;}
  .card:hover .peel svg{opacity:1;}
}
.card-body{padding:17px 17px 19px;}
.card-cat{font-size:.72rem;color:var(--teal);font-weight:500;}
.card-title{font-size:1.02rem;margin-top:5px;font-family:'Fraunces';font-weight:600;}
.card-meta{font-size:.76rem;color:var(--muted);margin-top:4px;}
.card-foot{display:flex;justify-content:space-between;align-items:center;margin-top:14px;}
.price{font-family:'Fraunces';font-weight:600;font-size:1.15rem;color:var(--ink);}
.price small{font-family:'Space Grotesk';font-size:.68rem;color:var(--muted);font-weight:400;}
.add-btn{
  width:38px;height:38px;border-radius:50%;background:var(--paper-2);color:var(--ink);
  border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  transition:transform .3s var(--ease),background .3s var(--ease),color .3s var(--ease);
}
@media (hover:hover) and (pointer:fine){
  .add-btn:hover{transform:rotate(90deg);background:var(--coral);color:var(--white);border-color:var(--coral);}
}
.view-link{position:absolute;inset:0;z-index:1;}

/* ---------- USP ---------- */
.usp-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.usp-card{
  background:var(--white);border-radius:var(--radius);padding:26px 22px;
  border:1px solid var(--line);
  transition:transform .35s var(--ease),border-color .35s;
}
@media (hover:hover) and (pointer:fine){
  .usp-card:hover{transform:translateY(-5px);border-color:var(--coral);}
}
.usp-icon{width:28px;height:28px;margin-bottom:14px;color:var(--coral);}
.usp-card h3{font-family:'Space Grotesk';font-weight:600;font-size:.98rem;margin-bottom:8px;}
.usp-card p{font-size:.85rem;color:var(--muted);line-height:1.5;margin:0;}

/* ---------- Support ---------- */
.contact-wrap{
  display:grid;grid-template-columns:.9fr 1.1fr;gap:50px;
  background:var(--white);border-radius:22px;padding:52px;
  position:relative;overflow:hidden;border:1px solid var(--line);
}
.field{margin-bottom:16px;}
.field label{display:block;font-size:.78rem;font-weight:500;margin-bottom:8px;color:var(--muted);}
.field input,.field textarea{
  width:100%;padding:13px 15px;border-radius:10px;border:1px solid var(--line);
  background:var(--paper);color:var(--ink);font-family:inherit;font-size:.92rem;
}
.field textarea{resize:vertical;min-height:96px;}
.field select{
  width:100%;padding:13px 40px 13px 15px;border-radius:10px;border:1px solid var(--line);
  background:var(--paper);color:var(--ink);font-family:inherit;font-size:.92rem;
  appearance:none;-webkit-appearance:none;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1710' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:16px;
  transition:border-color .3s var(--ease);
}
.field select:hover{border-color:var(--teal);}
.form-note{font-size:.76rem;color:var(--muted);margin-top:10px;}

/* ---------- Customisation section ---------- */
.custom-card{
  background:var(--white);border-radius:22px;padding:44px;
  border:1px solid var(--line);max-width:760px;margin:0 auto;position:relative;z-index:1;
}
.custom-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:6px;}
.design-source{
  display:grid;grid-template-columns:1fr auto 1fr;gap:22px;align-items:stretch;
  margin:24px 0;padding:24px;background:var(--paper);border-radius:16px;border:1px solid var(--line);
}
.design-option{display:flex;flex-direction:column;}
.design-option-label{font-weight:600;font-size:.88rem;margin-bottom:12px;color:var(--ink);}
.design-divider{
  display:flex;align-items:center;justify-content:center;position:relative;
}
.design-divider::before{
  content:"";position:absolute;top:0;bottom:0;left:50%;width:1px;background:var(--line);
}
.design-divider span{
  position:relative;background:var(--paper);color:var(--muted);font-size:.76rem;font-weight:600;
  letter-spacing:.5px;text-transform:uppercase;padding:6px 10px;border-radius:100px;border:1px solid var(--line);
}
.file-drop{
  position:relative;display:flex;align-items:center;justify-content:center;text-align:center;
  border:1.5px dashed var(--line);border-radius:10px;padding:22px 14px;cursor:pointer;
  font-size:.86rem;color:var(--muted);transition:border-color .3s var(--ease),color .3s var(--ease);
}
@media (hover:hover) and (pointer:fine){
  .file-drop:hover{border-color:var(--teal);color:var(--teal);}
}
.modal-info .design-source{grid-template-columns:1fr;padding:18px;gap:16px;}
.modal-info .design-divider{padding:2px 0;}
.modal-info .design-divider::before{top:50%;bottom:auto;left:0;right:0;width:auto;height:1px;}
.modal-info .custom-grid{grid-template-columns:1fr 1fr;gap:12px;}
.custom-card-grid{max-width:none;margin:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;}
@media (max-width:980px) and (min-width:701px){
  .custom-card-grid.custom-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
.custom-banner{
  display:flex;flex-direction:column;align-items:stretch;
  background:var(--white);border-radius:22px;border:1px solid var(--line);overflow:hidden;
  transition:box-shadow .3s var(--ease), transform .3s var(--ease);cursor:pointer;
}
/* This translateY/box-shadow hover is exactly what was getting "stuck" on
   mobile taps (no hover-exit event on touch), making the full-bleed mobile
   banner look shifted/mis-sized until you tapped elsewhere. Restricting it
   to real hover-capable pointers (mouse/trackpad) fixes it for good —
   touch gets a quick :active press effect instead, further down. */
@media (hover:hover) and (pointer:fine){
  .custom-banner:hover{box-shadow:0 20px 50px -14px rgba(28,23,16,.22);transform:translateY(-3px);}
}
.custom-banner:active{opacity:.94;}
.custom-banner .card-media{aspect-ratio:16/9;height:auto;min-height:0;}
.custom-banner .card-media svg{width:100%;height:100%;display:block;}
.custom-banner .card-body{padding:22px 20px 24px;display:flex;flex-direction:column;flex:1;justify-content:flex-start;text-align:left;}
.custom-banner .card-title{font-size:1.35rem;}
.custom-banner .card-foot{margin-top:auto;padding-top:18px;}
.custom-banner .card-polaroid-note{display:none;}
@media (max-width:700px){
  .custom-card-grid.custom-card-grid{
    grid-template-columns:1fr;max-width:420px;margin-left:auto;margin-right:auto;width:100%;gap:18px;
  }
  .custom-banner .card-media{aspect-ratio:16/10;}
  .custom-banner .card-body{padding:18px 18px 20px;}
  .custom-banner .card-title{font-size:1.15rem;}
  .custom-banner .card-foot{justify-content:space-between;padding-top:14px;}
  .custom-banner .price{font-size:.95rem;}
  .custom-banner .add-btn{width:34px;height:34px;}
}
.file-drop input{position:absolute;inset:0;opacity:0;cursor:pointer;}

/* ---------- Customisation form extras ---------- */
.link-rows{display:flex;flex-direction:column;gap:10px;}
.link-row{display:flex;gap:8px;align-items:center;}
.link-row input{
  flex:1;padding:13px 15px;border-radius:10px;border:1px solid var(--line);
  background:var(--paper);color:var(--ink);font-family:inherit;font-size:.92rem;
}
.link-row .remove-link-row{
  width:36px;height:36px;flex-shrink:0;border-radius:50%;background:var(--paper-2);
  border:1px solid var(--line);display:flex;align-items:center;justify-content:center;
  color:var(--coral);font-size:1.1rem;line-height:1;
}
.add-link-btn{
  margin-top:10px;font-size:.82rem;font-weight:600;color:var(--teal);
  display:inline-flex;align-items:center;gap:6px;
}
.add-link-btn:hover{color:var(--coral);}
#designFiles{
  width:100%;padding:11px 13px;border-radius:10px;border:1px solid var(--line);
  background:var(--paper);font-family:inherit;font-size:.85rem;color:var(--muted);
}
.file-previews{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;}
.file-preview{
  position:relative;width:64px;height:64px;border-radius:8px;overflow:hidden;
  border:1px solid var(--line);background:var(--paper-2);
}
.file-preview img{width:100%;height:100%;object-fit:cover;}
.file-preview .remove-file{
  position:absolute;top:2px;right:2px;width:18px;height:18px;border-radius:50%;
  background:rgba(28,23,16,.7);color:var(--white);font-size:.7rem;
  display:flex;align-items:center;justify-content:center;line-height:1;
}

/* ---------- Footer ---------- */
footer{border-top:1px solid var(--line);padding:44px 0 26px;background:var(--paper-2);}
.foot-grid{display:flex;justify-content:space-between;flex-wrap:wrap;gap:30px;margin-bottom:30px;}
.foot-bottom{
  display:flex;justify-content:space-between;font-size:.78rem;color:var(--muted);
  border-top:1px solid var(--line);padding-top:20px;flex-wrap:wrap;gap:10px;
}
.social-link{display:inline-flex;align-items:center;gap:8px;font-weight:500;font-size:.86rem;color:var(--ink);}
.social-link:hover{color:var(--coral);}

/* ---------- Cart drawer ---------- */
.overlay{position:fixed;inset:0;background:rgba(28,23,16,.35);backdrop-filter:blur(2px);z-index:800;opacity:0;pointer-events:none;transition:opacity .35s var(--ease);}
.overlay.open{opacity:1;pointer-events:auto;}
.drawer{
  position:fixed;top:0;right:0;height:100%;width:390px;max-width:92vw;
  background:var(--paper);z-index:900;padding:26px;
  transform:translateX(100%);transition:transform .45s var(--ease);
  display:flex;flex-direction:column;border-left:1px solid var(--line);
}
.drawer.open{transform:translateX(0);}
.drawer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;}
.drawer-items{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:14px;}
.drawer-item{display:flex;gap:14px;background:var(--white);padding:12px;border-radius:10px;border:1px solid var(--line);}
.drawer-item img{width:58px;height:74px;object-fit:cover;border-radius:6px;}
.drawer-item .qty-row{display:flex;align-items:center;gap:10px;margin-top:8px;}
.qty-row button{width:22px;height:22px;border-radius:50%;background:var(--paper-2);display:flex;align-items:center;justify-content:center;}
.qty-row svg{width:12px;height:12px;}
.drawer-foot{border-top:1px solid var(--line);padding-top:16px;margin-top:14px;}
.drawer-total{display:flex;justify-content:space-between;font-family:'Fraunces';font-weight:600;font-size:1.15rem;margin-bottom:14px;}
.empty-cart{text-align:center;padding:56px 10px;color:var(--muted);}

/* ---------- Product modal ---------- */
.modal{position:fixed;inset:0;z-index:950;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .3s var(--ease);padding:20px;background:rgba(28,23,16,.62);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);}
.modal.open{opacity:1;pointer-events:auto;}
.modal-box{
  background:var(--white);border-radius:22px;max-width:820px;width:100%;
  display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr);
  overflow:hidden;height:90vh;max-height:700px;
  transform:scale(.94);transition:transform .35s var(--ease);border:1px solid var(--line);
  box-shadow:0 24px 70px -12px rgba(28,23,16,.35), 0 8px 24px -4px rgba(28,23,16,.18);
}
.modal.open .modal-box{transform:scale(1);}
.modal-img{background:var(--paper-2);position:relative;overflow:hidden;}
.modal-img::before{
  content:"";position:absolute;top:16px;left:50%;z-index:2;
  width:64px;height:24px;transform:translateX(-50%) rotate(-3deg);
  background:var(--mustard);opacity:.8;mix-blend-mode:multiply;
  box-shadow:0 2px 4px rgba(28,23,16,.15);
}
.modal-img img{width:100%;height:100%;object-fit:cover;}
.modal-info{padding:34px;overflow-y:auto;position:relative;min-height:0;}
.modal-img{min-height:0;}
.modal-close{position:absolute;top:18px;right:20px;z-index:2;width:34px;height:34px;border-radius:50%;background:var(--paper-2);display:flex;align-items:center;justify-content:center;}
.opt-group{margin:16px 0;}
.opt-label{font-size:.8rem;color:var(--muted);margin-bottom:8px;font-weight:500;}
.opt-row{display:flex;gap:9px;flex-wrap:wrap;}
#cxTierGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
#cxTierGrid .cx-tier-chip{width:100%;min-width:0;}
.opt-pill{padding:8px 15px;border:1px solid var(--line);border-radius:9px;font-size:.83rem;font-weight:500;}
.opt-pill.active{background:var(--ink);color:var(--paper);border-color:var(--ink);}
.qty-select{display:flex;align-items:center;gap:14px;margin:18px 0;}
.qty-select button{width:32px;height:32px;border-radius:50%;background:var(--paper-2);display:flex;align-items:center;justify-content:center;}
.qty-select svg{width:14px;height:14px;}
.modal-price{font-family:'Fraunces';font-weight:600;font-size:1.8rem;margin:14px 0;}
.modal-ctas{display:flex;gap:12px;margin-top:20px;flex-wrap:wrap;}

/* ---------- Toast ---------- */
.toast{
  position:fixed;bottom:26px;left:50%;transform:translateX(-50%) translateY(120%);
  background:var(--ink);color:var(--paper);font-weight:500;padding:13px 24px;border-radius:100px;
  z-index:1000;transition:transform .4s var(--ease);box-shadow:0 10px 30px rgba(28,23,16,.3);
  font-size:.88rem;
}
.toast.show{transform:translateX(-50%) translateY(0);}

/* ---------- Cart / Checkout page ---------- */
.cart-page{padding:110px 0 80px;min-height:60vh;}
.cart-table{width:100%;border-collapse:collapse;}
.cart-table th{text-align:left;font-size:.72rem;color:var(--muted);padding-bottom:14px;font-weight:500;}
.cart-table td{padding:16px 0;border-top:1px solid var(--line);vertical-align:middle;}
.cart-row-info{display:flex;gap:14px;align-items:center;}
.cart-row-info img{width:62px;height:80px;object-fit:cover;border-radius:6px;}
.remove-link{color:var(--coral);font-size:.78rem;font-weight:500;}
.summary-box{background:var(--white);border-radius:18px;padding:30px;margin-top:36px;max-width:420px;margin-left:auto;border:1px solid var(--line);}
.cx-shell .summary-box{max-width:none;margin-left:0;width:100%;}
.summary-row{display:flex;justify-content:space-between;margin-bottom:10px;font-size:.9rem;color:var(--muted);}
.summary-row.total{font-family:'Fraunces';font-weight:600;font-size:1.25rem;color:var(--ink);border-top:1px solid var(--line);padding-top:14px;margin-top:4px;}
.min-order-note{display:none;}
.min-order-note.show{
  display:block;margin-top:16px;padding:12px 14px;border-radius:10px;
  background:rgba(214,86,64,.1);border:1px solid rgba(214,86,64,.3);
  color:var(--coral);font-size:.8rem;font-weight:600;line-height:1.5;text-align:center;
}

/* ---------- Responsive shell for checkout / customise flows ---------- */
.cx-shell{
  max-width:640px;
  margin:44px auto 0;
}
@media (min-width:860px){
  .cx-shell{
    max-width:100%;
  }
  /* The order-confirmation / "Message us on Instagram" panel (step 2 of
     checkout) shouldn't stretch full-width on desktop — keep it a
     reasonably-sized, centred card like the rest of the checkout flow. */
  .checkout-panel[data-panel="2"]{
    max-width:480px;margin-left:auto;margin-right:auto;
  }
  .checkout-steps{margin-bottom:36px;gap:14px;}
  .step-pill{padding:14px 26px;font-size:.92rem;}
  .cx-item-card{padding:30px 32px;}
  .cx-item-label{font-size:.84rem;}
  .opt-pill{padding:12px 20px;font-size:.9rem;}
  .cx-items-wrap{
    display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:20px;align-items:start;
  }
  .cx-tier-chip{padding:20px 26px;min-width:140px;flex:1;}
  .summary-box{padding:36px 40px;}
  .address-grid{gap:22px 26px;}
  .field label{font-size:.88rem;}
  .field input, .field textarea{padding:16px 18px;font-size:1rem;}
  .cart-table th{font-size:.8rem;}
  .cart-table td{padding:20px 0;}
}
@media (min-width:1200px){
  .cx-shell{max-width:100%;}
}
.checkout-steps{display:flex;gap:10px;margin-bottom:30px;}
.step-pill{padding:8px 16px;border-radius:100px;font-size:.78rem;font-weight:500;background:var(--white);border:1px solid var(--line);color:var(--muted);}
.step-pill.active{background:var(--coral);color:var(--white);border-color:var(--coral);}
.step-pill.done{background:var(--paper-2);color:var(--ink);}
.checkout-panel{display:none;}
.checkout-panel.active{display:block;}
.address-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.address-grid .full{grid-column:1/-1;}

.final-block{
  background:var(--white);border:1px solid var(--line);border-radius:18px;padding:34px;
  text-align:center;margin-top:6px;
}
.final-block .icon-ig{width:44px;height:44px;color:var(--coral);margin:0 auto 16px;}
.order-review{background:var(--paper-2);border-radius:12px;padding:16px;text-align:left;margin-top:20px;font-size:.85rem;color:var(--muted);}
.order-review b{color:var(--ink);font-weight:600;}

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .hero-grid{grid-template-columns:1fr;}
  .stack-wrap{height:360px;margin-top:10px;}
  .usp-grid{grid-template-columns:repeat(2,1fr);}
  .grid{grid-template-columns:repeat(2,1fr);}
  .contact-wrap{grid-template-columns:1fr;padding:34px;}
  .modal-box{grid-template-columns:1fr;grid-template-rows:200px minmax(0,1fr);height:88vh;max-height:640px;}
  .modal-img{height:auto;}
  .address-grid{grid-template-columns:1fr;}
  .custom-card{padding:30px 22px;}
  .custom-grid{grid-template-columns:1fr;}
  .design-source{grid-template-columns:1fr;}
  .design-divider{padding:4px 0;}
  .design-divider::before{top:50%;bottom:auto;left:0;right:0;width:auto;height:1px;}
}
@media (max-width:600px){
  .nav-links{display:none;}
  .hamburger{display:flex;}
  .grid{
    grid-template-columns:repeat(2,1fr);
    gap:10px;
  }
  .card{min-width:0;}
  .card-body{padding:11px 11px 13px;}
  .card-cat{font-size:.68rem;}
  .card-title{font-size:.92rem;line-height:1.25;}
  .card-meta{font-size:.7rem;margin-top:4px;}
  .card-foot{margin-top:8px;}
  .price{font-size:.95rem;}
  .price small{font-size:.65rem;}
  .add-btn{width:32px;height:32px;}
  .card-badge{font-size:.65rem;padding:5px 10px;}
  .usp-grid{grid-template-columns:1fr 1fr;gap:10px;}
  .usp-card{padding:16px 14px;}
  .cart-table thead{display:none;}
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td{display:block;width:100%;}
  .cart-table{border-collapse:separate;}
  .cart-table tr{margin-bottom:14px;border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--white);}
  .cart-table td{padding:6px 0;border-top:none;}
  .cart-table td:nth-child(1){padding-bottom:10px;}
  .cart-table td:nth-child(2){display:flex;justify-content:space-between;align-items:center;}
  .cart-table td:nth-child(2)::before{content:"Price";color:var(--muted);font-size:.78rem;}
  .cart-table td:nth-child(3){display:flex;justify-content:space-between;align-items:center;}
  .cart-table td:nth-child(3)::before{content:"Quantity";color:var(--muted);font-size:.78rem;}
  .cart-table td:nth-child(4){display:flex;justify-content:space-between;align-items:center;font-size:1rem;}
  .cart-table td:nth-child(4)::before{content:"Total";color:var(--muted);font-size:.78rem;font-weight:400;}
  .cart-table td:nth-child(5){text-align:right;padding-top:10px;}
  .usp-icon{width:20px;height:20px;margin-bottom:8px;}
  .usp-card h3{font-size:.82rem;margin-bottom:4px;}
  .usp-card p{font-size:.74rem;line-height:1.4;}
  .drawer{width:100%;}

  /* Shrink + reposition the 3 floating poster cards so they all sit
     fully within the narrow viewport — otherwise the 3rd card (and
     part of the 2nd) spills past the right edge and gets clipped by
     .hero's overflow:hidden. */
  .stack-wrap{height:300px;}
  .stack-card{width:130px;height:176px;}
  .stack-card:nth-child(1){top:56px;left:0;}
  .stack-card:nth-child(2){top:8px;left:24%;width:142px;height:192px;}
  .stack-card:nth-child(3){top:64px;left:48%;}
  .stack-badge{font-size:.7rem;padding:7px 14px;white-space:normal;text-align:center;max-width:88%;}
}

@media (prefers-reduced-motion:reduce){
  *{animation:none !important;transition:none !important;}
}

/* ---------- Full-screen "Bring your own design" page ---------- */
.cx-item-card{
  position:relative;border:1px solid var(--line);border-radius:14px;
  padding:20px 18px;margin-bottom:18px;background:var(--white);
}
.cx-item-remove{
  position:absolute;top:14px;right:16px;font-size:.78rem;color:var(--muted);
  cursor:pointer;background:none;border:none;font-family:inherit;
}
@media (hover:hover) and (pointer:fine){
  .cx-item-remove:hover{color:var(--coral);}
}
.cx-item-label{font-size:.78rem;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:12px;}
.kind-toggle{display:flex;gap:8px;margin-bottom:14px;}
.kind-toggle button{
  flex:1;padding:9px;border:1px solid var(--line);border-radius:8px;font-size:.82rem;
  background:var(--paper);transition:background .25s,color .25s,border-color .25s;
}
.kind-toggle button.active{background:var(--ink);color:var(--paper);border-color:var(--ink);}
.cx-item-card .file-drop{margin-bottom:4px;}
.cx-item-price{text-align:right;font-weight:600;margin-top:12px;font-size:.95rem;}
.cx-items-wrap .field{margin-bottom:12px;}
.cx-tier-chip{display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 18px;min-width:104px;}
.cx-tier-chip small{color:var(--muted);font-size:.78rem;}
.cx-tier-chip.active small{color:var(--paper);}

.autocomplete-list{
  position:absolute;top:100%;left:0;right:0;background:var(--white);
  border:1px solid var(--line);border-radius:12px;margin-top:4px;
  max-height:220px;overflow-y:auto;z-index:20;
  box-shadow:0 12px 30px -10px rgba(28,23,16,.15);display:none;
}
.autocomplete-list.show{display:block;}
.autocomplete-item{padding:11px 15px;font-size:.86rem;cursor:pointer;border-bottom:1px solid var(--paper-2);}
.autocomplete-item:last-child{border-bottom:none;}
@media (hover:hover) and (pointer:fine){
  .autocomplete-item:hover{background:var(--paper);}
}
