/* ================= Pickle Store - styles & animations ================= */
:root {
  --bg: #fff8ec; --card: #fff; --ink: #2a1b12; --muted: #7a6657;
  --brand: #b3361b; --brand-dark: #8f2a14; --accent: #e0a526; --green: #2f6b3a;
  --line: #f0dcc0; --radius: 16px; --shadow: 0 8px 24px rgba(120, 60, 20, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Poppins', 'Segoe UI', Arial, sans-serif; line-height: 1.6; overflow-x: hidden; }
a { color: var(--brand); text-decoration: none; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 18px; }

/* ---------- keyframes ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(3deg); } }
@keyframes blob { 0%, 100% { border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%; } 50% { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes sparkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.top { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 30; animation: slideDown .6s ease; transition: box-shadow .3s; }
.top.scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .25); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { color: #fff; font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.logo svg { width: 26px; height: 26px; }
.top nav { display: flex; align-items: center; gap: 20px; }
.top nav a, .top nav button.cartbtn { color: #fff; font-weight: 600; background: none; border: 0; font: inherit; cursor: pointer; position: relative; }
.top nav a::after { content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--accent); transition: width .3s; }
.top nav a:hover::after { width: 100%; }
.badge { background: var(--accent); color: #2a1b12; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; margin-left: 4px; }
.badge.bump { animation: bump .4s; }

/* ---------- hero ---------- */
.hero { position: relative; background: linear-gradient(135deg, #fbe3b4, #f7c873 60%, #f3a950); padding: 70px 0 90px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; position: relative; z-index: 2; }
.hero h1 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; color: var(--brand-dark); animation: fadeUp .9s ease both; }
.hero p { margin: 0 0 24px; max-width: 480px; color: #5a3d22; font-size: 1.05rem; animation: fadeUp .9s .15s ease both; }
.hero .btn { animation: fadeUp .9s .3s ease both; }
.hero .art { position: relative; height: 300px; animation: fadeIn 1.2s .3s ease both; }
.hero .jar { position: absolute; animation: floaty 5s ease-in-out infinite; filter: drop-shadow(0 14px 14px rgba(90, 40, 10, .25)); }
.hero .jar.j1 { width: 150px; left: 8%; top: 40px; }
.hero .jar.j2 { width: 190px; left: 38%; top: 0; animation-delay: -1.5s; }
.hero .jar.j3 { width: 130px; right: 2%; top: 80px; animation-delay: -3s; }
.hero .blob { position: absolute; background: rgba(255, 255, 255, .28); animation: blob 9s ease-in-out infinite; }
.hero .blob.b1 { width: 340px; height: 340px; right: -80px; top: -90px; }
.hero .blob.b2 { width: 220px; height: 220px; left: -60px; bottom: -80px; animation-delay: -4s; }
.spark { position: absolute; width: 14px; height: 14px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: sparkle 2.6s ease-in-out infinite; }
.hero .wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 50px; z-index: 3; }
@media (max-width: 800px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } .hero p { margin-inline: auto; } .hero .art { height: 230px; } }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 600; background: var(--brand); color: #fff; padding: 12px 26px; border-radius: 999px; transition: transform .2s, box-shadow .2s, background .2s; box-shadow: 0 6px 16px rgba(179, 54, 27, .3); }
.btn:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(179, 54, 27, .35); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); box-shadow: none; }
.btn.ghost:hover { background: var(--brand); color: #fff; }
.btn.small { padding: 6px 16px; font-size: .88rem; }
.btn.danger { background: #a11; box-shadow: none; }
.btn.block { width: 100%; }
.btn .rip { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .5); width: 20px; height: 20px; margin: -10px; transform: scale(0); animation: ripple .6s linear; pointer-events: none; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; margin-right: 6px; }

/* ---------- sections & product cards ---------- */
section.block { padding: 50px 0; }
h2.title { margin: 0 0 8px; font-size: 1.9rem; color: var(--brand-dark); }
.sub { color: var(--muted); margin: 0 0 28px; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s, box-shadow .35s; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card .img { aspect-ratio: 1; background: #fdf0d5; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; display: block; }
.card:hover .img img { transform: scale(1.1) rotate(1deg); }
.card .img svg { width: 55%; animation: floaty 5s ease-in-out infinite; }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 1.1rem; }
.card .desc { color: var(--muted); font-size: .9rem; flex: 1; }
.card .meta { display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 700; color: var(--green); font-size: 1.2rem; }
.weight { color: var(--muted); font-size: .82rem; background: #fdf0d5; padding: 1px 10px; border-radius: 999px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- features strip ---------- */
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; transition: transform .3s; }
.feat:hover { transform: translateY(-6px); }
.feat .ic { font-size: 2.2rem; display: inline-block; animation: floaty 4s ease-in-out infinite; }
.feat h4 { margin: 8px 0 4px; }
.feat p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(30, 15, 5, .5); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; }
.overlay.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: #fffdf8; z-index: 50; transform: translateX(105%); transition: transform .4s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0, 0, 0, .2); }
.drawer.on { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: var(--brand); color: #fff; }
.drawer header h3 { margin: 0; }
.drawer header button { background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; transition: transform .3s; }
.drawer header button:hover { transform: rotate(90deg); }
.drawer .scroll { flex: 1; overflow-y: auto; padding: 16px 20px; }
.line-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); animation: fadeUp .35s ease both; }
.line-item .nm { flex: 1; }
.line-item .nm small { color: var(--muted); display: block; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--brand); background: #fff; color: var(--brand); font-size: 1.1rem; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.qty button:hover { background: var(--brand); color: #fff; }
.qty button:active { transform: scale(.85); }
.sumrow { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 700; padding: 14px 0; }
.drawer .empty { padding: 50px 10px; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: .88rem; }
input, textarea, select { width: 100%; padding: 11px 13px; border: 1px solid #dcc7a4; border-radius: 12px; font: inherit; background: #fffdf8; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(224, 165, 38, .25); }
.pay-opt { display: flex; gap: 8px; align-items: center; font-weight: 500; margin: 6px 0; cursor: pointer; }
.pay-opt input { width: auto; }
.err, .ok { padding: 10px 14px; border-radius: 12px; margin: 12px 0; animation: fadeUp .4s ease; }
.err { background: #fdecea; color: #a11; }
.ok { background: #e8f5e9; color: var(--green); }
.hint { color: var(--muted); font-size: .82rem; margin: 4px 0 0; }

/* ---------- success overlay ---------- */
.success { position: fixed; inset: 0; background: rgba(255, 248, 236, .97); z-index: 80; display: none; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 20px; }
.success.on { display: flex; animation: fadeIn .4s; }
.tick { width: 120px; height: 120px; animation: pop .6s ease both; }
.tick circle { fill: none; stroke: var(--green); stroke-width: 5; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw .8s .1s ease forwards; }
.tick path { fill: none; stroke: var(--green); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .5s .7s ease forwards; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 120px); background: #2a1b12; color: #fff; padding: 10px 20px; border-radius: 999px; z-index: 90; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.toast.on { transform: translate(-50%, 0); }

/* ---------- panels, order page ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); animation: fadeUp .6s ease both; }
.row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.total { font-size: 1.2rem; font-weight: 700; }
.pill { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #eee; }
.pill.PAID, .pill.DELIVERED { background: #d6f0da; color: var(--green); }
.pill.PENDING { background: #fff0c7; color: #8a6200; }
.pill.FAILED, .pill.CANCELLED { background: #fbd6d2; color: #a11; }
.pill.NEW { background: #ffe3a3; }

footer { background: #3b2416; color: #e8d5bd; padding: 28px 0; margin-top: 30px; text-align: center; font-size: .9rem; }
footer a { color: #e8d5bd; opacity: .55; }

/* ---------- admin ---------- */
.admin-bar { background: #3b2416; color: #fff; }
.admin-bar .bar { height: 56px; }
.admin-bar a { color: #fff; margin-left: 18px; }
.tabs { display: flex; gap: 8px; margin: 22px 0; flex-wrap: wrap; }
.tab { padding: 8px 20px; border-radius: 999px; border: 1px solid var(--brand); background: #fff; color: var(--brand); font-weight: 600; transition: all .25s; }
.tab:hover, .tab.on { background: var(--brand); color: #fff; }
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; animation: fadeUp .6s ease both; }
.stat b { display: block; font-size: 1.7rem; color: var(--brand-dark); }
.stat span { color: var(--muted); font-size: .85rem; }
.order { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; animation: fadeUp .5s ease both; }
.order.new { border-left: 6px solid var(--accent); }
.order .head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.sel-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.sel-row select { width: auto; }
.prod-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.prod-row img, .prod-row .ph { width: 70px; height: 70px; border-radius: 12px; object-fit: cover; background: #fdf0d5; display: flex; align-items: center; justify-content: center; }
.prod-row .info { flex: 1; min-width: 160px; }
.prod-row.off { opacity: .55; }
.two { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .two { grid-template-columns: 1fr; } .top nav { gap: 12px; } }
.login-box { max-width: 400px; margin: 10vh auto; }
.preview { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; margin-top: 8px; border: 1px solid var(--line); }
form.inline { display: inline; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }

/* ================= v3 - advanced look ================= */
body { background: radial-gradient(1200px 500px at 85% -5%, #ffe9c2 0, transparent 60%), var(--bg); }
.top { background: linear-gradient(90deg, rgba(143, 42, 20, .96), rgba(179, 54, 27, .96)); backdrop-filter: blur(10px); }
.logo svg { width: 34px; height: 34px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.eyebrow { display: inline-block; background: rgba(255, 255, 255, .55); color: var(--brand-dark); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px; animation: fadeUp .8s ease both; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #b3361b, #e0a526); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn.ghost.light { margin-left: 10px; background: rgba(255, 255, 255, .45); }
.hero { background: radial-gradient(600px 300px at 80% 20%, #ffe6a8 0, transparent 70%), linear-gradient(135deg, #fbe3b4, #f7c873 55%, #f0a24a); padding: 80px 0 100px; }
.hero .art { height: 360px; }
.hero .plate { position: absolute; left: 4%; right: 4%; bottom: 8px; height: 38px; border-radius: 50%; background: radial-gradient(closest-side, rgba(90, 40, 10, .35), transparent); filter: blur(6px); }
.hero .jar { filter: drop-shadow(0 18px 18px rgba(90, 40, 10, .28)); animation: floaty 6s ease-in-out infinite; }
.hero .jar.j1 { width: 150px; left: 2%; top: 70px; }
.hero .jar.j2 { width: 200px; left: 30%; top: 8px; animation-delay: -2s; }
.hero .jar.j3 { width: 140px; right: 2%; top: 90px; animation-delay: -4s; }
.deco { position: absolute; z-index: 3; animation: floaty 7s ease-in-out infinite; filter: drop-shadow(0 6px 6px rgba(80, 30, 5, .25)); }
.deco.d1 { width: 70px; left: 20%; bottom: 14px; transform: rotate(-18deg); }
.deco.d2 { width: 44px; right: 24%; bottom: 10px; animation-delay: -2s; }
.deco.d3 { width: 80px; right: 0; top: 8px; animation-delay: -3s; }
.deco.d4 { width: 38px; left: 0; top: 30px; animation-delay: -1s; }
@media (max-width: 800px) { .hero .art { height: 280px; } .hero .jar.j1 { width: 105px; } .hero .jar.j2 { width: 140px; left: 33%; } .hero .jar.j3 { width: 100px; } }

.marquee { overflow: hidden; background: #3b2416; color: #f3dfbf; padding: 12px 0; margin-top: -1px; }
.marquee .track { display: flex; gap: 38px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.marquee svg { width: 16px; height: 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.card { border: 0; box-shadow: 0 2px 0 var(--line), 0 10px 28px rgba(120, 60, 20, .08); transform-style: preserve-3d; will-change: transform; }
.card .img { position: relative; background: radial-gradient(circle at 50% 38%, #fff 0, #fdeccb 70%); }
.card .img svg { width: 62%; animation: floaty 6s ease-in-out infinite; filter: drop-shadow(0 10px 10px rgba(90, 40, 10, .25)); }
.card .img img { aspect-ratio: 1; }
.card .tag { position: absolute; top: 12px; left: 12px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; box-shadow: 0 4px 10px rgba(179, 54, 27, .35); }
.card .meta .weight { display: none; }
.card .btn.small { margin-top: 6px; }

.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 30px 22px 22px; text-align: center; box-shadow: 0 10px 28px rgba(120, 60, 20, .08); }
.step .num { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #e2562f); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(179, 54, 27, .4); }
.step h4, .feat h4 { margin: 10px 0 4px; }
.step p, .feat p { margin: 0; color: var(--muted); font-size: .9rem; }
.step .ic, .feat .ic { width: 62px; height: 62px; margin: 0 auto; border-radius: 18px; background: #fff1d6; color: var(--brand); display: flex; align-items: center; justify-content: center; animation: none; transition: transform .35s, background .35s, color .35s; }
.step .ic svg, .feat .ic svg { width: 34px; height: 34px; }
.step:hover .ic, .feat:hover .ic { transform: rotate(-8deg) scale(1.08); background: var(--brand); color: #fff; }
.feat { box-shadow: 0 10px 28px rgba(120, 60, 20, .06); border: 0; }

/* ================= v4 - logo, order window, product page ================= */
.logo-img { height: 38px; width: auto; max-width: 150px; object-fit: contain; display: block; border-radius: 6px; }
.logo-preview { max-height: 90px; max-width: 100%; display: block; margin: 6px 0 4px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .knob { position: relative; flex: none; width: 50px; height: 28px; border-radius: 999px; background: #cdbfa9; transition: background .25s; }
.switch .knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .3); transition: transform .25s; }
.switch input:checked + .knob { background: var(--green); }
.switch input:checked + .knob::after { transform: translateX(22px); }
.switch input:focus-visible + .knob { box-shadow: 0 0 0 4px rgba(224, 165, 38, .35); }

/* order window (modal) */
.noscroll { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.modal[hidden] { display: none; }
.modal.on { opacity: 1; pointer-events: auto; }
.mbox { background: #fffdf8; width: min(520px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); transform: translateY(30px) scale(.97); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.modal.on .mbox { transform: none; }
.mhead { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--brand); color: #fff; }
.mhead h3 { margin: 0; }
.mhead button { background: none; border: 0; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.mbody { flex: 1; overflow-y: auto; padding: 8px 20px 14px; -webkit-overflow-scrolling: touch; }
.mfoot { padding: 12px 20px 16px; border-top: 1px solid var(--line); background: #fffdf8; }
.mfoot .btn { width: 100%; padding: 14px; font-size: 1.05rem; }
.mprod { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.mprod .nm { flex: 1; } .mprod .nm small { display: block; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 10px; }
.bill { margin-top: 18px; background: #fff7e6; border: 1px dashed #e0a526; border-radius: 14px; padding: 12px 14px; }
.bill h4 { margin: 0 0 6px; color: var(--brand-dark); }
.brow { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: .92rem; }
.brow.grand { border-top: 2px solid var(--line); margin-top: 6px; padding-top: 9px; font-size: 1.15rem; font-weight: 700; color: var(--green); }
.otp-note { text-align: center; margin: 18px 0 12px; }
.otp-input { text-align: center; font-size: 1.9rem; letter-spacing: .5em; padding: 12px 0 12px .5em; font-weight: 700; }
.linkbtn { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.linkbtn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; margin-right: 8px; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
  .modal { padding: 0; align-items: flex-end; }
  .mbox { width: 100%; max-height: 94dvh; border-radius: 22px 22px 0 0; }
  input, textarea { font-size: 16px; } /* stops iOS zooming on focus */
}
.plink { color: inherit; } .plink:hover { color: var(--brand); }
a.card { color: inherit; }
a.img { display: flex; }

/* product detail page */
.pdp { padding: 22px 18px 10px; }
.crumbs { color: var(--muted); font-size: .85rem; margin-bottom: 16px; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.pd-img { background: #fdf0d5; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.pd-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-img svg { width: 60%; animation: floaty 5s ease-in-out infinite; }
.pd-info h1 { margin: 0 0 8px; color: var(--brand-dark); font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.2; }
.pd-price { font-size: 1.9rem; font-weight: 700; color: var(--green); margin-bottom: 10px; }
.pd-desc { color: #5b463a; }
.pd-points { padding-left: 20px; color: var(--muted); }
.btn.big { padding: 15px 42px; font-size: 1.1rem; }
@media (max-width: 760px) {
  .pd-grid { grid-template-columns: 1fr; gap: 20px; }
  .pd-info .btn.big { width: 100%; text-align: center; }
}
.logo { white-space: nowrap; }
@media (max-width: 560px) { .logo-img { max-width: 80px; height: 32px; } .top nav { gap: 10px; font-size: .88rem; } }

/* order tracking timeline */
.tl { list-style: none; margin: 8px 0 16px; padding: 0; }
.tl li { position: relative; padding: 0 0 18px 34px; color: var(--muted); }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ''; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl .dot { position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #dcc7a4; }
.tl li.done, .tl li.now { color: var(--ink); font-weight: 600; }
.tl li.done .dot { background: var(--green); border-color: var(--green); }
.tl li.done::before { background: var(--green); }
.tl li.now .dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(224, 165, 38, .3); }

/* ================= v5 - admin cleanup, read more ================= */
.cleanup { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin-bottom: 16px; }
.cleanup summary { cursor: pointer; font-weight: 600; color: var(--brand-dark); }
.cleanup .sel-row { margin-top: 10px; }
.cleanup .hint { margin-top: 8px; }
.order .btn.small { vertical-align: middle; }

/* product cards: short description + "Read more" */
.card .desc { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: none; white-space: normal; }
.card .body .readmore { align-self: flex-start; background: none; border: 0; padding: 0; margin: 0 0 4px; color: var(--brand); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; text-decoration: underline; }
.card .body .readmore:hover { color: var(--brand-dark); }
.card .body .spacer { flex: 1; }
.dmodal .mbox { width: min(560px, 100%); }
.dmodal .dimg { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; margin-top: 12px; display: block; }
.dmodal .dprice { font-size: 1.5rem; font-weight: 700; color: var(--green); margin: 12px 0 6px; }
.dmodal .dtext { color: #5b463a; white-space: pre-line; overflow-wrap: anywhere; }
.dmodal .mfoot { display: flex; gap: 10px; }
.dmodal .mfoot .btn { flex: 1; width: auto; padding: 12px; font-size: 1rem; text-align: center; }

/* ================= v6 - courier charge & OFFER ================= */
.offer-tag { position: absolute; top: 12px; right: 12px; z-index: 2; background: linear-gradient(135deg, #e0a526, #f3c14b); color: #2a1b12; font-size: .72rem; font-weight: 800; letter-spacing: .06em; padding: 3px 12px; border-radius: 999px; box-shadow: 0 4px 10px rgba(224, 165, 38, .5); animation: pop .6s ease both; }
.offer-note { display: flex; gap: 8px; align-items: center; background: #fff3d1; border: 1px dashed var(--accent); color: #6b4a00; border-radius: 12px; padding: 6px 10px; font-size: .8rem; line-height: 1.3; margin: 4px 0; }
.offer-note b { background: var(--accent); color: #2a1b12; border-radius: 999px; padding: 1px 8px; font-size: .7rem; white-space: nowrap; letter-spacing: .04em; }
.pd-info .offer-note { font-size: .92rem; padding: 10px 14px; margin: 10px 0 4px; }
.bill .offer-note { margin-top: 10px; }
.card .meta .cour { color: var(--muted); font-size: .78rem; }
.card .meta { flex-wrap: wrap; gap: 4px; }

/* multi-product order window */
.mprod { flex-direction: column; align-items: stretch; gap: 8px; }
.mline { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.mline + .mline { border-top: 1px dashed var(--line); }
.mline .nm { flex: 1; min-width: 0; }
.mrm { width: 28px; height: 28px; border-radius: 50%; border: 0; background: #f6e3dc; color: var(--brand); cursor: pointer; flex: none; }
.madd select { width: 100%; padding: 10px 12px; border: 1px dashed var(--brand); border-radius: 10px; background: #fff8ee; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; }

/* ---- sizes, certificate ---- */
.mline { flex-wrap: wrap; }
.mline .sizesel { display: block; margin-top: 4px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: .85rem; max-width: 100%; }
.mline .lamt { font-weight: 700; color: var(--green); min-width: 64px; text-align: right; }
.dsizes { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.size-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 16px; }
.chip { border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 14px; padding: 8px 18px; font: inherit; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.2; transition: border-color .2s, background .2s, transform .15s; }
.chip small { font-weight: 600; color: var(--green); }
.chip:hover { transform: translateY(-2px); }
.chip.on { border-color: var(--brand); background: #fff3d1; }
.certimg { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.certframe { width: 100%; height: 65vh; border: 1px solid var(--line); border-radius: 10px; }
.size-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
