/*
Theme Name:   Paisa Wasool
Theme URI:    https://paisawasool.store
Description:  Blocksy child theme for Paisa Wasool. Custom homepage, WooCommerce for products.
Author:       Ahmad Khan
Template:     blocksy
Version:      1.0.0
Text Domain:  paisawasool
*/

/* ---------- Brand tokens ---------- */
:root{
  --pw-orange:#E0662A;
  --pw-orange-dk:#C4521A;
  --pw-orange-soft:#FDEBDD;
  --pw-navy:#1E2F4F;
  --pw-navy-dk:#16223A;
  --pw-ink:#1A253B;
  --pw-muted:#5E6878;
  --pw-cream:#FAF6F0;
  --pw-line:#ECE4D8;
  --pw-radius:18px;
  --pw-head:"Baloo 2", "Poppins", system-ui, sans-serif;
  --pw-body:"Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Blocksy palette -> brand colours (buttons, links, headings site-wide) */
:root:root{
  --theme-palette-color-1:#E0662A;
  --theme-palette-color-2:#C4521A;
  --theme-palette-color-3:#4A5468;
  --theme-palette-color-4:#1A253B;
  --theme-palette-color-5:#ECE4D8;
  --theme-palette-color-6:#F4EFE7;
  --theme-palette-color-7:#FAF6F0;
  --theme-palette-color-8:#FFFFFF;
}

/* ---------- Top bar (site-wide) ---------- */
.pw-topbar{background:var(--pw-navy-dk);color:#fff;font:500 13px/1.2 var(--pw-body);}
.pw-topbar__in{max-width:1290px;margin:0 auto;padding:9px 16px;display:flex;gap:28px;justify-content:center;align-items:center;flex-wrap:wrap}
.pw-topbar span{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.pw-topbar svg{width:16px;height:16px;color:#F7A06C}
.pw-topbar .pw-dup{display:none}
@media (max-width:700px){
  .pw-topbar .pw-dup{display:inline-flex}
  .pw-topbar__in{padding-right:14px;gap:14px;font-size:12px;overflow:hidden;flex-wrap:nowrap;justify-content:flex-start;animation:pw-marq 18s linear infinite;width:max-content}
  .pw-topbar{overflow:hidden}
}
@keyframes pw-marq{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ---------- Floating WhatsApp ---------- */
.pw-wa-float{position:fixed;right:18px;bottom:18px;z-index:999;width:56px;height:56px;border-radius:50%;background:#25D366;color:#fff;display:grid;place-items:center;box-shadow:0 8px 22px rgba(0,0,0,.22);transition:transform .2s}
.pw-wa-float:hover{transform:scale(1.07);color:#fff}
.pw-wa-float svg{width:30px;height:30px}

/* ---------- Homepage ---------- */
.pw{font-family:var(--pw-body);color:var(--pw-ink);background:var(--pw-cream);overflow:hidden}
.pw *{box-sizing:border-box}
.pw a{text-decoration:none}
.pw-wrap{max-width:1290px;margin:0 auto;padding:0 20px}
.pw-sec{padding:72px 0}
.pw-sec--tight{padding:48px 0}
.pw h1,.pw h2,.pw h3{font-family:var(--pw-head);color:var(--pw-ink);margin:0;letter-spacing:-.01em}
.pw p{margin:0}

.pw-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:30px}
.pw-head h2{font-size:clamp(28px,3.4vw,42px);font-weight:800;line-height:1.05}
.pw-head p{color:var(--pw-muted);margin-top:6px;font-size:15px}
.pw-eyebrow{display:inline-block;font:700 12px/1 var(--pw-body);letter-spacing:.16em;text-transform:uppercase;color:var(--pw-orange);margin-bottom:10px}
.pw-link{font-weight:600;color:var(--pw-navy);display:inline-flex;gap:6px;align-items:center;white-space:nowrap;border-bottom:2px solid var(--pw-orange);padding-bottom:2px}
.pw-link:hover{color:var(--pw-orange)}

.pw-btn{display:inline-flex;align-items:center;gap:9px;font:600 15px/1 var(--pw-body);padding:15px 26px;border-radius:999px;transition:all .2s;border:2px solid transparent;cursor:pointer}
.pw-btn svg{width:18px;height:18px}
.pw-btn--orange{background:var(--pw-orange);color:#fff}
.pw-btn--orange:hover{background:var(--pw-orange-dk);color:#fff;transform:translateY(-2px)}
.pw-btn--ghost{border-color:rgba(255,255,255,.55);color:#fff}
.pw-btn--ghost:hover{background:#fff;color:var(--pw-navy)}
.pw-btn--navy{background:var(--pw-navy);color:#fff}
.pw-btn--navy:hover{background:var(--pw-navy-dk);color:#fff;transform:translateY(-2px)}
.pw-btn--white{background:#fff;color:var(--pw-ink)}
.pw-btn--white:hover{background:var(--pw-ink);color:#fff}

/* Hero */
.pw-hero{background:var(--pw-navy);color:#fff;position:relative;padding:70px 0 80px}
.pw-hero::before{content:"";position:absolute;inset:0;background:
  radial-gradient(600px 400px at 85% 30%,rgba(224,102,42,.35),transparent 70%),
  radial-gradient(500px 300px at 0% 100%,rgba(255,255,255,.06),transparent 70%);pointer-events:none}
.pw-hero__grid{position:relative;display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center}
.pw-hero__tag{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);padding:8px 14px;border-radius:999px;font-size:13px;font-weight:500;margin-bottom:22px}
.pw-hero__tag i{width:8px;height:8px;border-radius:50%;background:#3DDC84;box-shadow:0 0 0 4px rgba(61,220,132,.2)}
.pw-hero h1{color:#fff;font-size:clamp(46px,7vw,92px);font-weight:800;line-height:.92}
.pw-hero h1 em{font-style:normal;color:#F7894A;display:block}
.pw-hero__sub{font-size:clamp(15px,1.6vw,18px);line-height:1.6;color:rgba(255,255,255,.82);max-width:520px;margin:22px 0 32px!important}
.pw-hero__ctas{display:flex;gap:12px;flex-wrap:wrap}
.pw-hero__stats{display:flex;gap:28px;margin-top:40px;flex-wrap:wrap}
.pw-hero__stats div{border-left:3px solid var(--pw-orange);padding-left:12px}
.pw-hero__stats b{display:block;font:800 22px/1.1 var(--pw-head)}
.pw-hero__stats small{color:rgba(255,255,255,.7);font-size:13px}

.pw-hero__art{position:relative;aspect-ratio:1;max-width:480px;margin-left:auto;width:100%}
.pw-hero__disc{position:absolute;inset:6%;border-radius:50%;background:var(--pw-cream);display:grid;place-items:center;box-shadow:0 30px 60px rgba(0,0,0,.3)}
.pw-hero__disc img{width:46%;height:auto}
.pw-hero__ring{position:absolute;inset:0;border-radius:50%;border:2px dashed rgba(255,255,255,.25);animation:pw-spin 60s linear infinite}
@keyframes pw-spin{to{transform:rotate(360deg)}}
.pw-chip{position:absolute;display:flex;align-items:center;gap:8px;background:#fff;color:var(--pw-ink);font:600 13px/1 var(--pw-body);padding:10px 14px 10px 10px;border-radius:999px;box-shadow:0 10px 24px rgba(0,0,0,.18);white-space:nowrap;transition:transform .2s}
.pw-chip:hover{transform:scale(1.06);color:var(--pw-orange)}
.pw-chip span{width:30px;height:30px;border-radius:50%;background:var(--pw-orange-soft);color:var(--pw-orange);display:grid;place-items:center}
.pw-chip svg{width:17px;height:17px}
.pw-chip:nth-of-type(1){top:4%;left:4%}
.pw-chip:nth-of-type(2){top:12%;right:-2%}
.pw-chip:nth-of-type(3){top:46%;left:-6%}
.pw-chip:nth-of-type(4){top:50%;right:-6%}
.pw-chip:nth-of-type(5){bottom:8%;left:6%}
.pw-chip:nth-of-type(6){bottom:2%;right:8%}

/* Categories */
.pw-cats{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}
.pw-cat{background:#fff;border:1px solid var(--pw-line);border-radius:var(--pw-radius);padding:22px 14px 18px;text-align:center;transition:all .25s;display:block;color:var(--pw-ink)}
.pw-cat:hover{transform:translateY(-5px);border-color:var(--pw-orange);box-shadow:0 16px 30px rgba(30,47,79,.1);color:var(--pw-ink)}
.pw-cat__media{width:96px;height:96px;margin:0 auto 14px;border-radius:50%;background:var(--pw-orange-soft);color:var(--pw-orange);display:grid;place-items:center;overflow:hidden;transition:background .25s,color .25s}
.pw-cat:nth-child(even) .pw-cat__media{background:#E6EBF3;color:var(--pw-navy)}
.pw-cat:hover .pw-cat__media{background:var(--pw-orange);color:#fff}
.pw-cat__media svg{width:42px;height:42px}
.pw-cat__media img{width:100%;height:100%;object-fit:cover}
.pw-cat h3{font-size:18px;font-weight:700;line-height:1.15}
.pw-cat small{display:block;color:var(--pw-muted);font-size:12.5px;margin-top:4px}

/* Product grid (WooCommerce markup) */
.pw ul.products{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:20px;margin:0!important;padding:0;list-style:none}
.pw ul.products::before,.pw ul.products::after{display:none!important}
.pw ul.products li.product{width:auto!important;margin:0!important;float:none!important;background:#fff;border:1px solid var(--pw-line);border-radius:var(--pw-radius);padding:12px 12px 16px!important;position:relative;transition:box-shadow .25s,transform .25s;display:flex;flex-direction:column;text-align:left}
.pw ul.products li.product:hover{box-shadow:0 16px 34px rgba(30,47,79,.12);transform:translateY(-4px)}
.pw ul.products li.product img{border-radius:12px;aspect-ratio:1;object-fit:cover;width:100%;margin:0 0 12px!important;background:#F4EFE7}
.pw ul.products li.product .woocommerce-loop-product__title{font:600 15px/1.35 var(--pw-body)!important;color:var(--pw-ink);padding:0!important;margin:0 0 6px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pw ul.products li.product .price{color:var(--pw-orange)!important;font:700 17px/1.2 var(--pw-body)!important;margin:0 0 12px!important;display:block}
.pw ul.products li.product .price del{color:#9AA1AD;font-weight:500;font-size:13px;opacity:1;margin-right:4px}
.pw ul.products li.product .price ins{text-decoration:none}
.pw ul.products li.product .onsale{position:absolute;top:20px;left:20px;right:auto;margin:0;min-height:0;min-width:0;background:var(--pw-orange);color:#fff;border-radius:999px;padding:6px 11px;font:700 12px/1 var(--pw-body);z-index:2}
.pw ul.products li.product .button,.pw ul.products li.product .added_to_cart{margin-top:auto!important;display:block;text-align:center;background:var(--pw-navy)!important;color:#fff!important;border-radius:999px!important;padding:12px 10px!important;font:600 14px/1 var(--pw-body)!important;transition:background .2s}
.pw ul.products li.product .button:hover{background:var(--pw-orange)!important}
.pw ul.products li.product .star-rating{margin:0 0 6px;font-size:12px;color:#F5A623}
.pw-empty{background:#fff;border:2px dashed var(--pw-line);border-radius:var(--pw-radius);padding:40px;text-align:center;color:var(--pw-muted)}

/* Promo banners */
.pw-promos{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.pw-promo{border-radius:24px;padding:44px 40px;min-height:300px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;color:#fff}
.pw-promo--navy{background:linear-gradient(135deg,#22365A,#16223A)}
.pw-promo--orange{background:linear-gradient(135deg,#F07B3C,#C4521A)}
.pw-promo__icon{position:absolute;right:-30px;top:-30px;width:240px;height:240px;opacity:.13;color:#fff}
.pw-promo__icon svg{width:100%;height:100%}
.pw-promo .pw-eyebrow{color:#fff;opacity:.8}
.pw-promo h3{color:#fff;font-size:clamp(28px,3vw,40px);font-weight:800;line-height:1;margin-bottom:10px}
.pw-promo p{opacity:.85;margin-bottom:22px!important;max-width:340px;line-height:1.55}
.pw-promo .pw-btn{align-self:flex-start}

/* Why us */
.pw-why{background:#fff;border-top:1px solid var(--pw-line);border-bottom:1px solid var(--pw-line)}
.pw-why__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.pw-why__item{padding:8px 6px}
.pw-why__icon{width:58px;height:58px;border-radius:16px;background:var(--pw-orange-soft);color:var(--pw-orange);display:grid;place-items:center;margin-bottom:16px}
.pw-why__icon svg{width:28px;height:28px}
.pw-why__item h3{font-size:20px;font-weight:700;margin-bottom:6px}
.pw-why__item p{color:var(--pw-muted);font-size:14.5px;line-height:1.6}

/* Feature banner */
.pw-feature{background:var(--pw-ink);border-radius:28px;display:grid;grid-template-columns:1fr 1fr;overflow:hidden;color:#fff}
.pw-feature__txt{padding:56px 52px}
.pw-feature__txt h2{color:#fff;font-size:clamp(32px,4vw,52px);font-weight:800;line-height:.98;margin-bottom:14px}
.pw-feature__txt h2 em{font-style:normal;color:#F7894A}
.pw-feature__txt p{opacity:.8;line-height:1.6;margin-bottom:26px!important;max-width:420px}
.pw-feature__art{background:var(--pw-orange);display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px}
.pw-feature__tile{background:#F07B3C;display:grid;place-items:center;color:#fff;min-height:150px;transition:background .25s}
.pw-feature__tile:nth-child(2),.pw-feature__tile:nth-child(3){background:#E86F31}
.pw-feature__tile:hover{background:var(--pw-orange-dk);color:#fff}
.pw-feature__tile svg{width:54px;height:54px}
.pw-feature__tile span{display:block;text-align:center;font:600 14px/1 var(--pw-body);margin-top:10px}

/* WhatsApp CTA */
.pw-cta{background:var(--pw-orange);border-radius:28px;padding:50px;display:flex;align-items:center;justify-content:space-between;gap:30px;color:#fff;position:relative;overflow:hidden}
.pw-cta::after{content:"";position:absolute;right:-80px;bottom:-120px;width:320px;height:320px;border-radius:50%;background:rgba(255,255,255,.1)}
.pw-cta h2{color:#fff;font-size:clamp(28px,3.4vw,42px);font-weight:800;line-height:1.05}
.pw-cta p{opacity:.9;margin-top:8px!important;max-width:520px}
.pw-cta .pw-btn{position:relative;z-index:1;flex-shrink:0}

/* ---------- Responsive ---------- */
@media (max-width:1100px){
  .pw-cats{grid-template-columns:repeat(3,1fr)}
  .pw ul.products{grid-template-columns:repeat(3,1fr)!important}
}
@media (max-width:900px){
  .pw-hero__grid{grid-template-columns:1fr}
  .pw-hero__art{max-width:400px;margin:20px auto 0}
  .pw-why__grid{grid-template-columns:repeat(2,1fr)}
  .pw-feature{grid-template-columns:1fr}
  .pw-promos{grid-template-columns:1fr}
}
@media (max-width:640px){
  .pw-sec{padding:52px 0}
  .pw-wrap{padding:0 16px}
  .pw-hero{padding:44px 0 56px}
  .pw-hero__stats{gap:18px}
  .pw-hero__art{max-width:320px}
  .pw-chip{font-size:11.5px;padding:7px 11px 7px 7px}
  .pw-chip span{width:24px;height:24px}
  .pw-chip svg{width:14px;height:14px}
  .pw-chip:nth-of-type(3){left:-2%}
  .pw-chip:nth-of-type(4){right:-2%}
  .pw-cats{grid-template-columns:repeat(2,1fr);gap:12px}
  .pw-cat__media{width:76px;height:76px}
  .pw-cat__media svg{width:34px;height:34px}
  .pw ul.products{grid-template-columns:repeat(2,1fr)!important;gap:12px}
  .pw ul.products li.product{padding:8px 8px 12px!important}
  .pw ul.products li.product .woocommerce-loop-product__title{font-size:13.5px!important}
  .pw ul.products li.product .price{font-size:15px!important}
  .pw ul.products li.product .button{font-size:12.5px!important;padding:10px 6px!important}
  .pw ul.products li.product .onsale{top:14px;left:14px}
  .pw-head{flex-direction:column;align-items:flex-start}
  .pw-promo{padding:32px 26px;min-height:240px}
  .pw-why__grid{grid-template-columns:1fr 1fr;gap:14px}
  .pw-why__item h3{font-size:17px}
  .pw-why__item p{font-size:13px}
  .pw-feature__txt{padding:38px 26px}
  .pw-feature__tile{min-height:110px}
  .pw-cta{flex-direction:column;align-items:flex-start;padding:36px 26px}
}

/* =========================================================
   Store-wide styles (shop, product, checkout, footer, pages)
   ========================================================= */
body{background:var(--pw-cream)}
.pw ul.products li.product .ct-woo-card-actions{margin-top:auto}
.pw ul.products li.product figure{margin:0}

/* Product cards on shop / category / related */
.woocommerce ul.products li.product{background:#fff;border:1px solid var(--pw-line);border-radius:var(--pw-radius);padding:12px 12px 16px;transition:box-shadow .25s,transform .25s}
.woocommerce ul.products li.product:hover{box-shadow:0 16px 34px rgba(30,47,79,.12);transform:translateY(-4px)}
.woocommerce ul.products li.product img{border-radius:12px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:var(--pw-body);font-weight:600;font-size:15px;color:var(--pw-ink)}
.woocommerce ul.products li.product .price{color:var(--pw-orange);font-weight:700}
.woocommerce ul.products li.product .button{border-radius:999px;background:var(--pw-navy);color:#fff}
.woocommerce ul.products li.product .button:hover{background:var(--pw-orange)}
.woocommerce span.onsale{background:var(--pw-orange);color:#fff;border-radius:999px;font-weight:700}

/* Single product */
.single-product .product .price{color:var(--pw-orange);font-weight:700}
.single-product .single_add_to_cart_button{border-radius:999px!important;background:var(--pw-navy)!important}
.single-product .single_add_to_cart_button:hover{background:var(--pw-orange)!important}
.pw-wa-order{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;max-width:420px;margin:14px 0 0;padding:14px 20px;border-radius:999px;background:#25D366;color:#fff!important;font:600 15px/1 var(--pw-body);text-decoration:none!important;transition:background .2s}
.pw-wa-order:hover{background:#1DA851}
.pw-wa-order svg{width:20px;height:20px}
.pw-trust{box-sizing:border-box;list-style:none;margin:18px 0 0!important;padding:16px 18px!important;border:1px dashed var(--pw-line);border-radius:14px;background:#fff;max-width:420px;display:grid;gap:10px}
.pw-trust li{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--pw-ink);margin:0}
.pw-trust svg{width:20px;height:20px;color:var(--pw-orange);flex-shrink:0}

/* Cart & checkout */
.woocommerce-checkout .button,.woocommerce-cart .button,#place_order{border-radius:999px!important}
#place_order{background:var(--pw-orange)!important;font-size:16px!important;padding:16px!important}
#place_order:hover{background:var(--pw-orange-dk)!important}
.woocommerce-checkout #payment{background:#fff;border:1px solid var(--pw-line);border-radius:var(--pw-radius)}

/* Content pages (About, Policies, FAQ) */
.page:not(.home) .entry-content h2,.page:not(.home) .entry-content h3{font-family:var(--pw-head);color:var(--pw-ink)}
.page:not(.home) .entry-content h3{margin-top:1.6em}
.page:not(.home) .entry-content a{color:var(--pw-orange)}

/* Contact cards */
.pw-contact{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin:26px 0}
.pw-contact__card{background:#fff;border:1px solid var(--pw-line);border-radius:var(--pw-radius);padding:24px}
.pw-contact__card span{width:48px;height:48px;border-radius:14px;background:var(--pw-orange-soft);color:var(--pw-orange);display:grid;place-items:center;margin-bottom:14px}
.pw-contact__card:first-child span{background:#25D366;color:#fff}
.pw-contact__card span svg{width:24px;height:24px}
.pw-contact__card h3{margin:0 0 4px!important;font-size:20px}
.pw-contact__card p{margin:0 0 10px!important;color:var(--pw-muted);font-size:14px}
.pw-contact__card strong{font-size:16px;color:var(--pw-ink)}
.pw-contact__card strong a{color:var(--pw-orange)}
@media (max-width:640px){.pw-contact{grid-template-columns:1fr}}

/* Footer: our footer replaces Blocksy's */
footer.ct-footer{display:none!important}
.pw-footer{background:#fff;border-top:1px solid var(--pw-line);font-family:var(--pw-body);color:var(--pw-ink)}
.pw-footer__top{max-width:1290px;margin:0 auto;padding:60px 20px 40px;display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr 1.3fr;gap:36px}
.pw-footer__brand img{width:190px;height:auto;margin-bottom:14px}
.pw-footer__brand p{color:var(--pw-muted);font-size:14px;line-height:1.65;margin:0 0 20px;max-width:300px}
.pw-footer__brand .pw-btn{padding:12px 20px;font-size:14px}
.pw-footer h4{font:700 17px/1.2 var(--pw-head);margin:6px 0 16px;color:var(--pw-ink)}
.pw-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.pw-footer li{font-size:14px;color:var(--pw-muted)}
.pw-footer a{color:var(--pw-muted);text-decoration:none;transition:color .2s}
.pw-footer a:hover{color:var(--pw-orange)}
.pw-footer a.pw-btn,.pw-footer a.pw-btn:hover{color:#fff}
.pw-contact,.pw-contact *{box-sizing:border-box}
.pw-footer__contact li{display:flex;align-items:center;gap:9px}
.pw-footer__contact svg{width:17px;height:17px;color:var(--pw-orange);flex-shrink:0}
.pw-footer__bar{background:var(--pw-navy-dk);color:rgba(255,255,255,.8);font-size:13px;padding:16px 20px;display:flex;justify-content:center;gap:30px;flex-wrap:wrap;text-align:center}
.pw-footer__bar span{display:inline-flex;align-items:center;gap:7px}
.pw-footer__bar svg{width:16px;height:16px;color:#F7A06C}
@media (max-width:1000px){.pw-footer__top{grid-template-columns:1fr 1fr 1fr}.pw-footer__brand{grid-column:1 / -1}}
@media (max-width:640px){
  .pw-footer__top{grid-template-columns:1fr 1fr;gap:28px 20px;padding:44px 16px 30px}
  .pw-footer__top>div:last-child{grid-column:1 / -1}
  .pw-wa-float{bottom:14px;right:14px;width:52px;height:52px}
}
