/* ============================================================
   شركة جدة الرائدة - Wholesale Main Stylesheet
   Light Theme | RTL Arabic + LTR English
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* Variables */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #EFF6FF;
  --primary-mid: #DBEAFE;
  --secondary: #1E293B;
  --success: #059669;
  --success-light: #ECFDF5;
  --warning: #D97706;
  --warning-light: #FFFBEB;
  --danger: #DC2626;
  --danger-light: #FEF2F2;
  --bg: #F8FAFC;
  --bg-2: #F1F5F9;
  --white: #FFFFFF;
  --text: #1E293B;
  --text-2: #475569;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --border-dark: #CBD5E1;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1),0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07),0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

/* Reset */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Tajawal','Inter',sans-serif;background:var(--bg);color:var(--text);line-height:1.6;min-height:100vh}
[dir="ltr"] body{font-family:'Inter','Tajawal',sans-serif}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{cursor:pointer;border:none;background:none;font-family:inherit}
input,select,textarea{font-family:inherit}

/* Layout */
.container{max-width:1200px;margin:0 auto;padding:0 20px}

/* ---- HEADER ---- */
.header{background:var(--white);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:100;box-shadow:var(--shadow)}
.header-inner{display:flex;align-items:center;gap:16px;height:68px}
.logo{display:flex;align-items:center;gap:10px;flex-shrink:0}
.logo-text{font-size:16px;font-weight:800;color:var(--primary);line-height:1.1}
.logo-sub{font-size:10px;font-weight:400;color:var(--text-muted);display:block}
.nav{display:flex;align-items:center;gap:2px;flex:1}
.nav-link{padding:7px 13px;border-radius:var(--radius-sm);font-size:14px;font-weight:500;color:var(--text-2);transition:all .2s;white-space:nowrap}
.nav-link:hover,.nav-link.active{background:var(--primary-light);color:var(--primary)}
.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.lang-btn{width:34px;height:34px;border-radius:var(--radius-sm);border:1.5px solid var(--border);background:var(--white);font-size:13px;font-weight:700;color:var(--text);display:flex;align-items:center;justify-content:center;transition:all .2s}
.lang-btn:hover{border-color:var(--primary);color:var(--primary)}
.cart-btn{position:relative;width:38px;height:38px;border-radius:var(--radius-sm);border:1.5px solid var(--border);background:var(--white);display:flex;align-items:center;justify-content:center;transition:all .2s;color:var(--text)}
.cart-btn:hover{border-color:var(--primary);color:var(--primary)}
.cart-btn svg{width:18px;height:18px}
.cart-count{position:absolute;top:-7px;background:var(--primary);color:white;font-size:10px;font-weight:700;width:17px;height:17px;border-radius:50%;display:flex;align-items:center;justify-content:center}
[dir="rtl"] .cart-count{right:-7px}[dir="ltr"] .cart-count{left:-7px}

/* ---- BUTTONS ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 20px;border-radius:var(--radius-sm);font-size:14px;font-weight:600;transition:all .2s;white-space:nowrap;cursor:pointer;border:none;font-family:inherit;line-height:1}
.btn-primary{background:var(--primary);color:white}
.btn-primary:hover{background:var(--primary-dark);transform:translateY(-1px);box-shadow:0 4px 12px rgba(37,99,235,.3)}
.btn-outline{background:transparent;border:1.5px solid var(--border);color:var(--text)}
.btn-outline:hover{border-color:var(--primary);color:var(--primary)}
.btn-ghost{background:transparent;color:var(--text-2)}
.btn-ghost:hover{background:var(--bg-2)}
.btn-danger{background:var(--danger);color:white}
.btn-danger:hover{background:#B91C1C}
.btn-success{background:var(--success);color:white}
.btn-sm{padding:7px 14px;font-size:13px}
.btn-lg{padding:14px 28px;font-size:16px}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none!important}
.btn-loading{position:relative;color:transparent!important}
.btn-loading::after{content:'';position:absolute;width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:white;border-radius:50%;animation:spin .6s linear infinite}

/* ---- HERO ---- */
.hero{position:relative;overflow:hidden;background:var(--secondary);height:500px}
.hero-slides{display:flex;height:100%;transition:transform .5s ease}
.hero-slide{min-width:100%;height:100%;position:relative;display:flex;align-items:center}
.hero-slide-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.4}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(135deg,rgba(30,41,59,.9) 0%,rgba(30,41,59,.5) 100%)}
.hero-content{position:relative;z-index:1;padding:0 60px;max-width:620px}
.hero-content h1{font-size:44px;font-weight:800;color:white;line-height:1.25;margin-bottom:16px}
.hero-content p{font-size:17px;color:rgba(255,255,255,.8);margin-bottom:32px;line-height:1.7}
.hero-dots{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);display:flex;gap:8px}
.hero-dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.35);cursor:pointer;transition:all .3s}
.hero-dot.active{background:white;width:24px;border-radius:4px}
.hero-nav{position:absolute;top:50%;transform:translateY(-50%);display:flex;gap:8px}
[dir="rtl"] .hero-nav{left:20px}[dir="ltr"] .hero-nav{right:20px}
.hero-arrow{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.25);color:white;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;font-size:16px}
.hero-arrow:hover{background:rgba(255,255,255,.25)}

