/*
Theme Name: SBS Souq
Theme URI: https://example.com/
Author: SBS Souq
Description: Optimized SBS Souq storefront theme, preserving the latest HTML preview experience. WooCommerce-ready; demo cart remains a preview until checkout is connected.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: sbs-souq
*/
:root{--brown:#3B2418;--cream:#F2E8DA;--blue:#8EC5FF;--ink:#2b211b;--muted:#78685c;--line:#e5d8c9;--white:#fff;--shadow:0 18px 48px rgba(59,36,24,.12)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fffdf9;color:var(--ink);font-family:'DM Sans',Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}.wrap{width:min(1200px,91%);margin-inline:auto}.announcement{background:var(--brown);color:var(--cream);text-align:center;padding:9px 12px;font-size:10px;font-weight:800;letter-spacing:2px}.announcement span{color:var(--blue);padding:0 10px}.header{height:94px;padding:12px max(4.5%,calc((100% - 1200px)/2));display:flex;align-items:center;gap:38px;background:var(--cream);position:relative;z-index:10;border-bottom:1px solid rgba(59,36,24,.1)}.brand{display:flex;align-items:center;gap:10px;width:220px;min-width:220px;font-weight:800;letter-spacing:1.2px;color:var(--brown);font-size:14px}.brand img{width:100%;height:auto;max-height:66px;object-fit:contain}.search{height:48px;display:flex;flex:1;max-width:620px;background:white;border:1px solid #dfd0c0;border-radius:999px;overflow:hidden;transition:.2s}.search:focus-within{border-color:var(--brown);box-shadow:0 0 0 3px rgba(59,36,24,.08)}.search input{border:0;outline:0;padding:0 20px;min-width:0;flex:1;background:transparent;color:var(--brown)}.search button{width:54px;border:0;background:var(--brown);color:white;font-size:25px}.header-actions{margin-left:auto;display:flex;align-items:center;gap:22px;font-size:13px;font-weight:700}.header-actions>a:hover{color:#6e4934}.cart-open{border:1px solid var(--brown);border-radius:30px;background:transparent;color:var(--brown);padding:10px 16px;font-weight:700}.cart-open b{background:var(--blue);border-radius:50%;padding:3px 7px;margin-left:4px}.menu-toggle{width:44px;height:44px;border:0;border-radius:50%;background:var(--brown);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.menu-toggle i{height:2px;width:18px;background:#fff;display:block}.hero{min-height:480px;margin-top:30px;background:var(--cream);border-radius:25px;display:grid;grid-template-columns:1fr 1fr;overflow:hidden;position:relative}.hero-copy{padding:76px 0 48px 8%;position:relative;z-index:2}.eyebrow{font-size:10px;letter-spacing:2.4px;font-weight:800;color:#8a6047}.hero h1{font-size:clamp(42px,5vw,68px);line-height:1.04;letter-spacing:-2.5px;margin:18px 0;color:var(--brown)}h1 em,h2 em{font-family:'Playfair Display',serif;color:#815d48;font-weight:600}.hero-copy>p{max-width:430px;line-height:1.8;color:var(--muted);font-size:15px;margin:0 0 26px}.btn{display:inline-flex;align-items:center;gap:24px;background:var(--brown);color:white;border-radius:999px;padding:15px 22px;font-size:12px;font-weight:800;box-shadow:0 9px 20px rgba(59,36,24,.15);transition:.25s}.btn:hover{background:#5b3928;transform:translateY(-2px)}.hero-note{margin-top:44px;color:#8a7566;font-size:12px}.hero-note b{color:var(--brown)}.hero-art{position:relative;min-height:430px}.orbit{position:absolute;width:360px;height:360px;border:1px solid rgba(59,36,24,.18);border-radius:50%;left:18%;top:40px}.hero-tile{position:absolute;width:170px;height:170px;border-radius:22px;overflow:hidden;box-shadow:var(--shadow);border:6px solid rgba(255,255,255,.75)}.hero-tile img{width:100%;height:100%;object-fit:cover}.hero-tile small{position:absolute;bottom:0;left:0;right:0;text-align:center;padding:9px;background:linear-gradient(transparent,rgba(30,20,15,.8));color:white;font-size:9px;letter-spacing:2px;font-weight:800}.tile-one{top:36px;left:26%}.tile-two{top:205px;left:5%}.tile-three{top:210px;right:5%}.tile-four{top:34px;right:8%}.trust{display:grid;grid-template-columns:repeat(3,1fr);padding:28px 3%;margin-top:18px;border-bottom:1px solid var(--line);gap:20px}.trust>div{display:flex;align-items:center;gap:13px;color:#9b775f;font-size:23px}.trust span{display:flex;flex-direction:column;gap:3px}.trust b{font-size:12px;color:var(--brown)}.trust small{font-size:11px;color:var(--muted)}.section{padding-top:70px;padding-bottom:10px}.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:25px}.section-head h2{font-size:34px;color:var(--brown);margin:9px 0 4px;letter-spacing:-1px}.section-head p{color:var(--muted);font-size:13px;margin:0}.text-link{font-size:12px;font-weight:800;color:var(--brown);border-bottom:1px solid var(--blue);padding-bottom:5px}.category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:15px}.category-card{border:1px solid var(--line);border-radius:17px;overflow:hidden;background:white;transition:.25s}.category-card:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:var(--blue)}.category-card img{width:100%;height:145px;object-fit:cover;display:block}.category-card div{padding:15px}.category-card h3{font-size:14px;color:var(--brown);margin:0 0 6px}.category-card p{font-size:11px;color:var(--muted);margin:0 0 12px}.category-card b{font-size:10px;color:#80583e}.product-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.product-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;transition:.25s}.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.product-image{height:180px;background:var(--cream);display:block;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:cover;transition:.3s}.product-card:hover .product-image img{transform:scale(1.05)}.product-info{padding:13px}.product-category{font-size:9px;letter-spacing:.8px;text-transform:uppercase;color:#96745c}.product-info h3{font-size:13px;line-height:1.4;min-height:36px;color:var(--brown);margin:7px 0}.product-description{font-size:10px;line-height:1.5;color:var(--muted);min-height:30px}.rating{color:#b47a26;font-size:11px;margin:8px 0}.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:6px}.price{font-size:14px;color:var(--brown);font-weight:800}.add-cart{border:0;border-radius:30px;background:var(--brown);color:white;font-size:10px;font-weight:700;padding:9px 11px}.add-cart:hover{background:#68442f}.promo{margin-top:80px;margin-bottom:70px;border-radius:24px;background:var(--brown);color:var(--cream);padding:55px 7%;position:relative;overflow:hidden}.promo:after{content:"SBS";position:absolute;right:5%;top:-50px;font-size:230px;font-weight:800;color:rgba(242,232,218,.055)}.promo h2{font-size:38px;line-height:1.15;margin:12px 0}.promo p{color:#d6c5b5;font-size:13px;margin-bottom:22px}.promo .eyebrow{color:var(--blue)}.btn-light{background:var(--blue);color:var(--brown)}.footer{background:var(--cream);padding:48px max(4.5%,calc((100% - 1200px)/2)) 25px;display:grid;grid-template-columns:1.5fr 1fr 1.2fr 1fr;gap:28px;color:var(--brown)}.footer-brand img{width:190px;height:auto;max-height:58px;object-fit:contain}.footer-brand p{font-size:12px;color:var(--muted)}.footer b{display:block;font-size:12px;margin:10px 0 15px}.footer a{display:block;font-size:11px;color:#705848;margin:10px 0}.footer a:hover{color:#386b9c}.copyright{grid-column:1/-1;border-top:1px solid #ddcbbb;padding-top:18px;color:#8a7566;font-size:10px}.drawer-backdrop,.cart-backdrop{position:fixed;inset:0;background:rgba(25,16,11,.48);z-index:30;opacity:0;visibility:hidden;transition:.25s}.drawer{position:fixed;z-index:31;top:0;right:0;height:100dvh;width:min(390px,88vw);background:var(--cream);padding:25px 25px 22px;transform:translateX(105%);transition:transform .32s ease;display:flex;flex-direction:column;box-shadow:-15px 0 45px rgba(0,0,0,.15)}.drawer.open{transform:translateX(0)}.drawer-backdrop.show,.cart-backdrop.show{opacity:1;visibility:visible}.drawer-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:22px;border-bottom:1px solid #ddcbbb;color:var(--brown)}.drawer-head small{display:block;font-size:9px;letter-spacing:2px;color:#8a6047}.drawer-head strong{font-size:15px;letter-spacing:1px}.drawer-head button{width:36px;height:36px;border:0;border-radius:50%;background:var(--brown);color:white;font-size:24px;line-height:1}.drawer-nav{padding:17px 0;display:flex;flex-direction:column;overflow:auto}.drawer-nav>a,.category-toggle{padding:14px 4px;border-bottom:1px solid #e0d2c3;color:var(--brown);font-size:15px;font-weight:700;background:none;text-align:left}.drawer-nav>a:hover,.category-toggle:hover{color:#3c79b0}.category-toggle{display:flex;justify-content:space-between;border:0;border-bottom:1px solid #e0d2c3}.drawer-categories{display:none;padding:0 0 8px 16px}.drawer-categories.open{display:block}.drawer-categories a{display:block;padding:10px 0;font-size:13px;color:#775c49}.drawer-bottom{margin-top:auto;padding-top:20px;border-top:1px solid #ddcbbb}.drawer-bottom>a{display:block;background:var(--brown);color:white;text-align:center;border-radius:30px;padding:13px;font-size:12px;font-weight:800}.drawer-bottom p{font-size:10px;color:#8a7566;text-align:center}.cart-drawer{position:fixed;z-index:41;right:0;top:0;height:100dvh;width:min(410px,90vw);background:#fffdf9;padding:25px;transform:translateX(105%);transition:.3s;display:flex;flex-direction:column}.cart-drawer.open{transform:translateX(0)}.cart-items{padding:20px 0;overflow:auto;flex:1}.cart-line{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:12px 0;font-size:12px}.cart-line button{border:0;background:none;color:#9a5841}.cart-total{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:18px 0;color:var(--brown)}.preview-note{font-size:10px;color:#8a7566;background:var(--cream);padding:12px;border-radius:9px}.toast{position:fixed;z-index:60;bottom:22px;left:50%;transform:translate(-50%,20px);opacity:0;background:var(--brown);color:white;padding:12px 18px;border-radius:30px;font-size:12px;transition:.25s;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}.page-hero{background:var(--cream);padding:55px 0}.page-hero h1{font:700 46px 'Playfair Display',serif;color:var(--brown);margin:10px 0}.page-hero p{color:var(--muted);font-size:14px}.product-tools{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.product-tools input,.product-tools select{padding:12px 15px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--brown)}.product-tools input{flex:1;min-width:220px}.result-count{font-size:11px;color:var(--muted)}.empty-state{text-align:center;padding:60px 15px;color:var(--muted)}.content-page{padding-top:70px;padding-bottom:90px;min-height:45vh}.content-page h1{font:700 46px 'Playfair Display',serif;color:var(--brown)}.content-page p{max-width:750px;color:var(--muted);line-height:1.9}.detail-layout{display:grid;grid-template-columns:1fr 1fr;gap:45px;padding:45px 0}.detail-image{width:100%;height:420px;object-fit:cover;border-radius:20px;background:var(--cream)}.detail-copy h1{font:700 38px 'Playfair Display',serif;color:var(--brown)}.detail-price{font-size:25px;font-weight:800;color:var(--brown);margin:20px 0}.detail-copy p{color:var(--muted);line-height:1.8}.detail-copy .add-cart{padding:14px 25px;font-size:12px}.detail-note{font-size:10px;background:var(--cream);padding:12px;border-radius:9px}@media(max-width:900px){.header{gap:18px;padding-inline:4%}.brand{min-width:0;width:180px}.brand span{display:none}.category-grid{grid-template-columns:repeat(3,1fr)}.product-grid{grid-template-columns:repeat(3,1fr)}.hero{grid-template-columns:1fr 1fr}.hero-tile{width:135px;height:135px}.orbit{width:290px;height:290px}.tile-two{top:180px}.tile-three{top:180px}}@media(max-width:640px){.announcement{font-size:8px;letter-spacing:1.2px}.header{height:auto;min-height:82px;padding:10px 4%;gap:10px;display:grid;grid-template-columns:56px 1fr 48px;grid-template-rows:58px 44px}.brand{grid-column:1;grid-row:1}.brand img{width:100%;height:auto;max-height:52px}.search{grid-column:1/-1;grid-row:2;width:100%;height:42px;max-width:none}.header-actions{grid-column:2/4;grid-row:1;gap:12px;justify-content:flex-end}.header-actions>a{display:none}.cart-open{padding:8px 12px;font-size:11px}.menu-toggle{width:42px;height:42px}.hero{margin-top:14px;grid-template-columns:1fr;min-height:0}.hero-copy{padding:38px 7% 15px}.hero h1{font-size:43px}.hero-copy>p{font-size:13px}.hero-note{margin-top:24px}.hero-art{min-height:270px}.orbit{width:220px;height:220px;left:23%;top:10px}.hero-tile{width:108px;height:108px;border-radius:16px;border-width:4px}.tile-one{top:12px;left:31%}.tile-two{top:130px;left:8%}.tile-three{top:135px;right:8%}.tile-four{top:15px;right:7%}.trust{grid-template-columns:1fr;gap:14px;padding:22px 5%}.section{padding-top:48px}.section-head{align-items:flex-start;flex-direction:column;gap:12px}.section-head h2{font-size:29px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.category-card img{height:110px}.category-card div{padding:11px}.category-card h3{font-size:12px}.category-card p{font-size:10px}.category-card b{font-size:9px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-image{height:145px}.product-info{padding:10px}.product-info h3{font-size:11px}.product-description{font-size:9px}.price{font-size:12px}.add-cart{font-size:9px;padding:8px}.promo{margin:50px auto;padding:35px 7%}.promo h2{font-size:30px}.promo:after{font-size:140px;top:0}.footer{grid-template-columns:1fr 1fr;padding:35px 5% 20px;gap:18px}.footer-brand{grid-column:1/-1}.footer b{margin-bottom:10px}.detail-layout{grid-template-columns:1fr;gap:22px;padding:20px 0}.detail-image{height:290px}.detail-copy h1{font-size:30px}.page-hero{padding:38px 0}.page-hero h1,.content-page h1{font-size:36px}.product-tools{display:grid;grid-template-columns:1fr 1fr}.product-tools input{grid-column:1/-1;min-width:0}.result-count{margin-top:15px}}@media(max-width:360px){.cart-open{font-size:0}.cart-open b{font-size:11px;margin:0}.category-card h3{font-size:11px}}:root{--hover-blue:#8EC5FF;--hover-brown:#67432f;--motion:cubic-bezier(.2,.75,.25,1)}::selection{background:var(--blue);color:var(--brown)}a,button,.brand,.category-card,.product-card,.hero-tile{-webkit-tap-highlight-color:transparent}.brand span{display:none;transition:color .28s var(--motion),letter-spacing .28s var(--motion),transform .28s var(--motion)}.brand:hover span{color:#6d9dca;letter-spacing:1.8px;transform:translateX(2px)}.brand img{transition:transform .45s var(--motion),filter .3s ease}.brand:hover img{transform:rotate(-4deg) scale(1.06);filter:drop-shadow(0 5px 8px rgba(59,36,24,.16))}.header-actions>a,.text-link,.footer a,.drawer-nav>a,.category-card h3,.product-info h3{transition:color .25s ease,letter-spacing .25s ease,transform .25s var(--motion)}.header-actions>a:hover,.text-link:hover,.footer a:hover,.drawer-nav>a:hover{color:#397bb8;letter-spacing:.35px}.btn,.add-cart,.cart-open,.menu-toggle,.search button{transition:background .28s ease,color .28s ease,transform .28s var(--motion),box-shadow .28s ease}.btn:hover,.add-cart:hover,.cart-open:hover,.menu-toggle:hover,.search button:hover{background:var(--blue);color:var(--brown);transform:translateY(-3px);box-shadow:0 10px 22px rgba(59,36,24,.16)}.category-card,.product-card{will-change:transform;transition:transform .35s var(--motion),box-shadow .35s ease,border-color .35s ease}.category-card:hover,.product-card:hover{transform:translateY(-8px) scale(1.012);box-shadow:0 18px 38px rgba(59,36,24,.15);border-color:var(--blue)}.category-card img,.product-image img{transition:transform .55s var(--motion),filter .4s ease}.category-card:hover img,.product-card:hover .product-image img{transform:scale(1.075);filter:saturate(1.08)}.category-card h3:hover,.product-info h3:hover{color:#397bb8;letter-spacing:.25px}.hero-tile{transition:transform .4s var(--motion),box-shadow .4s ease}.hero-tile:hover{transform:translateY(-7px) rotate(1.5deg) scale(1.035);box-shadow:0 22px 48px rgba(59,36,24,.22)}.hero-tile img{transition:transform .55s var(--motion)}.hero-tile:hover img{transform:scale(1.09)}.eyebrow{transition:color .3s ease,letter-spacing .3s ease}.section:hover .section-head .eyebrow{color:#397bb8;letter-spacing:3px}.promo .btn-light:hover{background:#fff;color:var(--brown)}.social-title{margin-top:18px!important}.social-link{display:inline-block!important;margin-right:12px!important}@keyframes souqFadeUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}.hero-copy,.hero-art,.trust>div,.section-head,.promo>div{animation:souqFadeUp .7s both}.hero-art{animation-delay:.12s}.trust>div:nth-child(2){animation-delay:.08s}.trust>div:nth-child(3){animation-delay:.16s}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.market-tools{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:9px 5%;background:#fffaf4;border-bottom:1px solid #eadfd4;font-size:11px}.market-tools label{display:flex;align-items:center;gap:7px}.market-tools select,.market-tools button,.market-tools a{border:1px solid #dfcdbd;border-radius:20px;padding:8px 12px;background:white;color:#3B2418;font:inherit;text-decoration:none}.wish-btn{border:1px solid #dfcdbd;background:#fffaf4;color:#3B2418;border-radius:20px;padding:8px 12px;font-size:10px;margin-top:8px;cursor:pointer}.wish-btn.saved{background:#3B2418;color:white}.qty-control{display:flex;align-items:center;gap:12px;margin:14px 0;color:#3B2418;font-size:12px}.qty-control input{width:76px;padding:10px;border:1px solid #dfcdbd;border-radius:8px}.rtl-preview{direction:rtl}.rtl-preview .footer,.rtl-preview .product-grid,.rtl-preview .detail-layout{direction:rtl}.rtl-preview .drawer{right:auto;left:0;transform:translateX(-105%)}.rtl-preview .drawer.open{transform:translateX(0)}.rtl-preview .cart-drawer{right:auto;left:0;transform:translateX(-105%)}.rtl-preview .cart-drawer.open{transform:translateX(0)}@media(max-width:640px){.market-tools{justify-content:center;flex-wrap:wrap;padding:10px 3%;gap:7px}.market-tools select,.market-tools button,.market-tools a{padding:7px 9px}}
/* Product cards: clearer separation and always-visible cart action */
.product-grid{column-gap:24px;row-gap:28px}
.product-card{border:1px solid #dfcdbd;border-radius:18px;box-shadow:0 5px 18px rgba(59,36,24,.07);display:flex;flex-direction:column}
.product-info{display:flex;flex:1;flex-direction:column;padding:16px;gap:8px}
.product-info h3{line-height:1.4;min-height:2.8em}
.product-description{line-height:1.55;min-height:3.1em}
.product-bottom{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;gap:11px;margin-top:auto;padding-top:12px;border-top:1px solid var(--line)}
.product-bottom .price{display:block;font-size:17px;font-weight:800}
.product-bottom .add-cart{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:12px 14px;font-size:12px;line-height:1.2;white-space:normal;border-radius:10px;visibility:visible;opacity:1}
@media(max-width:900px){.product-grid{column-gap:18px;row-gap:22px}}
@media(max-width:640px){.product-grid{column-gap:14px;row-gap:20px}.product-info{padding:12px}.product-info h3{font-size:12px;min-height:0}.product-description{min-height:0}.product-bottom .price{font-size:14px}.product-bottom .add-cart{font-size:11px;min-height:42px;padding:10px 8px}}
@media(max-width:360px){.product-grid{column-gap:10px;row-gap:16px}.product-info{padding:9px}.product-bottom .add-cart{font-size:10px}}

/* Gulf introduction strip + refined hero background */
.hero{background:radial-gradient(ellipse at 78% 20%,rgba(142,197,255,.30) 0,rgba(142,197,255,0) 38%),radial-gradient(ellipse at 12% 92%,rgba(255,255,255,.92) 0,rgba(255,255,255,0) 44%),linear-gradient(125deg,#fbf4ea 0%,#f2e8da 52%,#e9f2fb 100%);border:1px solid rgba(142,197,255,.28);box-shadow:0 18px 42px rgba(59,36,24,.07)}
.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(255,255,255,.20),transparent 55%);pointer-events:none;z-index:0}
.hero-copy,.hero-art{z-index:1}
.gulf-intro{position:relative;display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:20px;margin-top:38px;margin-bottom:2px;padding:22px 28px;border:1px solid #e5d8c9;border-left:4px solid #8EC5FF;border-radius:16px;background:linear-gradient(105deg,#fffdf9 0%,#f7f0e6 62%,#eef6ff 100%);box-shadow:0 9px 24px rgba(59,36,24,.055)}
.gulf-intro-mark{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#e4f1ff;color:#80583e;font-size:21px}
.gulf-intro-copy .eyebrow{font-size:9px;letter-spacing:1.8px}
.gulf-intro-copy h2{margin:5px 0 6px;color:#3B2418;font-size:clamp(18px,2vw,23px);line-height:1.25;letter-spacing:-.4px}
.gulf-intro-copy p{max-width:850px;margin:0;color:#78685c;font-size:12px;line-height:1.75}
.gulf-intro-link{white-space:nowrap;display:inline-flex;align-items:center;gap:12px;padding:11px 15px;border-radius:30px;background:#3B2418;color:#fff;font-size:11px;font-weight:800;transition:.25s}
.gulf-intro-link:hover{background:#8EC5FF;color:#3B2418;transform:translateY(-2px)}
@media(max-width:700px){.gulf-intro{grid-template-columns:38px minmax(0,1fr);gap:12px;margin-top:25px;padding:17px 15px}.gulf-intro-mark{width:34px;height:34px;font-size:17px}.gulf-intro-copy p{font-size:11px;line-height:1.65}.gulf-intro-link{grid-column:2;justify-self:start;padding:9px 13px;font-size:10px}}
