/* CF Shop storefront */
.shop-announce{background:var(--accent,#7c3aed);color:#fff;text-align:center;font-weight:900;padding:9px 12px;font-size:.9rem}
.shop-hero{padding:28px 0 8px}
.shop-banners{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.shop-banner{
    position:relative;border-radius:20px;padding:22px 22px 18px;min-height:168px;display:flex;flex-direction:column;
    justify-content:space-between;gap:14px;overflow:hidden;text-decoration:none;
    background:#fff;color:#0f172a;border:1px solid #e6ebf2;
    box-shadow:0 10px 28px rgba(15,23,42,.04)
}
.shop-banner.theme-dark{background:#0f172a;color:#fff;border-color:#0f172a}
.shop-banner.theme-accent{background:#1e1b4b;color:#fff;border-color:#1e1b4b}
.shop-banner.theme-light{background:#fff;color:#0f172a;border-color:#e6ebf2}
.shop-banner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.18}
.shop-banner>*{position:relative}
.shop-banner h2,.shop-banner p{margin:0;unicode-bidi:plaintext;text-align:start;white-space:pre-wrap}
.shop-banner h2{font-size:1.2rem;font-weight:800;line-height:1.35;letter-spacing:-.01em}
.shop-banner p{font-weight:600;opacity:.78;font-size:.9rem;line-height:1.55}
.shop-banner .btn{
    align-self:flex-start;margin-top:2px;padding:8px 14px;border-radius:999px;
    background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.18);
    box-shadow:none;font-size:.82rem;font-weight:800
}
.shop-banner.theme-light .btn{background:#0f172a;color:#fff;border-color:#0f172a}
.shop-banner .btn:hover{transform:none;filter:brightness(1.08)}
.shop-track-row{display:flex;justify-content:flex-start;margin-top:14px}
.shop-cats{
    display:flex;gap:6px;overflow-x:auto;margin:18px 0 6px;padding:6px;
    background:#fff;border:1px solid #e6ebf2;border-radius:16px;scrollbar-width:thin
}
.shop-cat{
    flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:12px;
    border:0;background:transparent;color:#334155;font-weight:800;font-size:.84rem;cursor:pointer;white-space:nowrap;text-decoration:none
}
.shop-cat:hover{background:#f8fafc;color:#0f172a}
.shop-cat.active{background:#0f172a;color:#fff}
.shop-cat small{
    min-width:1.5em;padding:2px 7px;border-radius:999px;background:#f1f5f9;color:#64748b;
    font-size:.72rem;font-weight:800;line-height:1.4;text-align:center
}
.shop-cat.active small{background:rgba(255,255,255,.16);color:#fff}
.shop-branches{
    display:flex;gap:6px;overflow-x:auto;margin:8px 0 0;padding:6px;
    background:#f8fafc;border:1px solid #e6ebf2;border-radius:14px;scrollbar-width:thin
}
.shop-branches[hidden]{display:none}
.btn[hidden],.icon-btn[hidden]{display:none !important}
.shop-subbranches{background:#fff}
.shop-branch{
    flex:0 0 auto;border:1px solid #e2e8f0;background:#fff;color:#334155;border-radius:999px;
    padding:7px 12px;font-weight:800;font-size:.82rem;cursor:pointer;white-space:nowrap;font-family:inherit
}
.shop-branch:hover{border-color:#0f172a;color:#0f172a}
.shop-branch.active{background:#0f172a;color:#fff;border-color:#0f172a}
.shop-filter-group{display:none}
.shop-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:14px 0 18px}
.shop-search{flex:1;min-width:240px;display:flex;gap:8px;position:relative}
.shop-search input,.shop-filter select,.shop-filter input{
    width:100%;padding:12px 14px;border-radius:12px;border:1px solid var(--stroke,#e2e8f0);
    background:#fff;color:var(--text,#0f172a);font-family:inherit;font-weight:700
}
.shop-filter{min-width:150px}
.shop-suggest{
    position:absolute;top:calc(100% + 6px);right:0;left:0;background:#fff;border:1px solid var(--stroke,#e2e8f0);border-radius:14px;
    box-shadow:0 18px 40px rgba(15,23,42,.18);z-index:50;overflow:hidden;display:none
}
.shop-suggest.open{display:block}
.shop-suggest a{display:flex;gap:10px;align-items:center;padding:10px 12px;color:var(--text,#0f172a);text-decoration:none;font-weight:800;font-size:.9rem}
.shop-suggest a:hover{background:var(--bg1,#f1f5f9)}
.shop-suggest img{width:38px;height:38px;object-fit:contain;border-radius:8px;background:#fff;border:1px solid var(--stroke,#e2e8f0)}
.shop-suggest .sg-price{margin-inline-start:auto;direction:ltr;color:var(--accent,#7c3aed)}
.shop-meta{color:var(--muted,#64748b);font-weight:800;font-size:.92rem;margin-bottom:14px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
.shop-toggle{display:inline-flex;align-items:center;gap:6px;font-weight:800;font-size:.85rem;color:var(--muted,#64748b);cursor:pointer}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.product-card{
    position:relative;border:1px solid var(--glass-border,rgba(255,255,255,.1));background:var(--glass-bg,#111827);border-radius:var(--radius,18px);
    overflow:hidden;display:flex;flex-direction:column;min-height:100%;backdrop-filter:blur(16px);box-shadow:var(--glass-shadow);transition:.25s
}
.product-card:hover{transform:translateY(-4px);border-color:var(--accent,#7c3aed)}
.product-media{aspect-ratio:1.1;background:#fff;display:grid;place-items:center;overflow:hidden;border-bottom:1px solid var(--stroke,#e2e8f0);position:relative}
.product-media a{display:contents}
.product-media img{width:100%;height:100%;object-fit:contain;padding:12px}
.product-placeholder{font-size:2.4rem;opacity:.35}
.badges{position:absolute;top:10px;right:10px;display:flex;flex-direction:column;gap:4px;z-index:2}
.badge{padding:3px 8px;border-radius:999px;font-size:.7rem;font-weight:900;color:#fff;background:#0f172a}
.badge.new{background:#2563eb}.badge.low{background:#f59e0b}.badge.out{background:#ef4444}.badge.back{background:#64748b}
.wish-btn{
    position:absolute;top:10px;left:10px;z-index:2;width:34px;height:34px;border-radius:50%;border:1px solid var(--stroke,#e2e8f0);
    background:#fff;cursor:pointer;display:grid;place-items:center;font-size:1rem;color:#94a3b8
}
.wish-btn.on{color:#ef4444}
.product-body{padding:14px;display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
.product-group{font-size:.76rem;color:var(--accent,#a78bfa);font-weight:900}
.product-name{
    font-size:.98rem;font-weight:1000;line-height:1.45;margin:0;color:var(--text,#0f172a);
    text-align:right;overflow-wrap:anywhere;word-break:break-word;min-width:0;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.9em
}
.product-name a{color:inherit;text-decoration:none}
.product-desc{
    font-size:.8rem;color:var(--muted,#64748b);line-height:1.6;text-align:right;
    overflow-wrap:anywhere;word-break:break-word;min-width:0;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden
}
.product-rating{font-size:.78rem;color:#fbbf24;font-weight:900}
.product-rating small{color:var(--muted,#94a3b8)}
.product-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:8px}
.product-price{font-size:1.05rem;font-weight:1000;color:var(--text,#0f172a);direction:ltr;text-align:left}
.product-price small{display:block;font-size:.72rem;color:var(--muted,#94a3b8);font-weight:800;direction:rtl}
.price-offer,.pd-offer{display:flex;align-items:center;justify-content:flex-end;gap:6px;direction:rtl}
.price-off,.pd-off{background:#fee2e2;color:#be123c;border-radius:999px;padding:2px 7px;font-size:.68rem;font-weight:900;line-height:1.4}
.price-off .num,.pd-off .num{direction:ltr;unicode-bidi:isolate;display:inline-block}
.price-was,.pd-was{color:#94a3b8;text-decoration:line-through;font-size:.78rem;font-weight:800;direction:ltr}
.price-was .riyal{width:11px;height:11px}
.stock-badge{display:inline-block;padding:3px 8px;border-radius:999px;background:rgba(34,197,94,.15);color:#86efac;font-size:.72rem;font-weight:900}
.stock-badge.out{background:rgba(239,68,68,.15);color:#fca5a5}
.delivery-note{display:inline-flex;align-items:center;gap:8px;margin-top:8px;padding:8px 12px;border-radius:12px;background:#dcfce7;border:1px solid #86efac;color:#166534;font-size:.82rem;font-weight:700;line-height:1.45}
.delivery-note .num{direction:ltr;unicode-bidi:isolate;display:inline-block}
.delivery-note svg,.icon-btn:not(.wa) svg,.cart-head-btn svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.icon-btn svg,.cart-head-btn svg{width:20px;height:20px}
.product-card .delivery-note{margin-top:6px;padding:5px 8px;font-size:.72rem;gap:6px}
.qty-row{display:flex;align-items:center;gap:6px}
.qty-btn,.qty-val{width:34px;height:34px;border-radius:10px;border:1px solid var(--stroke,#e2e8f0);background:#fff;color:var(--text,#0f172a);font-weight:900;cursor:pointer}
.qty-val{display:grid;place-items:center;min-width:34px;width:auto;padding:0 8px}
.shop-empty,.shop-loading{grid-column:1/-1;text-align:center;padding:48px 16px;border:1px dashed var(--stroke,#e2e8f0);border-radius:var(--radius,18px);color:var(--muted,#64748b);font-weight:800}
.shop-pagination{display:flex;justify-content:center;gap:8px;margin-top:24px;flex-wrap:wrap}
.page-btn{min-width:42px;padding:10px 14px;border-radius:12px;border:1px solid var(--stroke,#e2e8f0);background:#fff;color:var(--text,#0f172a);font-weight:900;cursor:pointer}
.page-btn.active,.page-btn:hover{background:var(--accent-light,#ede9fe);border-color:var(--accent,#7c3aed)}
.page-btn:disabled{opacity:.45;cursor:not-allowed}
.cart-head-btn{position:relative;width:42px;height:42px;padding:0;display:inline-grid;place-items:center}
@media (max-width:720px){header .actions .cart-head-btn{display:inline-grid}}
.cart-head-btn svg{width:20px;height:20px}
.cart-badge{position:absolute;top:6px;inset-inline-end:6px;width:8px;height:8px;min-width:0;padding:0;border-radius:50%;background:#ef4444;box-shadow:0 0 0 2px #fff;font-size:0}
header .actions .cart-head-btn .cart-badge{display:block}
.cart-badge.empty,header .actions .cart-head-btn .cart-badge.empty{display:none}
.money{display:inline-flex;align-items:center;gap:4px;direction:ltr}
.riyal{width:0.9em;height:0.9em;display:inline-block;flex:none;vertical-align:-0.1em}
.cart-foot.is-hidden{display:none}
.pd-ar{margin:0 0 12px;font-weight:800;color:var(--text,#0f172a);text-align:right}
.cart-drawer{position:fixed;inset:0;z-index:2000;display:none}
.cart-drawer.open{display:block}
.cart-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55)}
.cart-panel{position:absolute;top:0;left:0;height:100%;width:min(440px,100%);background:#fff;color:var(--text,#0f172a);box-shadow:var(--shadow);display:flex;flex-direction:column}
.cart-head{padding:18px;border-bottom:1px solid var(--stroke,#e2e8f0);display:flex;justify-content:space-between;align-items:center}
.cart-head h3{margin:0;font-size:1.2rem;font-weight:1000}
.cart-body{padding:16px;overflow:auto;flex:1}
.cart-line{display:grid;grid-template-columns:56px 1fr auto;gap:10px;padding:12px 0;border-bottom:1px solid var(--bg1,#f1f5f9);align-items:start}
.cart-line img{width:56px;height:56px;object-fit:contain;border:1px solid var(--stroke,#e2e8f0);border-radius:10px;background:#fff}
.cart-line h4{margin:0 0 4px;font-size:.92rem}
.cart-line .meta{color:var(--muted,#64748b);font-size:.78rem;font-weight:800}
.cart-foot{padding:16px;border-top:1px solid var(--stroke,#e2e8f0);background:var(--bg1,#f8fafc)}
.cart-sum{display:flex;justify-content:space-between;font-weight:800;font-size:.9rem;padding:3px 0;color:var(--muted,#64748b)}
.cart-sum.total{font-weight:1000;font-size:1.05rem;color:var(--text,#0f172a);border-top:1px dashed var(--stroke,#e2e8f0);margin-top:6px;padding-top:8px}
.cart-sum .ok{color:#059669}
.coupon-row{display:flex;gap:6px;margin:8px 0}
.coupon-row input{flex:1;padding:10px 12px;border-radius:10px;border:1px solid var(--stroke,#e2e8f0);font-family:inherit;font-weight:800;text-transform:uppercase}
.coupon-msg{font-size:.8rem;font-weight:800;min-height:1.2em}
.coupon-msg.err{color:#dc2626}.coupon-msg.ok{color:#059669}
.checkout-card{position:fixed;inset:0;z-index:2100;display:none;place-items:center;padding:16px;background:rgba(15,23,42,.55);overflow:auto}
.checkout-card.open{display:grid}
.checkout-box{width:min(620px,100%);background:#fff;color:var(--text,#0f172a);border-radius:18px;padding:22px;box-shadow:var(--shadow);max-height:95vh;overflow:auto}
.checkout-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.checkout-head h3{margin:0;font-size:1.25rem}
.checkout-x{width:36px;height:36px;border:1px solid var(--stroke,#e2e8f0);border-radius:10px;background:#fff;color:#0f172a;font-size:1.45rem;line-height:1;cursor:pointer;font-family:inherit}
.checkout-box h3{margin:0 0 14px;font-size:1.25rem}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form-field{margin-bottom:12px}
.form-field label{display:block;font-size:.85rem;font-weight:900;margin-bottom:6px}
.form-field input,.form-field textarea,.form-field select{width:100%;padding:12px 14px;border-radius:12px;border:1px solid var(--stroke,#e2e8f0);font-family:inherit;font-weight:700}
.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:8px;flex-wrap:wrap}
.agree-terms{display:flex;gap:8px;align-items:flex-start;margin:12px 0 4px;font-weight:800;font-size:.9rem;line-height:1.6}
.agree-terms input{margin-top:5px;width:18px;height:18px;flex:none}
.agree-terms a{color:var(--accent,#7c3aed);font-weight:900}
#submitOrderBtn:disabled{opacity:.45;cursor:not-allowed}
.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.choice{border:1px solid var(--stroke,#e2e8f0);border-radius:12px;padding:10px 12px;cursor:pointer;font-weight:800;font-size:.88rem;display:flex;gap:8px;align-items:flex-start}
.choice input{margin-top:4px}
.choice.on{border-color:var(--accent,#7c3aed);background:var(--accent-light,#f5f3ff)}
.choice small{display:block;color:var(--muted,#64748b);font-weight:700;font-size:.76rem;margin-top:2px}
.success-box{text-align:center;padding:24px 8px}
.success-box h3{color:#059669}
.success-box .bank{background:var(--bg1,#f8fafc);border:1px dashed var(--stroke,#e2e8f0);border-radius:12px;padding:12px;white-space:pre-line;text-align:right;font-weight:800;margin:12px 0}
.toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:12px 18px;border-radius:12px;font-weight:900;z-index:3000;opacity:0;transition:.25s;pointer-events:none}
.toast.show{opacity:1}
.shop-seo{margin-top:22px;padding:18px 20px;border:1px solid var(--stroke,#e2e8f0);border-radius:16px;background:#fff;text-align:right}
.shop-seo h2{margin:0 0 8px;font-size:1.05rem;font-weight:900;color:var(--text,#0f172a)}
.shop-seo p{margin:0;color:#475569;font-weight:700;line-height:1.8;font-size:.92rem;white-space:pre-line}
.shop-trust{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:28px 0 0}
.trust{border:1px solid var(--glass-border,rgba(255,255,255,.1));background:var(--glass-bg,#111827);border-radius:14px;padding:14px;font-weight:900;font-size:.85rem;color:var(--text,#0f172a);display:flex;gap:10px;align-items:center}
.trust span{font-size:1.4rem}
.trust small{display:block;color:var(--muted,#94a3b8);font-weight:700;font-size:.75rem}
/* product page */
.pd{display:grid;grid-template-columns:1.05fr .95fr;gap:36px;align-items:start;direction:ltr}
.pd-gallery{position:sticky;top:90px}
.pd-info{direction:rtl}
.pd-code{font-size:.95rem;font-weight:800;color:var(--muted,#64748b);letter-spacing:.01em;margin-top:4px}
.pd-features{margin:8px 0 14px;padding:0 0 0 1.15rem;color:var(--text,#0f172a);font-weight:700;line-height:1.7;text-align:left}
.pd-features li{margin:4px 0}
.pd-main{aspect-ratio:1;background:#fff;border-radius:18px;border:1px solid var(--stroke,#e2e8f0);display:grid;place-items:center;overflow:hidden}
.pd-main img{width:100%;height:100%;object-fit:contain;padding:18px}
.pd-thumbs{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.pd-thumbs img{width:64px;height:64px;object-fit:contain;border:2px solid var(--stroke,#e2e8f0);border-radius:10px;background:#fff;cursor:pointer}
.pd-thumbs img.on{border-color:var(--accent,#7c3aed)}
.pd-info h1{font-size:1.6rem;font-weight:1000;margin:6px 0 10px;color:var(--text,#0f172a);line-height:1.35;unicode-bidi:plaintext;text-align:start}
.pd-crumb{direction:ltr;text-align:left;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:6px;font-size:.82rem;color:var(--muted,#94a3b8);font-weight:800}
.pd-crumb a{color:var(--accent,#a78bfa);text-decoration:none}
.pd-offer{justify-content:flex-start;margin-top:10px}
.pd-off{font-size:.78rem;padding:4px 10px}
.pd-was{font-size:1rem}
.pd-price{font-size:1.8rem;font-weight:1000;color:var(--text,#0f172a);direction:ltr;text-align:right;margin:4px 0 4px}
.pd-note{color:var(--muted,#94a3b8);font-weight:800;font-size:.85rem}
.pd-actions{display:flex;gap:10px;align-items:center;margin:18px 0;flex-wrap:wrap}
.icon-btn{width:48px;height:48px;padding:0;display:inline-grid;place-items:center;border-radius:14px}
.icon-btn:not(.wa) svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.icon-btn.wa svg{width:20px;height:20px;display:block;fill:currentColor;stroke:none}
.icon-btn.wa{background:#25D366;color:#fff;border-color:#25D366}
.pd-specs{width:100%;border-collapse:collapse;margin-top:14px;font-size:.88rem}
.pd-specs td{padding:9px 10px;border-bottom:1px solid var(--glass-border,rgba(15,23,42,.08));color:var(--text,#0f172a);font-weight:700}
.pd-specs td:first-child{color:var(--muted,#94a3b8);width:38%;font-weight:900}
.pd-tabs{margin-top:30px}
.pd-desc{color:var(--text,#0f172a);line-height:1.9;font-weight:600;unicode-bidi:plaintext}
.pd-desc img{max-width:100%}
.review{border:1px solid var(--glass-border,rgba(255,255,255,.1));border-radius:14px;padding:14px;margin-bottom:10px;background:var(--glass-bg,#111827);color:var(--text,#0f172a)}
.review .stars{color:#fbbf24;font-weight:900}
.review .who{font-size:.8rem;color:var(--muted,#94a3b8);font-weight:800}
.stars-input{display:flex;gap:4px;direction:ltr;justify-content:flex-end}
.stars-input button{background:none;border:0;font-size:1.6rem;color:#cbd5e1;cursor:pointer}
.stars-input button.on{color:#fbbf24}
.section-title{color:var(--text,#0f172a);font-weight:1000;font-size:1.25rem;margin:0 0 14px}
.share-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
/* track page */
.track-steps{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin:18px 0}
.track-step{text-align:center;font-size:.75rem;font-weight:900;color:var(--muted,#94a3b8)}
.track-step i{display:block;height:8px;border-radius:999px;background:#334155;margin-bottom:6px}
.track-step.done{color:#fff}.track-step.done i{background:#22c55e}
.track-step.now i{background:var(--accent,#7c3aed)}
.track-card{border:1px solid var(--glass-border,rgba(255,255,255,.1));background:var(--glass-bg,#111827);border-radius:18px;padding:20px;color:var(--text,#0f172a)}
.track-card table{width:100%;border-collapse:collapse;font-size:.9rem}
.track-card td,.track-card th{padding:8px;border-bottom:1px solid rgba(255,255,255,.08);text-align:right}
@media (max-width:1024px){.product-grid{grid-template-columns:repeat(3,1fr)}.shop-trust{grid-template-columns:repeat(2,1fr)}}
@media (max-width:768px){
    .product-grid{grid-template-columns:repeat(2,1fr)}.form-row,.choice-grid{grid-template-columns:1fr}
    .cart-panel{width:100%}.shop-banners{grid-template-columns:1fr}.pd{grid-template-columns:1fr}.pd-gallery{position:static}
    .track-steps{grid-template-columns:repeat(3,1fr)}
}
.pd-sub{margin:-6px 0 14px;color:var(--muted,#64748b);font-weight:800;font-size:.9rem}

/* filters: inline row on desktop, bottom sheet on phones */
.shop-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.shop-filters-head,.shop-filters-apply,.shop-filter-btn,.shop-filter-label,.shop-filters-backdrop{display:none}
.shop-price-row{display:flex;gap:8px}
.shop-price-row input{width:110px}
.shop-filter-toggles{display:flex;gap:14px;flex-wrap:wrap;min-width:0}
.shop-filter-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.filter-count{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--accent,#7c3aed);color:#fff;font-size:.72rem;display:inline-grid;place-items:center}
.filter-count[hidden]{display:none}
.bn-icon{display:none}

/* product photo: less padding, tap to zoom */
.pd-main{position:relative}
.pd-main img{padding:6px;cursor:zoom-in}
.pd-zoom-btn{position:absolute;bottom:12px;left:12px;width:40px;height:40px;border-radius:12px;border:1px solid var(--stroke,#e2e8f0);background:rgba(255,255,255,.92);display:grid;place-items:center;cursor:pointer}
.pd-zoom-btn svg{width:20px;height:20px;fill:none;stroke:#0f172a;stroke-width:2;stroke-linecap:round}
.pd-zoom{position:fixed;inset:0;z-index:2200;background:#fff;display:flex;flex-direction:column}
.pd-zoom[hidden]{display:none}
.pd-zoom-x{position:absolute;top:12px;right:12px;z-index:2;width:42px;height:42px;background:#0f172a;color:#fff;border-color:#0f172a;box-shadow:0 6px 18px rgba(15,23,42,.25)}
.pd-zoom-stage{flex:1;overflow:auto;display:grid;place-items:center;direction:ltr;-webkit-overflow-scrolling:touch}
.pd-zoom-stage img{max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-in}
.pd-zoom.big .pd-zoom-stage{place-items:start}
.pd-zoom.big .pd-zoom-stage img{max-width:none;max-height:none;width:240%;cursor:zoom-out}
.pd-zoom-hint{text-align:center;padding:10px;color:var(--muted,#64748b);font-weight:800}
body.shop-sheet-open{overflow:hidden}
body.shop-sheet-open .wa-float,body.shop-sheet-open .cf-cookie{display:none}
.shop-toggle{white-space:nowrap}

/* cookie notice and WhatsApp button stay out of the way on shop pages */
.cf-cookie{max-width:420px;padding:10px 14px;gap:10px}
.cf-cookie p{font-size:.8rem;line-height:1.55}
.cf-cookie button{padding:7px 16px;font-size:.82rem}

@media (max-width:768px){
    /* category banners become one compact scrolling strip so products show on the first screen */
    .shop-hero{padding:14px 0 0}
    .shop-banners{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
    .shop-banners::-webkit-scrollbar{display:none}
    .shop-banner{flex:0 0 auto;min-height:0;flex-direction:row;align-items:center;gap:8px;padding:10px 14px;border-radius:14px;box-shadow:none}
    .shop-banner h2{font-size:.88rem;white-space:nowrap}
    .shop-banner p,.shop-banner .btn,.shop-banner .kicker,.shop-banner img{display:none}
    .bn-icon{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,.14)}
    .shop-banner.theme-light .bn-icon{background:#f1f5f9}
    .bn-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
    .shop-track-row{margin-top:8px}
    .shop-track-row .btn{padding:7px 12px;font-size:.8rem}
    .shop-cats{margin-top:10px}

    .shop-toolbar{flex-wrap:nowrap;gap:8px;margin:10px 0 12px}
    .shop-search{min-width:0}
    .shop-filter-btn{display:inline-flex;align-items:center;gap:6px;flex:none;padding:0 12px;height:46px;border-radius:12px;font-weight:900;background:#fff;border:1px solid var(--stroke,#e2e8f0);color:var(--text,#0f172a)}
    .shop-filters{position:fixed;left:0;right:0;bottom:0;z-index:2150;display:none;flex-direction:column;align-items:stretch;gap:14px;
        background:#fff;border-radius:20px 20px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom));box-shadow:0 -16px 40px rgba(15,23,42,.2);max-height:85vh;overflow:auto}
    .shop-filters.open{display:flex}
    .shop-filters .shop-filter{min-width:0}
    .shop-filters-head{display:flex;justify-content:space-between;align-items:center;font-size:1.05rem}
    .shop-filter-label{display:block;font-size:.82rem;font-weight:900;color:var(--muted,#64748b);margin-bottom:6px}
    .shop-price-row input{flex:1;width:auto}
    .shop-filters-apply{display:block;width:100%;padding:13px;font-size:.95rem}
    .shop-filters-backdrop{display:block;position:fixed;inset:0;z-index:2140;background:rgba(15,23,42,.45)}
    .shop-filters-backdrop[hidden]{display:none}

    .cf-cookie{left:12px;right:12px;bottom:12px;max-width:none;flex-direction:row;align-items:center;padding:10px 12px}
    .wa-float{width:48px;height:48px;left:14px;bottom:max(16px,calc(env(safe-area-inset-bottom) + 16px))}
    .wa-float svg{width:24px;height:24px}
    body:has(.cf-cookie:not([hidden])) .wa-float{bottom:84px}
    .pd-main img{padding:2px}
}

@media (max-width:480px){
    /* two products per row on phones */
    .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
    .product-body{padding:10px;gap:4px}
    .product-name{font-size:.82rem;line-height:1.4;min-height:2.8em}
    .product-group{font-size:.68rem}
    .product-desc,.product-card .delivery-note{display:none}
    .product-media img{padding:6px}
    .product-foot{flex-direction:column;align-items:stretch;gap:6px}
    .product-price{font-size:.95rem;text-align:right}
    .product-price small{font-size:.66rem}
    .price-offer{justify-content:flex-start}
    .product-foot .btn{width:100%;padding:8px;font-size:.82rem}
    .wish-btn{width:30px;height:30px;top:8px;left:8px}
    .badges{top:8px;right:8px}
    .badge{font-size:.62rem;padding:2px 6px}
    .shop-trust{grid-template-columns:1fr}
}

/* category banners in the site identity: matching light cards with an icon, the link as a text link;
   phones keep the compact strip above */
@media (min-width: 769px) {
    .shop-banners { gap: 16px; }
    .shop-banners .shop-banner,
    .shop-banners .shop-banner.theme-dark,
    .shop-banners .shop-banner.theme-accent,
    .shop-banners .shop-banner.theme-light {
        background: #FFFFFF; color: var(--text, #0B1B33); border: 1px solid var(--stroke, #DCE4EF);
        border-radius: 14px; min-height: 0; padding: 22px; gap: 8px; justify-content: flex-start; box-shadow: none;
        transition: border-color .2s, transform .2s, box-shadow .2s;
    }
    .shop-banners .shop-banner:hover { border-color: var(--accent, #0066E6); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11, 27, 51, .08); }
    .shop-banners .bn-icon {
        display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px;
        border-radius: 12px; background: var(--accent-light, #E8F1FF); color: var(--accent, #0066E6);
    }
    .shop-banners .bn-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .shop-banners .shop-banner h2 { font-size: 1.15rem; }
    .shop-banners .shop-banner p { opacity: 1; color: var(--muted, #4A5B73); }
    .shop-banners .shop-banner .btn.primary {
        margin-top: auto; padding: 4px 0 0; background: none; border: 0; border-radius: 0; box-shadow: none;
        color: var(--accent-ink, #0052B8); font-size: .92rem; font-weight: 600;
    }
    .shop-banners .shop-banner .btn.primary::after { content: "←"; margin-inline-start: 6px; }
    [dir="ltr"] .shop-banners .shop-banner .btn.primary::after { content: "→"; }
    .shop-banners .shop-banner img { opacity: .08; }
}
/* the track-order button no longer competes with the banners */
.shop-track-row .btn.primary { background: #FFFFFF; color: var(--text, #0B1B33); border: 1px solid var(--stroke, #DCE4EF); box-shadow: none; }
.shop-track-row .btn.primary:hover { background: #FFFFFF; border-color: var(--accent, #0066E6); color: var(--accent-ink, #0052B8); }
/* installation packages banner (items of the Offers group) */
.shop-offers { margin-top: 18px; padding: 24px; border-radius: 24px; background: linear-gradient(180deg, #F3F7FD 0%, #FFFFFF 100%); border: 1px solid var(--stroke, #E3E9F2); }
.of-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.of-kicker { display: inline-block; background: #E8F1FF; color: var(--accent, #0066E6); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.of-head h2 { font-family: var(--cf-display, inherit); font-size: 1.6rem; margin: 10px 0 4px; color: #0B1B33; }
.of-head p { margin: 0; color: var(--muted, #5B6B82); font-weight: 600; }
.of-trust { display: flex; gap: 8px; flex-wrap: wrap; }
.of-trust span { background: #fff; border: 1px solid var(--stroke, #E3E9F2); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: #0B1B33; }
.of-trust span:last-child { background: #0B1B33; border-color: #0B1B33; color: #fff; }
.of-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.of-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--stroke, #E3E9F2); border-radius: 20px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.of-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -18px rgba(11, 27, 51, .3); }
.of-card.feat { border: 2px solid var(--accent, #0066E6); box-shadow: 0 16px 36px -20px rgba(0, 102, 230, .45); }
.of-ribbon { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1; background: #0B1B33; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.of-card.feat .of-ribbon { background: var(--accent, #0066E6); }
.of-media { position: relative; height: 170px; display: grid; place-items: center; padding: 16px; background: radial-gradient(120% 90% at 50% 100%, #DCE9FF 0%, #F3F7FD 55%, #fff 100%); }
.of-media img { max-width: 100%; max-height: 136px; object-fit: contain; mix-blend-mode: multiply; }
.of-qty { position: absolute; bottom: 10px; inset-inline-end: 10px; background: #0B1B33; color: #fff; font-family: var(--cf-display, inherit); font-weight: 700; font-size: 14px; padding: 3px 9px; border-radius: 9px; }
.of-body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.of-body h3 { font-family: var(--cf-display, inherit); font-size: 1.05rem; line-height: 1.45; margin: 0 0 10px; }
.of-body h3 a { color: #0B1B33; text-decoration: none; }
.of-body ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 7px; font-size: 13.5px; font-weight: 600; color: #33415A; }
.of-body li { position: relative; padding-inline-start: 24px; line-height: 1.55; }
.of-body li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%; background: #E9F8F1; color: #0F9D6B; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.of-price { margin-top: auto; border-top: 1px dashed var(--stroke, #E3E9F2); padding-top: 12px; }
.of-price b { display: block; font-family: var(--cf-display, inherit); font-size: 1.75rem; color: #0B1B33; }
.of-price b .riyal { width: 20px; height: 20px; margin-inline-start: 4px; }
.of-incl { display: inline-block; margin-top: 4px; background: #E9F8F1; color: #0F9D6B; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.of-price small { display: block; margin-top: 5px; color: var(--muted, #5B6B82); font-size: 12px; font-weight: 600; }
.of-cta { display: flex; gap: 8px; margin-top: 12px; }
.of-cta .btn { flex: 1; }
.of-wa { flex: 0 0 44px; display: grid; place-items: center; border: 1px solid var(--stroke, #E3E9F2); border-radius: 12px; color: #1FAF5A; }
.of-wa svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.of-wa svg .fill { fill: currentColor; stroke: none; }
.of-foot { margin-top: 16px; background: #0B1B33; color: #fff; border-radius: 16px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.of-foot span { color: #B8C6DB; font-size: 14px; }
.of-foot a { background: #fff; color: #0B1B33; text-decoration: none; font-weight: 700; padding: 9px 16px; border-radius: 12px; font-size: 14px; }
@media (max-width: 1100px) { .of-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
    .shop-offers { padding: 16px 0 16px 0; border: 0; background: none; }
    .of-head h2 { font-size: 1.3rem; }
    .of-trust { display: none; }
    .of-grid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
    .of-grid::-webkit-scrollbar { display: none; }
    .of-card { flex: 0 0 72%; scroll-snap-align: start; }
    .of-media { height: 130px; }
    .of-media img { max-height: 104px; }
    .of-foot { display: none; }
}
