/* ===========================
   Dolce Vita — Premium Italian Gelateria Theme
   (safe: selectors/IDs unchanged)
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Cormorant+Garamond:wght@500;600;700&family=Lato:wght@300;400;600;700&display=swap');

/* Tokens */
:root{
  --cream:#fdf6e3;
  --ivory:#f8f4e8;
  --paper:#fffdf7;

  --forest:#1a5c2a;
  --forest-2:#2d7a3e;
  --forest-dark:#0d2f16;

  --gold:#d4af37;
  --gold-2:#c9a84c;
  --gold-light:#f3e2a9;

  --wine:#8b1a1a;
  --wine-2:#6e1414;

  --ink:#2b2318;
  --muted:#6f6252;
  --stroke: rgba(201,168,76,.4);

  --bg-warm:
    radial-gradient(1200px 620px at 10% -12%, rgba(212,175,55,.14), transparent 60%),
    radial-gradient(1000px 620px at 112% 112%, rgba(26,92,42,.12), transparent 60%),
    linear-gradient(160deg, #fdf6e3 0%, #f8f4e8 45%, #f3ead2 100%);

  --header-grad: linear-gradient(120deg, #08170c 0%, #0d2f16 22%, #1a5c2a 55%, #2d7a3e 78%, #0d2f16 100%);
  --gold-shimmer: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.55) 45%, rgba(255,240,190,.85) 50%, rgba(255,255,255,.55) 55%, transparent 100%);
  --card-bg: linear-gradient(180deg, #fffdf7 0%, #fdf6e3 100%);
  --glass: linear-gradient(180deg, rgba(255,255,255,.7), rgba(253,246,227,.55));

  --shadow-sm: 0 6px 18px rgba(26,92,42,.14);
  --shadow-lg: 0 22px 48px rgba(13,47,22,.22);
  --shadow-gold: 0 0 0 1px rgba(212,175,55,.5), 0 10px 26px rgba(212,175,55,.25);

  --radius: 14px;
  --radius-sm: 10px;

  --t1:.25s;
  --t2:.5s;
}

/* Basic Reset */
*{ margin:0; padding:0; box-sizing:border-box; }

/* Italian flag animated strip (top of every page) */
.italia-strip{
  width:100%;
  height:6px;
  background: repeating-linear-gradient(90deg,
    #009246 0 40px, #ffffff 40px 80px, #ce2b37 80px 120px);
  background-size:120px 100%;
  animation: italiaFlow 6s linear infinite;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
@keyframes italiaFlow{
  from{ background-position: 0 0; }
  to{ background-position: -120px 0; }
}
@media (prefers-reduced-motion: reduce){ .italia-strip{ animation:none; } }

body{
  font-family:'Lato', sans-serif;
  line-height:1.6;
  color:var(--ink);
  background: var(--bg-warm);
  background-attachment: fixed;
  min-height:100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,h2,h3{ font-family:'Playfair Display', serif; letter-spacing:.02em; }

@keyframes bgFloat {
  0% { background-position: 0% 0%, 100% 100%, 0 0; }
  50%{ background-position: 18% -8%, 84% 112%, 0 0; }
  100%{ background-position: 0% 0%, 100% 100%, 0 0; }
}
body{ animation: bgFloat 30s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce){ body{ animation:none; } }

/* Header / Footer */
header, footer{
  position:relative;
  text-align:center;
  padding:14px 5px;
  background: var(--header-grad);
  color: var(--gold-light);
  border-bottom:2px solid var(--gold-2);
  overflow:hidden;
}
footer{
  border-top:2px solid var(--gold-2);
  border-bottom:none;
  font-family:'Cormorant Garamond', serif;
  font-size:1.1em;
  letter-spacing:.03em;
}

/* Small "site by" credit line inside the footer */
.site-credit{
  margin-top:4px;
  font-family:'Cormorant Garamond', serif;
  font-style:italic;
  font-size:.75em;
  letter-spacing:.03em;
  opacity:.8;
}
.site-credit a{
  color: var(--gold-light);
  text-decoration:none;
  border-bottom:1px solid rgba(243,226,169,.35);
  transition: opacity var(--t1) ease, border-color var(--t1) ease;
}
.site-credit a:hover{
  opacity:1;
  border-color: rgba(243,226,169,.85);
}

/* Shimmer sweep across header */
header::after{
  content:"";
  position:absolute;
  top:0; left:-60%;
  width:60%; height:100%;
  background: var(--gold-shimmer);
  animation: headerShimmer 6s ease-in-out infinite;
  pointer-events:none;
  z-index:1;
}
@keyframes headerShimmer{
  0%{ left:-60%; }
  55%{ left:120%; }
  100%{ left:120%; }
}
@media (prefers-reduced-motion: reduce){ header::after{ animation:none; display:none; } }

/* Logo (cream glow backdrop so the mark reads cleanly on the green banner) */
.logo{
  position:relative;
  z-index:2;
  display:inline-block;
}
.logo::before{
  content:"";
  position:absolute;
  inset:-16px;
  background: radial-gradient(circle, rgba(255,255,255,.98) 0%, rgba(255,253,247,.85) 50%, rgba(253,246,227,.55) 68%, transparent 82%);
  border-radius:50%;
  z-index:-1;
  box-shadow: 0 0 42px rgba(212,175,55,.4);
}
.logo img{
  max-width:230px; height:auto;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.45));
  transition: transform var(--t1) ease;
  position:relative;
}
.logo a:hover img{ transform: scale(1.03); }

/* ---- Front-page hero header (index.html only) ---- */
.hero-header{
  padding: 40px 20px 32px;
  background:
    radial-gradient(420px 220px at 8% 12%, rgba(212,175,55,.2), transparent 65%),
    radial-gradient(420px 240px at 92% 88%, rgba(212,175,55,.16), transparent 65%),
    var(--header-grad);
}
.hero-sparkle{
  position:absolute;
  color: var(--gold-light);
  opacity:.5;
  animation: sparkleTwinkle 3.2s ease-in-out infinite;
  pointer-events:none;
  z-index:1;
}
.hero-sparkle-1{ top:20%; left:10%; font-size:15px; animation-delay:0s; }
.hero-sparkle-2{ top:68%; right:13%; font-size:12px; animation-delay:1.1s; }
.hero-sparkle-3{ top:28%; right:24%; font-size:9px; animation-delay:2s; }
@keyframes sparkleTwinkle{
  0%,100%{ opacity:.22; transform:scale(.85); }
  50%{ opacity:.9; transform:scale(1.2); }
}
@media (prefers-reduced-motion: reduce){ .hero-sparkle{ animation:none; opacity:.4; } }

.hero-title{
  position:relative;
  z-index:2;
  margin-top:16px;
  font-family:'Playfair Display', serif;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  font-weight:800;
  letter-spacing:.03em;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 45%, var(--gold-light));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow: 0 2px 18px rgba(0,0,0,.2);
}
.hero-tagline{
  position:relative;
  z-index:2;
  margin-top:6px;
  font-family:'Cormorant Garamond', serif;
  font-style:italic;
  font-size:1.15rem;
  letter-spacing:.05em;
  color: var(--gold-light);
  opacity:.92;
}
.hero-divider{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin:16px auto 0;
  max-width:260px;
}
.hero-divider span{
  flex:1;
  height:1px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
}
.hero-divider i{
  font-style:normal;
  color:var(--gold);
  font-size:14px;
}

/* ---- Nav cart icon + badge (top-right of header) ---- */
.nav-cart-link{
  position:absolute;
  top:14px;
  right:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:50%;
  background: rgba(253,246,227,.18);
  border:1px solid rgba(212,175,55,.55);
  text-decoration:none;
  font-size:22px;
  z-index:5;
  transition: transform var(--t1) ease, background var(--t1) ease, box-shadow var(--t1) ease;
}
.nav-cart-link:hover{
  transform: translateY(-2px) scale(1.06);
  background: rgba(253,246,227,.3);
  box-shadow: 0 8px 18px rgba(0,0,0,.3);
}
.nav-cart-link:active{ transform: translateY(0) scale(.94); }
.nav-cart-badge{
  position:absolute;
  top:-4px;
  right:-4px;
  min-width:18px;
  height:18px;
  padding:0 4px;
  border-radius:9px;
  background: linear-gradient(135deg, var(--wine), var(--wine-2));
  color: var(--gold-light);
  font-size:11px;
  font-weight:800;
  line-height:18px;
  text-align:center;
  border:1px solid var(--gold-2);
  display:none;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}

/* Select dropdowns */
.selector{
  margin-top:20px; padding:12px; font-size:1.1em; width:100%;
  color:var(--ink); background:var(--paper); border:2px solid var(--stroke); border-radius:var(--radius-sm);
  outline:none;
  font-family:'Lato', sans-serif;
  transition: border-color var(--t1) ease, box-shadow var(--t1) ease;
}
.selector:focus{ border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.2); }
.selector option:disabled{ color:#b9ad93; }

/* Link button */
.gelato-link-button{
  display:inline-block;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color:var(--forest-dark);
  text-align:center;
  padding:10px 20px;
  border-radius:10px;
  text-decoration:none;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  border:1px solid var(--gold-2);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t1) ease, filter var(--t1) ease, box-shadow var(--t1) ease;
}
.gelato-link-button:hover{ transform: translateY(-2px) scale(1.02); filter: brightness(1.05); box-shadow: var(--shadow-gold); }
.gelato-link-button:active{ transform: translateY(0) scale(.98); }

