/* ============================================
   COD Store — Storefront styles
   Palette: ink #14161B | paper #FFFFFF | haldi #FFC531
            mint #DFF3E4 | red #E23D28
   Type: Space Grotesk (display) + Inter (body)
   ============================================ */

:root {
  --ink: #14161B;
  --paper: #FFFFFF;
  --haldi: #FFC531;
  --mint: #DFF3E4;
  --red: #E23D28;
  --gray: #6B7078;
  --line: 2px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 10px;
  --disp: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .logo { font-family: var(--disp); line-height: 1.15; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--haldi); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--ink); color: var(--haldi); text-align: center; font-size: 13px; font-weight: 600; padding: 8px 16px; letter-spacing: 0.04em; }
.site-header { border-bottom: var(--line); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 22px; font-weight: 700; }
.nav { display: flex; gap: 22px; align-items: center; font-weight: 600; font-size: 15px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.cart-link { position: relative; padding: 8px 14px; border: var(--line); border-radius: 999px; background: var(--haldi); box-shadow: var(--shadow-sm); }
.cart-badge { background: var(--ink); color: var(--haldi); border-radius: 999px; font-size: 12px; padding: 1px 7px; margin-left: 4px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--disp); font-weight: 700; font-size: 16px; padding: 13px 26px; border: var(--line); border-radius: var(--radius); cursor: pointer; text-align: center; transition: transform .12s ease, box-shadow .12s ease; background: var(--paper); color: var(--ink); }
.btn-primary { background: var(--haldi); box-shadow: var(--shadow); }
.btn-ghost { background: var(--paper); box-shadow: var(--shadow-sm); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-lg { font-size: 18px; padding: 16px 30px; }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero { background: var(--mint); border-bottom: var(--line); }
.hero-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 64px 20px; }
.eyebrow { display: inline-block; font-family: var(--disp); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--ink); color: var(--haldi); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); margin-bottom: 16px; }
.hero-sub { font-size: 18px; color: #33373E; margin-bottom: 28px; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img, .img-placeholder { width: 100%; aspect-ratio: 1/1; object-fit: cover; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper); }
.img-placeholder { display: flex; align-items: center; justify-content: center; color: var(--gray); font-family: var(--disp); font-weight: 600; }
.img-placeholder.small { aspect-ratio: 1/1; }

/* ---------- Signature: COD stamp ---------- */
.cod-stamp { position: absolute; top: -18px; right: -14px; transform: rotate(8deg); background: var(--haldi); border: 2px dashed var(--ink); border-radius: 50%; width: 108px; height: 108px; display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--disp); font-weight: 700; font-size: 15px; line-height: 1.2; box-shadow: var(--shadow-sm); animation: stampIn .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes stampIn { from { transform: rotate(8deg) scale(1.6); opacity: 0; } to { transform: rotate(8deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cod-stamp { animation: none; } .btn { transition: none; } html { scroll-behavior: auto; } }

/* ---------- Product grid ---------- */
.products { padding: 64px 0; }
.section-title { font-size: clamp(24px, 3vw, 34px); margin-bottom: 30px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.card { border: var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease; display: flex; flex-direction: column; }
.card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.card-media { position: relative; border-bottom: var(--line); }
.card-media img, .card-media .img-placeholder { aspect-ratio: 1/1; width: 100%; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; }
.badge-off { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-family: var(--disp); font-weight: 700; font-size: 13px; padding: 4px 10px; border: 2px solid var(--ink); border-radius: 6px; }
.badge-off.inline { position: static; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 18px; }
.card-desc { font-size: 14px; color: var(--gray); flex: 1; }
.card .price-row { margin-top: auto; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-family: var(--disp); font-weight: 700; font-size: 22px; }
.price-row.big .price { font-size: 32px; }
.compare { color: var(--gray); text-decoration: line-through; }
.empty-note { color: var(--gray); }

/* ---------- Product page ---------- */
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 48px; padding-bottom: 48px; }
.pp-main { position: relative; }
.pp-main img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pp-thumbs { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.pp-thumbs img { width: 68px; height: 68px; object-fit: cover; border: var(--line); border-radius: 8px; cursor: pointer; opacity: .65; }
.pp-thumbs img.active, .pp-thumbs img:hover { opacity: 1; box-shadow: var(--shadow-sm); }
.pp-info h1 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.pp-short { color: #33373E; margin: 14px 0 22px; font-size: 16px; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-weight: 600; }
.qty-box { display: inline-flex; border: var(--line); border-radius: var(--radius); overflow: hidden; }
.qty-box button { width: 42px; height: 46px; border: 0; background: var(--haldi); font-size: 20px; font-weight: 700; cursor: pointer; }
.qty-box input { width: 60px; text-align: center; border: 0; border-left: var(--line); border-right: var(--line); font-family: var(--disp); font-size: 17px; font-weight: 700; }
.buy-btns { display: grid; gap: 12px; }
.pp-points { list-style: none; margin-top: 24px; display: grid; gap: 8px; font-size: 15px; }
.oos { display: inline-block; background: var(--red); color: #fff; font-family: var(--disp); font-weight: 700; padding: 10px 18px; border: var(--line); border-radius: var(--radius); }
.pp-desc { padding-bottom: 64px; }
.desc-body { border: var(--line); border-radius: var(--radius); padding: 26px; background: #FCFBF7; box-shadow: var(--shadow-sm); }
.desc-body ul, .desc-body ol { padding-left: 22px; }
.desc-body p, .desc-body li { margin-bottom: 8px; }
.desc-body img { border-radius: 8px; margin: 10px 0; }

/* ---------- Checkout ---------- */
.checkout { padding-top: 44px; padding-bottom: 64px; }
.cod-pill { font-size: 14px; background: var(--haldi); border: var(--line); border-radius: 999px; padding: 5px 14px; box-shadow: var(--shadow-sm); }
.checkout-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; }
.summary, .cod-form { border: var(--line); border-radius: var(--radius); padding: 24px; background: var(--paper); box-shadow: var(--shadow); }
.summary { background: #FCFBF7; }
.summary h2, .cod-form h2 { font-size: 20px; margin-bottom: 18px; }
.sum-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px dashed #B9BDC4; }
.sum-img img, .sum-img .img-placeholder { width: 64px; height: 64px; object-fit: cover; border: 2px solid var(--ink); border-radius: 8px; box-shadow: none; }
.sum-info { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.sum-price { color: var(--gray); }
.sum-total { font-family: var(--disp); font-weight: 700; }
.sum-actions { margin-top: 6px; }
.inline-form { display: flex; align-items: center; gap: 8px; }
.qty-mini { width: 54px; padding: 4px 6px; border: 2px solid var(--ink); border-radius: 6px; font-family: var(--disp); font-weight: 600; }
.link-btn { background: none; border: 0; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; color: var(--ink); padding: 0; }
.link-btn.danger { color: var(--red); }
.sum-row { display: flex; justify-content: space-between; padding: 10px 0 0; font-size: 15px; }
.sum-row.grand { font-family: var(--disp); font-weight: 700; font-size: 19px; border-top: var(--line); margin-top: 12px; padding-top: 14px; }
.cod-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.cod-form input, .cod-form textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 8px; font-family: var(--body); font-size: 15px; background: var(--paper); }
.cod-form input:focus, .cod-form textarea:focus { outline: 3px solid var(--haldi); outline-offset: 0; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.pay-box { margin: 6px 0 18px; }
.pay-option { display: flex; gap: 12px; align-items: center; border: var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--mint); }
.pay-option small { display: block; color: #33373E; font-weight: 400; }
.radio-dot { width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 50%; background: radial-gradient(circle at center, var(--ink) 0 5px, transparent 6px); flex-shrink: 0; }
.secure-note { text-align: center; font-size: 13px; color: var(--gray); margin-top: 12px; }
.alert { border: var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px; }
.alert-err { background: #FDE8E4; }
.alert ul { padding-left: 18px; }
.empty-cart { text-align: center; padding: 60px 0; display: grid; gap: 18px; justify-items: center; }

/* ---------- Success ---------- */
.success-page { padding: 64px 20px; display: flex; justify-content: center; }
.success-card { border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px 36px; text-align: center; max-width: 560px; background: var(--paper); display: grid; gap: 14px; justify-items: center; }
.success-ic { width: 74px; height: 74px; border: var(--line); border-radius: 50%; background: var(--haldi); font-size: 38px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.order-no { font-family: var(--disp); font-size: 18px; }
.success-total { background: var(--mint); border: var(--line); border-radius: var(--radius); padding: 12px 20px; font-size: 17px; }

/* ---------- Trust strip + footer ---------- */
.trust-strip { border-top: var(--line); border-bottom: var(--line); background: var(--haldi); }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px 20px; }
.trust-item { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.trust-item small { display: block; color: #4A4204; }
.t-ic { font-size: 24px; }
.site-footer { background: var(--ink); color: #D8DAE0; padding: 44px 0 0; }
.footer-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 26px; }
.footer-logo { color: var(--haldi); margin-bottom: 8px; }
.footer-links { display: grid; gap: 8px; font-weight: 600; }
.footer-links a:hover { color: var(--haldi); }
.copyright { border-top: 1px solid #2C2F36; padding-top: 16px; padding-bottom: 16px; font-size: 13px; color: #9BA0A8; }

/* ---------- Ratings & Reviews ---------- */
.stars { position: relative; display: inline-block; font-family: Arial, sans-serif; font-size: 16px; line-height: 1; letter-spacing: 2px; white-space: nowrap; }
.stars::before { content: "\2605\2605\2605\2605\2605"; color: #E2E4E8; }
.stars .fill { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; color: var(--haldi); }
.stars .fill::before { content: "\2605\2605\2605\2605\2605"; }
.stars.sm { font-size: 13px; letter-spacing: 1px; }
.stars.lg { font-size: 24px; letter-spacing: 3px; }

.rating-row { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; cursor: pointer; }
.rating-num { font-family: var(--disp); font-weight: 700; }
.rating-cnt { color: var(--gray); font-size: 14px; text-decoration: underline; text-underline-offset: 2px; }

.card-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gray); }

/* trusted-by users badge */
.trust-users { display: flex; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.tu-avatars { display: flex; padding-left: 10px; }
.tu-avatars img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--paper); object-fit: cover; margin-left: -10px; box-shadow: 0 0 0 2px var(--ink); background: #eee; }
.tu-text { background: #3A2A1E; color: #fff; font-family: var(--disp); font-weight: 700; font-size: 15px; padding: 11px 20px; border-radius: 999px; box-shadow: var(--shadow-sm); }

/* reviews section */
.reviews { padding-bottom: 64px; }
.rev-summary { display: flex; align-items: center; gap: 20px; border: var(--line); border-radius: var(--radius); padding: 18px 24px; background: var(--mint); box-shadow: var(--shadow-sm); margin-bottom: 28px; width: fit-content; max-width: 100%; }
.rev-avg { font-family: var(--disp); font-weight: 700; font-size: 46px; line-height: 1; }
.rev-count { font-size: 13px; color: #33373E; margin-top: 5px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.review-card { border: var(--line); border-radius: var(--radius); padding: 18px; background: var(--paper); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 9px; }
.rev-head { display: flex; align-items: center; gap: 12px; }
.rev-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--disp); font-weight: 700; color: #fff; font-size: 17px; flex-shrink: 0; border: 2px solid var(--ink); }
.rev-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rev-verified { font-size: 11px; color: #1a7f37; font-weight: 600; }
.rev-title { font-family: var(--disp); font-weight: 700; font-size: 15px; }
.rev-text { font-size: 14px; color: #33373E; line-height: 1.55; }
.rev-date { font-size: 12px; color: var(--gray); margin-top: auto; padding-top: 4px; }
@media (max-width: 560px) { .review-grid { grid-template-columns: 1fr; } .rev-summary { gap: 14px; padding: 16px 18px; } .rev-avg { font-size: 38px; } }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; bottom: 20px; right: 20px; background: #25D366; color: #fff; font-family: var(--disp); font-weight: 700; font-size: 14px; padding: 12px 18px; border: var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); z-index: 60; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .hero-in, .product-page, .checkout-grid { grid-template-columns: 1fr; }
  .trust-in { grid-template-columns: repeat(2, 1fr); }
  .hero-in { padding: 44px 20px; gap: 32px; }
  .cod-stamp { right: 4px; top: -14px; width: 92px; height: 92px; font-size: 13px; }
}
@media (max-width: 560px) {
  .form-2col, .form-3col { grid-template-columns: 1fr; }
  .nav { gap: 14px; font-size: 14px; }
  .logo { font-size: 18px; }
  .trust-in { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px; }
  .card-body h3 { font-size: 15px; }
}

/* ---------- Content protection (deterrence: no select / no image drag) ---------- */
body {
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
/* Form fields ko chhod do — checkout typing/select kaam karti rahe */
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text;
}
img {
  -webkit-user-drag: none; -khtml-user-drag: none; user-drag: none;
  -webkit-touch-callout: none;
}
