/*
Theme Name: Above BD WhatsApp Commerce
Theme URI: https://above.bd/
Author: Above IT
Description: Clean stable WhatsApp-first product catalog theme for Above BD.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: above-bd-whatsapp-commerce
*/

:root{
  --dark:#061225;
  --text:#1f2937;
  --muted:#64748b;
  --line:#e5e7eb;
  --soft:#f8fafc;
  --green:#22c55e;
  --green2:#16a34a;
  --green-soft:#ecfdf5;
  --red:#ff0000;
  --radius:18px;
  --shadow:0 12px 32px rgba(15,23,42,.07);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;max-width:100%;overflow-x:hidden}
body{font-family:Arial,Helvetica,sans-serif;color:var(--text);background:#fff;line-height:1.6}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
.container{max-width:1180px;width:92%;margin:0 auto}

/* Header */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:999}
.header-inner{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.logo-wrap{display:flex;align-items:center;text-decoration:none;flex-shrink:0}
.logo-wrap img,.custom-logo{width:120px;height:60px;object-fit:contain}
.text-logo{font-size:28px;font-weight:900;color:var(--dark);letter-spacing:-.5px}.text-logo span{color:#0f9f8f}
.main-menu{display:flex;align-items:center;justify-content:flex-end;gap:22px;white-space:nowrap}
.main-menu a{text-decoration:none;color:var(--dark);font-size:15px;font-weight:900}
.main-menu a:hover{color:var(--green2)}

/* Buttons */
.btn,.wa-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;padding:13px 18px;text-decoration:none;font-weight:900;border:0;line-height:1.2}
.wa-btn,.btn-green{background:var(--green);color:#fff}.btn-dark{background:var(--dark);color:#fff}.btn-light{border:1px solid var(--line);background:#fff;color:var(--dark)}

/* Home */
.hero{background:linear-gradient(180deg,#ecfdf5,#fff);padding:58px 0 42px}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:32px;align-items:center}
.hero h1{font-size:clamp(34px,5vw,56px);line-height:1.08;margin:0 0 16px;color:var(--dark)}
.hero p{font-size:18px;color:#475569;margin:0 0 22px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.hero-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:var(--shadow)}
.check-list{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.check-list li:before{content:"✓";color:var(--green2);font-weight:900;margin-right:8px}
.section{padding:42px 0}.section-title{font-size:clamp(26px,3vw,34px);margin:0 0 8px;color:var(--dark);line-height:1.2}.section-desc{color:var(--muted);margin:0 0 20px}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:20px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}
.cat-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
.cat-card,.product-card,.trust-card,.filter-box,.content-box,.product-info,.product-gallery{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 8px 24px rgba(15,23,42,.045)}
.cat-card{min-height:90px;padding:18px;display:flex;align-items:end;text-decoration:none;font-weight:900;color:var(--dark)}
.cat-card small{display:block;color:var(--muted);font-weight:700;margin-top:4px}

/* Product Cards */
.product-card{padding:14px;display:flex;flex-direction:column;gap:10px;min-width:0}
.product-thumb{background:#f1f5f9;border-radius:15px;aspect-ratio:1/1;display:grid;place-items:center;overflow:hidden;text-decoration:none;color:var(--muted)}
.product-thumb img{width:100%;height:100%;object-fit:contain;padding:10px}
.product-card h3{font-size:17px;line-height:1.35;margin:0;color:var(--dark);overflow-wrap:anywhere}
.product-card h3 a{text-decoration:none}
.price{font-size:24px;font-weight:950;color:#16a34a;margin:0}.old-price{font-size:14px;color:#94a3b8;text-decoration:line-through;font-weight:700}
.product-actions{display:grid;gap:8px;margin-top:auto}.product-actions .wa-btn{width:100%}
.view-link{text-align:center;border:1px solid var(--line);border-radius:12px;padding:10px;text-decoration:none;font-weight:900;color:var(--dark)}
.badge{position:absolute;background:#ef4444;color:#fff;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900}

/* Archive */
.search-form{display:flex;gap:8px;margin:18px 0}.search-form input{width:100%;padding:12px;border:1px solid var(--line);border-radius:12px;font-size:16px}.search-form button{border:0;background:var(--dark);color:#fff;border-radius:12px;padding:0 16px;font-weight:900}
.archive-layout{display:grid;grid-template-columns:260px 1fr;gap:22px;align-items:start}
.filter-box{padding:16px;position:sticky;top:94px}.filter-box h3{margin:0 0 12px;color:var(--dark)}.filter-box a{display:block;text-decoration:none;color:#334155;font-weight:800;padding:8px 0;border-bottom:1px solid #f1f5f9}

/* Single Product */
.single-product-wrap{padding:34px 0 0}
.single-product-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:34px;align-items:start}
.product-gallery{padding:20px}
.product-gallery-box{min-height:430px;background:#fff;border-radius:16px;display:grid;place-items:center}
.product-gallery-box img{width:100%;max-height:420px;object-fit:contain}
.product-info{padding:24px}
.breadcrumb{font-size:13px;color:var(--muted);margin-bottom:10px}.breadcrumb a{color:#334155}
.product-info h1{font-size:clamp(28px,3vw,38px);line-height:1.2;margin:0 0 14px;color:var(--dark);overflow-wrap:anywhere}
.availability{display:inline-flex;align-items:center;background:#dcfce7;color:#166534;border-radius:999px;padding:7px 12px;font-weight:900;max-width:100%;white-space:normal}
.single-price{font-size:clamp(36px,4vw,44px);font-weight:950;color:#16a34a;margin:12px 0 0}.price-note{font-size:14px;color:var(--muted);margin:6px 0 14px}
.delivery-badge{display:flex;align-items:center;gap:10px;background:var(--green-soft);border:1px solid #bbf7d0;color:#14532d;border-radius:14px;padding:12px 14px;font-weight:900;margin:14px 0}
.delivery-badge .flag{font-size:22px}
.product-summary{color:#475569;margin:16px 0}
.spec-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--line);border-radius:16px;overflow:hidden;margin:18px 0;table-layout:fixed}
.spec-table td{padding:12px;border-bottom:1px solid #f1f5f9;overflow-wrap:anywhere}.spec-table tr:last-child td{border-bottom:0}.spec-table td:first-child{font-weight:900;background:#f8fafc;width:36%;color:#334155}.spec-table .delivery-row td{background:#f0fdf4}
.order-box{background:linear-gradient(180deg,#f0fdf4,#fff);border:1px solid #bbf7d0;border-radius:20px;padding:16px;margin-top:18px}
.order-box .wa-btn{width:100%;font-size:18px;padding:16px}
.review-video-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;background:var(--red);color:#fff!important;text-decoration:none;border-radius:14px;padding:15px 16px;font-size:17px;font-weight:950;margin-top:10px}
.review-video-btn:hover{background:#cc0000}.yt-icon{width:30px;height:22px;background:#fff;color:var(--red);border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:950}
.service-note{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:14px;padding:13px 14px;color:#166534;font-weight:900;margin-top:12px}.service-note small{display:block;color:#475569;font-weight:700;margin-top:4px}
.product-content,.related-wrap{max-width:1180px;margin:38px auto 0}.content-box{padding:28px}.content-box h2{margin-top:0;color:var(--dark)}
.sticky-mobile-wa{display:none;position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);padding:10px 14px;z-index:90;box-shadow:0 -8px 24px rgba(15,23,42,.08)}.sticky-mobile-wa .wa-btn{width:100%}

/* Trust */
.trust-section{background:#f8fafc;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:52px 0}
.trust-card{padding:26px;min-height:150px;display:flex;flex-direction:column;justify-content:center}.trust-card h3{font-size:20px;margin:0 0 8px;color:var(--dark)}.trust-card p{margin:0;color:#475569}

/* Footer */
.site-footer{background:var(--dark);color:#cbd5e1;margin-top:60px;padding:44px 0 18px}
.footer-grid{display:grid;grid-template-columns:1.4fr .8fr .9fr;gap:34px;align-items:start}.site-footer h3{color:#fff;margin-top:0}.site-footer a{color:#fff;text-decoration:none}.footer-logo img{width:120px;height:60px;object-fit:contain}.footer-social-links a{display:block;margin:8px 0}.footer-social-icons{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.footer-social-icons a{width:42px;height:42px;border-radius:999px;display:inline-flex!important;align-items:center;justify-content:center;font-weight:900;font-size:13px;color:#fff}.footer-social-icons .yt{background:#ff0000}.footer-social-icons .fb{background:#1877f2}.footer-social-icons .map{background:#16a34a}.footer-social-icons .wa{background:#25D366}.footer-bottom{border-top:1px solid rgba(255,255,255,.08);margin-top:26px;padding-top:18px;text-align:center;color:#94a3b8}
.floating-wa{position:fixed;right:20px;bottom:20px;background:var(--green);color:#fff;text-decoration:none;font-weight:900;border-radius:999px;padding:14px 18px;z-index:80;box-shadow:0 14px 30px rgba(37,211,102,.28)}

@media(max-width:900px){
  .hero-grid,.single-product-grid,.archive-layout,.footer-grid{grid-template-columns:1fr}
  .filter-box{position:static}
}
@media(max-width:720px){
  .header-inner{min-height:68px}.logo-wrap img,.custom-logo{width:100px;height:52px}.main-menu{gap:14px}.main-menu a{font-size:14px}.main-menu a:nth-child(n+4){display:none}
  .product-gallery-box{min-height:280px}
  .sticky-mobile-wa{display:block}.floating-wa{display:none}
  body.single-product{padding-bottom:76px}
}
@media(max-width:520px){
  .main-menu a:nth-child(n+3){display:none}
}
