:root{
  --bg:#FFF3EC; --red:#D62839; --red-dark:#A81E2B; --green:#1F6F54; --green-dark:#155541;
  --gold:#F2B705; --gold-dark:#C9930A; --ink:#241C1C; --ink-soft:#6B5E5A;
  --white:#FFFFFF; --card:#FFFFFF; --line:#F0DFD6;
}
*{box-sizing:border-box; margin:0; padding:0;}
html,body{height:100%;}
body{ background:var(--bg); font-family:'Nunito',sans-serif; color:var(--ink); min-height:100dvh; }

.app-shell{ width:100%; max-width:560px; margin:0 auto; min-height:100dvh; background:var(--bg);
  display:flex; flex-direction:column; }

/* Header */
.header{ background:var(--white); padding:14px 16px 12px; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:10; }
.header-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.brand{ display:flex; align-items:center; gap:9px; text-decoration:none; color:inherit; }
.brand-mark{ width:36px; height:36px; border-radius:50%; overflow:hidden; flex-shrink:0; }
.brand-mark img{ width:100%; height:100%; object-fit:cover; }
.brand-text .name{ font-family:'Fredoka',sans-serif; font-weight:700; font-size:17px; line-height:1; }
.brand-text .tag{ font-size:9px; font-weight:800; letter-spacing:.08em; color:var(--red); text-transform:uppercase; }
.header-icons{ display:flex; align-items:center; gap:16px; }
.icon-btn{ position:relative; color:var(--ink); }
.icon-btn svg{ width:22px; height:22px; display:block; }
.badge{ position:absolute; top:-6px; right:-8px; background:var(--red); color:#fff; font-size:9px; font-weight:800;
  border-radius:20px; padding:1px 5px; }
.search{ display:flex; align-items:center; gap:8px; background:var(--bg); border:1.5px solid var(--line);
  border-radius:14px; padding:9px 12px; }
.search input{ border:none; background:transparent; outline:none; font-size:13px; color:var(--ink); width:100%; }
.twist-divider{ height:10px; width:100%; background:repeating-linear-gradient(-45deg, var(--gold) 0 8px, var(--red) 8px 16px); }

/* Category chips */
.categories{ display:flex; gap:14px; overflow-x:auto; padding:16px 16px 8px; }
.cat{ flex-shrink:0; display:flex; flex-direction:column; align-items:center; gap:6px; width:64px; text-decoration:none; color:inherit; }
.cat-icon{ width:56px; height:56px; border-radius:50%; background:var(--white); border:1.5px solid var(--line);
  display:flex; align-items:center; justify-content:center; font-size:24px; }
.cat.active .cat-icon{ border-color:var(--red); }
.cat-label{ font-size:10px; font-weight:700; text-align:center; color:var(--ink-soft); }
.cat.active .cat-label{ color:var(--red); }

/* Section */
.section{ padding:18px 16px 4px; }
.section-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.ribbon{ font-family:'Fredoka'; font-weight:600; font-size:15px; }
.see-all{ font-size:11.5px; font-weight:800; color:#fff; background:var(--gold-dark); padding:6px 12px;
  border-radius:20px; text-decoration:none; }

/* Product card */
.product{ display:flex; gap:12px; background:var(--card); border-radius:16px; padding:10px; margin-bottom:10px;
  border:1px solid var(--line); position:relative; text-decoration:none; color:inherit; }
.product-img{ width:78px; height:78px; border-radius:12px; flex-shrink:0; background:#F3E8E2; position:relative; overflow:hidden; }
.product-img img{ width:100%; height:100%; object-fit:cover; }
.discount-badge{ position:absolute; top:4px; left:4px; background:var(--red); color:#fff; font-size:8.5px; font-weight:800;
  padding:2px 6px; border-radius:6px; }
.product-info{ flex:1; min-width:0; padding-right:56px; }
.product-name{ font-size:13.5px; font-weight:800; line-height:1.25; }
.product-weight{ font-size:11px; color:var(--ink-soft); margin-top:2px; font-weight:600; }
.product-sku{ font-size:10px; color:#B9ABA5; margin-top:1px; font-weight:700; }
.price-row{ display:flex; align-items:baseline; gap:6px; margin-top:6px; flex-wrap:wrap; }
.price-now{ font-size:15px; font-weight:800; color:var(--green-dark); }
.price-mrp{ font-size:11.5px; color:var(--ink-soft); text-decoration:line-through; }
.save-tag{ font-size:10px; color:var(--red); font-weight:700; margin-top:1px; }
.product-actions{ position:absolute; right:10px; bottom:10px; display:flex; align-items:center; gap:8px; }
.add-btn{ background:var(--white); color:var(--green-dark); border:1.5px solid var(--green); font-weight:800; font-size:12px;
  padding:6px 16px; border-radius:10px; cursor:pointer; }

/* Cart bar */
.cart-bar{ position:sticky; bottom:14px; left:0; right:0; margin:14px 12px 0; background:var(--ink); border-radius:16px;
  padding:12px 14px; display:flex; align-items:center; justify-content:space-between; color:#fff; text-decoration:none;
  box-shadow:0 10px 24px rgba(0,0,0,.3); }
.cart-bar .count{ font-size:10.5px; color:#D9C9C2; font-weight:700; }
.cart-bar .amount{ font-family:'Fredoka'; font-size:16px; font-weight:600; }
.cart-bar .view-btn{ background:var(--gold); color:var(--ink); font-weight:800; font-size:13px; padding:9px 18px; border-radius:11px; }

/* PDP */
.pdp-hero{ width:100%; aspect-ratio:1/1; max-height:360px; background:#F3E8E2; position:relative; }
.pdp-hero img{ width:100%; height:100%; object-fit:contain; display:block; }
.pdp-gallery{ display:flex; gap:8px; padding:10px 16px; overflow-x:auto; }
.pdp-thumb{ width:56px; height:56px; border-radius:10px; overflow:hidden; border:2px solid transparent; flex-shrink:0; }
.pdp-thumb.active{ border-color:var(--red); }
.pdp-thumb img{ width:100%; height:100%; object-fit:cover; }
.pdp-body{ padding:6px 16px 100px; }
.pdp-name{ font-family:'Fredoka'; font-weight:600; font-size:19px; }
.pdp-price-row{ display:flex; align-items:baseline; gap:10px; margin:12px 0 2px; }
.pdp-price-now{ font-size:24px; font-weight:800; color:var(--green-dark); }
.pdp-price-mrp{ font-size:15px; color:var(--ink-soft); text-decoration:line-through; }