/* Grid */
.gelato-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap:22px;
  padding:20px;
}

/* Cards */
@keyframes cardIn{
  from{ opacity:0; transform: translateY(22px) scale(.98); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}

.gelato-card {
  position: relative;
  border: 1px solid var(--stroke);
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--card-bg);
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t2) ease, box-shadow var(--t2) ease, border-color var(--t2) ease;
  animation: cardIn .6s ease both;
}
.gelato-grid .gelato-card:nth-child(1){ animation-delay:.02s; }
.gelato-grid .gelato-card:nth-child(2){ animation-delay:.08s; }
.gelato-grid .gelato-card:nth-child(3){ animation-delay:.14s; }
.gelato-grid .gelato-card:nth-child(4){ animation-delay:.2s; }
.gelato-grid .gelato-card:nth-child(5){ animation-delay:.26s; }
.gelato-grid .gelato-card:nth-child(6){ animation-delay:.32s; }
.gelato-grid .gelato-card:nth-child(n+7){ animation-delay:.36s; }

.gelato-card:hover{
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  border-color: var(--gold);
}
.gelato-card:active{ transform: translateY(-3px) scale(1.005); }

/* Gloss sheen sweep on hover */
.gelato-card::before{
  content:"";
  position:absolute;
  top:0; left:-60%;
  width:40%; height:100%;
  background: var(--gold-shimmer);
  transform: skewX(-20deg);
  pointer-events:none;
  z-index:1;
}
.gelato-card:hover::before{ animation: cardSheen 1s ease forwards; }
@keyframes cardSheen{ from{ left:-60%; } to{ left:140%; } }

