/*
Theme Name: JAGO Kuwait
Theme URI: https://jagokw.com
Author: JAGO
Description: Custom WooCommerce theme for JAGO Kuwait – smart fragrance diffusers. Teal & brass design, light/dark mode, English/Arabic (RTL) ready.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: jago
Tags: e-commerce, rtl-language-support, custom-logo, custom-menu, two-columns
*/
:root{--bg:#EEF0EA;--ink:#12302F;--mute:#55696A;--brass:#8A6618;--card:#E1E7E1;--line:#C8D1CB;--band:#12302F;--bandink:#EEF0EA;--wa:#1E8F55;
--disp:"Fraunces",Georgia,serif;--body:"Figtree",system-ui,sans-serif}
@media (prefers-color-scheme:dark){:root{--bg:#0D2120;--ink:#EDEBE3;--mute:#9DB0AC;--brass:#D2AE5E;--card:#153230;--line:#24474A;--band:#153230;--bandink:#EDEBE3}}
html[lang^=ar]{--disp:"Tajawal",sans-serif;--body:"Tajawal",sans-serif}
html{scroll-behavior:smooth;scroll-padding-top:80px}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.6 var(--body);padding-bottom:env(safe-area-inset-bottom,0px)}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
:focus-visible{outline:2px solid var(--brass);outline-offset:3px}
.skip{position:absolute;left:-999px}.skip:focus{left:8px;top:8px;background:var(--bg);padding:8px;z-index:99}
.wrap{max-width:1120px;margin:0 auto;padding:0 20px}
h1,h2,h3{font-family:var(--disp);font-weight:400;line-height:1.1;margin:0}
/* header */
.site-header{position:sticky;top:0;z-index:20;background:var(--bg);border-bottom:1px solid var(--line)}
.admin-bar .site-header{top:32px}
@media (max-width:782px){.admin-bar .site-header{top:46px}}
.bar{display:flex;align-items:center;gap:16px;height:60px}
.logo{font:600 24px var(--disp);letter-spacing:.14em}
.logo-img{height:36px;width:auto;display:block}
.main-nav{margin-inline-start:auto}
.main-nav ul{display:flex;gap:22px;list-style:none;margin:0;padding:0;font-size:15px}
.main-nav a:hover{color:var(--brass)}
.main-nav .sub-menu{display:none}
.langs{list-style:none;margin:0;padding:0}
.btn,.langs a{display:inline-block;border:1px solid var(--ink);border-radius:999px;padding:9px 18px;font:500 14px var(--body);background:none;color:var(--ink);cursor:pointer;line-height:1.3}
.btn.fill{background:var(--ink);color:var(--bg)}
.btn:hover,.langs a:hover{border-color:var(--brass);color:var(--brass)}
.btn.fill:hover{color:var(--bg)}
.menu-toggle{display:none}
/* hero */
.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:20px;align-items:center;padding:56px 0 40px}
.hero h1{font-size:clamp(40px,6.4vw,76px);letter-spacing:-.02em}
.hero p{max-width:44ch;color:var(--mute);font-size:18px;margin:20px 0 28px}
.cta{display:flex;gap:12px;flex-wrap:wrap}
.hero svg{width:100%;max-width:380px;justify-self:center;overflow:visible}
.wisp{fill:none;stroke:var(--brass);stroke-width:2;stroke-linecap:round;stroke-dasharray:140;stroke-dashoffset:140;animation:rise 5s ease-out forwards,drift 7s ease-in-out 5s infinite alternate}
.wisp:nth-child(2){animation-delay:.6s,5.6s}.wisp:nth-child(3){animation-delay:1.2s,6.2s}
@keyframes rise{to{stroke-dashoffset:0}}
@keyframes drift{to{transform:translateY(-8px)}}
@media (prefers-reduced-motion:reduce){.wisp{animation:none;stroke-dashoffset:0}html{scroll-behavior:auto}}
section.block{padding:48px 0}
.sh{display:flex;justify-content:space-between;align-items:end;margin-bottom:24px;gap:12px}
.sh h2{font-size:clamp(28px,4vw,40px)}
/* categories */
.cats{display:grid;grid-template-columns:1.4fr 1fr;grid-auto-rows:150px;gap:14px}
.cat{background:var(--card);border-radius:22px 6px 22px 6px;padding:20px;display:flex;flex-direction:column;justify-content:flex-end;position:relative;overflow:hidden;transition:background .2s}
.cat:first-child{grid-row:span 2;border-radius:6px 40px 6px 40px}
.cat:hover{background:var(--line)}
.cat h3{font-size:24px}.cat span{color:var(--mute);font-size:14px}
.cat svg{position:absolute;top:14px;inset-inline-end:16px;width:56px;height:70px;color:var(--brass);opacity:.8}
.cat:first-child svg{width:96px;height:120px}
.cat.has-img{background-image:linear-gradient(to top,rgba(8,26,26,.85),rgba(8,26,26,.1)),var(--img);background-size:cover;background-position:center;color:#fff}
.cat.has-img span{color:#e5e5e5}.cat.has-img svg{display:none}
/* products */
.grid,ul.products{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;list-style:none;margin:0;padding:0}
.card{display:flex;flex-direction:column}
.art{background:var(--card);border-radius:14px;aspect-ratio:1;display:grid;place-items:center;margin-bottom:12px;overflow:hidden}
.art img{width:100%;height:100%;object-fit:cover}
.card h3{font:500 16px var(--body)}
.price{color:var(--mute);font-size:15px;margin:2px 0 10px}
.price del{opacity:.6;margin-inline-end:6px}
.price ins{text-decoration:none;color:var(--brass);font-weight:600}
.card .add{margin-top:auto;align-self:flex-start;padding:7px 14px}
.add.loading{opacity:.5}.add.added{display:none}
.added_to_cart{font-size:14px;color:var(--brass);font-weight:600;margin-top:auto}
/* band + stores */
.band{background:var(--band);color:var(--bandink);padding:48px 0}
.band .wrap{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.band h2{font-size:clamp(26px,4vw,38px)}
.band p{margin:8px 0 0;opacity:.8;max-width:46ch}
.band .btn{border-color:var(--bandink);color:var(--bandink)}
.stores{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.store{border-top:2px solid var(--brass);padding-top:14px}
.store h3{font-size:24px;margin-bottom:6px}.store p{margin:0 0 12px;color:var(--mute)}
.store a{color:var(--brass);font-weight:600;border-bottom:1px solid currentColor}
/* footer */
.site-footer{border-top:1px solid var(--line);padding:32px 0 96px;color:var(--mute);font-size:14px}
.site-footer .wrap{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.site-footer a{color:var(--ink);margin-inline-end:16px}
.wa{position:fixed;inset-inline-end:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));background:var(--wa);color:#fff;border-radius:999px;padding:13px 20px;font-weight:600;box-shadow:0 6px 20px rgba(0,0,0,.25);z-index:15}
/* inner pages & WooCommerce */
.page-wrap{padding:40px 0 64px}
.page-wrap>.wrap>h1,.entry-title{font-size:clamp(30px,5vw,48px);margin-bottom:24px}
.entry-content{max-width:820px}
.page-wrap .wrap>.entry-content.wide,.woocommerce-page .entry-content{max-width:none}
ul.products{grid-template-columns:repeat(4,1fr)}
ul.products li.product{display:flex;flex-direction:column;margin:0!important;width:auto!important;float:none!important}
ul.products li.product img{border-radius:14px;aspect-ratio:1;object-fit:cover;width:100%;margin-bottom:12px}
ul.products li.product .woocommerce-loop-product__title{font:500 16px var(--body);padding:0}
ul.products li.product .price{color:var(--mute)}
ul.products li.product .button{margin-top:auto;align-self:flex-start}
body .woocommerce a.button,body .woocommerce button.button,body .woocommerce input.button,body .woocommerce #respond input#submit,body .woocommerce a.button.alt,body .woocommerce button.button.alt,body .woocommerce #place_order{background:var(--ink);color:var(--bg);border-radius:999px;padding:11px 22px;font:500 14px var(--body);border:1px solid var(--ink)}
body .woocommerce a.button:hover,body .woocommerce button.button:hover,body .woocommerce #place_order:hover{background:var(--brass);border-color:var(--brass);color:#fff}
body .woocommerce span.onsale{background:var(--brass);color:#fff;border-radius:999px;min-height:0;min-width:0;line-height:1;padding:7px 12px;top:10px;left:10px;right:auto}
.woocommerce div.product .product_title{font-size:clamp(28px,4vw,42px)}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--brass);font-size:22px}
.woocommerce input.input-text,.woocommerce select,.woocommerce textarea,.woocommerce .quantity .qty{background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.woocommerce table.shop_table{border-color:var(--line);border-radius:12px}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{border-color:var(--line)}
.woocommerce-message,.woocommerce-info,.woocommerce-error{background:var(--card);color:var(--ink);border-top-color:var(--brass)}
.woocommerce-message::before,.woocommerce-info::before{color:var(--brass)}
.woocommerce-breadcrumb{color:var(--mute);font-size:14px;margin-bottom:16px}
.woocommerce-ordering select{min-width:180px}
.post-card{margin-bottom:28px}
/* mobile */
@media (max-width:900px){ul.products{grid-template-columns:repeat(2,1fr)}}
@media (max-width:760px){
.hero{grid-template-columns:1fr;padding-top:32px}.hero svg{max-width:240px;order:-1}
.menu-toggle{display:inline-block;margin-inline-start:auto}
.bar .cart{margin-inline-start:0}
.main-nav{display:none;position:absolute;top:60px;inset-inline:0;background:var(--bg);border-bottom:1px solid var(--line);padding:12px 20px 20px;margin:0}
.main-nav.open{display:block}
.main-nav ul{flex-direction:column;gap:14px;font-size:17px}
.cats{grid-template-columns:1fr 1fr}.cat:first-child{grid-column:span 2;grid-row:auto}
.grid{grid-template-columns:repeat(2,1fr)}.stores{grid-template-columns:1fr}}
