/*
Theme Name: المجموعة الجنوبية الخليل | Southern Group
Theme URI: https://example.invalid/
Author: Southern Group
Description: قالب عربي RTL للمتجر بتصميم أبيض وذهبي متكامل مع محرك Southern Commerce.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: southern-group
*/
:root{--gold:#a87525;--gold2:#c89a49;--ink:#181818;--line:#ece9e4;--bg:#fff;--muted:#777}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font-family:'Cairo',Tahoma,Arial,sans-serif;direction:rtl}a{text-decoration:none;color:inherit}button,input{font:inherit}button{cursor:pointer}.container{width:min(1180px,calc(100% - 40px));margin:auto}.utility{border-bottom:1px solid #eee;background:#fafafa;font-size:11px;color:#444}.utility .container{display:flex;justify-content:space-between;align-items:center;padding:9px 0}.utility a{margin-inline-start:18px}.mainhead{display:grid;grid-template-columns:235px 1fr 220px;gap:30px;align-items:center;padding:23px 0}.brand{font-size:27px;line-height:1.35;font-weight:900;color:#92671f}.search{height:48px;display:flex;border:1px solid #ece9e4;border-radius:13px;overflow:hidden;background:#faf9f7}.search input{flex:1;border:0;background:transparent;outline:none;padding:0 18px;min-width:0}.search button{background:var(--gold);border:0;color:#fff;padding:0 22px;font-size:20px}.headicons{display:flex;justify-content:space-between;text-align:center;gap:10px}.headicons a{font-size:11px}.headicons span{display:block;font-size:23px}.nav{border-bottom:1px solid #e9e9e9}.nav .container{display:flex;gap:33px;align-items:center;justify-content:center;min-height:54px;font-size:13px;font-weight:700}.nav a:hover,.nav a.active{color:var(--gold)}.hero{background:linear-gradient(90deg,#f4f1ec,#fff);min-height:335px;display:grid;grid-template-columns:62% 38%;overflow:hidden}.hero-image{background-image:url(assets/hero-products.webp);background-size:cover;background-position:center;min-height:335px}.hero-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:30px 40px 30px 10px}.eyebrow{color:var(--gold);font-size:12px}.hero h1{font-size:38px;line-height:1.45;margin:10px 0}.hero h1 em{font-style:normal;color:var(--gold)}.hero p{font-size:14px;margin:0 0 20px}.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--gold);color:#fff;border:0;border-radius:22px;padding:10px 25px;font-size:13px;font-weight:700}.btn:hover{background:#815b1d}.dots{text-align:center;color:var(--gold);margin-top:-24px;position:relative;font-size:25px;letter-spacing:3px}.categories{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:12px;padding:33px 0 25px}.cat{text-align:center;font-size:11px;font-weight:700}.cat .bubble{width:62px;height:62px;background:#f6f5f3;border-radius:50%;margin:0 auto 8px;display:grid;place-items:center;font-size:27px}.cat:hover .bubble{background:#f6ead4}.promos{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:34px}.promo{min-height:148px;border-radius:12px;background:#f5efe7;overflow:hidden;position:relative;display:flex;align-items:center;padding:20px}.promo img{position:absolute;left:0;top:0;width:52%;height:100%;object-fit:cover;opacity:.93}.promo .promo-copy{z-index:1;max-width:58%}.promo h3{font-size:24px;color:#8c6328;margin:0 0 5px}.promo p{font-size:12px;margin:0 0 12px}.promo .btn{font-size:11px;padding:7px 16px}.promo.dark{background:#151515;color:#fff}.promo.dark h3{color:#f0c16b}.section-title{display:flex;align-items:center;justify-content:space-between;margin:22px 0 15px}.section-title h2{font-size:24px;margin:0}.section-title h2:after{content:'';display:block;width:38px;height:3px;background:var(--gold);margin-top:5px}.section-title a{color:var(--gold);font-size:13px}.products{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.product{border:1px solid #ededed;border-radius:12px;overflow:hidden;min-width:0;background:#fff;transition:box-shadow .2s}.product:hover{box-shadow:0 7px 24px #00000012}.product .pic{height:175px;display:grid;place-items:center;background:#fafafa;overflow:hidden}.product .pic img{width:100%;height:100%;object-fit:contain}.product .details{padding:12px}.product h3{font-size:12px;line-height:1.7;min-height:40px;margin:0 0 8px}.rating{color:#dca323;font-size:12px}.price{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:900;margin-top:8px}.price a{background:var(--gold);color:#fff;padding:7px 10px;border-radius:7px}.features{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:35px 0}.feature{border:1px solid #eee;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:10px;padding:17px 10px}.feature b{font-size:12px}.feature small{display:block;color:#888;font-size:10px}.feature .symbol{font-size:26px;color:var(--gold)}footer{background:#171717;color:#fff;margin-top:50px;padding:40px 0 18px}footer .cols{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}footer h3{color:#d2a75d}footer p,footer a{color:#ccc;font-size:13px}footer a{display:block;margin-bottom:10px}.copyright{text-align:center;border-top:1px solid #444;margin-top:30px;padding-top:15px;font-size:12px;color:#aaa}.pagecontent{padding:30px 0;min-height:45vh}.pagecontent h1{font-size:28px}.mobile-toggle{display:none}.rc-card{max-width:100%}@media(max-width:1000px){.mainhead{grid-template-columns:200px 1fr 160px;gap:15px}.categories{grid-template-columns:repeat(5,1fr)}.products{grid-template-columns:repeat(3,1fr)}.nav .container{gap:16px;flex-wrap:wrap}.hero h1{font-size:30px}}@media(max-width:640px){.container{width:min(100% - 24px,1180px)}.utility{display:none}.mainhead{grid-template-columns:1fr auto;padding:15px 0;gap:10px}.brand{font-size:19px}.search{grid-column:1/-1;grid-row:2}.headicons{gap:14px}.headicons a{font-size:9px}.headicons span{font-size:18px}.nav .container{overflow-x:auto;justify-content:flex-start;flex-wrap:nowrap;white-space:nowrap;min-height:44px}.nav .container a{font-size:12px}.hero{grid-template-columns:1fr;min-height:0}.hero-image{min-height:190px;grid-row:2;background-position:center}.hero-copy{padding:23px}.hero h1{font-size:27px}.dots{margin-top:-15px}.categories{grid-template-columns:repeat(3,1fr);gap:20px 5px;padding:24px 0}.cat .bubble{width:56px;height:56px}.promos{grid-template-columns:1fr}.promo{min-height:125px}.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product .pic{height:150px}.features{grid-template-columns:repeat(2,1fr)}footer .cols{grid-template-columns:1fr}.section-title h2{font-size:21px}}
/* Southern Commerce integration */
.sg-detail,.sg-commerce{padding:45px 15px;direction:rtl}.sg-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:38px;align-items:start}.sg-detail-grid img{width:100%;height:auto;object-fit:contain;border-radius:18px;background:#fff}.sg-detail-grid h2{color:#a47d33}.sg-commerce{max-width:900px;margin:auto}.sg-commerce form input,.sg-commerce form textarea,.sg-detail form input{max-width:100%;padding:12px;border:1px solid #ddd;border-radius:8px}.sg-commerce form textarea{width:100%;min-height:100px}.sg-cart-line{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #eee;padding:15px 0;flex-wrap:wrap}.sg-cart-line input{width:75px}.sg-cart-line button{background:#e9dfcd;border:0;border-radius:8px;padding:10px;cursor:pointer}.sg-commerce .btn,.sg-detail .btn{border:0;cursor:pointer;padding:13px 22px;display:inline-block}@media(max-width:720px){.sg-detail-grid{grid-template-columns:1fr}.sg-cart-line{display:block}.sg-cart-line>*{margin:8px 0}}

/* Southern mobile improvements */
html,body{max-width:100%;overflow-x:clip}img,video,iframe{max-width:100%;height:auto}*{box-sizing:border-box}
@media(max-width:767px){.container{width:calc(100% - 28px)!important;max-width:100%!important}.sg-detail-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important}.sg-detail img{max-width:100%;object-fit:contain}.sg-commerce{max-width:100%!important;padding:14px!important}.sg-commerce input,.sg-commerce textarea,.sg-commerce select{max-width:100%!important;width:100%!important;min-height:44px}.sg-commerce .btn{min-height:44px}.sg-cart-line{display:flex;flex-wrap:wrap;gap:12px}.sg-cart-line form{max-width:100%} }

/* Southern integration */
.rc-single{max-width:1180px;margin:25px auto;direction:rtl}.rc-customer-eyebrow{color:#a87525!important}.rc-customer-cart,.rc-add-form button[type=submit]{background:#a87525!important;color:white!important}.sg-detail-grid{display:block}.sg-detail-grid>div{width:100%}.rc-single img{max-width:100%;height:auto} @media(max-width:768px){.rc-single{padding:12px}.sg-detail{width:calc(100% - 24px)}.rc-single,.rc-add-form{max-width:100%}}