.gelato-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 22px rgba(13,47,22,.2);
  transition: transform var(--t2) ease;
}
.gelato-card:hover img{ transform: scale(1.04); }

.gelato-card h3 {
  color: var(--forest-dark);
  margin-top:12px;
  font-weight:700;
  transition: color var(--t1) ease;
}

/* Sold-out states (unchanged selectors) */
.gelato-card.sold-out,
.sold-out{ opacity:.55; pointer-events:none; filter:grayscale(35%); }
.sold-out-banner{
  position:absolute; top:10px; left:10px; z-index:2;
  background: linear-gradient(135deg,var(--wine),var(--wine-2));
  color:var(--gold-light); padding:6px 12px; font-size:15px; font-weight:700; border-radius:8px;
  box-shadow: 0 8px 18px rgba(139,26,26,.4);
  border:1px solid var(--gold-2);
  animation: badgePulse 2.4s ease-in-out infinite;
}
@keyframes badgePulse{
  0%,100%{ box-shadow: 0 8px 18px rgba(139,26,26,.4); }
  50%{ box-shadow: 0 8px 22px rgba(139,26,26,.65), 0 0 0 3px rgba(212,175,55,.25); }
}
@media (prefers-reduced-motion: reduce){ .sold-out-banner{ animation:none; } }

