/*
Theme Name: Hajr Smart Used Furniture V2
Theme URI: https://hajrsmart.net/
Author: Zendip
Description: Bilingual EN/AR responsive used furniture marketplace with editable catalog and WhatsApp enquiries.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: hajr-used
*/
:root{--navy:#07131d;--gold:#edb941;--ink:#13202b;--green:#04b94e;--sub:#63717a}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:#fff;line-height:1.55}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}button,input{font:inherit}.container{width:min(1200px,calc(100% - 36px));margin:auto}.topbar{background:#07121b;color:white;font-size:12px;padding:7px 0}.topbar .container,.header-inner,.nav-links,.header-actions,.lang-switch,.contact-lines{display:flex;gap:20px;align-items:center;justify-content:space-between}.topbar .lang-switch{gap:10px}.lang-switch a{opacity:.7}.lang-switch a.active{opacity:1;color:var(--gold);font-weight:800}.header{background:#fff;position:relative;z-index:20;box-shadow:0 2px 12px #10192010}.header-inner{min-height:86px;gap:20px}.brand{display:flex;align-items:center;gap:10px;line-height:1.1;min-width:195px}.brand-icon{height:50px;width:52px;border:3px solid var(--gold);border-radius:12px;display:grid;place-items:center;font-size:26px;color:var(--navy)}.brand-name{font-size:21px;font-weight:900;letter-spacing:.2px}.brand-name em{font-style:normal;color:#dba72d}.brand-tag{font-size:10px;letter-spacing:2px;font-weight:800;color:#333}.nav-links{gap:22px;list-style:none;margin:0;padding:0;font-weight:700;font-size:13px}.nav-links a:hover,.nav-links .current-menu-item>a{color:#d59a13}.header-actions{justify-content:flex-end;gap:16px}.phone-stack{font-weight:900;line-height:1.35;font-size:13px;white-space:nowrap}.phone-stack a{display:block}.whats-icon{background:#02b948;color:white;border-radius:8px;padding:12px 14px;font-weight:900}.mobile-toggle{display:none;background:var(--gold);border:0;padding:8px 12px;border-radius:8px;font-size:20px}.hero{position:relative;background:#111;color:white;min-height:470px;display:flex;align-items:center;overflow:hidden}.hero::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#06111ef2 0%,#06111eb8 35%,#07131d3b 75%),var(--hero-img);background-size:cover;background-position:center}.hero-content{position:relative;padding:75px 0 70px}.eyebrow{font-weight:900;border:1px solid var(--gold);color:var(--gold);padding:5px 12px;border-radius:5px;display:inline-flex;font-size:13px}.hero h1{max-width:680px;font-size:clamp(38px,5.2vw,70px);line-height:1.03;letter-spacing:-2px;margin:18px 0}.gold{color:var(--gold)}.hero p{max-width:510px;font-size:17px}.hero-benefits{display:flex;gap:30px;margin:22px 0 29px}.hero-benefits span{font-size:13px;text-align:center}.hero-benefits b{display:block;color:var(--gold);font-size:24px}.buttons{display:flex;flex-wrap:wrap;gap:12px}.btn{background:var(--gold);display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 23px;border-radius:7px;color:#101820;font-size:14px;font-weight:900;border:0;cursor:pointer}.btn-green{background:var(--green);color:white}.btn-outline{border:1px solid #ccc;background:white}.section{padding:42px 0}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.category-card{border-radius:9px;overflow:hidden;position:relative;min-height:225px;background:#121b25}.category-card img{width:100%;height:225px;object-fit:cover;display:block;transition:transform .3s}.category-card:hover img{transform:scale(1.05)}.category-card::after{content:'';position:absolute;inset:30% 0 0;background:linear-gradient(transparent,#03080de8)}.category-info{position:absolute;z-index:2;inset:auto 18px 16px;color:white}.category-info h3{margin:0;font-size:23px}.category-info p{margin:2px 0;font-size:12px}.round-arr{position:absolute;right:0;bottom:3px;background:var(--gold);width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:#111}.trust-strip{background:#f7f8fa;border-radius:10px;display:grid;grid-template-columns:repeat(5,1fr);padding:22px;gap:12px}.trust-item{display:flex;gap:10px;align-items:center}.trust-item i{font-style:normal;background:white;border:1px solid #eee;border-radius:50%;width:42px;height:42px;display:grid;place-items:center;font-size:20px}.trust-item b{display:block;font-size:13px}.trust-item small{display:block;font-size:11px;color:#667}.section-title{font-size:29px;line-height:1.2;margin:0 0 24px;position:relative}.section-title::after{content:'';display:block;width:52px;height:4px;background:var(--gold);margin-top:10px}.section-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.section-header>a{color:#bd870c;font-weight:700;font-size:13px}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.product-card{border:1px solid #ebebeb;background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 7px 22px #0b16230b}.product-card img{width:100%;height:195px;object-fit:cover;display:block}.product-detail{padding:13px 14px 16px}.product-detail h3{font-size:17px;margin:0}.product-detail p{color:var(--sub);font-size:12px;margin:3px 0 12px}.product-detail .btn{width:100%;font-size:12px;padding:10px}.dark-band{background:var(--navy);color:white}.why-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:42px;align-items:center}.why-grid p{color:#e0e4e8}.mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.mini-card{position:relative;height:220px;overflow:hidden;border-radius:8px;background:#1a222b}.mini-card img{height:100%;width:100%;object-fit:cover}.mini-card::after{content:'';position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#030609ee)}.mini-card b{position:absolute;bottom:15px;left:9px;right:9px;font-size:13px;text-align:center;z-index:1}.contact-grid{display:grid;grid-template-columns:1fr 1.3fr .8fr;gap:25px}.contact-grid h3{margin-top:0}.contact-grid a.phone-big{display:block;font-weight:900;font-size:20px}.contact-grid p{font-size:13px}.map-box{min-height:220px;border:1px solid #e4e6e8;border-radius:10px;background:linear-gradient(135deg,#f7f7f7,#e9eff1);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px}.process{background:var(--navy);color:white;border-radius:10px;padding:18px}.process li{margin:12px 0}.footer{background:#060e15;color:#cbd1d4;padding:28px 0;font-size:13px}.footer .container{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.footer strong{color:white}.float-actions{position:fixed;bottom:18px;right:18px;display:flex;flex-direction:column;gap:8px;z-index:30}.float-actions a{width:48px;height:48px;display:grid;place-items:center;background:#06b94d;border-radius:50%;color:white;box-shadow:0 3px 15px #0003;font-size:19px}.float-actions a:last-child{background:var(--gold);color:#111}.page-content{min-height:400px;padding:50px 0}.page-content h1{font-size:40px}.detail-layout{display:grid;grid-template-columns:1fr 1fr;gap:40px}.detail-layout>img{border-radius:12px;width:100%;max-height:490px;object-fit:cover}html[dir=rtl] body{font-family:Tahoma,Arial,sans-serif}html[dir=rtl] .hero::before{background:linear-gradient(270deg,#06111ef2 0%,#06111eb8 35%,#07131d3b 75%),var(--hero-img);background-size:cover;background-position:center}html[dir=rtl] .round-arr{right:auto;left:0}html[dir=rtl] .mini-card b{text-align:center}html[dir=rtl] .float-actions{right:auto;left:18px}@media(max-width:1050px){.header-inner{flex-wrap:wrap;padding:13px 0}.mobile-toggle{display:block;margin-inline-start:auto}.nav-links{display:none;order:5;width:100%;flex-direction:column;align-items:stretch;gap:0;padding:8px 0}.nav-links.open{display:flex}.nav-links li a{display:block;padding:11px;border-top:1px solid #eee}.header-actions{margin-inline-start:auto}.trust-strip{grid-template-columns:repeat(3,1fr)}.contact-grid{grid-template-columns:1fr 1fr}.contact-grid .process{grid-column:1/-1}}@media(max-width:720px){.container{width:min(100% - 26px,1200px)}.topbar .container{gap:8px;font-size:10px}.header-inner{min-height:72px}.brand{min-width:0}.brand-name{font-size:17px}.brand-icon{width:40px;height:40px}.header-actions{width:100%;justify-content:space-between}.hero{min-height:480px}.hero-content{padding:50px 0}.hero h1{letter-spacing:-1px}.hero-benefits{gap:14px;flex-wrap:wrap}.category-grid,.product-grid,.why-grid,.contact-grid,.detail-layout{grid-template-columns:1fr}.trust-strip{grid-template-columns:repeat(2,1fr);padding:15px}.category-card,.category-card img{height:205px}.product-grid{grid-template-columns:repeat(2,1fr);gap:10px}.product-card img{height:142px}.product-detail{padding:10px}.product-detail h3{font-size:14px}.mini-card{height:145px}.mini-card b{font-size:11px}.section{padding:30px 0}.section-title{font-size:25px}.contact-grid .process{grid-column:auto}}@media(max-width:380px){.product-grid{grid-template-columns:1fr}.topbar .location{display:none}}

/* V2.1: logo, polished footer, WhatsApp-only floating action and mobile refinements */
.brand-mark{width:53px;height:53px;flex:none;border-radius:13px;background:linear-gradient(135deg,#fff8e8,#eebd52);display:grid;place-items:center;color:#13212b;box-shadow:inset 0 0 0 1px #b9892f55}
.brand-mark svg{width:43px;height:43px;display:block}.brand>span:last-child{display:flex;flex-direction:column;gap:5px}.brand-name{display:block;line-height:1.08}.brand-tag{display:block;line-height:1.2}
.footer{padding:62px 0 0;background:#07131d;color:#b8c3cc}.footer-grid{display:grid!important;grid-template-columns:1.5fr .9fr .95fr 1.1fr;gap:40px;align-items:start}.footer .brand-name{font-size:23px;color:white}.footer .brand-tag{color:#edb941}.footer-about p{max-width:340px;margin:22px 0 0;font-size:14px;line-height:1.8}.footer-col{display:flex;flex-direction:column;gap:12px}.footer-col h3{font-size:16px;color:white;margin:5px 0 8px}.footer-col a,.footer-col span,.footer-col p{color:#b8c3cc;font-size:14px;line-height:1.7;margin:0}.footer-col a:hover,.footer-bottom a:hover{color:#edb941}.footer-col .footer-whatsapp{display:inline-flex;align-self:flex-start;padding:10px 17px;border:1px solid #2ab96a;border-radius:8px;color:#fff;margin-top:8px}.footer-bottom{margin-top:48px!important;border-top:1px solid #ffffff22;padding:19px 0;display:flex!important;justify-content:space-between;gap:14px;font-size:12px}.footer-bottom a{color:#edb941;font-weight:800}
.float-actions{display:none!important}.floating-whatsapp{width:57px;height:57px;position:fixed;right:20px;bottom:22px;z-index:100;display:grid;place-items:center;background:#14ba59;color:#fff;border-radius:50%;box-shadow:0 6px 25px #03240f55;transition:transform .2s,box-shadow .2s}.floating-whatsapp:hover,.floating-whatsapp:focus-visible{transform:translateY(-3px);box-shadow:0 8px 28px #03240f88}.floating-whatsapp svg{width:33px;height:33px}
html[dir=rtl] .floating-whatsapp{right:auto;left:20px}
@media(max-width:1100px){.header-inner{flex-wrap:wrap;padding:12px 0}.mobile-toggle{display:block;margin-inline-start:auto}.header nav{order:6;width:100%}.header nav .nav-links{display:none;width:100%;flex-direction:column;gap:0;align-items:stretch}.header nav .nav-links.open{display:flex}.nav-links li a{display:block;padding:12px;border-top:1px solid #edf0f2}.header-actions{margin-inline-start:auto}}
@media(max-width:850px){.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.footer{padding-top:44px}.footer-bottom{margin-top:36px!important}}
@media(max-width:600px){body{overflow-x:hidden}.container{width:calc(100% - 30px)}.topbar .container{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 15px}.topbar .location{text-align:center}.header-inner{display:flex;gap:10px}.brand{min-width:0;gap:8px;flex:1}.brand-mark{height:43px;width:43px;border-radius:10px}.brand-mark svg{width:35px;height:35px}.brand-name{font-size:17px}.brand-tag{font-size:8px;letter-spacing:1.3px}.mobile-toggle{margin-inline-start:0;min-width:42px;min-height:42px}.header-actions{width:100%;justify-content:center;margin:0;padding:5px 0}.phone-stack{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 15px;font-size:13px}.hero h1{overflow-wrap:anywhere}.hero-benefits{gap:12px}.hero-benefits span{flex:1 1 72px}.buttons .btn{min-height:45px}.footer-grid{grid-template-columns:1fr 1fr;gap:28px 17px}.footer-about{grid-column:1/-1}.footer-col:last-child{grid-column:1/-1}.footer-col h3{font-size:15px}.footer-bottom{display:flex!important;flex-direction:column;text-align:center;align-items:center;padding:19px 0 28px}.floating-whatsapp{right:14px;bottom:16px;width:53px;height:53px}html[dir=rtl] .floating-whatsapp{left:14px;right:auto}}
@media(max-width:370px){.footer-grid{grid-template-columns:1fr}.footer-about,.footer-col:last-child{grid-column:auto}.topbar .location{display:block}.brand-name{font-size:15px}.brand-tag{font-size:7px}}

/* V2.2: approved first luxury identity, mobile-safe brand block */
.brand-mark-premium{background:#fff;box-shadow:none;border-radius:8px;width:73px;height:66px;padding:2px;overflow:hidden}
.brand-mark-premium img{width:100%;height:100%;object-fit:contain;display:block}
.header .brand{display:flex;align-items:center;gap:9px;min-width:0}
.header .brand>span:last-child{min-width:0}
.header .brand-name{white-space:nowrap;letter-spacing:.25px}
.footer-brand .brand-mark-premium{width:76px;height:70px;background:#fff;border-radius:9px}
.phone-stack a,.footer-col a[dir="ltr"],a.phone-big{white-space:nowrap;direction:ltr;unicode-bidi:isolate}
@media(max-width:800px){.brand-mark-premium{width:59px;height:53px}.header .header-inner{gap:9px}.header .phone-stack{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}}
@media(max-width:480px){.brand-mark-premium{width:49px;height:47px}.header .brand-name{font-size:16px}.header .brand-tag{letter-spacing:.65px;font-size:8px}.phone-stack a{font-size:13px}.footer-brand .brand-mark-premium{width:62px;height:57px}}

/* Final V3: single unified approved horizontal logo, uncluttered mobile-first header */
.header .brand-horizontal,.footer .brand-horizontal{display:flex;flex:0 0 auto;align-items:center;min-width:0;max-width:100%;padding:0;gap:0}
.header .brand-horizontal img{display:block;object-fit:contain;object-position:left center;width:250px;height:auto;max-height:76px;max-width:100%}
.footer .brand-horizontal{width:100%;max-width:295px;background:#fff;padding:9px 13px;border-radius:12px}
.footer .brand-horizontal img{width:100%;height:auto;display:block;object-fit:contain}
.header .header-inner{gap:16px;align-items:center}
.header nav{min-width:0}.header .nav-links{gap:11px;white-space:nowrap}
.header .nav-links a{font-size:12px}.header .phone-stack{min-width:max-content}
.header .phone-stack a{font-size:12px}
.mobile-toggle{cursor:pointer}
@media(max-width:1200px){.header .brand-horizontal img{width:218px}.header .header-inner{gap:10px}}
@media(max-width:1100px){.header .header-inner{display:flex;flex-wrap:wrap;justify-content:space-between}.header .brand-horizontal img{width:258px;max-height:74px}.header nav{order:10;flex:0 0 100%;width:100%}.header nav .nav-links{white-space:normal}.header-actions{margin-inline-start:auto}}
@media(max-width:700px){.header .header-inner{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px 10px;align-items:center;padding:10px 0}.header .brand-horizontal{grid-column:1;grid-row:1}.header .brand-horizontal img{width:min(100%,255px);max-height:75px}.header .mobile-toggle{grid-column:2;grid-row:1;margin:0;display:grid;place-items:center}.header .header-actions{grid-column:1/-1;grid-row:2;width:100%;margin:0;padding:2px 0 3px;justify-content:center}.header nav{grid-column:1/-1;grid-row:3;width:100%;order:unset}.header .phone-stack{display:flex;gap:8px 18px;justify-content:center;flex-wrap:wrap;min-width:0}.header .phone-stack a{font-size:13px}.footer .brand-horizontal{max-width:285px}.footer-grid{min-width:0}}
@media(max-width:430px){.header .brand-horizontal img{width:min(100%,225px);max-height:68px}.header .phone-stack a{font-size:12px}.footer .brand-horizontal{max-width:245px}.header .header-inner{grid-template-columns:minmax(0,1fr) 42px}.topbar .container{justify-content:space-between;flex-wrap:wrap;gap:4px 10px}.topbar .location{max-width:100%;overflow-wrap:anywhere}}
@media(max-width:360px){.header .brand-horizontal img{width:min(100%,195px)}.header .phone-stack{gap:5px 10px}}
html[dir=rtl] .header .brand-horizontal img{object-position:right center}
html[dir=rtl] .footer .brand-horizontal img{object-position:right center}
