/*
Theme Name: Aljawhara Catalog
Description: Arabic wholesale catalog for Aljawhara Factory with WhatsApp quote requests.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: aljawhara-catalog
*/
:root{--navy:#132232;--gold:#e5b76b;--ink:#172737;--paper:#fbf8f0;--muted:#52606a;--line:#e4ded2}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Tahoma,Arial,sans-serif;line-height:1.65}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9b6527;outline-offset:3px}
.wrap{max-width:1200px;width:calc(100% - 72px);margin:auto}
.top{background:var(--navy);color:white}
.head{min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:flex;align-items:center;gap:12px;font-weight:bold;font-size:19px;line-height:1.3}
.brand small{display:block;font-size:11px;font-weight:normal;margin-top:4px;color:#e0d6c2}
.mark{display:grid;place-items:center;width:42px;height:42px;border:1px solid #9d8052;border-radius:14px;color:var(--gold);font-size:22px}
nav{display:flex;gap:28px;font-size:14px}
.basket{background:transparent;color:white;border:1px solid #68737d;border-radius:10px;padding:8px 12px;font-size:14px;white-space:nowrap}
.basket span{display:inline-grid;place-items:center;background:var(--gold);color:var(--navy);min-width:21px;border-radius:8px;margin-inline-start:4px}
.hero{display:grid;grid-template-columns:1fr 1.05fr;gap:48px;align-items:center;padding-block:48px 52px}
.hero-media{min-height:395px;height:100%;border-radius:22px;background:#c6ad8b url(hero.webp) center/cover no-repeat}
.eyebrow{display:flex;gap:9px;align-items:center;color:#79501e;font-weight:bold;font-size:13px;margin:0}
.eyebrow span{width:21px;height:2px;background:#b38341}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(39px,5vw,67px);line-height:1.22;letter-spacing:-.045em;margin-block:15px 20px}
h1 em{color:#805724;font-style:normal}
.intro>p:not(.eyebrow){max-width:440px;color:var(--muted);margin-bottom:26px}
.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:18px;padding:11px 17px;border-radius:9px;font-weight:bold;border:1px solid var(--navy);color:white;background:var(--navy)}
.secondary{color:var(--navy);background:white}
.catalog{background:#fffefa;border-top:1px solid var(--line);padding:38px 0 58px}
.section-title h2{font-size:34px;margin:4px 0 15px}
.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}
.filters button{border:1px solid var(--line);background:white;padding:6px 14px;border-radius:100px;color:var(--ink)}
.filters button[aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:white}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
article{border:1px solid var(--line);border-radius:15px;overflow:hidden;background:white;display:flex;flex-direction:column}
.product-image{height:147px;background-color:#ddd1bf;background-size:cover;background-position:center;background-repeat:no-repeat}
.garment{background-image:url(garment.webp)}.shoe{background-image:url(shoe.webp)}.elastic{background-image:url(elastic.webp)}.chair{background-image:url(chair.webp)}
.card{padding:15px;display:flex;flex-direction:column;flex:1}
.card h3{margin-bottom:4px}
.card p{color:var(--muted);font-size:14px;margin-bottom:14px;flex:1}
.card button{display:flex;justify-content:space-between;gap:5px;border-radius:7px;padding:8px 10px;background:#f7f2e7;color:var(--ink);border:0;text-align:start}
footer{background:var(--navy);color:white;padding:29px 0}
.foot{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
.foot h2{font-size:21px;margin-bottom:4px}.foot p{margin:0;color:#dfd9cc}
.phones{display:flex;gap:12px;flex-wrap:wrap}.phones a{padding:7px 10px;border:1px solid #7f7562;border-radius:8px;color:#ffe0a6}
dialog{border:1px solid var(--line);color:var(--ink);border-radius:16px;width:min(520px,calc(100% - 24px));max-height:calc(100% - 24px);padding:22px}
dialog::backdrop{background:#101b27a8}
.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:13px}
.dialog-head h2{margin:0;font-size:23px}
.close{border:0;background:#eee8dd;color:var(--ink);border-radius:8px;width:38px;height:38px;font-size:24px}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:13px}
label{display:block;font-size:14px;font-weight:bold;min-width:0}
label small,.send-note{color:var(--muted);font-weight:normal}
input,select,textarea{display:block;width:100%;margin:4px 0 8px;padding:8px;border-radius:7px;border:1px solid #a8a39a;background:white;color:var(--ink)}
#items{padding:0;margin:0 0 12px;list-style:none}
#items li{border-bottom:1px solid var(--line);padding:8px 0;display:flex;align-items:center;justify-content:space-between;gap:8px;overflow-wrap:anywhere}
#items button{background:white;border:1px solid var(--line);border-radius:7px;padding:5px 8px;color:#872e20}
.send-note{display:block;margin-top:5px}
.sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:850px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{gap:24px}.hero-media{min-height:320px}}
@media(max-width:600px){.wrap{width:calc(100% - 30px)}.head{min-height:65px}.brand{font-size:16px;gap:7px}.brand small{font-size:10px}.mark{width:32px;height:32px}.head nav{display:none}.basket{font-size:12px;padding:7px}.hero{grid-template-columns:1fr;padding-block:28px 30px}.hero-media{min-height:210px}.catalog{padding:25px 0 35px}.grid{gap:9px}.card{padding:10px}.product-image{height:112px}.card h3{font-size:16px}.card button{font-size:12px}.primary,.secondary{margin-bottom:5px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Storefront and catalog pages */
:root{--navy:#101d2e;--gold:#edc686;--ink:#152338;--paper:#f4f5f7;--muted:#536275;--line:#dfe5eb}
body{font-family:system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif;background:var(--paper);color:var(--ink)}
.wrap{max-width:1260px}
.top{position:sticky;top:0;z-index:10;background:#101d2e;color:#fff;border-bottom:1px solid #ffffff24}
.admin-bar .top{top:32px}
.head{min-height:74px}.brand{font-size:20px}.brand small{color:#d5dde7}.mark{background:#203147;border:1px solid #526077;border-radius:11px;color:#f4cf93}.head nav a{padding:8px 10px;border-radius:8px}.head nav a:hover{background:#ffffff18}
.basket{background:var(--gold);color:#152338;border-color:transparent;font-weight:750;border-radius:10px}.basket span{background:#142236;color:white}
.hero{margin-block:26px 36px;padding:18px;gap:32px;grid-template-columns:1fr 1fr;align-items:stretch;background:#101d2e;border-radius:24px;color:white;box-shadow:0 14px 28px #101d2e18}
.intro{padding:clamp(15px,4vw,60px);padding-inline-end:12px;align-self:center}.hero .eyebrow{color:#f6ce91}.intro>p:not(.eyebrow){color:#dae1ec}.hero h1{font-size:clamp(33px,4.5vw,66px);letter-spacing:normal;line-height:1.14}.hero h1 em{color:#f7cf93}.hero-media{min-height:375px;border-radius:15px;background-position:center}.hero .primary{background:var(--gold);border-color:var(--gold);color:#142236}
.catalog{background:var(--paper);border:0;padding:5px 0 64px;scroll-margin-top:95px}.section-title h2{font-size:clamp(28px,4vw,42px);margin-block:2px 12px}.eyebrow{color:#765223}.filters{gap:9px;margin-bottom:24px}.filters button{padding:8px 16px;border-radius:9px;font-weight:650}.filters button:hover{border-color:#79889c}
.grid{gap:18px}.grid article{background:white;border:1px solid var(--line);border-radius:16px;box-shadow:0 7px 17px #16263b0a}.product-image{height:auto;aspect-ratio:1.65}.card{padding:16px}.card h3{font-size:21px;line-height:1.3}.card p{margin-block:5px 14px}.card button,.card a{min-height:42px;border-radius:8px;font-weight:700}.card button{background:#eaf0f7;padding:9px 12px}.card a{display:flex!important;align-items:center;justify-content:center;padding:7px 10px;border:1px solid #dbe3ee;text-decoration:none!important;color:#173356}.card button:hover,.card a:hover{background:#dce7f4}
footer{border-top:1px solid #24354d;padding:34px 0}.phones a:hover{background:#ffffff16}
dialog{border-color:transparent;border-radius:20px;padding:clamp(15px,3vw,26px);box-shadow:0 25px 70px #101d2e55}dialog::backdrop{background:#101d2ebd}.dialog-head{position:sticky;top:0;z-index:1;background:white;padding-bottom:8px;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:clamp(19px,4vw,25px)}.close{background:#eaf0f7}.fields{gap:12px}input,select,textarea{min-height:43px;border-color:#aab6c6}.primary,.secondary{min-height:44px;border-radius:10px}
body:not(.home)>header{background:var(--navy);padding:18px max(16px,calc((100vw - 1090px)/2));color:white;font-weight:750}body:not(.home)>main>article{max-width:1160px;margin:24px auto;padding:clamp(14px,3vw,34px);border:1px solid var(--line);border-radius:18px}body:not(.home)>main>article>h1{font-size:clamp(29px,4vw,45px);line-height:1.2;margin:8px 16px;letter-spacing:normal}
@media(max-width:900px){.hero{gap:16px}.hero-media{min-height:300px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:782px){.admin-bar .top{top:46px}}
@media(max-width:600px){.admin-bar .top{top:0}.head{min-height:64px;gap:8px}.brand{font-size:16px}.brand small{font-size:9px}.basket{font-size:12px}.wrap{width:calc(100% - 24px)}.hero{grid-template-columns:1fr;gap:14px;margin-block:12px 24px;padding:12px;border-radius:17px}.intro{padding:12px}.hero-media{min-height:205px}.catalog{padding-bottom:34px;scroll-margin-top:75px}.filters{gap:6px;margin-bottom:14px}.filters button{padding:6px 10px;font-size:12px}.grid{gap:8px}.grid article{border-radius:11px}.card{padding:9px}.card h3{font-size:17px}.card p{font-size:12px}.card button,.card a{font-size:12px!important;padding:7px 5px}.dialog-head{top:0}.fields{gap:7px}body:not(.home)>main>article{margin:10px}}