/* Close button (hover preserved) */
.close-button{
  background: linear-gradient(135deg,var(--wine),var(--wine-2));
  color:var(--gold-light); border:1px solid var(--gold-2); border-radius:10px; padding:10px 14px; font-weight:700;
  transition: transform var(--t1) ease, filter var(--t1) ease, box-shadow var(--t1) ease;
}
.close-button:hover{ transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 8px 18px rgba(139,26,26,.35); }
.close-button:active{ transform: translateY(0) scale(.95); }

/* Top Center buttons wrapper */
.center-container{ display:flex; justify-content:center; margin-top:20px; gap:14px; flex-wrap:wrap; }

/* ---- Big Italian Gradient Buttons ---- */
.big-green-button,
.big-red-button {
  position:relative;
  display: inline-block;
  width: 200px;
  padding: 20px;
  color: var(--gold-light);
  text-align: center;
  border: 1px solid var(--gold-2);
  border-radius: var(--radius);
  font-size: 20px;
  font-weight: 800;
  font-family:'Playfair Display', serif;
  margin: 10px;
  cursor: pointer;
  text-decoration: none;
  overflow:hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t1) ease, filter var(--t1) ease, box-shadow var(--t1) ease;
}

.big-green-button {
  background: linear-gradient(145deg, var(--forest-dark) 0%, var(--forest) 45%, var(--forest-2) 70%, var(--forest-dark) 100%);
}

.big-red-button {
  background: linear-gradient(145deg, var(--wine-2) 0%, var(--wine) 50%, var(--wine-2) 100%);
}

.big-green-button:hover,
.big-red-button:hover{
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.08);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}
.big-green-button:active,
.big-red-button:active{ transform: translateY(-1px) scale(.99); }

/* Gold shimmer sweep on buttons */
.big-green-button::after,
.big-red-button::after{
  content:"";
  position:absolute;
  top:0; left:-75%;
  width:50%; height:100%;
  background: var(--gold-shimmer);
  transform: skewX(-20deg);
}
.big-green-button:hover::after,
.big-red-button:hover::after{
  animation: btnShimmer 1.1s ease forwards;
}
@keyframes btnShimmer{
  from{ left:-75%; }
  to{ left:135%; }
}

/* Dark modal overrides (beats inline JS styles) */
.modal {
  background: rgba(13,47,22,0.55) !important;
  backdrop-filter: blur(8px);
}