/* ---- SECTIONS ---- */
.section{padding:64px 0}
.section-alt{background:var(--bg-2)}
.section-header{text-align:center;margin-bottom:40px}
.section-header h2{font-size:30px;font-weight:800;color:var(--secondary);margin-bottom:8px}
.section-header p{color:var(--text-2);font-size:15px}
.section-divider{width:48px;height:4px;background:var(--primary);border-radius:2px;margin:10px auto 0}
.section-header.left{text-align:start}
.section-header.left .section-divider{margin:10px 0 0}

/* ---- CATEGORY CARDS ---- */
.categories-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px}
.cat-card{background:var(--white);border-radius:var(--radius-lg);overflow:hidden;border:1.5px solid var(--border);transition:all .3s;cursor:pointer;text-align:center}
.cat-card:hover{border-color:var(--primary);box-shadow:var(--shadow-md);transform:translateY(-3px)}
.cat-card-img{width:100%;height:110px;object-fit:cover;background:var(--primary-mid)}
.cat-card-placeholder{width:100%;height:110px;background:linear-gradient(135deg,var(--primary-mid),var(--primary-light));display:flex;align-items:center;justify-content:center;font-size:36px}
.cat-card-body{padding:12px}
.cat-card-body h3{font-size:14px;font-weight:700;color:var(--text);margin-bottom:2px}
.cat-card-body p{font-size:11px;color:var(--text-muted)}

/* ---- PRODUCT CARDS ---- */
.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}
.product-card{background:var(--white);border-radius:var(--radius-lg);overflow:hidden;border:1.5px solid var(--border);transition:all .3s;display:flex;flex-direction:column}
.product-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-4px);border-color:transparent}
.product-card-img{position:relative;height:190px;overflow:hidden;background:var(--bg-2);flex-shrink:0}
.product-card-img img{width:100%;height:100%;object-fit:contain;transition:transform .4s}
.product-card:hover .product-card-img img{transform:scale(1.06)}
.product-badge{position:absolute;top:10px;background:var(--primary);color:white;font-size:11px;font-weight:700;padding:3px 10px;border-radius:20px}
[dir="rtl"] .product-badge{right:10px}[dir="ltr"] .product-badge{left:10px}
.product-card-body{padding:14px;flex:1;display:flex;flex-direction:column}
.product-sku{font-size:11px;color:var(--text-muted);margin-bottom:3px}
.product-name{font-size:14px;font-weight:700;color:var(--text);margin-bottom:8px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex:1}
.product-price{font-size:20px;font-weight:800;color:var(--primary);margin-bottom:3px}
.product-price span{font-size:12px;font-weight:400;color:var(--text-muted)}
.product-min{font-size:12px;color:var(--text-2);margin-bottom:12px}
.product-card-footer{display:flex;gap:8px;margin-top:auto}

/* ---- FORMS ---- */
.form-group{margin-bottom:18px}
.form-label{display:block;font-size:13px;font-weight:600;color:var(--text);margin-bottom:5px}
.form-label.required::after{content:' *';color:var(--danger)}
.form-control{width:100%;padding:10px 13px;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:14px;font-family:inherit;color:var(--text);background:var(--white);transition:border-color .2s;outline:none}
.form-control:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.1)}
.form-control::placeholder{color:var(--text-muted)}
select.form-control{cursor:pointer}
textarea.form-control{min-height:90px;resize:vertical}
.form-hint{font-size:11px;color:var(--text-muted);margin-top:3px}
.form-error{font-size:11px;color:var(--danger);margin-top:3px}
.form-row{display:grid;gap:14px}
.form-row-2{grid-template-columns:1fr 1fr}
.form-row-3{grid-template-columns:1fr 1fr 1fr}

