/*
Theme Name: Rhigi Commerce
Theme URI: https://rhigi.com
Author: Rhigi
Description: A modern, mobile-first WooCommerce theme for Rhigi ecommerce.
Version: 2.8.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: rhigi
*/

:root{
  --rhigi-orange:#ff7a00;
  --rhigi-orange-dark:#e65f00;
  --rhigi-charcoal:#111827;
  --rhigi-dark:#0b1220;
  --rhigi-muted:#6b7280;
  --rhigi-bg:#f8fafc;
  --rhigi-card:#ffffff;
  --rhigi-line:#e5e7eb;
  --rhigi-radius:22px;
  --rhigi-shadow:0 18px 45px rgba(15,23,42,.10);
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--rhigi-bg);color:var(--rhigi-charcoal)}
a{text-decoration:none;color:inherit}.container{width:min(1180px,92vw);margin:auto}.topbar{background:#0b1220;color:#fff;font-size:13px}.topbar .container{display:flex;justify-content:space-between;gap:16px;padding:9px 0;flex-wrap:wrap}.site-header{background:#fff;position:sticky;top:0;z-index:30;border-bottom:1px solid var(--rhigi-line)}.header-row{display:flex;align-items:center;gap:24px;padding:18px 0}.brand{display:flex;align-items:center;gap:10px;font-weight:900;font-size:28px;letter-spacing:-.04em}.brand img,.custom-logo{max-height:52px;width:auto;display:block}.brand:has(img){gap:0}.custom-logo-link{display:flex;align-items:center}.brand-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,var(--rhigi-orange),#ffb000);display:grid;place-items:center;color:#fff;font-weight:900;box-shadow:0 12px 24px rgba(255,122,0,.25)}.rhigi-header-search{flex:1;display:flex;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:999px;overflow:hidden}.rhigi-header-search input{flex:1;border:0;background:transparent;padding:14px 18px;font-size:15px;outline:0}.rhigi-header-search button{border:0;background:var(--rhigi-orange);color:#fff;padding:0 22px;font-weight:800}.header-actions{display:flex;gap:14px;font-weight:700}.nav{display:flex;gap:22px;padding-bottom:14px;color:#374151;font-weight:700;font-size:14px;overflow:auto}.hero{padding:42px 0 30px}.hero-grid{display:grid;grid-template-columns:1.45fr .75fr;gap:24px}.hero-slider-wrap{position:relative;display:grid;grid-template-columns:1.45fr .75fr;gap:24px;align-items:stretch;overflow:hidden}.rhigi-slides{position:relative;min-height:420px;overflow:hidden;border-radius:32px}.rhigi-slide{position:absolute!important;top:0;right:0;bottom:0;left:0;display:block!important;margin:0!important;opacity:0;visibility:hidden;pointer-events:none;transform:translateX(18px);transition:opacity .55s ease,transform .55s ease,visibility .55s ease}.rhigi-slide.active{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(0);z-index:2}.hero-main{border-radius:32px;height:100%;background:radial-gradient(circle at 82% 22%,#ffbc66 0,#ff7a00 28%,#161b2e 72%);color:#fff;min-height:420px;padding:52px;position:relative;overflow:hidden;box-shadow:var(--rhigi-shadow)}.slide-blue .hero-main{background:radial-gradient(circle at 82% 22%,#93c5fd 0,#2563eb 30%,#101827 74%)}.slide-green .hero-main{background:radial-gradient(circle at 82% 22%,#86efac 0,#16a34a 30%,#101827 74%)}.slide-pink .hero-main{background:radial-gradient(circle at 82% 22%,#f9a8d4 0,#db2777 30%,#101827 74%)}.slide-purple .hero-main{background:radial-gradient(circle at 82% 22%,#c4b5fd 0,#7c3aed 30%,#101827 74%)}.slide-dark .hero-main{background:radial-gradient(circle at 82% 22%,#64748b 0,#334155 30%,#020617 74%)}.hero-side-cards{display:grid;gap:24px}.slider-dots{position:absolute;left:38px;bottom:22px;display:flex;gap:8px;z-index:5}.slider-dot{width:10px;height:10px;border-radius:999px;border:0;background:rgba(255,255,255,.45);cursor:pointer}.slider-dot.active{width:28px;background:#fff}.pill{display:inline-flex;gap:8px;align-items:center;background:rgba(255,255,255,.16);padding:9px 14px;border-radius:999px;font-weight:800;font-size:13px}.hero h1{font-size:64px;line-height:.94;margin:24px 0 16px;letter-spacing:-.06em;max-width:680px}.hero p{font-size:18px;line-height:1.6;max-width:560px;color:rgba(255,255,255,.88)}.btns{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.btn{display:inline-flex;align-items:center;justify-content:center;padding:14px 20px;border-radius:999px;font-weight:900}.btn-primary{background:#fff;color:#111827}.btn-dark{background:#111827;color:#fff}.hero-card{background:#fff;border-radius:28px;padding:24px;box-shadow:var(--rhigi-shadow);display:flex;flex-direction:column;justify-content:space-between;min-height:198px}.hero-card.orange{background:#fff7ed}.hero-card h3{font-size:28px;letter-spacing:-.04em;margin:0}.hero-card p{color:var(--rhigi-muted);line-height:1.5}.section{padding:32px 0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:18px}.section h2{font-size:34px;letter-spacing:-.05em;margin:0}.section-head p{color:var(--rhigi-muted);margin:6px 0 0}.categories{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.cat{background:#fff;border:1px solid var(--rhigi-line);border-radius:22px;padding:22px 14px;text-align:center;font-weight:800;box-shadow:0 8px 20px rgba(15,23,42,.04)}.cat span{display:block;font-size:34px;margin-bottom:10px}.deals{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.rhigi-deal-card{background:#fff;border:1px solid var(--rhigi-line);border-radius:24px;overflow:hidden;box-shadow:0 12px 26px rgba(15,23,42,.05);position:relative}.rhigi-deal-badge{position:absolute;top:14px;left:14px;background:var(--rhigi-orange);color:#fff;font-weight:900;font-size:12px;padding:7px 10px;border-radius:999px}.rhigi-deal-img{height:190px;background:linear-gradient(135deg,#f1f5f9,#fff);display:grid;place-items:center;font-size:58px}.rhigi-deal-body{padding:18px}.rhigi-deal-card h3{font-size:16px;margin:0 0 8px}.rhigi-deal-price{font-weight:950;font-size:20px}.rhigi-deal-old{color:#9ca3af;text-decoration:line-through;font-size:13px;margin-left:6px}.rhigi-stars{color:#f59e0b;font-size:13px;margin:8px 0}.rhigi-add{width:100%;border:0;border-radius:14px;background:#111827;color:#fff;padding:12px;font-weight:900;margin-top:12px}.trust{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.trust-card{background:#fff;border:1px solid var(--rhigi-line);border-radius:24px;padding:24px}.trust-card b{display:block;font-size:18px;margin-bottom:6px}.trust-card p{margin:0;color:var(--rhigi-muted);line-height:1.5}.newsletter{background:#111827;color:#fff;border-radius:32px;padding:38px;display:flex;align-items:center;justify-content:space-between;gap:20px}.newsletter h2{margin:0;font-size:36px}.newsletter p{color:#cbd5e1}.newsletter form{display:flex;background:#fff;border-radius:999px;overflow:hidden;min-width:min(420px,100%)}.newsletter input{border:0;padding:16px 18px;flex:1;outline:0}.newsletter button{border:0;background:var(--rhigi-orange);color:#fff;font-weight:900;padding:0 20px}.site-footer{background:#0b1220;color:#cbd5e1;margin-top:40px;padding:44px 0 0}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:24px}.footer-grid h4{color:#fff;margin-top:0}.footer-grid a{display:block;margin:9px 0;color:#cbd5e1}.footer-bottom{border-top:1px solid rgba(255,255,255,.10);margin-top:30px;padding:18px 0;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:14px}.footer-bottom p{margin:0}.whatsapp{position:fixed;right:20px;bottom:20px;background:#25d366;color:#fff;border-radius:999px;padding:14px 18px;font-weight:900;box-shadow:var(--rhigi-shadow);z-index:40}
@media(max-width:900px){.hero-grid,.hero-slider-wrap,.footer-grid{grid-template-columns:1fr}.rhigi-slides{min-height:430px}.hero-side-cards{grid-template-columns:1fr 1fr}.hero-main{padding:34px;min-height:430px}.hero h1{font-size:44px}.categories{grid-template-columns:repeat(3,1fr)}.deals,.trust{grid-template-columns:repeat(2,1fr)}.header-row{flex-wrap:wrap}.rhigi-header-search{order:3;flex-basis:100%}.newsletter{display:block}.newsletter form{margin-top:18px}}
@media(max-width:560px){.topbar .container,.header-actions{font-size:12px}.rhigi-slides{min-height:440px}.hero-side-cards{grid-template-columns:1fr}.slider-dots{left:28px;bottom:18px}.brand{font-size:24px}.hero{padding-top:24px}.hero h1{font-size:38px}.hero-main{border-radius:24px;padding:28px}.categories{grid-template-columns:repeat(2,1fr)}.deals,.trust{grid-template-columns:1fr}.section h2{font-size:28px}.newsletter{padding:26px;border-radius:24px}.newsletter h2{font-size:28px}.nav{gap:16px}.header-actions{margin-left:auto}}

/* v1.3 slider containment fixes */
.hero-slider .rhigi-slides > .rhigi-slide:not(.active){display:block!important;position:absolute!important;opacity:0!important;visibility:hidden!important;max-height:0;overflow:hidden;}
.hero-slider .rhigi-slides > .rhigi-slide.active{max-height:none;overflow:visible;}
.hero-slider .hero-side-cards{min-width:0;}
@media(max-width:900px){.hero-slider-wrap{overflow:visible}.rhigi-slides{border-radius:24px}}

/* Rhigi v1.4.6: stable product search/shop pages */
.rhigi-product-search-page .hero,
.search-results .hero,
.search-no-results .hero { display:none !important; }
.rhigi-search-page,
.rhigi-shop-page { background:#f8fafc; min-height:60vh; padding:44px 0; position:relative; z-index:1; overflow:visible; }
.rhigi-page-head { background:#fff; border:1px solid var(--rhigi-line); border-radius:28px; padding:30px; margin-bottom:24px; box-shadow:0 12px 28px rgba(15,23,42,.05); }
.rhigi-page-head h1 { font-size:38px; line-height:1.05; letter-spacing:-.04em; margin:14px 0 8px; color:#111827; }
.rhigi-page-head p { color:var(--rhigi-muted); margin:0; }
.orange-pill { background:#fff7ed !important; color:#c2410c !important; border:1px solid #fed7aa; }
.rhigi-search-box { margin-top:20px; display:flex; gap:10px; background:#f3f4f6; border:1px solid #e5e7eb; border-radius:999px; padding:6px; max-width:720px; }
.rhigi-search-box input { flex:1; border:0; background:transparent; padding:12px 16px; outline:0; font-size:15px; min-width:0; }
.rhigi-search-box button { border:0; border-radius:999px; background:var(--rhigi-orange); color:#fff; font-weight:900; padding:0 22px; cursor:pointer; }
.rhigi-shop-tools { display:flex; justify-content:space-between; align-items:center; margin:0 0 18px; color:var(--rhigi-muted); }
.rhigi-product-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; clear:both; }
.rhigi-product-card { list-style:none !important; margin:0 !important; background:#fff; border:1px solid var(--rhigi-line); border-radius:24px; overflow:hidden; box-shadow:0 12px 26px rgba(15,23,42,.05); display:flex; flex-direction:column; min-width:0; }
.rhigi-product-thumb { display:block; background:#f8fafc; aspect-ratio:1/1; overflow:hidden; }
.rhigi-product-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.rhigi-placeholder { height:100%; min-height:190px; display:grid; place-items:center; color:#f97316; font-weight:950; font-size:28px; background:linear-gradient(135deg,#fff7ed,#fff); }
.rhigi-product-info { padding:16px; display:flex; flex-direction:column; gap:10px; flex:1; }
.rhigi-product-info h2 { font-size:16px; line-height:1.3; margin:0; letter-spacing:0; color:#111827; }
.rhigi-price { font-weight:950; color:#111827; margin-top:auto; }
.rhigi-view-product { display:inline-flex !important; justify-content:center; border-radius:14px !important; background:#111827 !important; color:#fff !important; padding:11px 14px !important; font-weight:900 !important; text-align:center; }
.rhigi-no-results { background:#fff; border:1px solid var(--rhigi-line); border-radius:28px; padding:46px 28px; text-align:center; box-shadow:0 12px 28px rgba(15,23,42,.05); }
.rhigi-no-icon { width:70px; height:70px; border-radius:999px; display:grid; place-items:center; margin:0 auto 16px; background:#fff7ed; font-size:30px; }
.rhigi-no-results h2 { margin:0 0 10px; font-size:30px; letter-spacing:-.04em; color:#111827; }
.rhigi-no-results p { color:var(--rhigi-muted); margin:0 auto 22px; max-width:560px; }
.rhigi-result-card { background:#fff; border:1px solid var(--rhigi-line); border-radius:20px; padding:20px; margin:0 0 16px; }
.rhigi-pagination { margin-top:24px; }
@media(max-width:900px){.rhigi-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rhigi-page-head h1{font-size:30px}.rhigi-search-box{border-radius:22px;align-items:stretch}.rhigi-search-box button{padding:12px 18px}}
@media(max-width:560px){.rhigi-product-grid{grid-template-columns:1fr}.rhigi-search-box{display:block;background:#fff;border-radius:20px}.rhigi-search-box input{width:100%;background:#f3f4f6;border-radius:14px;margin-bottom:10px}.rhigi-search-box button{width:100%;min-height:44px}.rhigi-page-head{padding:22px;border-radius:22px}.rhigi-no-results{padding:34px 20px}.rhigi-no-results h2{font-size:24px}}


/* Rhigi v1.5.0 stability: scoped search-page reset; never use .search as a component class */
body.search {
  display:block !important;
  flex:auto !important;
  background:#fff !important;
  border:0 !important;
  border-radius:0 !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
}
body.search .topbar { height:auto !important; min-height:0 !important; border-radius:0 !important; overflow:visible !important; }
body.search .site-header { display:block !important; height:auto !important; min-height:0 !important; border-radius:0 !important; overflow:visible !important; }
body.search .container { height:auto !important; min-height:0 !important; }
.rhigi-header-search{flex:1;display:flex;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:999px;overflow:hidden}
.rhigi-header-search input{flex:1;border:0;background:transparent;padding:14px 18px;font-size:15px;outline:0;min-width:0}
.rhigi-header-search button{border:0;background:var(--rhigi-orange);color:#fff;padding:0 22px;font-weight:800;cursor:pointer}
@media(max-width:900px){.rhigi-header-search{order:3;flex-basis:100%}}


/* Rhigi v1.5.1 Control Center */
.rhigi-announcement{background:#fff7ed;border-bottom:1px solid #fed7aa;color:#9a3412;font-weight:800;font-size:14px}
.rhigi-announcement .container{padding:10px 0;text-align:center}
.rhigi-announcement a{color:inherit}


/* Rhigi v1.5.2 Framework admin/front-end safety helpers */
.rhigi-framework-badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:#ecfdf5;color:#047857;padding:6px 10px;font-weight:800;font-size:12px}


/* Rhigi OS v2.1 Homepage Builder */
.rhigi-builder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.rhigi-builder-card{background:#f8fafc;border:1px solid #eef2f7;border-radius:20px;padding:18px;display:grid;grid-template-columns:1fr auto 90px;gap:12px;align-items:center}.rhigi-builder-card strong{font-size:16px}.rhigi-builder-card p{margin:6px 0 0;color:#64748b}.rhigi-builder-card input[type=number]{width:90px;border:1px solid #d1d5db;border-radius:12px;padding:9px 10px}.rhigi-inline-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:900px}.rhigi-inline-inputs input{max-width:none!important}@media(max-width:900px){.rhigi-builder-grid{grid-template-columns:1fr}.rhigi-builder-card{grid-template-columns:1fr}.rhigi-inline-inputs{grid-template-columns:1fr}}


/* Rhigi OS v2.2 Store Manager product card upgrades */
body.rhigi-store-enhanced .rhigi-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.rhigi-product-card{background:#fff;border:1px solid var(--rhigi-line);border-radius:24px;overflow:hidden;box-shadow:0 12px 28px rgba(15,23,42,.06);position:relative;transition:transform .18s ease,box-shadow .18s ease}
.rhigi-product-card:hover{transform:translateY(-4px);box-shadow:0 20px 42px rgba(15,23,42,.11)}
.rhigi-product-thumb{display:block;background:linear-gradient(135deg,#f8fafc,#fff);min-height:210px;display:grid;place-items:center;position:relative}
.rhigi-product-thumb img{width:100%;height:210px;object-fit:contain;padding:18px}
.rhigi-product-badges{position:absolute;left:12px;top:12px;display:flex;gap:7px;flex-wrap:wrap;z-index:2}
.rhigi-card-badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:950;background:#0f172a;color:#fff;box-shadow:0 8px 18px rgba(15,23,42,.12)}
.rhigi-card-badge.sale{background:#f97316}.rhigi-card-badge.stock{background:#16a34a}.rhigi-card-badge.out{background:#64748b}
.rhigi-product-info{padding:17px}.rhigi-product-info h2{font-size:16px;line-height:1.35;margin:0 0 10px;min-height:42px}.rhigi-price{font-size:18px;font-weight:950;color:#0f172a;margin:8px 0}.rhigi-card-rating{min-height:20px;color:#f59e0b;font-size:13px;margin-bottom:8px}.rhigi-delivery-note{font-size:12px;color:#475569;background:#f8fafc;border:1px solid #e5e7eb;border-radius:999px;display:inline-flex;padding:6px 9px;margin:4px 0 10px}.rhigi-view-product{display:flex!important;justify-content:center;background:#111827!important;color:#fff!important;border-radius:14px!important;padding:12px!important;font-weight:900!important}.rhigi-search-box input::placeholder{color:#94a3b8}
@media(max-width:900px){body.rhigi-store-enhanced .rhigi-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){body.rhigi-store-enhanced .rhigi-product-grid{grid-template-columns:1fr}.rhigi-product-thumb,.rhigi-product-thumb img{min-height:190px;height:190px}}

/* Rhigi OS v2.7 Native Builder */
.rhigi-native-builder-hero .hero-main{min-height:520px;background:radial-gradient(circle at 80% 20%, var(--rhigi-orange) 0, var(--rhigi-orange-dark) 32%, #111827 72%);display:flex;flex-direction:column;justify-content:center}
.rhigi-builder-section{padding:34px 0}.rhigi-builder-eyebrow{display:inline-flex;margin-bottom:10px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;border-radius:999px;padding:7px 11px;font-weight:900;font-size:12px}.rhigi-builder-cta,.rhigi-builder-text{background:#fff;border:1px solid var(--rhigi-line);border-radius:30px;padding:42px;box-shadow:0 16px 36px rgba(15,23,42,.06)}.rhigi-builder-cta{background:linear-gradient(135deg,#111827,#1f2937);color:#fff}.rhigi-builder-cta p{color:#cbd5e1;max-width:700px}.rhigi-builder-cta h2,.rhigi-builder-text h2{font-size:38px;letter-spacing:-.05em;margin:0 0 10px}.rhigi-builder-text p{color:var(--rhigi-muted);max-width:760px}.rhigi-builder-section .rhigi-deal-img img{width:100%;height:100%;object-fit:cover}.rhigi-builder-section .rhigi-add{display:inline-flex;justify-content:center;text-decoration:none;color:#fff}
@media(max-width:560px){.rhigi-native-builder-hero .hero-main{min-height:430px}.rhigi-builder-cta,.rhigi-builder-text{padding:28px;border-radius:24px}.rhigi-builder-cta h2,.rhigi-builder-text h2{font-size:29px}}

/* Rhigi OS v2.8 Promotions Engine */
.rhigi-deal-card{color:inherit;text-decoration:none}.rhigi-deal-product-img img{width:100%;height:100%;object-fit:cover;display:block}.rhigi-price-html{font-weight:950;font-size:20px;color:var(--rhigi-charcoal)}.rhigi-price-html del{color:#9ca3af;font-size:13px;margin-left:6px}.rhigi-price-html ins{text-decoration:none}.rhigi-view-deal{display:block;text-align:center}.rhigi-footer-logo{display:flex;align-items:center;gap:10px;margin-bottom:12px}.rhigi-footer-logo-img{max-height:42px;width:auto;display:block;background:#fff;border-radius:10px;padding:4px}.site-footer .brand-mark{width:34px;height:34px;border-radius:10px;flex:0 0 auto}.rhigi-footer-logo strong{color:#fff;font-size:22px;letter-spacing:-.03em}