.modal > div {
  background: var(--card-bg) !important;
  color: var(--ink) !important;
  border: 2px solid var(--gold-2) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 60px rgba(13,47,22,.4), var(--shadow-gold) !important;
  animation: modalPop .35s cubic-bezier(.34,1.4,.64,1) both;
}
@keyframes modalPop{
  from{ opacity:0; transform: translateY(14px) scale(.96); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce){ .modal > div{ animation:none; } }

/* Headings/text inside modal */
.modal > div h2 {
  color: var(--forest-dark) !important;
  font-family:'Playfair Display', serif;
  margin: 0 0 12px;
  font-weight: 800;
}

/* Make the dropdowns match the theme and fill width */
.modal .selector {
  width: 100%;
  margin-top: 12px;
  background: var(--paper) !important;
  color: var(--ink) !important;
  border: 2px solid var(--stroke) !important;
  border-radius: 8px;
}

.modal .selector option {
  background: var(--paper);
  color: var(--ink);
}

.modal .close-button {
  color: var(--gold-light) !important;
}

/* Generic buttons inside modal (Add to Cart / Select) */
.modal > div button{
  background: linear-gradient(135deg, var(--forest), var(--forest-2)) !important;
  color: #fff !important;
  border: 1px solid var(--gold-2) !important;
  border-radius: 10px !important;
  cursor:pointer;
  font-weight:700;
  transition: transform var(--t1) ease, filter var(--t1) ease, box-shadow var(--t1) ease;
  box-shadow: var(--shadow-sm);
}
.modal > div button:hover{
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: var(--shadow-gold);
}
.modal > div button:active{
  transform: translateY(0) scale(.96);
}
.modal > div .close-button{
  background: linear-gradient(135deg,var(--wine),var(--wine-2)) !important;
}

/* Animated gelato cup builder
 * Self-contained positioning (not just inheriting from a base .modal rule) —
 * order.html defines position:fixed for .modal inline in its own <head>, but
 * gelato.html/pickuporder.html (where this builder is actually opened from)
 * never load that rule, so without this the modal rendered as a static block
 * appended at the end of <body> — off in normal page flow, not fixed to the
 * viewport — and the close-button .focus() call at the end of
 * openAnimatedGelatoBuilder() then yanked the page's scroll all the way down
 * to reveal it. Fixed + inset:0 keeps it centered in whatever part of the
 * page the user is currently looking at, regardless of scroll position. */
.gelato-builder-modal{ position:fixed; inset:0; width:100%; height:100%; overflow-y:auto; display:flex; align-items:center; justify-content:center; padding:18px; box-sizing:border-box; z-index:1000; }
.gelato-builder-modal.is-closing{ opacity:0; transition:opacity .18s ease; }
.gelato-builder{
  width:min(920px, 96vw) !important; max-height:92vh; overflow:auto; padding:30px !important;
  display:grid; grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr); gap:30px; position:relative;
}
.gelato-builder-kicker{ margin:0 0 5px; color:var(--wine); font-weight:900; letter-spacing:.12em; text-transform:uppercase; font-size:.75rem; }
.gelato-builder-help{ margin:0 0 18px; color:var(--muted); line-height:1.5; }
.gelato-builder-label,.gelato-flavor-row span{ display:block; margin-top:12px; color:var(--forest-dark); font-size:.82rem; font-weight:800; }
.gelato-flavor-selectors{ display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
.gelato-builder-actions{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:20px; }
.gelato-builder-price{ color:var(--forest-dark); font-family:'Playfair Display',serif; font-size:1.7rem; font-weight:900; }
.gelato-builder-add{ padding:12px 18px; }
.gelato-builder-close{ position:absolute; right:14px; top:14px; width:40px; height:40px; padding:0 !important; font-size:1.6rem; line-height:1; z-index:5; }
.gelato-preview{ min-height:390px; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; padding:20px 14px; border-radius:18px; background:radial-gradient(circle at 50% 20%,#fff 0,#fff8e7 44%,#ead9b1 100%); overflow:hidden; }
.gelato-scoop-stage{ position:relative; width:270px; height:220px; z-index:2; }
.gelato-scoop{ --scoop-light:#f4cf8d; --scoop-dark:#c98945; position:absolute; left:50%; width:132px; height:112px; border-radius:50% 50% 45% 48%; transform:translateX(-50%); background:radial-gradient(circle at 32% 25%,#fff9 0 8%,transparent 9%),radial-gradient(circle at 35% 30%,var(--scoop-light),var(--scoop-dark) 72%); box-shadow:inset -12px -15px 20px #0002,0 9px 14px #402b1c35; }
.gelato-scoop::before,.gelato-scoop::after{ content:""; position:absolute; bottom:5px; width:44px; height:38px; border-radius:50%; background:var(--scoop-dark); opacity:.72; }
.gelato-scoop::before{ left:7px; }.gelato-scoop::after{ right:7px; }
.gelato-scoop span{ position:absolute; inset:0; display:grid; place-items:center; padding:18px; color:#fff; font-size:.72rem; font-weight:900; text-align:center; line-height:1.05; text-shadow:0 1px 4px #0009; z-index:2; }
.gelato-scoop.scoop-1{ bottom:-6px; }.gelato-scoop.scoop-2{ bottom:62px; left:35%; transform:translateX(-50%) rotate(-7deg); }.gelato-scoop.scoop-3{ bottom:65px; left:65%; transform:translateX(-50%) rotate(7deg); }.gelato-scoop.scoop-4{ bottom:132px; }
.gelato-scoop.is-dropping{ animation:scoopDrop .62s cubic-bezier(.2,.9,.3,1.25) both; }
@keyframes scoopDrop{ 0%{ opacity:0; translate:0 -230px; scale:.7; rotate:-10deg; } 70%{ opacity:1; translate:0 8px; scale:1.06; } 100%{ translate:0 0; scale:1; rotate:0deg; } }
.gelato-cup{ position:relative; width:205px; height:152px; margin-top:-9px; z-index:3; display:grid; place-items:center; clip-path:polygon(5% 0,95% 0,82% 100%,18% 100%); background:linear-gradient(100deg,#f7f0dd,#fff 46%,#dfcda5); border-radius:5px 5px 36px 36px; filter:drop-shadow(0 14px 12px #3a291f35); }
.gelato-cup::before{ content:""; position:absolute; top:0; left:5%; right:5%; height:13px; border-radius:50%; background:linear-gradient(#d2b574,#fff0d0); }
.gelato-cup-logo{ color:var(--wine); font-family:'Playfair Display',serif; font-weight:900; text-align:center; line-height:.85; letter-spacing:.08em; transform:rotate(-2deg); }
.gelato-preview-caption{ min-height:2.5em; margin:17px 0 0; color:var(--forest-dark); font-weight:800; text-align:center; }
@media(max-width:740px){ .gelato-builder{ grid-template-columns:1fr; padding:24px 18px !important; }.gelato-preview{ min-height:330px; order:-1; }.gelato-scoop-stage{ height:180px; transform:scale(.82); transform-origin:bottom; }.gelato-flavor-selectors{ grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce){ .gelato-scoop.is-dropping{ animation:none; } }

/* Cart */
#cart-container{
  background: var(--glass);
  border:1px solid var(--stroke);
  padding:20px;
  border-radius:var(--radius);
  margin:20px 0;
  box-shadow: var(--shadow-sm);
  font-family:'Lato', sans-serif;
  animation: fadeIn .7s ease both, moveUp .7s ease both;
}
#cart-header h1{
  font-size:1.6em; color:var(--forest-dark); margin:0 0 20px 0; text-align:left;
  border-bottom:2px solid var(--gold-2); padding-bottom:10px;
}
#cart-items{ list-style-type:none; padding:0; margin:0; }
#cart-items li{
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 0; border-bottom:1px solid var(--stroke);
  transition: background-color var(--t2);
  font-size:1em;
  animation: itemIn .4s ease both;
}
#cart-items li:last-child{ border-bottom:none; }
#cart-items li:hover{ background-color: rgba(212,175,55,.08); }
@keyframes itemIn{
  from{ opacity:0; transform: translateX(-10px); }
  to{ opacity:1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce){ #cart-items li{ animation:none; } }
#cart-items button{
  margin-left:10px; background: linear-gradient(135deg,var(--wine),var(--wine-2));
  color:var(--gold-light); border:1px solid var(--gold-2); padding:8px 20px; border-radius:20px; cursor:pointer; font-size:.9em;
  transition: transform var(--t1) ease, filter var(--t1) ease;
  box-shadow: 0 6px 14px rgba(139,26,26,.25);
}
#cart-items button:hover{ transform: translateY(-1px); filter: brightness(1.1); }
#cart-items button:active{ transform: translateY(0) scale(.94); }
#cart-items li .item-name{ flex-grow:1; font-weight:700; color:var(--ink); margin-right:15px; }
#cart-items li .item-price,
#cart-items li .item-quantity{
  color:var(--muted); font-size:.9em;
}

/* Keep hidden for script compatibility */
#menu-items{ display:none; }

/* Go to Checkout button (shown only when cart has items) */
.go-to-checkout-btn{
  display:block;
  margin-top:16px;
  width:100%;
  text-align:center;
  padding:14px;
  border-radius:var(--radius-sm);
  background: linear-gradient(135deg, var(--forest), var(--forest-2));
  color:#fff;
  border:1px solid var(--gold-2);
  font-weight:700;
  font-family:'Playfair Display', serif;
  font-size:1.1em;
  text-decoration:none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t1) ease, filter var(--t1) ease, box-shadow var(--t1) ease;
}
.go-to-checkout-btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: var(--shadow-gold);
}
.go-to-checkout-btn:active{ transform: translateY(0) scale(.98); }

/* Size price sections */
#size-prices,
#gelato-size-prices{
  background: var(--card-bg);
  border:1px solid var(--stroke);
  border-radius:var(--radius-sm);
  padding:12px;
  margin:15px 0;
  display:inline-block;
  color:var(--ink);
  box-shadow: var(--shadow-sm);
  animation: fadeIn .7s ease both, moveUp .7s ease both;
}
#size-prices h3,
#gelato-size-prices h3{
  margin:0 10px 10px 0; font-size:19px; color:var(--forest-dark); display:inline-block; vertical-align:middle;
}
#size-prices ul{ list-style:none; padding:0; display:inline-flex; gap:15px; }
#size-prices li{ margin:0; padding:0; border:none; font-size:14px; color:var(--muted); }

#gelato-size-prices ul{
  list-style:none; padding:0; margin:0; display:flex; flex-wrap:nowrap; gap:10px; overflow-x:auto;
  scrollbar-width: thin;
}
#gelato-size-prices li{
  font-size:14px; padding:5px 8px; border-bottom:2px solid var(--gold-2); white-space:nowrap; color:var(--ink); font-weight:600;
}

/* Instructions */
#instructions{
  background: linear-gradient(90deg, rgba(26,92,42,.1), rgba(255,255,255,.5), rgba(212,175,55,.16));
  border:1px solid var(--stroke);
  border-radius:var(--radius-sm);
  padding:12px;
  margin:15px 0;
  width:auto;
  box-shadow: var(--shadow-sm);
  color:var(--ink);
  animation: fadeIn .7s ease both, moveUp .7s ease both;
}
#instructions h3{ margin-bottom:10px; font-size:19px; color:var(--forest-dark); }
#instructions ul{ list-style-type:none; padding-left:20px; }
#instructions li{ margin-bottom:5px; font-size:14px; color:var(--muted); }

