/*
Theme Name: SpiritAstro
Theme URI: https://spiritastro.in
Author: Barkaati Enterprises
Description: Storefront theme for SpiritAstro: naqsh (yantra), taweez, gemstones and books. Works with WooCommerce and the SpiritAstro Core plugin.
Version: 1.7.9
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: spiritastro
*/

/* Layout idea: a calm storefront in one brand world (night indigo or emerald, with engraved-gold accents); the owner panel shares the tokens but reads like a working tool. */
:root{
  --ink:#1b1838; --paper:#f4f3f8; --surface:#ffffff; --accent:#3b2f8f; --gold:#a8792a; --line:#dcd9e8;
  --muted:#5f5b78; --ok:#1f7a4d; --warn:#9a6a00; --bad:#b23a3a; --okbg:#e3f3ea; --warnbg:#fbf0d6; --badbg:#f8e1e1;
  --display:"Marcellus", "Palatino Linotype", Georgia, serif;
  --body:"Mukta", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--paper);color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.5}
h1,h2,h3{font-family:var(--display);font-weight:400;text-wrap:balance;margin:0}
a{color:var(--accent)}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
img{max-width:100%;display:block}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px}
.num{font-variant-numeric:tabular-nums}
/* header */
header.site{background:var(--ink);color:#fff}
.hrow{display:flex;align-items:center;gap:16px;padding:14px 0;flex-wrap:wrap}
.logo{font-family:var(--display);font-size:26px;color:#fff;text-decoration:none;display:flex;align-items:center;gap:10px}
.logo small{font-family:var(--body);font-size:12px;color:#d9c48f;letter-spacing:.08em;text-transform:uppercase}
.mark{width:52px;height:52px;border-radius:50%;border:1.5px solid var(--gold);display:grid;place-items:center;color:#e8cf8f;font-size:18px}
.sa-search{flex:1;min-width:220px;display:flex}
.sa-search input{flex:1;min-width:0;border:0;border-radius:6px 0 0 6px;padding:9px 12px;background:#fff;color:#222}
.sa-search button{border:0;background:var(--gold);color:#fff;padding:0 16px;border-radius:0 6px 6px 0;cursor:pointer}
.hctl{flex:none;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cartbtn b{background:var(--gold);color:#fff;border-radius:10px;padding:0 7px;margin-left:4px}
nav.cats{background:rgba(0,0,0,.18)}
nav.cats .wrap{display:flex;gap:4px;overflow-x:auto}
nav.cats a{color:#e9e6f5;text-decoration:none;padding:9px 12px;font-size:14px;white-space:nowrap}
nav.cats a:hover{color:#fff;background:rgba(255,255,255,.08)}
/* hero */
.btn{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--accent);background:var(--accent);color:#fff;border-radius:6px;padding:9px 16px;cursor:pointer;text-decoration:none;font-weight:600;font-size:15px}
.btn.ghost{background:transparent;color:var(--accent)}
.btn.gold{background:var(--gold);border-color:var(--gold)}
.btn.sm{padding:5px 10px;font-size:13px}
.btn.danger{background:var(--bad);border-color:var(--bad)}
.btn:disabled{opacity:.45;cursor:not-allowed}
.hero{background:radial-gradient(120% 140% at 85% 30%,#2c2760 0%,var(--ink) 55%);color:#fff;border-radius:14px;margin-top:18px;display:grid;grid-template-columns:1fr 320px;gap:8px;align-items:center;overflow:hidden;position:relative;border:1px solid rgba(232,207,143,.25)}
.hero-main{padding:30px 0 28px 32px;position:relative;z-index:1}
.eyebrow{font-size:12.5px;letter-spacing:.12em;text-transform:uppercase;color:#e8cf8f;margin-bottom:10px}
.hero-main h1{font-size:34px;line-height:1.18;margin-bottom:12px;color:#fff}
.hero-main p{color:#d9d5ea;max-width:56ch;margin:0 0 18px}
.hero-vis{position:relative;display:flex;align-items:center;justify-content:center;margin:16px 24px 16px 0}
.hero-vis .tw{width:250px;filter:drop-shadow(0 18px 28px rgba(0,0,0,.5))}
.hero .btn{background:var(--gold);border-color:var(--gold)}
.hero .btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.5)}
.mark.img{border:0;overflow:hidden;background:#2b2f36}.mark.img img{width:100%;height:100%;object-fit:cover}
.trust{display:flex;gap:16px;flex-wrap:wrap;font-size:14px;color:#cfcbe3;margin-top:18px}
.trust span::before{content:"\2713  ";color:#e8cf8f;font-weight:700}
.twobox{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 8px}
.ibox{display:flex;gap:14px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:14px 16px;text-decoration:none;color:var(--ink);transition:box-shadow .15s,border-color .15s}
.ibox:hover{box-shadow:0 6px 18px rgba(20,20,50,.08);border-color:var(--gold)}
.ibox .ic{flex:none;width:44px;height:44px;border-radius:50%;background:var(--ink);color:#e8cf8f;display:grid;place-items:center;font-size:20px}
.ibox b{display:block;font-size:15px}.ibox .small{display:block}.ibox .go{margin-left:auto;color:var(--gold);font-weight:700;white-space:nowrap;font-size:14px}
.ar{font-family:"Amiri","Traditional Arabic",serif;font-size:26px;line-height:1.9;direction:rtl;text-align:right;color:var(--ink)}
.hij{font-family:var(--display);font-size:24px}
@media (max-width:640px){.twobox{grid-template-columns:1fr}.ibox .go{display:none}}
.upnext{display:flex;align-items:stretch;gap:10px;margin:14px 0 6px;overflow-x:auto;padding-bottom:4px}
.upnext .lbl{flex:none;display:flex;flex-direction:column;justify-content:center;padding-right:6px;font-family:var(--display);font-size:18px;line-height:1.2}
.upnext .lbl a{font-family:var(--body);font-size:13px}
.uev{flex:1 0 170px;background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--gold);border-radius:8px;padding:8px 12px;font-size:14px;text-decoration:none;color:var(--ink)}
.uev b{display:block;font-weight:600}
.uev .small{display:block}
.uev .cd{font-variant-numeric:tabular-nums;color:var(--gold);font-weight:600;font-size:13px}
.sample{font-size:12px;color:var(--muted)}
/* sections */
.sec{padding:10px 0 28px}
.sec-h{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.sec-h h2{font-size:24px}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{border:1px solid var(--line);background:var(--surface);border-radius:20px;padding:6px 14px;cursor:pointer;font-size:14px;color:var(--ink)}
.chip.on{background:var(--accent);border-color:var(--accent);color:#fff}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}
.tag{display:inline-block;font-size:12px;border-radius:4px;padding:1px 7px;background:var(--warnbg);color:var(--warn);font-weight:600}
.tag.ok{background:var(--okbg);color:var(--ok)}
.tag.bad{background:var(--badbg);color:var(--bad)}
.tag.info{background:#e6e3f5;color:var(--accent)}
.empty{padding:40px;text-align:center;color:var(--muted);background:var(--surface);border:1px dashed var(--line);border-radius:10px}
/* product */
.box{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:16px;margin:12px 0}
.box h3{font-family:var(--body);font-weight:600;font-size:16px;margin-bottom:8px}
.opt{display:flex;gap:8px;align-items:flex-start;padding:8px;border:1px solid var(--line);border-radius:6px;margin-bottom:6px;cursor:pointer;font-size:14px}
.opt input{margin-top:4px}
.small{font-size:13px;color:var(--muted)}
.disclaim{font-size:12.5px;color:var(--muted);border-left:3px solid var(--gold);padding-left:10px;margin-top:12px}
/* cart */
/* policies */
.doc{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:24px;max-width:780px}
.doc h2{font-size:22px;margin:18px 0 6px}
.doc p,.doc li{max-width:68ch;color:#333}
footer.site{background:var(--ink);color:#cfcbe3;margin-top:30px;padding:28px 0;font-size:14px}
footer.site .cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px}
footer.site a{color:#fff;display:block;text-decoration:none;padding:2px 0}
footer.site h3{font-size:16px;color:#e8cf8f;margin-bottom:6px}
.wa{position:fixed;right:18px;bottom:18px;background:#1f8f4e;color:#fff;border-radius:24px;padding:10px 16px;text-decoration:none;font-weight:600;box-shadow:0 4px 14px rgba(0,0,0,.2);font-size:14px;border:0;cursor:pointer}
/* admin */
.sw{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 0;border-bottom:1px solid var(--line)}
.sw:last-child{border-bottom:0}
.sw .t{font-weight:600}
.sw .d{font-size:13px;color:var(--muted)}
.bar{height:8px;background:var(--paper);border-radius:4px;overflow:hidden;border:1px solid var(--line)}
.bar i{display:block;height:100%;background:var(--gold)}
/* modal & toast */
@media (max-width:860px){
  .hero{grid-template-columns:1fr 200px}
  .hero-main{padding:24px 0 22px 22px}
  .hero-main h1{font-size:27px}
  .hero-vis{margin:14px 16px 14px 0}
  .hero-vis .tw{width:175px}
}
@media (max-width:640px){
  body{font-size:15px}
  .wrap{padding:0 14px}
  .hrow{gap:10px;padding:10px 0}
  .logo{font-size:21px;flex:1}
  .logo small{font-size:10px}
  .sa-search{order:3;flex:1 1 100%;min-width:0}
  .hctl{gap:6px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .sec-h h2{font-size:21px}
  .wa{right:12px;bottom:12px;padding:8px 13px;font-size:13px}
  .upnext .lbl{display:none}
  .uev{flex:0 0 72%}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
@media (max-width:600px){
  .hero{grid-template-columns:1fr;gap:0}
  .hero-vis{position:absolute;top:14px;right:14px;margin:0}
  .hero-vis .tw{width:84px}
  .hero-main{padding:20px 18px 20px}
  .hero-main h1,.hero-main .eyebrow{padding-right:92px}
  .hero-main h1{font-size:23px}
  .eyebrow{font-size:11px}
}

/* ---------- WordPress / WooCommerce ---------- */
.site-main{padding:18px 0 10px;min-height:50vh}
.page-title,.entry-title{font-size:28px;margin:10px 0 14px}
.entry-content>*{max-width:900px}
.entry-content .sa-dates,.entry-content .sa-cal,.entry-content .sa-duas,.entry-content .woocommerce{max-width:none}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
.custom-logo-link img,.mark.img img{width:52px;height:52px;border-radius:50%;object-fit:cover}
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px;margin:0 0 20px!important;padding:0;list-style:none}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}
.woocommerce ul.products li.product{width:auto!important;margin:0!important;float:none!important;background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;padding:0 0 12px!important;transition:box-shadow .15s}
.woocommerce ul.products li.product:hover{box-shadow:0 6px 20px rgba(20,20,50,.1)}
.woocommerce ul.products li.product a img{aspect-ratio:4/3;object-fit:cover;margin:0 0 8px!important;width:100%}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:var(--body);font-weight:600;font-size:15px!important;line-height:1.3;padding:0 12px!important;color:var(--ink)}
.woocommerce ul.products li.product .price{color:var(--ink)!important;font-weight:700;padding:0 12px;font-size:15px!important}
.woocommerce ul.products li.product .button{margin:8px 12px 0!important;align-self:flex-start}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{text-decoration:none;display:block}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.wp-element-button{background:var(--accent)!important;color:#fff!important;border-radius:6px!important;font-weight:600!important;padding:9px 16px!important;border:1px solid var(--accent)!important}
.woocommerce a.button.alt,.woocommerce button.button.alt,.single_add_to_cart_button{background:var(--gold)!important;border-color:var(--gold)!important}
.woocommerce a.button.sa-wa-ask{background:#1f8f4e!important;border-color:#1f8f4e!important}
.woocommerce span.onsale{background:var(--gold)!important;min-height:0;min-width:0;line-height:1;padding:6px 9px;border-radius:4px}
.woocommerce div.product{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:10px 0}
.woocommerce div.product div.images,.woocommerce div.product div.summary{width:auto!important;float:none!important;margin:0!important}
.woocommerce div.product div.images img{border-radius:10px;border:1px solid var(--line);background:#fff}
.woocommerce div.product .product_title{font-size:28px;line-height:1.25}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--ink)!important;font-size:26px!important;font-weight:700}
.woocommerce div.product form.cart{display:block}
.woocommerce div.product form.cart .quantity{margin:0 8px 8px 0!important}
.woocommerce div.product .woocommerce-tabs,.woocommerce div.product .related,.woocommerce div.product .upsells{grid-column:1/-1}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:var(--surface)}
.sa-field{margin:0 0 10px}
.sa-field input,.sa-field select{border:1px solid var(--line);border-radius:6px;background:#fff}
.woocommerce-breadcrumb{font-size:13px;color:var(--muted)}
.woocommerce-message,.woocommerce-info{border-top-color:var(--accent)!important}
.woocommerce-message::before,.woocommerce-info::before{color:var(--accent)!important}
.woocommerce-store-notice,p.demo_store{background:var(--gold)!important}
.woocommerce table.shop_table{background:var(--surface);border-radius:10px}
.woocommerce-cart .wc-block-cart,.woocommerce-checkout .wc-block-checkout{background:transparent}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--accent);color:#fff}
.sa-consent{font-size:14px;margin:10px 0}
.cookie{position:fixed;left:16px;right:16px;bottom:16px;max-width:560px;background:var(--ink);color:#e9e6f5;border-radius:10px;padding:14px 16px;font-size:14px;z-index:70;display:none;gap:10px;align-items:center;flex-wrap:wrap}
.cookie.on{display:flex}.cookie a{color:#e8cf8f}
.purpose{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.purpose a{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:12px 14px;text-decoration:none;color:var(--ink);font-weight:600;font-size:14.5px}
.purpose a:hover{border-color:var(--gold)}
.purpose a span{display:block;font-weight:400;font-size:12.5px;color:var(--muted)}
.social{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}.social a{display:inline!important}
@media (max-width:860px){.woocommerce div.product{grid-template-columns:1fr}}
@media (max-width:640px){.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:13.5px!important}.woocommerce ul.products li.product .button{font-size:12.5px!important;padding:6px 10px!important}}

/* Category bar: no scrollbar. Desktop wraps neatly onto lines; mobile swipes sideways with the bar hidden. */
nav.cats .wrap{flex-wrap:wrap;justify-content:center;overflow:visible;gap:0 2px;padding-top:2px;padding-bottom:2px}
nav.cats a{padding:9px 11px;font-size:14.5px}
@media (max-width:860px){
  nav.cats .wrap{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
  nav.cats .wrap::-webkit-scrollbar{display:none}
  nav.cats a{padding:9px 10px;font-size:14px}
}

/* ---------- Product cards (works on every shop, category, search and home section) ---------- */
ul.products{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px;margin:0 0 24px!important;padding:0!important;list-style:none}
ul.products::before,ul.products::after{display:none!important;content:none!important}
ul.products li.product{width:auto!important;margin:0!important;float:none!important;list-style:none;background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex!important;flex-direction:column;padding:0 0 14px!important;position:relative;transition:box-shadow .2s,transform .2s,border-color .2s;text-align:left}
ul.products li.product:hover{box-shadow:0 10px 28px rgba(27,24,56,.12);transform:translateY(-2px);border-color:rgba(168,121,42,.55)}
ul.products li.product a.woocommerce-LoopProduct-link{display:flex;flex-direction:column;flex:1;text-decoration:none;color:var(--ink)}
ul.products li.product img{width:100%!important;aspect-ratio:1/1;object-fit:cover;margin:0 0 12px!important;border-radius:0;background:#f4efe6;display:block}
ul.products li.product h2,ul.products li.product .woocommerce-loop-product__title{font-family:var(--body)!important;font-weight:600!important;font-size:15px!important;line-height:1.35!important;color:var(--ink)!important;padding:0 14px!important;margin:0 0 6px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}
ul.products li.product .price{display:block;color:var(--ink)!important;font-weight:700!important;font-size:16px!important;padding:0 14px;margin:auto 0 0!important}
ul.products li.product .price del{color:var(--muted);font-weight:400;opacity:.8}
ul.products li.product .price ins{text-decoration:none;color:var(--bad)}
ul.products li.product .button,ul.products li.product .added_to_cart{margin:12px 14px 0!important;align-self:stretch;text-align:center;justify-content:center;display:flex!important}
ul.products li.product .onsale{position:absolute;top:10px;left:10px;right:auto;margin:0;z-index:2}
/* Buttons everywhere in the store */
.button,a.button,button.button,input.button,.single_add_to_cart_button,.wc-forward,.checkout-button,#place_order,.wp-element-button,.wc-block-components-button{background:var(--accent)!important;color:#fff!important;border:1px solid var(--accent)!important;border-radius:8px!important;font-family:var(--body)!important;font-weight:600!important;font-size:14.5px!important;padding:10px 16px!important;line-height:1.2!important;text-decoration:none!important;cursor:pointer;box-shadow:none!important;text-shadow:none!important}
.button:hover,a.button:hover,button.button:hover{filter:brightness(1.12)}
.single_add_to_cart_button,.checkout-button,#place_order,.button.alt{background:var(--gold)!important;border-color:var(--gold)!important;font-size:16px!important;padding:12px 22px!important}
a.button.sa-wa-ask{background:#1f8f4e!important;border-color:#1f8f4e!important}
.hero .btn,.hero .btn.ghost{font-size:15px}
/* Shop page header bits */
.woocommerce-products-header__title,.page-title{font-size:30px;margin:6px 0 8px}
.woocommerce-result-count{color:var(--muted);font-size:14px;margin:6px 0 14px}
.woocommerce-ordering select{border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:#fff}
@media (max-width:640px){
  ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
  ul.products li.product h2,ul.products li.product .woocommerce-loop-product__title{font-size:13.5px!important;padding:0 10px!important}
  ul.products li.product .price{padding:0 10px;font-size:14.5px!important}
  ul.products li.product .button{margin:10px 10px 0!important;font-size:13px!important;padding:8px 10px!important}
}

/* Card pictures: hide the cut-off watermark strip at the top of catalogue photos */
ul.products li.product img{aspect-ratio:1.45/1!important;object-fit:cover;object-position:50% 100%}
.sa-card-sub{font-size:12.5px;color:var(--muted);padding:0 14px;margin:-2px 0 8px;line-height:1.3}
ul.products li.product h2,ul.products li.product .woocommerce-loop-product__title{min-height:0!important}
@media (max-width:640px){.sa-card-sub{padding:0 10px;font-size:12px}}

/* Mobile fixes */
.hero-vis .tw{height:auto!important;aspect-ratio:1/1;object-fit:contain}
@media (max-width:640px){
  .logo small{display:none}
  .hrow{padding:8px 0}
  .cookie{bottom:74px;left:10px;right:10px;padding:10px 12px;font-size:13px}
}

/* Header logo: larger, crisp */
.mark,.mark.img{width:60px;height:60px;background:transparent}
.mark.img img,.custom-logo-link img{width:60px;height:60px;border-radius:50%;object-fit:cover;image-rendering:auto}
@media (max-width:640px){.mark,.mark.img,.mark.img img{width:46px;height:46px}}
/* Home info boxes: icons */
.ibox .ic svg{width:24px;height:24px;display:block}
/* Footer */
footer.site .cols{grid-template-columns:1.3fr 1fr 1fr 1.2fr}
@media (max-width:860px){footer.site .cols{grid-template-columns:1fr 1fr}}
@media (max-width:480px){footer.site .cols{grid-template-columns:1fr}}
/* Full round logo in header */
.mark,.mark.img{width:80px;height:80px;border:0;background:transparent;box-shadow:0 0 0 2px rgba(232,207,143,.35)}
.mark.img img,.custom-logo-link img{width:80px;height:80px}
header.site .hrow{padding:10px 0}
@media (max-width:640px){.mark,.mark.img,.mark.img img{width:58px;height:58px}}

/* ===== Polish pass ===== */
/* Top bar */
.topbar{background:#120f2b;color:#cfcbe3;font-size:13px}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:34px}
.topbar a{color:#e8cf8f;text-decoration:none}
.social{display:flex;gap:8px;align-items:center}
.social a{display:inline-flex!important;width:30px;height:30px;border-radius:50%;align-items:center;justify-content:center;color:#e8cf8f;background:rgba(255,255,255,.06);border:1px solid rgba(232,207,143,.25);padding:0!important;transition:background .15s,color .15s}
.social a:hover{background:#e8cf8f;color:var(--ink)}
.top-social a{width:24px;height:24px}
.ico{display:inline-flex;width:18px;height:18px}.ico svg{width:100%;height:100%}
.top-social .ico{width:13px;height:13px}
.foot-social{margin-top:14px}
/* Header buttons */
.hbtn{display:inline-flex;align-items:center;gap:7px;color:#fff;text-decoration:none;padding:8px 12px;border-radius:8px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.06);font-size:14px;position:relative}
.hbtn:hover{border-color:#e8cf8f;color:#e8cf8f}
.hbtn .ico{width:20px;height:20px}
.cartbtn .sa-count{background:var(--gold);color:#fff;border-radius:10px;min-width:20px;height:20px;padding:0 6px;font-size:12px;display:inline-grid;place-items:center;font-weight:700}
.sa-search button{display:inline-flex;align-items:center;gap:6px}
.sa-search .ico{width:16px;height:16px}
.sa-search input{padding:11px 14px!important;font-size:15px}
@media (max-width:640px){
  .topbar span{display:none}.topbar .wrap{justify-content:center}
  .hbtn span:not(.ico){display:none}.hbtn{padding:8px}
  .cartbtn .sa-count{position:absolute;top:-6px;right:-6px}
  .sa-search button span{display:none}
}
/* WhatsApp float */
.wa{display:inline-flex;align-items:center;gap:8px}.wa .ico{width:20px;height:20px}
@media (max-width:640px){.wa span{display:none}.wa{width:52px;height:52px;border-radius:50%;justify-content:center;padding:0}.wa .ico{width:26px;height:26px}}
/* Generic tables */
table{width:100%;border-collapse:collapse}
/* ---- Cart ---- */
.woocommerce-cart .entry-content>*,.woocommerce-checkout .entry-content>*,.woocommerce-account .entry-content>*{max-width:none}
.woocommerce table.shop_table{border:1px solid var(--line)!important;border-radius:12px!important;overflow:hidden;background:var(--surface);border-collapse:separate!important;margin:0 0 24px}
.woocommerce table.shop_table th{font-family:var(--body);font-size:12.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:600;padding:14px 16px!important;background:#faf9fd;border-bottom:1px solid var(--line)}
.woocommerce table.shop_table td{padding:14px 16px!important;border-top:1px solid var(--line)!important;vertical-align:middle}
.woocommerce table.cart img{width:72px!important;height:72px;object-fit:cover;border-radius:8px;border:1px solid var(--line)}
.woocommerce table.cart td.product-name a{color:var(--ink);font-weight:600;text-decoration:none}
.woocommerce table.cart td.product-name a:hover{color:var(--accent)}
.woocommerce table.cart td.product-name dl.variation{font-size:13px;color:var(--muted);margin:6px 0 0}
.woocommerce a.remove{color:var(--bad)!important;font-size:20px;line-height:1}
.woocommerce a.remove:hover{background:var(--badbg)!important}
.woocommerce .quantity .qty{width:70px;padding:8px;border:1px solid var(--line);border-radius:8px;text-align:center}
.woocommerce table.cart td.actions .coupon{display:flex;gap:8px;align-items:center}
.woocommerce table.cart td.actions .coupon .input-text{width:180px!important;padding:10px 12px;border:1px solid var(--line);border-radius:8px}
.woocommerce table.cart td.actions>.button{background:transparent!important;color:var(--accent)!important}
.woocommerce .cart-collaterals .cart_totals{float:right;width:420px;max-width:100%}
.woocommerce .cart-collaterals .cart_totals h2{font-size:22px;margin-bottom:10px}
.woocommerce .cart-collaterals .shop_table th{text-transform:none;letter-spacing:0;font-size:14px;background:transparent;border-bottom:0}
.wc-proceed-to-checkout .checkout-button{display:block!important;text-align:center;width:100%}
.woocommerce-shipping-calculator .button{font-size:13px!important;padding:6px 10px!important}
@media (max-width:768px){
  .woocommerce .cart-collaterals .cart_totals{float:none;width:100%}
  .woocommerce table.shop_table_responsive tr td{padding:10px 14px!important}
  .woocommerce table.cart td.actions .coupon{flex-wrap:wrap}
  .woocommerce table.cart td.actions .coupon .input-text{width:100%!important}
}
/* ---- Checkout ---- */
.woocommerce form.checkout{display:grid;grid-template-columns:1.25fr 1fr;gap:28px;align-items:start}
.woocommerce form.checkout #customer_details{grid-column:1;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:22px}
.woocommerce form.checkout #customer_details .col-1,.woocommerce form.checkout #customer_details .col-2{float:none;width:100%}
.woocommerce form.checkout #order_review_heading{grid-column:2;grid-row:1;margin:0;font-size:22px;display:none}
.woocommerce form.checkout #order_review{grid-column:2;grid-row:1;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:20px;position:sticky;top:20px}
.woocommerce form.checkout #order_review::before{content:"Your order";display:block;font-family:var(--display);font-size:22px;margin-bottom:12px}
.woocommerce form.checkout h3{font-size:20px;margin:6px 0 12px}
.woocommerce form .form-row label{font-weight:600;font-size:14px;margin-bottom:4px}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,.select2-container .select2-selection--single{border:1px solid var(--line)!important;border-radius:8px!important;padding:10px 12px;background:#fff;min-height:44px}
.select2-container .select2-selection--single .select2-selection__rendered{line-height:42px!important}
.select2-container .select2-selection--single .select2-selection__arrow{height:42px!important}
.woocommerce-checkout #payment{background:#faf9fd!important;border-radius:10px!important}
.woocommerce-checkout #payment ul.payment_methods{border-bottom:1px solid var(--line)!important}
#place_order{width:100%;margin-top:8px}
.woocommerce-form-coupon-toggle .woocommerce-info{background:var(--surface);border-radius:10px}
@media (max-width:900px){.woocommerce form.checkout{grid-template-columns:1fr}.woocommerce form.checkout #order_review,.woocommerce form.checkout #customer_details{grid-column:1;grid-row:auto;position:static}}
/* ---- Videos ---- */
.vids{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.vid{margin:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.vid .yt{position:relative;display:block;width:100%;aspect-ratio:16/9;border:0;padding:0;cursor:pointer;background:#000}
.vid .yt img{width:100%;height:100%;object-fit:cover;opacity:.92}
.vid .yt .ico-play{position:absolute;left:50%;top:50%;width:64px;height:46px;transform:translate(-50%,-50%)}
.vid iframe{width:100%;aspect-ratio:16/9;border:0;display:block}
.vid figcaption{padding:10px 14px;font-weight:600;font-size:14.5px}
/* ---- FAQ ---- */
.faq details{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:14px 18px;margin-bottom:10px}
.faq summary{cursor:pointer;font-weight:600;list-style:none;display:flex;justify-content:space-between;gap:10px}
.faq summary::after{content:"+";color:var(--gold);font-size:20px;line-height:1}
.faq details[open] summary::after{content:"–"}
.faq details p{margin:10px 0 0;color:var(--muted)}
/* Product page polish */
.woocommerce div.product div.summary{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:22px}
.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0;margin:0 0 -1px}
.woocommerce div.product .woocommerce-tabs .panel{background:var(--surface);border:1px solid var(--line);border-radius:0 12px 12px 12px;padding:20px}
.woocommerce-breadcrumb a{color:var(--muted)}
.sec-h a{color:var(--accent);font-weight:600;text-decoration:none}

/* Product share buttons */
.sa-share{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.sa-share>span{font-size:14px;color:var(--muted);font-weight:600;margin-right:2px}
.sa-share a,.sa-share a:visited,.sa-share a:hover,.sa-share a:focus{display:inline-flex;width:40px;height:40px;border-radius:50%;align-items:center;justify-content:center;color:#fff!important;text-decoration:none;box-shadow:0 2px 6px rgba(0,0,0,.12);transition:transform .15s,box-shadow .15s}
.sa-share a:hover{transform:translateY(-2px);box-shadow:0 4px 10px rgba(0,0,0,.18)}
.sa-share a[aria-label*="WhatsApp"]{background:#25d366}.sa-share a[aria-label*="Facebook"]{background:#1877f2}.sa-share a[aria-label*="on X"]{background:#000}
.sa-share .ico{display:block;width:20px;height:20px;line-height:0}.sa-share .ico svg{width:100%;height:100%;display:block;fill:#fff}
.sa-share .ico-x{width:17px;height:17px}.sa-share .ico-whatsapp{width:22px;height:22px}
.sa-share .sa-copylink{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:#fff;font:inherit;font-size:14px;font-weight:600;color:var(--ink,#2b2140);cursor:pointer}
.sa-share .sa-copylink:hover{border-color:#b8893a}
.sa-share .sa-copylink svg{width:16px;height:16px}
.sa-copylink{border:1px solid var(--line);background:var(--surface);border-radius:18px;padding:7px 14px;font-size:13.5px;cursor:pointer;color:var(--ink)}
.sa-copylink:hover{border-color:var(--gold)}

/* ===== Home boxes: Dates & Timings, Dua of the day ===== */
.hbox2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0 10px}
.hb{display:flex;flex-direction:column;gap:8px;border-radius:14px;padding:22px 24px;text-decoration:none;position:relative;overflow:hidden;transition:transform .15s,box-shadow .15s}
.hb:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(27,24,56,.18)}
.hb-k{font-size:12.5px;letter-spacing:.12em;text-transform:uppercase;font-weight:600}
.hb-go{margin-top:auto;padding-top:6px;font-weight:700;font-size:15px}
.hb-dates{background:radial-gradient(120% 140% at 90% 0%,#2c2760 0%,#1b1838 60%);color:#fff;border:1px solid rgba(232,207,143,.35)}
.hb-dates .hb-k{color:#e8cf8f}
.hb-big{font-family:var(--display);font-size:34px;line-height:1.15;color:#fff}
.hb-big small{font-size:18px;color:#cfcbe3}
.hb-chips{display:flex;gap:8px;flex-wrap:wrap}
.chip-g{background:rgba(232,207,143,.14);border:1px solid rgba(232,207,143,.4);color:#f3e3b8;border-radius:20px;padding:5px 12px;font-size:14px}
.chip-g b{color:#fff;font-size:15px}
.hb-next{font-size:15px;color:#e9e6f5;line-height:1.5}
.hb-next span{color:#e8cf8f;font-weight:600}
.hb-next b{color:#fff}
.hb-next em{font-style:normal;color:#e8cf8f;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.hb-dates .hb-go{color:#e8cf8f}
.hb-dua{background:linear-gradient(180deg,#fffdf7 0%,#fbf5e6 100%);border:1px solid #e6d3a6;color:var(--ink)}
.hb-dua::after{content:"";position:absolute;inset:8px;border:1px solid rgba(168,121,42,.25);border-radius:10px;pointer-events:none}
.hb-dua .hb-k{color:var(--gold)}
.hb-ar{font-family:"Amiri","Traditional Arabic",serif;font-size:32px;line-height:1.8;direction:rtl;text-align:right;color:#1b1838}
.hb-tr{font-style:italic;font-size:16px;color:#3b2f8f;font-weight:600}
.hb-en{font-size:15.5px;color:#3f3a5c;line-height:1.5}
.hb-dua .hb-go{color:var(--gold)}
@media (max-width:760px){.hbox2{grid-template-columns:1fr}.hb{padding:18px}.hb-big{font-size:28px}.hb-ar{font-size:28px}}

.topbar .announce{color:#fff;font-weight:600}
@media (max-width:640px){.topbar span{display:block;text-align:center;font-size:12px}.topbar span:not(:has(.announce)){display:none}.topbar .wrap{flex-direction:column;gap:2px;padding:4px 0}}

.wlbtn .ico{font-size:19px;line-height:20px;justify-content:center}
.wlbtn .sa-wl-count{background:#b23a3a;color:#fff;border-radius:10px;min-width:20px;height:20px;padding:0 6px;font-size:12px;display:inline-grid;place-items:center;font-weight:700}
.wlbtn .sa-wl-count[hidden]{display:none}
@media (max-width:640px){.wlbtn .sa-wl-count{position:absolute;top:-6px;right:-6px}}

/* ===== Mobile fixes, round 2 ===== */
/* WhatsApp float: keep the icon visible on phones */
@media (max-width:640px){.wa span.ico{display:inline-flex!important}.wa>span:not(.ico){display:none}}
/* Hamburger menu on phones and tablets */
.menubtn{display:none;flex:none;width:44px;height:40px;border-radius:8px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.06);cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:0}
.menubtn span{display:block;width:20px;height:2px;background:#fff;border-radius:2px;transition:transform .2s,opacity .2s}
.menubtn.x span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menubtn.x span:nth-child(2){opacity:0}
.menubtn.x span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media (max-width:860px){
  .menubtn{display:inline-flex;order:2}
  .logo{order:1}
  .hctl{order:3;margin-left:auto}
  .sa-search{order:4}
  nav.cats{display:none}
  nav.cats.open{display:block}
  nav.cats .wrap,nav.cats.open .wrap{display:flex;flex-direction:column;flex-wrap:nowrap;overflow:visible;-webkit-mask-image:none;mask-image:none;padding:4px 14px 10px;gap:0}
  nav.cats a{padding:12px 4px;font-size:16px;border-bottom:1px solid rgba(255,255,255,.08);white-space:normal}
  nav.cats a:last-child{border-bottom:0}
}
/* Cart bin icon */
.woocommerce a.remove{display:inline-grid!important;place-items:center;width:36px!important;height:36px!important;border-radius:8px!important;color:#b23a3a!important;font-size:0!important;border:1px solid #f0d0d0}
.woocommerce a.remove:hover{background:#b23a3a!important;color:#fff!important}
.woocommerce a.remove svg{width:20px;height:20px}
/* Date box on phones: keep "AH" with the date */
@media (max-width:640px){.hb-big{font-size:26px}.hb-big small{font-size:15px;white-space:nowrap}}
/* Phones: nothing may stick out sideways (cart badge caused a 6px side-scroll) */
html,body{overflow-x:clip}
@media (max-width:640px){.cartbtn .sa-count,.wlbtn .sa-wl-count{right:-4px;top:-5px}.hctl{gap:8px;padding-right:4px}}
