/* Partinex Black Friday - public landing */
@font-face { font-family: "IRANSansX"; font-weight: 100 350; font-style: normal; font-display: swap; src: url("../fonts/IRANSansX-Light.woff2") format("woff2"); }
@font-face { font-family: "IRANSansX"; font-weight: 351 700; font-style: normal; font-display: swap; src: url("../fonts/IRANSansX-Medium.woff2") format("woff2"); }
@font-face { font-family: "IRANSansX"; font-weight: 701 900; font-style: normal; font-display: swap; src: url("../fonts/IRANSansX-Black.woff2") format("woff2"); }

:root {
    --navy: #19457A; --yellow: #FFBC10; --orange: #FF9000; --bg: #F5F7FA; --text: #202633; --white: #FFFFFF;
    --navy-deep: #0F2D52; --ink: #0A1A30; --line: #E1E6EE; --muted: #6B7485;
    --r: 16px; --r-sm: 10px; --header-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 500 16px/1.8 "IRANSansX", Tahoma, "Segoe UI", system-ui, sans-serif; color: var(--text); background: var(--bg); overflow-x: hidden; }
body.modal-open { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.ico { width: 20px; height: 20px; flex: none; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
section[id], header[id] { scroll-margin-top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sec { padding-block: 40px; }

/* Preview + notices */
.preview-note { position: sticky; top: 0; z-index: 90; background: var(--yellow); color: var(--ink); text-align: center; padding: 6px 12px; font-size: .85rem; font-weight: 900; }
.sec-topbar { text-align: center; font-size: .9rem; padding: 7px 16px; }
.sec-topbar a { text-decoration: none; }
.sec-topbar a:hover { text-decoration: underline; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 14px; min-height: var(--header-h); flex-wrap: wrap; padding-block: 8px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { display: block; height: 40px; width: auto; }
.logo-text { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.15rem; color: var(--navy); }
.logo-text b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--yellow); color: var(--ink); font-size: .85rem; direction: ltr; }
.campaign-tag { font-weight: 900; font-size: .85rem; padding: 2px 12px; border-radius: 99px; background: var(--ink); color: var(--yellow); letter-spacing: .02em; }
.header-links { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; flex-wrap: wrap; }
.header-links a { text-decoration: none; font-size: .9rem; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); }
.header-links a:hover { border-color: var(--navy); }
.header-links .link-store { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Hero */
.sec-hero { position: relative; display: grid; align-items: center; min-height: var(--h-m, 360px); background: var(--navy-deep); color: var(--hero-color, #fff); overflow: hidden; }
.hero-pic, .hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-pic img { object-fit: cover; display: block; }
.hero-scrim { position: absolute; inset: 0; background: rgba(10, 26, 48, .38); }
.hero-stripes { position: absolute; inset-block: 0; inset-inline-end: 0; width: 38%; background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--ink) 18px 36px); opacity: .95; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.hero-in { position: relative; z-index: 1; display: flex; padding-block: 36px; }
.hero--right .hero-in { justify-content: flex-start; }
.hero--center .hero-in { justify-content: center; text-align: center; }
.hero--left .hero-in { justify-content: flex-end; }
.hero-text { max-width: 560px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero--center .hero-text { align-items: center; }
.hero-title { font-size: clamp(1.9rem, 6vw, 3.6rem); line-height: 1.3; font-weight: 900; }
.hero-sub { font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 900; }
.hero-desc { font-size: 1rem; opacity: .92; }
.hero-cover { position: absolute; inset: 0; z-index: 0; }
.hero-in a, .hero-in .btn-hero { position: relative; z-index: 2; }
.btn-hero { display: inline-block; margin-top: 8px; padding: 12px 30px; border-radius: 12px; background: var(--yellow); color: var(--ink); font-weight: 900; text-decoration: none; }
.btn-hero:hover { background: #FFCB45; }

/* Countdown */
.sec-countdown { background: var(--ink); color: var(--white); border-block: 8px solid transparent; border-image: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--ink) 14px 28px) 8; }
.cd-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cd-text h2 { font-size: clamp(1.3rem, 3.4vw, 1.9rem); color: var(--yellow); }
.cd-text p { margin-top: 4px; opacity: .85; font-size: .95rem; }
.cd-cells { display: flex; gap: 10px; direction: rtl; }
.cd-cell { min-width: 72px; padding: 10px 8px 8px; text-align: center; background: #13294A; border: 1px solid #27466F; border-radius: 14px; }
.cd-num { display: block; font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 900; line-height: 1.2; color: var(--yellow); font-variant-numeric: tabular-nums; direction: ltr; }
.cd-lbl { font-size: .8rem; opacity: .8; }

/* Section heads */
.sec-head { margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(1.35rem, 3.6vw, 2rem); line-height: 1.5; color: var(--navy); }
.sec-head p { color: var(--muted); }

/* Product cards */
.card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 6px 22px rgba(15, 45, 82, .12); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; padding: 10px; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-noimg { width: 50%; aspect-ratio: 1; border-radius: 12px; background: #EEF2F8; }
.badge-off { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--yellow); color: var(--ink); font-weight: 900; font-size: .85rem; line-height: 1; padding: 6px 9px; border-radius: 8px; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; flex: 1; }
.card-title { font-size: .95rem; font-weight: 900; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.4em; }
.card-link { text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-prices { display: flex; flex-direction: column; margin-top: auto; min-height: 3.3em; justify-content: flex-end; }
.price-old { color: var(--muted); font-size: .85rem; text-decoration: line-through; }
.price-new { color: var(--orange); font-weight: 900; font-size: 1.2rem; line-height: 1.5; }
.price-new small { font-size: .75rem; font-weight: 400; }
.btn-view { position: relative; z-index: 2; display: block; text-align: center; padding: 8px 12px; border-radius: 10px; background: var(--navy); color: var(--white); text-decoration: none; font-weight: 900; font-size: .9rem; }
.btn-view:hover { background: var(--navy-deep); }
.card--static .card-link::after { display: none; }

.grid { display: grid; grid-template-columns: repeat(var(--cols-m, 2), minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(var(--cols-t, 3), minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(var(--cols-d, 4), minmax(0, 1fr)); } }

/* Carousel */
.rail-wrap { position: relative; }
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail-item { flex: 0 0 62%; scroll-snap-align: start; }
@media (min-width: 560px) { .rail-item { flex-basis: 38%; } }
@media (min-width: 900px) { .rail-item { flex-basis: calc((100% - 42px) / 4); } }
.rail-btn { position: absolute; top: 40%; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--white); color: var(--navy); box-shadow: 0 3px 14px rgba(15, 45, 82, .25); cursor: pointer; display: none; place-items: center; }
.rail-btn:hover { background: var(--yellow); color: var(--ink); }
.rail-prev { inset-inline-end: -10px; }
.rail-next { inset-inline-start: -10px; }
.rail-prev .ico { transform: scaleX(-1); }
@media (hover: hover) and (min-width: 768px) { .rail-btn { display: grid; } }
[dir="rtl"] .rail-prev .ico { transform: none; }
[dir="rtl"] .rail-next .ico { transform: scaleX(-1); }

/* Explosive sale: the loud section */
.sec-blast { background: var(--ink); color: var(--white); padding: 0; }
.blast-edge { height: 16px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 16px, var(--ink) 16px 32px); }
.blast-in { display: grid; gap: 28px; padding-block: 44px; align-items: center; }
@media (min-width: 900px) { .blast-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; } }
.blast-text { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.blast-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--orange); color: var(--ink); font-weight: 900; padding: 4px 16px 4px 12px; border-radius: 8px; transform: rotate(-3deg); animation: blast-pulse 2.4s ease-in-out infinite; }
.blast-text h2 { font-size: clamp(1.6rem, 4.6vw, 2.8rem); line-height: 1.5; color: var(--yellow); font-weight: 900; }
.blast-text p { color: #D3DCEB; max-width: 46ch; }
.btn-blast { margin-top: 6px; padding: 14px 34px; border: 0; border-radius: 14px; background: var(--yellow); color: var(--ink); font-weight: 900; font-size: 1.05rem; cursor: pointer; box-shadow: 0 6px 0 var(--orange); transition: transform .1s, box-shadow .1s; }
.btn-blast:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--orange); }
.btn-blast:active { transform: translateY(6px); box-shadow: 0 0 0 var(--orange); }
.blast-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1100px) { .blast-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@keyframes blast-pulse { 0%, 100% { transform: rotate(-3deg) scale(1); } 50% { transform: rotate(-3deg) scale(1.06); } }
.card--dark { background: #12263F; border-color: #2A4468; }
.card--dark .card-media { background: #1A3252; }
.card--dark .card-title { color: var(--white); }
.card--dark .price-old { color: #9FB0C9; }
.card--dark .btn-view { background: var(--yellow); color: var(--ink); }
.card--dark .btn-view:hover { background: #FFCB45; }

/* Modal (desktop: centered window, mobile: full screen) */
.blast-modal { border: 0; padding: 0; background: var(--bg); color: var(--text); width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; border-radius: 0; }
.blast-modal::backdrop { background: rgba(5, 12, 24, .72); }
.bm-inner { display: flex; flex-direction: column; height: 100%; }
.bm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px; background: var(--ink); color: var(--yellow); border-bottom: 6px solid var(--orange); }
.bm-head h2 { font-size: 1.3rem; }
.bm-head p { color: #D3DCEB; font-size: .9rem; }
.bm-close { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.bm-body { flex: 1; overflow-y: auto; padding: 16px 18px 28px; overscroll-behavior: contain; }
.grid--modal { --cols-m: 2; --cols-t: 3; --cols-d: 4; }
@media (min-width: 768px) {
    .blast-modal { width: min(1100px, 94vw); height: min(86vh, 900px); border-radius: 20px; margin: auto; }
    .bm-head { padding: 20px 26px; }
    .bm-body { padding: 22px 26px 32px; }
}
.btn-more { margin-top: 22px; padding: 10px 34px; border-radius: 12px; border: 2px solid var(--navy); background: transparent; color: var(--navy); font-weight: 900; cursor: pointer; }
.btn-more:hover { background: var(--navy); color: var(--white); }
.btn-more[hidden], [hidden] { display: none !important; }

/* Coupon */
.coupon-box { display: grid; gap: 22px; align-items: center; padding: 28px; border-radius: 22px; color: var(--white); }
@media (min-width: 800px) { .coupon-box { grid-template-columns: 1fr auto; padding: 36px 44px; } }
.coupon-info { display: flex; flex-direction: column; gap: 6px; }
.coupon-info h2 { font-size: clamp(1.3rem, 3.4vw, 1.9rem); }
.coupon-pct { font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 900; color: var(--yellow); line-height: 1.4; }
.coupon-code-wrap { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: min(100%, 300px); }
.coupon-code { text-align: center; font: 900 clamp(1.8rem, 6vw, 2.8rem)/1.4 ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .12em; padding: 10px 18px; background: var(--white); color: var(--ink); border: 3px dashed var(--yellow); border-radius: 14px; user-select: all; }
.btn-copy { padding: 12px 20px; border: 0; border-radius: 12px; background: var(--yellow); color: var(--ink); font-weight: 900; cursor: pointer; }
.btn-copy:hover { background: #FFCB45; }
.btn-ghost-light { text-align: center; padding: 10px 20px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .7); color: var(--white); text-decoration: none; font-weight: 900; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); }

/* Showcase */
.sc-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.sc-search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--white); border: 1px solid #CBD3E0; border-radius: 12px; color: var(--muted); }
.sc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 10px 0; color: var(--text); }
.sc-search:focus-within { border-color: var(--navy); outline: 3px solid rgba(255, 188, 16, .5); }
.sc-bar select { padding: 10px 14px; border: 1px solid #CBD3E0; border-radius: 12px; background: var(--white); }
.sc-count { margin-inline-start: auto; color: var(--muted); font-size: .9rem; }
.grid.is-loading { opacity: .55; transition: opacity .15s; }

/* Banners / categories */
.tiles { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .tiles--promo { grid-template-columns: repeat(3, 1fr); } .tiles--category { grid-template-columns: repeat(4, 1fr); } }
.tile { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; }
a.tile:hover { border-color: var(--navy); }
.tile-img img { display: block; width: 100%; height: auto; }
.tile-text { display: flex; flex-direction: column; padding: 12px 16px 14px; }
.tile-text small { color: var(--muted); }

/* Benefits */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 900px) { .benefits { grid-template-columns: repeat(4, 1fr); } }
.benefits li { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.ben-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--yellow); color: var(--ink); margin-bottom: 6px; }
.benefits small { color: var(--muted); }

/* FAQ */
.faq { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 900; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--navy); }
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 18px 16px; color: #4A5368; }

/* Final CTA + footer */
.cta-box { background-color: var(--navy); color: var(--white); border-radius: 22px; padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-box h2 { font-size: clamp(1.4rem, 4vw, 2.2rem); color: var(--yellow); }
.cta-box p { max-width: 52ch; opacity: .92; }
.site-footer { padding: 26px 0 34px; text-align: center; color: var(--muted); font-size: .88rem; }
.site-footer a { color: var(--navy); }

/* Toast */
.toast { position: fixed; inset-inline: 16px; bottom: 22px; z-index: 200; margin-inline: auto; width: fit-content; max-width: 90vw; padding: 10px 22px; border-radius: 12px; background: var(--ink); color: var(--yellow); font-weight: 900; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-on { opacity: 1; transform: none; }

@media (max-width: 600px) {
    .header-links a { padding: 5px 11px; font-size: .85rem; }
    .link-offers { display: none; }
    .cd-box { justify-content: center; text-align: center; }
    .cd-cell { min-width: 62px; }
}
@media (min-width: 768px) { .sec-hero { min-height: var(--h-d, 480px); } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Typography weights (IRANSansX: Light 300 / Medium 500 / Black 900) ---------- */
.muted, .sec-head p, .hero-desc, .cd-text p, .price-old, .tile-text small, .benefits small, .faq p, .site-footer, .sc-count { font-weight: 300; }
.card-title, .btn-view, .btn-hero, .btn-more, .btn-blast, .btn-copy, .btn-ghost-light, .btn-back, .faq summary, .sc-bar select, .rail-btn, .blast-badge, .toast, .preview-note, .sec-topbar { font-weight: 500; }
.btn-blast, .btn-hero { font-weight: 900; }

/* ---------- Minimal header: site name + back button ---------- */
.header-in { justify-content: space-between; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--yellow); color: var(--ink); font-size: .85rem; font-weight: 900; direction: ltr; flex: none; }
.brand-name { font-weight: 900; font-size: 1.1rem; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-img { display: block; height: 40px; width: auto; max-width: 160px; }
.btn-back { flex: none; text-decoration: none; padding: 7px 18px; border-radius: 99px; background: var(--navy); color: var(--white); font-size: .9rem; }
.btn-back:hover { background: var(--navy-deep); }

/* ---------- Banner image ratios (match the size guide in Settings) ---------- */
.tile-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #EEF2F8; }
.tiles--category .tile-img { aspect-ratio: 1 / 1; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =====================================================================
   v3 additions: stock, burning discount badge, explosive-sale cards
   ===================================================================== */

/* Real stock number */
.stock { display: block; padding: 5px 10px; border-radius: 8px; background: #EEF3FA; color: var(--navy); font-size: .85rem; font-weight: 500; line-height: 1.5; }
.stock b { font-size: 1.15rem; font-weight: 900; margin-inline: 2px; }
.stock--low { background: #FFE9E3; color: #B42318; }
.stock--low b { font-size: 1.3rem; }
.stock--out { background: #ECEEF2; color: #5B6475; font-weight: 900; }

/* Showcase: burning discount badge + centred, bigger final price */
.card--fire .card-media { padding-top: 22px; }
.badge-fire { position: absolute; top: 18px; inset-inline-start: 10px; z-index: 2; isolation: isolate; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1rem; line-height: 1; background: radial-gradient(circle at 50% 75%, #FFD23F 0, #FF9000 42%, #E63B00 100%); animation: fire-glow 1.1s ease-in-out infinite alternate; }
.badge-fire b { font-weight: 900; text-shadow: 0 1px 3px rgba(120, 20, 0, .7); direction: ltr; }
.flame { position: absolute; bottom: 62%; z-index: -1; width: 20px; height: 30px; border-radius: 50% 50% 50% 50% / 68% 68% 32% 32%; background: radial-gradient(ellipse at 50% 85%, #FFF1A8 0, #FFB000 38%, #FF5A00 70%, rgba(230, 59, 0, 0) 100%); transform-origin: 50% 100%; animation: flame .75s ease-in-out infinite alternate; filter: blur(.3px); }
.flame.f1 { inset-inline-start: 2px; height: 26px; animation-delay: -.2s; }
.flame.f2 { inset-inline-start: 50%; margin-inline-start: -10px; height: 36px; animation-duration: .6s; }
.flame.f3 { inset-inline-end: 2px; height: 24px; animation-delay: -.45s; }
@keyframes flame { 0% { transform: scale(1, 1) rotate(-4deg); opacity: .85; } 50% { transform: scale(.88, 1.18) rotate(3deg); opacity: 1; } 100% { transform: scale(1.1, .9) rotate(-2deg); opacity: .9; } }
@keyframes fire-glow { from { box-shadow: 0 0 8px 1px rgba(255, 144, 0, .7); } to { box-shadow: 0 0 18px 5px rgba(255, 70, 0, .85); } }
.card--fire .card-prices { align-items: center; text-align: center; }
.card--fire .price-old { font-size: .9rem; }
.card--fire .price-new { font-size: 1.6rem; line-height: 1.4; text-align: center; }
.card--fire .stock { text-align: center; }

/* Explosive sale: layout = text on top, cards carousel below */
.sec-blast .blast-in { grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 900px) { .sec-blast .blast-in { grid-template-columns: 1fr; gap: 30px; } }
.blast-text { max-width: 760px; }
.rail--blast { padding: 30px 8px 14px; gap: 18px; }
.rail-item--blast { flex: 0 0 82%; }
@media (min-width: 640px) { .rail-item--blast { flex-basis: calc((100% - 18px) / 2); } }
@media (min-width: 1000px) { .rail-item--blast { flex-basis: calc((100% - 36px) / 3); } }
.rail-wrap--blast .rail-btn { top: 46%; }

/* The card itself */
.card--blast { overflow: visible; background: linear-gradient(180deg, #16315A 0, #0F2342 100%); border: 1px solid #36568A; border-radius: 22px; color: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.card--blast:hover { border-color: var(--yellow); box-shadow: 0 16px 40px rgba(255, 144, 0, .25); }
.card--blast .card-media { border-radius: 21px 21px 0 0; overflow: hidden; background: radial-gradient(circle at 50% 38%, #fff 0, #EAF0FA 62%, #D4DFF0 100%); padding: 16px; }
.card--blast .card-body { gap: 10px; padding: 14px 16px 18px; }
.card--blast .card-title { color: #fff; font-size: 1rem; min-height: 3.4em; }
.card--blast .price-old { color: #A9BBD6; }
.card--blast .price-new { color: var(--yellow); font-size: 1.55rem; font-weight: 900; }
.card--blast .price-new small { color: #FFD97A; }
.card--blast .card-prices { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 12px; flex-wrap: wrap; min-height: 0; margin-top: 4px; }
.card--blast .stock { background: rgba(255, 188, 16, .16); color: var(--yellow); border: 1px dashed rgba(255, 188, 16, .6); font-size: .9rem; }
.card--blast .stock b { font-size: 1.35rem; }
.card--blast .stock--low { background: #FFE3DB; color: #B42318; border-color: #E5654F; }
.card--blast .stock--out { background: rgba(255, 255, 255, .12); color: #CBD6E8; border-color: rgba(255, 255, 255, .3); }
.card--blast .btn-view { background: linear-gradient(90deg, var(--orange), var(--yellow)); color: #0A1A30; font-weight: 900; border-radius: 12px; padding: 10px 14px; }
.card--blast .btn-view:hover { filter: brightness(1.06); }

/* Explosion-shaped discount badge */
.badge-burst { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 8; width: 68px; height: 68px; display: grid; place-content: center; text-align: center; color: #fff; background: #E63B00; clip-path: polygon(50% 0, 61% 14%, 79% 8%, 80% 27%, 96% 35%, 86% 50%, 96% 65%, 80% 73%, 79% 92%, 61% 86%, 50% 100%, 39% 86%, 21% 92%, 20% 73%, 4% 65%, 14% 50%, 4% 35%, 20% 27%, 21% 8%, 39% 14%); animation: burst 1.6s ease-in-out infinite alternate; }
.badge-burst b { font-size: 1.15rem; font-weight: 900; line-height: 1.1; direction: ltr; }
.badge-burst small { font-size: .62rem; line-height: 1; font-weight: 500; }
@keyframes burst { from { transform: rotate(-4deg) scale(1); } to { transform: rotate(4deg) scale(1.08); } }

/* Problem "cloud" floating beside the box */
.problem-cloud { position: absolute; z-index: 6; top: -22px; inset-inline-end: -8px; max-width: calc(100% - 92px); padding: 8px 14px; border-radius: 26px; background: #fff; color: #5A1A0E; border: 2px solid var(--orange); font-size: .8rem; line-height: 1.65; font-weight: 500; box-shadow: 0 8px 18px rgba(0, 0, 0, .3); }
.problem-cloud .pc-label { color: #C2410C; font-weight: 900; }
.problem-cloud::before, .problem-cloud::after { content: ""; position: absolute; background: #fff; border: 2px solid var(--orange); border-radius: 50%; }
.problem-cloud::before { width: 13px; height: 13px; bottom: -13px; inset-inline-start: 26px; }
.problem-cloud::after { width: 8px; height: 8px; bottom: -23px; inset-inline-start: 17px; }

/* Gallery thumbnails: large, always visible, above the card's link overlay so they can be tapped */
.thumbs { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px 14px 0; }
.thumb-btn { position: relative; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 2px solid rgba(255, 255, 255, .3); border-radius: 12px; background: #fff; cursor: zoom-in; overflow: hidden; transition: transform .15s, border-color .15s; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-btn.is-on, .thumb-btn:hover { border-color: var(--yellow); }
.thumb-btn:hover { transform: translateY(-2px); }
.zoom-btn { position: absolute; z-index: 3; bottom: 10px; inset-inline-end: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(10, 26, 48, .78); color: #fff; display: grid; place-items: center; cursor: zoom-in; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
.zoom-btn:hover { background: var(--orange); color: var(--ink); }

/* Lightbox (opens when a gallery image is tapped) */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; background: rgba(4, 9, 18, .95); color: #fff; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(4, 9, 18, .8); }
.lb-close { position: absolute; z-index: 5; top: 12px; left: 12px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.lb-count { position: absolute; z-index: 5; top: 18px; right: 16px; padding: 3px 14px; border-radius: 99px; background: rgba(255, 255, 255, .14); font-size: .9rem; direction: rtl; }
.lb-count:empty { display: none; }
.lb-stage { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; padding: 64px 12px 12px; touch-action: pan-y; }
.lb-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; background: #fff; }
.lb-nav { position: absolute; z-index: 4; top: 50%; margin-top: -24px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.lb-nav:hover { background: var(--yellow); }
.lb-prev { right: 10px; }
.lb-next { left: 10px; }
.lb-next .ico { transform: scaleX(-1); }
.lightbox.is-single .lb-nav, .lightbox.is-single .lb-thumbs { display: none; }
.lb-thumbs { flex: none; display: flex; gap: 10px; justify-content: safe center; overflow-x: auto; padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 0px)); scrollbar-width: thin; }
.lb-thumb { flex: none; width: 68px; height: 68px; padding: 0; border: 3px solid transparent; border-radius: 12px; background: #fff; opacity: .6; cursor: pointer; overflow: hidden; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb.is-on, .lb-thumb:hover { opacity: 1; border-color: var(--yellow); }
@media (min-width: 768px) {
    .lb-stage { padding: 70px 80px 16px; }
    .lb-thumb { width: 84px; height: 84px; }
    .lb-prev { right: 22px; }
    .lb-next { left: 22px; }
}

/* Modal grid for the richer cards */
.grid--blast { grid-template-columns: 1fr; row-gap: 40px; padding-top: 26px; }
@media (min-width: 520px) { .grid--blast { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid--blast { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; row-gap: 42px; } }
.blast-modal .card--blast { height: auto; }
.blast-modal .bm-body { background: #0B1D38; }
.blast-modal .muted { color: #A9BBD6; }


/* =====================================================================
   v4 additions
   ===================================================================== */

/* ---------- Mobile: «all products» as horizontal cards ---------- */
@media (max-width: 639px) {
    .sec-showcase .grid { grid-template-columns: 1fr; gap: 12px; }
    .sec-showcase .card--fire { flex-direction: row; align-items: stretch; height: auto; border-radius: 16px; box-shadow: 0 2px 10px rgba(15, 45, 82, .06); }
    .sec-showcase .card--fire .card-media { flex: 0 0 38%; max-width: 168px; min-height: 156px; aspect-ratio: auto; padding: 10px; align-self: stretch; border-inline-end: 1px solid var(--line); }
    .sec-showcase .card--fire .badge-fire { top: 34px; inset-inline-start: 8px; width: 48px; height: 48px; font-size: .9rem; }
    .sec-showcase .card--fire .card-body { min-width: 0; justify-content: center; gap: 6px; padding: 12px 14px; }
    .sec-showcase .card--fire .card-title { min-height: 0; font-size: .92rem; line-height: 1.6; }
    .sec-showcase .card--fire .stock { text-align: start; font-size: .78rem; padding: 3px 8px; }
    .sec-showcase .card--fire .stock b { font-size: 1rem; }
    .sec-showcase .card--fire .card-prices { align-items: flex-start; text-align: start; min-height: 0; margin-top: 2px; }
    .sec-showcase .card--fire .price-old { font-size: .8rem; }
    .sec-showcase .card--fire .price-new { font-size: 1.3rem; text-align: start; line-height: 1.4; }
    .sec-showcase .card--fire .btn-view { padding: 7px 12px; font-size: .85rem; }
}

/* ---------- Sales packages: carousel ---------- */
.sec-packages { background: linear-gradient(180deg, #FFF3CF 0, #FFF9E8 55%, var(--bg) 100%); }
.pack-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.pack-head .sec-head { margin-bottom: 0; }
.btn-packs { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 10px 20px; border: 0; border-radius: 99px; background: var(--navy); color: #fff; font-weight: 900; cursor: pointer; box-shadow: 0 5px 0 var(--navy-deep); transition: transform .1s, box-shadow .1s; }
.btn-packs:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--navy-deep); }
.btn-packs-n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: var(--yellow); color: var(--ink); font-size: .8rem; line-height: 1; }
.btn-packs .ico { width: 18px; height: 18px; transform: scaleX(-1); }

.rail--pack { gap: 16px; padding: 8px 4px 18px; }
.rail-item--pack { flex: 0 0 86%; }
@media (min-width: 560px) { .rail-item--pack { flex-basis: calc((100% - 16px) / 2); } }
@media (min-width: 1000px) { .rail-item--pack { flex-basis: calc((100% - 32px) / 3); } }
.rail-wrap--pack .rail-btn { top: 42%; }

/* ---------- Sales packages: the ticket-style box ---------- */
.pack { position: relative; display: flex; flex-direction: column; height: 100%; border: 2px solid transparent; border-radius: 24px; overflow: hidden;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--yellow), var(--orange) 50%, var(--navy)) border-box;
    box-shadow: 0 12px 28px rgba(15, 45, 82, .14); transition: transform .18s, box-shadow .18s; }
.pack:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(15, 45, 82, .2); }
.pack-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 14px; background: radial-gradient(circle at 50% 40%, #fff 0, #EAF0FA 100%); }
.pack-media img { width: 100%; height: 100%; object-fit: contain; }
.pack-ribbon { position: absolute; top: 0; inset-inline-end: 14px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 11px 17px; background: var(--navy); color: var(--yellow); font-size: .8rem; line-height: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 8px), 0 100%); }
.pack-ribbon .ico { width: 20px; height: 20px; }
.pack-ribbon b { font-weight: 900; }
.pack-off { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; display: grid; place-content: center; text-align: center; width: 62px; height: 62px; border-radius: 50%; background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 188, 16, .35); transform: rotate(-8deg); }
.pack-off b { font-size: 1.15rem; line-height: 1.1; font-weight: 900; direction: ltr; }
.pack-off small { font-size: .65rem; line-height: 1; font-weight: 500; }
.pack-body { position: relative; display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 16px 18px 18px; border-top: 2px dashed #CFD8E6; }
.pack-title { font-size: 1.05rem; font-weight: 900; line-height: 1.7; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pack--static .card-link::after { display: none; }
.pack-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; line-height: 1.6; }
.pack-items li { display: flex; align-items: flex-start; gap: 8px; }
.pack-items li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 19px; height: 19px; margin-top: 2px; border-radius: 50%; background: var(--navy); color: var(--yellow); font-size: .68rem; font-weight: 900; line-height: 1; }
.pack .stock { text-align: center; }
.pack-foot { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 4px; }
.pack-prices { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.pack-price { color: var(--orange); font-weight: 900; font-size: 1.6rem; line-height: 1.4; }
.pack-price small { font-size: .78rem; font-weight: 400; }
.pack-save { display: inline-block; margin-top: 2px; padding: 2px 12px; border-radius: 99px; background: #E3F6EA; color: #0F7A3C; font-size: .8rem; font-weight: 900; }
.pack-cta { position: relative; z-index: 2; display: block; text-align: center; padding: 11px 14px; border-radius: 14px; background: linear-gradient(90deg, var(--navy), #2A64A8); color: #fff; font-weight: 900; text-decoration: none; }
.pack-cta:hover { filter: brightness(1.12); }

/* ---------- Sales packages: pop-up with search ---------- */
.pack-modal { border: 0; padding: 0; background: var(--bg); color: var(--text); width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; border-radius: 0; }
.pack-modal::backdrop { background: rgba(5, 12, 24, .72); }
.pm-inner { display: flex; flex-direction: column; height: 100%; }
.pm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px; background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; border-bottom: 6px solid var(--yellow); }
.pm-head h2 { font-size: 1.3rem; color: var(--yellow); }
.pm-head p { color: #D3DCEB; font-size: .9rem; }
.pm-close { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.pm-tools { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.pm-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--bg); border: 1px solid #CBD3E0; border-radius: 99px; color: var(--muted); }
.pm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 11px 0; color: var(--text); font-size: 1rem; }
.pm-search:focus-within { border-color: var(--navy); outline: 3px solid rgba(255, 188, 16, .5); }
.pm-count { flex: none; color: var(--muted); font-size: .88rem; font-weight: 300; white-space: nowrap; }
.pm-body { flex: 1; overflow-y: auto; padding: 18px 18px 30px; overscroll-behavior: contain; }
.pack-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .pack-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.pack-grid.is-loading { opacity: .55; transition: opacity .15s; }
.pack-modal .pack { height: auto; }
@media (min-width: 768px) {
    .pack-modal { width: min(1100px, 94vw); height: min(88vh, 920px); border-radius: 22px; margin: auto; }
    .pm-head { padding: 20px 26px; }
    .pm-tools { padding: 14px 26px; }
    .pm-body { padding: 22px 26px 32px; }
}