/* Download button */
.download-button{
  display:flex; justify-content:center; align-items:center; margin:20px auto; padding:10px;
  background: var(--card-bg);
  border:1px solid var(--stroke);
  border-radius:var(--radius-sm);
  cursor:pointer; width:200px; box-shadow: var(--shadow-sm);
  transition: transform var(--t1) ease, box-shadow var(--t1) ease;
}
.download-button:hover{ transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.download-button:active{ transform: translateY(-1px) scale(.98); }
.download-button img{ width:100%; height:auto; border-radius:8px; }

/* Hidden clear cart (unchanged) */
#clear-cart-btn{ display:none; }

/* Credits */
#credits{
  text-align:center; margin-bottom:10px; font-size:16px;
  background: linear-gradient(90deg, rgba(26,92,42,.12), rgba(255,255,255,.5), rgba(212,175,55,.16));
  color:var(--ink); padding:10px 15px; border-radius:10px;
  animation: fadeIn 1.2s ease both, moveUp 1.2s ease both;
  border:1px solid var(--stroke);
}
#credits a{
  color:var(--forest); text-decoration:none; font-weight:bold;
  transition: filter var(--t1) ease, transform var(--t1) ease;
}
#credits a:hover{ filter:brightness(1.3); transform: translateY(-1px); }