/* ---- TABLES ---- */
.table-wrap{background:var(--white);border-radius:var(--radius-lg);border:1px solid var(--border);overflow:hidden}
.table-header{padding:18px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.table-header h3{font-size:17px;font-weight:700}
.table{width:100%;border-collapse:collapse}
.table th{padding:11px 14px;text-align:start;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);background:var(--bg);border-bottom:1px solid var(--border);white-space:nowrap}
.table td{padding:13px 14px;border-bottom:1px solid var(--border);font-size:14px;vertical-align:middle}
.table tr:last-child td{border-bottom:none}
.table tr:hover td{background:var(--bg)}
.table-img{width:42px;height:42px;border-radius:var(--radius-sm);object-fit:cover;background:var(--bg-2);flex-shrink:0}
.table-actions{display:flex;gap:6px;align-items:center}

/* ---- BADGES ---- */
.badge{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:600}
.badge-primary{background:var(--primary-mid);color:var(--primary)}
.badge-success{background:var(--success-light);color:var(--success)}
.badge-warning{background:var(--warning-light);color:var(--warning)}
.badge-danger{background:var(--danger-light);color:var(--danger)}
.badge-gray{background:var(--bg-2);color:var(--text-muted)}

/* ---- MODAL ---- */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;visibility:hidden;transition:all .2s}
.modal-overlay.open{opacity:1;visibility:visible}
.modal{background:var(--white);border-radius:var(--radius-xl);width:100%;max-width:540px;max-height:90vh;overflow-y:auto;transform:scale(.95) translateY(10px);transition:transform .25s;scrollbar-width:thin}
.modal-overlay.open .modal{transform:scale(1) translateY(0)}
.modal-lg{max-width:780px}
.modal-header{padding:22px 24px 0;display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.modal-header h3{font-size:19px;font-weight:700}
.modal-close{width:30px;height:30px;border-radius:50%;background:var(--bg-2);display:flex;align-items:center;justify-content:center;cursor:pointer;border:none;font-size:16px;color:var(--text-2);transition:all .2s}
.modal-close:hover{background:var(--border)}
.modal-body{padding:0 24px}
.modal-footer{padding:18px 24px;display:flex;gap:10px;justify-content:flex-end;border-top:1px solid var(--border);margin-top:18px}

/* ---- CARDS ---- */
.card{background:var(--white);border-radius:var(--radius-lg);border:1px solid var(--border);padding:22px}
.card-sm{padding:16px}

/* ---- STATS ---- */
.stat-card{background:var(--white);border-radius:var(--radius-lg);border:1px solid var(--border);padding:20px;display:flex;align-items:center;gap:14px}
.stat-icon{width:50px;height:50px;border-radius:var(--radius);display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0}
.stat-icon.blue{background:var(--primary-light)}
.stat-icon.green{background:var(--success-light)}
.stat-icon.yellow{background:var(--warning-light)}
.stat-icon.red{background:var(--danger-light)}
.stat-value{font-size:26px;font-weight:800;line-height:1;margin-bottom:3px}
.stat-label{font-size:13px;color:var(--text-muted)}

/* ---- TOAST ---- */
.toast{position:fixed;bottom:24px;z-index:9999;background:var(--secondary);color:white;padding:11px 18px;border-radius:var(--radius);font-size:14px;font-weight:500;box-shadow:var(--shadow-lg);transform:translateY(20px);opacity:0;transition:all .3s;max-width:300px;display:flex;align-items:center;gap:10px}
[dir="rtl"] .toast{right:24px;left:auto}[dir="ltr"] .toast{left:24px;right:auto}
.toast.show{transform:translateY(0);opacity:1}
.toast-success{background:#059669}
.toast-error{background:var(--danger)}
.toast-warning{background:var(--warning)}

/* ---- BREADCRUMB ---- */
.breadcrumb{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-muted);margin-bottom:20px;flex-wrap:wrap}
.breadcrumb a{color:var(--text-2)}.breadcrumb a:hover{color:var(--primary)}
.breadcrumb-sep{color:var(--border-dark)}

/* ---- PAGINATION ---- */
.pagination{display:flex;align-items:center;gap:6px;justify-content:center;margin-top:40px}
.page-btn{width:36px;height:36px;border-radius:var(--radius-sm);border:1.5px solid var(--border);background:var(--white);font-size:14px;font-weight:500;color:var(--text);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s}
.page-btn:hover{border-color:var(--primary);color:var(--primary)}
.page-btn.active{background:var(--primary);border-color:var(--primary);color:white}

/* ---- TABS ---- */
.tabs{display:flex;border-bottom:2px solid var(--border);margin-bottom:22px}
.tab-btn{padding:11px 18px;font-size:14px;font-weight:600;color:var(--text-muted);border-bottom:2px solid transparent;margin-bottom:-2px;cursor:pointer;transition:all .2s}
.tab-btn:hover{color:var(--primary)}
.tab-btn.active{color:var(--primary);border-bottom-color:var(--primary)}
.tab-content{display:none}.tab-content.active{display:block}

/* ---- FILE UPLOAD ---- */
.file-upload{border:2px dashed var(--border-dark);border-radius:var(--radius-lg);padding:36px;text-align:center;cursor:pointer;transition:all .2s}
.file-upload:hover,.file-upload.drag-over{border-color:var(--primary);background:var(--primary-light)}
.file-upload-icon{font-size:44px;margin-bottom:10px}
.file-upload h4{font-size:15px;font-weight:700;margin-bottom:5px}
.file-upload p{font-size:13px;color:var(--text-muted)}
.file-upload input[type="file"]{display:none}

/* ---- PAGE HERO ---- */
.page-hero{background:linear-gradient(135deg,var(--secondary) 0%,#1E3A6E 100%);padding:52px 0;color:white;text-align:center}
.page-hero h1{font-size:32px;font-weight:800;margin-bottom:8px}
.page-hero p{font-size:15px;opacity:.7}

/* ---- PRODUCTS PAGE ---- */
.products-layout{display:grid;grid-template-columns:250px 1fr;gap:24px;align-items:start}
.filter-sidebar{position:sticky;top:88px}
.filter-box{background:var(--white);border-radius:var(--radius-lg);border:1px solid var(--border);overflow:hidden;margin-bottom:14px}
.filter-box-header{padding:13px 16px;border-bottom:1px solid var(--border);font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:space-between;cursor:pointer}
.filter-box-body{padding:13px 16px}
.filter-cat-btn{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border-radius:var(--radius-sm);font-size:13px;color:var(--text-2);cursor:pointer;transition:all .2s;width:100%;text-align:start}
.filter-cat-btn:hover{background:var(--bg-2)}
.filter-cat-btn.active{background:var(--primary-light);color:var(--primary);font-weight:600}
.filter-cat-count{font-size:11px;background:var(--bg-2);padding:2px 7px;border-radius:20px;color:var(--text-muted)}
.products-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:18px;flex-wrap:wrap}
.search-box{position:relative;flex:1;min-width:200px}
.search-box .form-control{padding-inline-start:38px}
.search-icon{position:absolute;top:50%;transform:translateY(-50%);width:17px;height:17px;color:var(--text-muted);pointer-events:none}
[dir="rtl"] .search-icon{right:11px}[dir="ltr"] .search-icon{left:11px}
.results-count{font-size:13px;color:var(--text-muted)}

/* ---- PRODUCT DETAIL ---- */
.product-detail-layout{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
.product-gallery{position:sticky;top:88px}
.gallery-main{border-radius:var(--radius-lg);overflow:hidden;background:var(--bg-2);height:380px;display:flex;align-items:center;justify-content:center;margin-bottom:10px;border:1.5px solid var(--border)}
.gallery-main img{max-height:100%;max-width:100%;object-fit:contain}
.gallery-thumbs{display:flex;gap:8px;flex-wrap:wrap}
.gallery-thumb{width:64px;height:64px;border-radius:var(--radius-sm);overflow:hidden;border:2px solid var(--border);cursor:pointer;transition:all .2s;flex-shrink:0}
.gallery-thumb:hover,.gallery-thumb.active{border-color:var(--primary)}
.gallery-thumb img{width:100%;height:100%;object-fit:cover}
.product-info h1{font-size:26px;font-weight:800;color:var(--secondary);margin-bottom:8px;line-height:1.3}
.product-meta{display:flex;gap:10px;margin-bottom:18px;font-size:12px;color:var(--text-muted);flex-wrap:wrap;align-items:center}
.product-price-box{background:var(--primary-light);border-radius:var(--radius);padding:16px 18px;margin-bottom:18px;border:1px solid var(--primary-mid)}
.product-price-box .price{font-size:30px;font-weight:800;color:var(--primary)}
.product-price-box .unit{font-size:13px;color:var(--text-2)}
.product-price-box .min-o{font-size:12px;color:var(--text-muted);margin-top:3px}
.product-desc{font-size:14px;color:var(--text-2);line-height:1.8;margin-bottom:22px}
.qty-control{display:flex;align-items:center;margin-bottom:16px;width:fit-content}
.qty-btn{width:40px;height:42px;border:1.5px solid var(--border);background:var(--bg);font-size:18px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s}
.qty-btn:hover{background:var(--border)}
[dir="rtl"] .qty-btn:first-child{border-radius:0 var(--radius-sm) var(--radius-sm) 0;border-right:none}
[dir="rtl"] .qty-btn:last-child{border-radius:var(--radius-sm) 0 0 var(--radius-sm);border-left:none}
[dir="ltr"] .qty-btn:first-child{border-radius:var(--radius-sm) 0 0 var(--radius-sm);border-right:none}
[dir="ltr"] .qty-btn:last-child{border-radius:0 var(--radius-sm) var(--radius-sm) 0;border-left:none}
.qty-input{width:68px;height:42px;border:1.5px solid var(--border);text-align:center;font-size:16px;font-weight:700;font-family:inherit;color:var(--text);outline:none;border-inline:none}

/* ---- CART ---- */
.cart-layout{display:grid;grid-template-columns:1fr 360px;gap:22px;align-items:start}
.cart-empty{text-align:center;padding:70px 20px}
.cart-empty-icon{font-size:72px;margin-bottom:14px}
.cart-summary{background:var(--white);border-radius:var(--radius-lg);border:1px solid var(--border);padding:22px;position:sticky;top:88px}
.cart-item-img{width:54px;height:54px;border-radius:var(--radius-sm);object-fit:cover;background:var(--bg-2)}

/* ---- AUTH ---- */
.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:40px 20px;background:linear-gradient(135deg,var(--bg) 0%,var(--primary-light) 100%)}
.auth-card{background:var(--white);border-radius:var(--radius-xl);border:1px solid var(--border);box-shadow:var(--shadow-lg);padding:38px;width:100%;max-width:420px}
.auth-logo{text-align:center;margin-bottom:28px}
.auth-logo-icon{width:56px;height:56px;background:var(--primary);border-radius:12px;display:flex;align-items:center;justify-content:center;color:white;font-weight:800;font-size:20px;margin:0 auto 12px}
.auth-logo h1{font-size:22px;font-weight:800;color:var(--secondary)}
.auth-logo p{font-size:13px;color:var(--text-muted)}
.divider-text{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--text-muted);font-size:12px}
.divider-text::before,.divider-text::after{content:'';flex:1;height:1px;background:var(--border)}

/* ---- ACCOUNT ---- */
.account-layout{display:grid;grid-template-columns:240px 1fr;gap:22px;align-items:start}
.account-nav{background:var(--white);border-radius:var(--radius-lg);border:1px solid var(--border);padding:8px;position:sticky;top:88px}
.acc-nav-link{display:flex;align-items:center;gap:10px;padding:11px 13px;border-radius:var(--radius-sm);font-size:14px;font-weight:500;color:var(--text-2);transition:all .2s;cursor:pointer}
.acc-nav-link:hover{background:var(--bg-2)}
.acc-nav-link.active{background:var(--primary-light);color:var(--primary);font-weight:600}
.acc-nav-link svg{width:17px;height:17px;flex-shrink:0}

/* ---- FOOTER ---- */
.footer{background:var(--secondary);color:rgba(255,255,255,.7);padding:56px 0 28px;margin-top:80px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:36px;margin-bottom:36px}
.footer-brand{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.footer-brand-name{font-size:17px;font-weight:800;color:white}
.footer-desc{font-size:13px;line-height:1.8;margin-bottom:18px}
.footer-heading{font-size:14px;font-weight:700;color:white;margin-bottom:14px}
.footer-links{display:flex;flex-direction:column;gap:9px}
.footer-links a{font-size:13px;transition:color .2s}.footer-links a:hover{color:white}
.footer-social{display:flex;gap:8px;margin-top:16px}
.footer-social a{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;transition:all .2s;font-size:14px}
.footer-social a:hover{background:var(--primary)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:22px;display:flex;align-items:center;justify-content:space-between;font-size:12px}

/* ---- WHATSAPP FLOAT ---- */
.wa-float{position:fixed;bottom:24px;z-index:999;width:50px;height:50px;border-radius:50%;background:#25D366;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-lg);transition:transform .2s}
[dir="rtl"] .wa-float{left:24px;right:auto}[dir="ltr"] .wa-float{right:24px;left:auto}
.wa-float:hover{transform:scale(1.1)}

/* ---- LOADING ---- */
.loading-overlay{position:fixed;inset:0;background:rgba(255,255,255,.85);display:flex;align-items:center;justify-content:center;z-index:9999;backdrop-filter:blur(3px)}
.spinner{width:40px;height:40px;border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .7s linear infinite}
.skeleton{background:linear-gradient(90deg,var(--bg) 25%,var(--border) 50%,var(--bg) 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:var(--radius-sm)}

/* ---- FEATURES SECTION ---- */
.features-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px}
.feature-card{background:var(--white);border-radius:var(--radius-lg);border:1px solid var(--border);padding:24px;text-align:center;transition:all .3s}
.feature-card:hover{border-color:var(--primary);box-shadow:var(--shadow-md)}
.feature-icon{width:56px;height:56px;background:var(--primary-light);border-radius:var(--radius);display:flex;align-items:center;justify-content:center;font-size:26px;margin:0 auto 14px}
.feature-card h3{font-size:15px;font-weight:700;margin-bottom:6px;color:var(--secondary)}
.feature-card p{font-size:13px;color:var(--text-muted);line-height:1.6}

/* ---- STATS BAND ---- */
.stats-band{background:var(--primary);padding:48px 0}
.stats-band-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;text-align:center}
.stats-band-item{color:white}
.stats-band-num{font-size:36px;font-weight:800;margin-bottom:4px}
.stats-band-label{font-size:14px;opacity:.85}

/* ---- ANIMATIONS ---- */
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.fade-in{animation:fadeIn .35s ease}

/* ---- UTILITIES ---- */
.text-center{text-align:center}.text-start{text-align:start}.text-end{text-align:end}
.text-muted{color:var(--text-muted)}.text-primary{color:var(--primary)}.text-success{color:var(--success)}.text-danger{color:var(--danger)}
.fw-bold{font-weight:700}.fw-800{font-weight:800}
.fs-sm{font-size:13px}.fs-lg{font-size:18px}
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:32px}
.flex{display:flex}.flex-center{display:flex;align-items:center;justify-content:center}
.flex-between{display:flex;align-items:center;justify-content:space-between}
.flex-align{display:flex;align-items:center}
.gap-1{gap:8px}.gap-2{gap:16px}.gap-3{gap:24px}
.w-full{width:100%}.hidden{display:none!important}
.img-placeholder{background:var(--bg-2);display:flex;align-items:center;justify-content:center;font-size:32px;color:var(--text-muted)}

/* ---- RESPONSIVE ---- */
@media(max-width:1024px){
  .footer-grid{grid-template-columns:1fr 1fr}
  .products-layout{grid-template-columns:1fr}
  .filter-sidebar{position:static}
  .product-detail-layout{grid-template-columns:1fr}
  .cart-layout{grid-template-columns:1fr}
  .account-layout{grid-template-columns:1fr}
  .account-nav{position:static;display:flex;overflow-x:auto;padding:4px}
  .stats-band-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px){
  .hero{height:340px}
  .hero-content h1{font-size:28px}
  .hero-content{padding:0 24px}
  .section{padding:44px 0}
  .section-header h2{font-size:24px}
  .categories-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
  .products-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
  .footer-grid{grid-template-columns:1fr;gap:28px}
  .footer-bottom{flex-direction:column;gap:10px;text-align:center}
  .nav{display:none}
  .mobile-menu-btn{display:flex!important}
  .form-row-2,.form-row-3{grid-template-columns:1fr}
  .stats-band-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
  .hero{height:260px}
  .hero-content h1{font-size:20px}
  .hero-content p{font-size:14px}
  .container{padding:0 14px}
  .auth-card{padding:24px 18px}
  .stats-band-grid{grid-template-columns:1fr 1fr}
}
