/*
Theme Name: Habib SPA Theme
Author: Habib SPA
Description: Elementor-friendly WooCommerce storefront with optional React SPA shop views.
Version: 0.4.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: habib-spa
*/
:root{font-family:Tahoma,Arial,sans-serif;color:#202735;background:#f8fafc}*{box-sizing:border-box}body{margin:0;direction:rtl}button,input{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}.container{max-width:1240px;margin:auto;padding:0 20px}.site-header{background:#fff;box-shadow:0 2px 12px #15213612;position:sticky;top:0;z-index:10}.header-inner{display:flex;gap:22px;align-items:center;min-height:78px}.brand{font-size:22px;font-weight:bold;color:#126b62}.site-nav{display:flex;gap:18px;flex:1}.site-nav a{font-size:14px}.search{min-width:180px;width:28%;border:1px solid #d9e1e8;border-radius:10px;padding:10px}.cart-button,.primary{background:#117469;border:0;border-radius:10px;color:#fff;padding:11px 16px}.secondary{border:1px solid #c5d4d1;background:white;border-radius:10px;padding:10px 15px}.main{min-height:65vh;padding:28px 0 60px}.hero{padding:36px;border-radius:20px;background:#e2f3f0;margin-bottom:30px}.hero h1{margin:0 0 10px;font-size:27px}.muted{color:#65717d}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.product-card{border:1px solid #e5e9f0;background:#fff;border-radius:15px;overflow:hidden;display:flex;flex-direction:column}.product-card img{width:100%;aspect-ratio:1/1;object-fit:contain;padding:12px}.product-info{padding:15px;display:grid;gap:10px;flex:1}.product-info h3{font-size:15px;line-height:1.9;margin:0}.product-info .price{font-weight:bold;color:#075b54}.product-info button{margin-top:auto}.detail{display:grid;grid-template-columns:1fr 1fr;gap:35px}.detail img{width:100%;background:#fff;border-radius:16px;object-fit:contain}.detail h1{font-size:25px}.panel{background:white;border:1px solid #e3e8ed;border-radius:14px;padding:20px}.panel ul{padding-right:20px}.footer{border-top:1px solid #e3e8ed;padding:25px 0;background:white}.notice{padding:14px;background:#fff5dc;border-radius:10px;margin-bottom:20px}.error{color:#b3261e}.loading{padding:24px;text-align:center}.drawer-overlay{position:fixed;inset:0;background:#0008;z-index:20}.drawer{background:#fff;position:fixed;top:0;bottom:0;left:0;width:min(430px,100vw);z-index:21;padding:22px;overflow:auto;box-shadow:0 0 40px #0003}.drawer-item{display:flex;gap:12px;border-bottom:1px solid #eee;padding:12px 0}.drawer-item img{width:65px;height:65px;object-fit:contain}.drawer-head{display:flex;justify-content:space-between;align-items:center}.qty{display:flex;gap:10px;align-items:center}.qty button{padding:4px 10px;border:1px solid #ddd;border-radius:7px;background:#fff}.page-row{display:flex;gap:12px;margin-top:24px}.native-page{max-width:1100px;margin:40px auto;padding:20px}.native-page img{max-width:100%;height:auto}@media(max-width:800px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.site-nav{display:none}.header-inner{flex-wrap:wrap;padding:14px 0}.search{order:3;width:100%}.detail{grid-template-columns:1fr}.hero{padding:22px}.hero h1{font-size:22px}}@media(max-width:420px){.grid{gap:10px}.product-info{padding:10px}.product-info h3{font-size:13px}.container{padding:0 12px}}

.product-view-link { display:inline-block; cursor:pointer; text-decoration:none; }

/* Elementor-aware shell */
.habib-elementor-content{width:100%;min-height:55vh}.habib-elementor-content .elementor{width:100%}.habib-native-main{min-height:55vh}.habib-archive-content{max-width:1240px;margin:32px auto;padding:0 20px}.habib-archive-content .products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.habib-page-title{max-width:1240px;margin:24px auto;padding:0 20px}.habib-brand{font-weight:800;font-size:23px;color:#117469}.habib-navbar{display:flex;gap:20px;align-items:center}.habib-navbar a:hover{color:#117469}.habib-topbar{background:#fff;border-bottom:1px solid #e6e9ec}.habib-topbar-inner{max-width:1240px;margin:auto;min-height:74px;display:flex;align-items:center;gap:24px;padding:10px 20px}.habib-header-spacer{flex:1}.habib-header-cta{background:#117469;padding:10px 16px;color:white;border-radius:10px}.habib-footer-inner{max-width:1240px;margin:auto;padding:24px 20px}.habib-wc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.habib-wc-card{border:1px solid #e5e9f0;background:#fff;border-radius:16px;padding:12px;text-align:right}.habib-wc-card img{width:100%;aspect-ratio:1;object-fit:contain}.habib-wc-card h3{font-size:15px;line-height:1.8}.habib-wc-price{font-weight:bold;color:#117469}.habib-wc-cats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.habib-wc-cat{background:white;border:1px solid #e9edf0;border-radius:18px;padding:18px;text-align:center}.habib-wc-cat img{width:100%;height:120px;object-fit:contain}.habib-hero-widget{padding:48px 32px;background:#e2f3f0;border-radius:22px;display:flex;gap:30px;align-items:center;justify-content:space-between}.habib-hero-widget h2{font-size:32px;margin:0 0 14px}.habib-hero-widget img{max-width:42%;height:auto}.habib-hero-widget .habib-hero-btn{display:inline-block;margin-top:12px;background:#117469;color:white;padding:12px 24px;border-radius:10px}@media(max-width:800px){.habib-wc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.habib-wc-cats{grid-template-columns:repeat(3,minmax(0,1fr))}.habib-navbar{gap:10px}.habib-hero-widget{padding:25px;flex-direction:column;align-items:stretch}.habib-hero-widget img{max-width:100%}}@media(max-width:520px){.habib-wc-cats{grid-template-columns:repeat(2,minmax(0,1fr))}.habib-topbar-inner{flex-wrap:wrap}.habib-header-spacer{display:none}}

/* AJAX route loading feedback */
body.habib-navigating #main-content{opacity:.55;pointer-events:none;transition:opacity .12s ease} body.habib-navigating{cursor:progress}

/* Shared page shell, including React routes */
.habib-spa-mount{min-height:60vh}.habib-topbar{position:relative;z-index:12}.habib-topbar-inner{width:100%}

/* Unified main layout across frontend templates */
#main-content{display:block;min-height:55vh;width:100%}
#habib-spa-root>.main{margin-inline:auto}
body.elementor-page .habib-elementor-content{min-height:0}

.habib-empty-editor{max-width:920px;margin:42px auto;padding:36px 28px;background:#fff;border:1px dashed #cbd5df;border-radius:14px;min-height:180px}.habib-empty-editor h1{margin-top:0}.habib-empty-editor p{line-height:2;color:#65717d}.habib-empty-editor .habib-header-cta{display:inline-block;margin-top:8px}