/* Keyframes (names preserved where used) */
@keyframes fadeIn{ from{opacity:0} to{opacity:1} }
@keyframes moveUp{ from{ transform: translateY(20px) } to{ transform: translateY(0) } }

/* ---------- Responsive ---------- */

/* Mobile */
@media (max-width: 600px){
  body{ padding:10px; }
  h1,h2,h3{ font-size:1.5em; }
  .gelato-grid{ grid-template-columns:1fr; gap:15px; }
  .gelato-card{ padding:10px; }
  input[type="text"]{ width:100%; }
  .center-container{ margin-top:10px; }
  #gelato-size-prices ul{ flex-wrap:wrap; gap:10px; }
  #gelato-size-prices li{ flex: 1 1 calc(50% - 10px); box-sizing:border-box; }
  .nav-cart-link{ top:10px; right:10px; width:38px; height:38px; font-size:19px; }
}

/* Tablets */
@media (min-width:601px) and (max-width:1024px){
  body{ padding:15px; }
  h1,h2,h3{ font-size:1.75em; }
  .gelato-grid{ grid-template-columns: repeat(2,1fr); gap:20px; }
  .gelato-card{ padding:15px; }
  input[type="text"]{ width:100%; }
}

/* Desktop M */
@media (min-width:1025px) and (max-width:1440px){
  .gelato-grid{ grid-template-columns: repeat(3,1fr); gap:20px; }
  .gelato-card{ padding:15px; }
}

/* Desktop L */
@media (min-width:1441px){
  .gelato-grid{ grid-template-columns: repeat(4,1fr); gap:25px; }
  .gelato-card{ padding:20px; }
}
