/*
Theme Name: Matroz Luxury Commerce
Theme URI: https://example.com/
Author: Custom
Description: RTL Arabic-first custom WooCommerce e-commerce theme.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: matroz-luxury
*/
:root{
  --navy:#111827;
  --navy-2:#1b2435;
  --gold:#d99a17;
  --gold-soft:#fbf1d9;
  --gold-border:#ead8ac;
  --cream:#fffaf0;
  --text:#202633;
  --muted:#6b7280;
  --white:#fff;
  --border:#e5e7eb;
  --shadow:0 10px 30px rgba(17,24,39,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--text);background:#fff;font-family:"Tajawal","Cairo","Noto Sans Arabic",Arial,sans-serif;line-height:1.7}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
button,input,select,textarea{font:inherit}
.container{width:min(1180px,92%);margin-inline:auto}
.site-top{height:42px;display:flex;align-items:center;justify-content:center;background:#fff;border-bottom:1px solid #f0f0f0;font-size:14px;font-weight:600}
.site-header{background:var(--navy);color:#fff;position:sticky;top:0;z-index:50}
.header-inner{min-height:76px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px}
.site-logo img{max-height:52px;width:auto;margin:auto}
.site-logo-text{font-size:22px;font-weight:800;letter-spacing:.5px;text-align:center}
.main-nav ul{display:flex;gap:24px;list-style:none;padding:0;margin:0;align-items:center}
.main-nav a{color:#fff;font-weight:600}
.header-cart{justify-self:start;display:flex;align-items:center;gap:8px}
.header-cart svg,.icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2}
.search-wrap{padding:16px 0;background:#fff}
.search-form{display:flex;border:1px solid var(--gold-border);border-radius:16px;overflow:hidden;background:#fff;box-shadow:var(--shadow)}
.search-form input{flex:1;border:0;padding:14px 18px;outline:0}
.search-form button{border:0;background:var(--gold);color:#fff;padding:0 24px;font-weight:700;cursor:pointer}
.section{padding:54px 0}
.section-title{text-align:center;font-size:30px;margin:0 0 30px;font-weight:800}
.categories{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.category-card{border:1px solid var(--border);border-radius:22px;overflow:hidden;text-align:center;background:#fff;transition:.2s}
.category-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.category-card img{width:100%;aspect-ratio:1/1;object-fit:cover}
.category-card h3{font-size:18px;margin:14px 10px 18px}
.products-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:20px}
.product-card{border:1px solid var(--border);border-radius:22px;padding:12px;background:#fff;text-align:center;overflow:hidden}
.product-card .thumb{border-radius:16px;overflow:hidden;background:#f8f8f8}
.product-card img{aspect-ratio:1/1;object-fit:cover;width:100%}
.product-card h2{font-size:16px;line-height:1.45;margin:14px 4px 7px}
.price,.price .amount,.woocommerce-Price-amount{color:var(--gold)!important;font-weight:800}
.product-card .price{font-size:18px}
.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;border-radius:14px;padding:13px 20px;font-weight:800;border:1px solid transparent;cursor:pointer}
.btn-gold{background:var(--gold);color:#fff}
.btn-outline{background:#fff;color:var(--navy);border-color:var(--gold-border)}
.single-product-page{padding:35px 0 80px}
.product-main{display:grid;grid-template-columns:1.05fr .95fr;gap:45px;align-items:start}
.product-gallery{position:sticky;top:105px;min-width:0}
.product-gallery .woocommerce-product-gallery{width:100%;float:none!important;position:relative}
.product-gallery .woocommerce-product-gallery__image img{border-radius:22px;width:100%}
.product-gallery .woocommerce-product-gallery__wrapper{margin:0!important}
/* معرض صور المنتج: صور مصغرة أفقية قابلة للتمرير */
.product-gallery .flex-control-thumbs,
.product-gallery .woocommerce-product-gallery__thumbs{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;scroll-snap-type:x proximity;gap:12px;list-style:none;margin:16px 0 0!important;padding:4px 2px 12px!important;width:100%!important;max-width:100%!important}
.product-gallery .flex-control-thumbs::-webkit-scrollbar,
.product-gallery .woocommerce-product-gallery__thumbs::-webkit-scrollbar{height:6px}
.product-gallery .flex-control-thumbs::-webkit-scrollbar-thumb,
.product-gallery .woocommerce-product-gallery__thumbs::-webkit-scrollbar-thumb{background:var(--gold-border);border-radius:10px}
.product-gallery .flex-control-thumbs li,
.product-gallery .woocommerce-product-gallery__thumbs li{float:none!important;display:block!important;flex:0 0 82px!important;width:82px!important;max-width:82px!important;margin:0!important;scroll-snap-align:start}
.product-gallery .flex-control-thumbs img,
.product-gallery .woocommerce-product-gallery__thumbs img{width:82px!important;height:82px!important;object-fit:cover;border-radius:14px;border:2px solid var(--gold-border);cursor:pointer;opacity:.85;transition:.2s}
.product-gallery .flex-control-thumbs img:hover{opacity:1}
.product-gallery .flex-control-thumbs img.flex-active{border-color:var(--gold);opacity:1}
.product-title{font-size:38px;line-height:1.25;margin:0 0 12px}
.product-price{font-size:27px;margin:0 0 24px}
.custom-box{border:2px solid var(--gold-border);border-radius:28px;padding:26px;background:#fff;margin:22px 0}
.custom-box h3{margin:0 0 20px;text-align:center;font-size:25px}
.role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px;margin:16px 0 28px}
.role-grid label{display:block;margin:0}
.role-btn{display:flex;align-items:center;justify-content:center;min-height:78px;width:100%;border:3px solid var(--gold-border);background:linear-gradient(180deg,#fffdf8,#fbf2df);color:#c98710;border-radius:22px;padding:16px 12px;font-size:22px;font-weight:900;cursor:pointer;text-align:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.9);transition:transform .18s ease,background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease}
.role-btn:hover{transform:translateY(-2px);border-color:var(--gold);box-shadow:0 8px 20px rgba(217,154,23,.12)}
.role-btn.active{background:linear-gradient(135deg,#efa11b,#dc8c0a);color:#fff;border-color:#e69a17;box-shadow:0 8px 20px rgba(217,154,23,.22)}
.field{margin:0 0 16px}
.field label{display:block;font-weight:700;margin-bottom:7px}
.field input,.field select,.field textarea{width:100%;border:1px solid #d5d7dc;border-radius:13px;padding:13px 15px;outline:0;background:#fff}
.field input:focus,.field select:focus{border-color:var(--gold)}
.note{font-size:13px;color:var(--muted);margin:8px 0 0}
.custom-box .note{font-weight:700}
.delivery-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.delivery-option{border:2px solid var(--gold-border);border-radius:16px;padding:15px;background:var(--cream);cursor:pointer}
.delivery-option input{accent-color:var(--gold);margin-left:8px}
.total-box{background:#f9e5b8;border:1px solid #efd39a;border-radius:20px;padding:20px;margin-top:20px}
.total-row{display:flex;justify-content:space-between;gap:15px;padding:7px 0}
.total-row.total{border-top:2px solid var(--navy);margin-top:8px;padding-top:14px;font-size:21px;font-weight:900}
.cta-stack{display:grid;gap:10px;margin-top:20px}
.whatsapp-cta{background:#079b79;color:#fff}
.product-description-box .product-short-description{font-size:16px;margin-bottom:14px}
.product-description-box .product-short-description ul{margin:0;padding-inline-start:22px}
.product-description-box .product-short-description ul li{margin-bottom:8px}
.product-description-box .product-full-description{color:var(--text);font-size:15px}
.product-description-box .product-full-description p{margin:0 0 12px}
.product-description-box .product-short-description + .product-full-description{border-top:1px solid var(--gold-border);padding-top:14px}
.related{padding:55px 0}.related-products-grid{margin-top:20px}.related-products-grid .product-card{height:100%;display:flex;flex-direction:column}.related-products-grid .product-card .price{margin-top:auto}
.site-footer{background:var(--navy);color:#fff;padding:34px 0 90px;margin-top:30px}
.footer-inner{display:flex;justify-content:space-between;gap:35px;align-items:flex-start;flex-wrap:wrap}
.footer-content{display:flex;flex-direction:column;gap:20px;min-width:240px}
.footer-links{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.footer-links a{color:#fff;text-decoration:none;font-weight:700;transition:.2s}
.footer-links a:hover{color:var(--gold);transform:translateX(-3px)}
.footer-copy{font-size:13px;color:rgba(255,255,255,.72);line-height:1.8}
.socials{display:flex;gap:10px}
.socials a{width:38px;height:38px;border:1px solid rgba(255,255,255,.25);border-radius:50%;display:grid;place-items:center;overflow:hidden;transition:.2s}
.socials a:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.5)}
.socials a svg{width:20px;height:20px;display:block}
.whatsapp-bar{position:fixed;bottom:0;left:0;right:0;z-index:80;background:#fff;border-top:1px solid #e7e7e7;box-shadow:0 -6px 25px rgba(0,0,0,.08)}
.whatsapp-inner{min-height:66px;display:flex;align-items:center;justify-content:center;gap:18px}
.whatsapp-number{font-weight:900;letter-spacing:3px}
.whatsapp-btn{background:#079b79;color:#fff;border-radius:12px;padding:10px 22px;font-weight:800}
.empty{padding:60px 0;text-align:center}
.archive-products-page{padding:45px 0 80px}
.archive-products-page .woocommerce-result-count,.archive-products-page .woocommerce-ordering{display:none}
.archive-products-page .woocommerce-breadcrumb{margin:0 0 18px;color:var(--muted);font-size:14px}
.archive-products-page .page-description{max-width:760px;margin:-12px auto 30px;text-align:center;color:var(--muted)}
.archive-products-page .products-grid{margin-top:20px}
.archive-products-page .woocommerce-pagination{margin-top:38px;text-align:center}
.archive-products-page .woocommerce-pagination ul{display:inline-flex;gap:8px;list-style:none;padding:0;margin:0}
.archive-products-page .woocommerce-pagination li{margin:0}
.archive-products-page .woocommerce-pagination a,.archive-products-page .woocommerce-pagination span{display:grid;place-items:center;min-width:42px;height:42px;border:1px solid var(--gold-border);border-radius:12px;font-weight:800}
.archive-products-page .woocommerce-pagination .current{background:var(--gold);color:#fff;border-color:var(--gold)}
@media(max-width:1000px){.products-grid{grid-template-columns:repeat(3,1fr)}.product-main{grid-template-columns:1fr}.product-gallery{position:static}.categories{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.header-inner{grid-template-columns:auto 1fr auto}.main-nav{display:none}.products-grid{grid-template-columns:repeat(2,1fr);gap:12px}.categories{gap:12px}.role-grid{gap:10px}.delivery-options{grid-template-columns:1fr}.product-title{font-size:29px}.whatsapp-inner{gap:10px;font-size:13px}.whatsapp-number{letter-spacing:2px}.whatsapp-btn{padding:9px 14px}}
@media(max-width:650px){
  .product-gallery .flex-control-thumbs li{flex-basis:68px!important;width:68px!important;max-width:68px!important}
  .product-gallery .flex-control-thumbs img{width:68px!important;height:68px!important}
  .role-grid{gap:12px;margin-bottom:22px}
  .role-btn{min-height:68px;border-radius:18px;font-size:19px;padding:12px 8px}
}


/* صفحة الشكر */
.matroz-thank-you{padding-top:60px;padding-bottom:80px}
.thank-you-box{text-align:center;max-width:760px;margin:0 auto;padding:45px 25px}
.thank-you-icon{width:70px;height:70px;border-radius:50%;margin:0 auto 20px;display:flex;align-items:center;justify-content:center;font-size:40px;font-weight:800;border:2px solid currentColor}
.thank-you-message{font-size:20px;line-height:1.9;margin:8px 0}
.matroz-order-form select{width:100%;padding:13px 15px;border:1px solid #ddd;border-radius:8px;background:#fff;font-family:inherit;font-size:16px}
