/* store-theme.css - Standeg Online Store - shared theme for store/checkout/thank-you pages */
:root {
    --primary: #0a0a0a;
    --secondary: #ffffff;
    --bg-main: #ffffff;
    --bg-soft: #f8fafc;
    --bg-light: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent: #4338ca;
    --accent-light: #6366f1;
    --accent-dark: #312e81;
    --accent-gradient: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    --accent-2: #0891b2;
    --accent-2-light: #06b6d4;
    --warm: #f59e0b;
    --border: #e2e8f0;
    --success: #16a34a;
    --danger: #dc2626;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 24px rgba(15,23,42,0.06);
    --shadow-lg: 0 20px 45px rgba(15,23,42,0.10);
}
* { box-sizing: border-box; }
body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    margin: 0;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header */
.store-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.store-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0;
}
.store-logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; }
.store-logo img { height: 38px; }
.store-nav { display: flex; align-items: center; gap: 22px; }
.store-nav a { font-weight: 700; color: var(--text-main); font-size: 15px; transition: color .2s; position: relative; }
.store-nav a:hover, .store-nav a.text-accent { color: var(--accent); }
.header-contact { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--text-muted); }
.header-contact i { color: #25D366; }
.cart-btn {
    position: relative; display: flex; align-items: center; gap: 8px;
    background: var(--accent-gradient); color: #fff; padding: 10px 18px;
    border-radius: 999px; font-weight: 800; font-size: 14px; border: none; cursor: pointer;
    box-shadow: 0 6px 16px rgba(67,56,202,0.28);
    transition: transform .15s, box-shadow .15s;
}
.cart-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(67,56,202,0.35); }
.cart-badge {
    position: absolute; top: -8px; left: -8px;
    background: var(--warm); color: #fff; font-size: 11px; font-weight: 900;
    width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}

/* Hero */
.hero { background: var(--bg-soft); position: relative; overflow: hidden; padding: 64px 0 60px; text-align: center; }
.hero::before { content: ''; position: absolute; top: -120px; right: -100px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(67,56,202,0.14) 0%, rgba(67,56,202,0) 70%); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: -140px; left: -100px; width: 340px; height: 340px; background: radial-gradient(circle, rgba(8,145,178,0.12) 0%, rgba(8,145,178,0) 70%); border-radius: 50%; }
.hero-inner { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); color: var(--accent); padding: 8px 18px; border-radius: 999px; font-weight: 800; font-size: 13.5px; box-shadow: var(--shadow); margin-bottom: 22px; }
.hero-badge i { color: var(--warm); }
.hero h1 { font-size: 40px; font-weight: 900; margin: 0 0 14px; line-height: 1.3; color: var(--text-main); }
.hero h1 .hl { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 16.5px; color: var(--text-muted); max-width: 620px; margin: 0 auto 30px; line-height: 1.8; }
.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary { background: var(--accent-gradient); color: #fff; padding: 15px 30px; border-radius: 999px; font-weight: 900; font-size: 15.5px; box-shadow: 0 10px 26px rgba(67,56,202,0.30); display: inline-flex; align-items: center; gap: 8px; transition: transform .15s; }
.btn-hero-primary:hover { transform: translateY(-2px); }
.btn-hero-secondary { background: #fff; color: var(--text-main); padding: 15px 28px; border-radius: 999px; font-weight: 800; font-size: 15px; border: 1.5px solid var(--border); display: inline-flex; align-items: center; gap: 8px; transition: border-color .15s, color .15s; }
.btn-hero-secondary:hover { border-color: var(--accent); color: var(--accent); }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 40px; margin-top: 42px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat b { display: block; font-size: 26px; font-weight: 900; color: var(--text-main); }
.hero-stat span { font-size: 13px; color: var(--text-muted); font-weight: 700; }

/* Features */
.features { padding: 10px 0 20px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; margin-top: 10px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; text-align: center; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 22px; color: #fff; }
.feature-icon.c1 { background: var(--accent-gradient); }
.feature-icon.c2 { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.feature-icon.c3 { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.feature-icon.c4 { background: linear-gradient(135deg, #16a34a, #4ade80); }
.feature-card h4 { margin: 0 0 6px; font-size: 15.5px; font-weight: 800; }
.feature-card p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.7; }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 8px; }
.section-head h2 { font-size: 26px; font-weight: 900; margin: 0 0 8px; }
.section-head p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

/* Hero-ish page header (checkout/other pages) */
.page-header { background: var(--bg-soft); color: var(--text-main); padding: 46px 0 54px; text-align: center; border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: 30px; font-weight: 900; margin: 0 0 10px; }
.page-header h1 i { color: var(--accent); }
.page-header p { font-size: 15px; color: var(--text-muted); max-width: 620px; margin: 0 auto; }

/* Product grid */
.products-wrap { padding: 50px 0 70px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 24px; margin-top: 30px; }
.pcard { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard-img { width: 100%; aspect-ratio: 4/3; background: var(--bg-light); overflow: hidden; position: relative; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-img.is-fallback img { object-fit: contain; padding: 26%; opacity: .55; }
.pcard-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-title { font-size: 17px; font-weight: 800; }
.pcard-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.pcard-price { font-size: 20px; font-weight: 900; color: var(--accent-dark); }
.pcard-price span { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.btn-add { width: 100%; padding: 12px; border: none; border-radius: var(--radius-sm); background: var(--accent-gradient); color: #fff; font-weight: 800; font-size: 14.5px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .15s, transform .1s; }
.btn-add:hover { opacity: .92; }
.btn-add:active { transform: scale(.98); }
.btn-add.added { background: var(--success); }

/* Cart drawer */
.cart-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.45); z-index: 60; display: none; }
.cart-overlay.open { display: block; }
.cart-drawer { position: fixed; top: 0; right: -420px; width: 100%; max-width: 400px; height: 100%; background: #fff; z-index: 61; box-shadow: -20px 0 50px rgba(15,23,42,0.18); display: flex; flex-direction: column; transition: right .25s ease; }
.cart-drawer.open { right: 0; }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cart-drawer-head h3 { margin: 0; font-size: 17px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.cart-drawer-close { background: var(--bg-light); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.cart-items { flex: 1; overflow-y: auto; padding: 6px 20px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--bg-light); }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 800; font-size: 14px; }
.cart-item-price { color: var(--text-muted); font-size: 13px; }
.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-light); cursor: pointer; font-weight: 800; }
.qty-val { font-weight: 800; min-width: 18px; text-align: center; }
.remove-item { color: var(--danger); font-size: 12px; font-weight: 700; cursor: pointer; background: none; border: none; margin-top: 6px; }
.cart-empty { text-align: center; color: var(--text-muted); padding: 60px 20px; }
.cart-footer { padding: 18px 20px; border-top: 1px solid var(--border); }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 900; font-size: 17px; margin-bottom: 14px; }
.btn-checkout { width: 100%; padding: 14px; border: none; border-radius: 12px; background: var(--accent-gradient); color: #fff; font-weight: 900; font-size: 15.5px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-checkout:disabled { opacity: .5; cursor: not-allowed; }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; padding: 40px 0 80px; align-items: start; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } }
.co-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px; }
.co-card h3 { margin: 0 0 16px; font-size: 17px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; color: var(--text-main); }
.form-row input, .form-row textarea, .form-row select { width: 100%; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 14px; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--accent); }
.pay-option { border: 1.5px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.pay-option.active { border-color: var(--accent); background: var(--bg-soft); }
.pay-option-head { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14.5px; }
.pay-details { margin-top: 10px; font-size: 13px; color: var(--text-muted); line-height: 1.8; display: none; }
.pay-option.active .pay-details { display: block; }
.instapay-box { background: var(--bg-light); border-radius: 10px; padding: 12px 14px; margin-top: 8px; }
.instapay-num { font-weight: 900; font-size: 18px; color: var(--accent-dark); direction: ltr; text-align: center; }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.summary-line.total { font-weight: 900; font-size: 17px; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; }
.btn-submit-order { width: 100%; padding: 15px; border: none; border-radius: 12px; background: var(--accent-gradient); color: #fff; font-weight: 900; font-size: 16px; cursor: pointer; margin-top: 10px; }
.btn-submit-order:disabled { opacity: .5; cursor: not-allowed; }
.co-sum { font-size: 22px; font-weight: 900; color: var(--accent-dark); margin: 14px 0; }

/* Footer */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 50px 0 0; margin-top: 50px; }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 30px; padding-bottom: 36px; }
@media (max-width: 780px) { .footer-top { grid-template-columns: repeat(2,1fr); } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { height: 32px; }
.footer-brand span { font-weight: 900; font-size: 18px; color: #fff; }
.footer-col p { font-size: 13.5px; line-height: 1.9; color: #94a3b8; margin: 0; }
.footer-col h5 { color: #fff; font-size: 14.5px; font-weight: 800; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 13.5px; color: #94a3b8; transition: color .15s; }
.footer-col ul a:hover { color: #fff; }
.footer-col ul a i { width: 16px; color: var(--accent-light); margin-left: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; font-size: 13px; color: #64748b; }

/* store-footer legacy alias (checkout/thank-you pages use the same class) */
.store-footer { background: #0f172a; color: #cbd5e1; padding: 34px 0; text-align: center; font-size: 13.5px; margin-top: 40px; }

/* Responsive */
@media (max-width: 640px) {
    .store-nav { gap: 12px; }
    .header-contact { display: none; }
    .hero { padding: 44px 0 40px; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .hero-stats { gap: 24px; }
    .page-header h1 { font-size: 24px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 14px; }
    .pcard-title { font-size: 14.5px; }
    .pcard-price { font-size: 17px; }
    .pcard-body { padding: 13px; gap: 6px; }
    .btn-add { padding: 10px; font-size: 13px; }
    .cart-drawer { max-width: 100%; }
}

/* عملاؤنا المميزون - شركاء النجاح */
.partners { padding: 40px 0 20px; }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 18px; margin-top: 20px; }
.partner-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 18px; text-align: center; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; display: block; }
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.partner-logo { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; background: var(--bg-light); font-size: 22px; color: var(--accent); }
.partner-logo img { width: 100%; height: 100%; object-fit: cover; }
.partner-card h4 { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: var(--text-main); }
.partner-card p { margin: 0 0 10px; font-size: 13.5px; color: var(--text-muted); line-height: 1.6; min-height: 40px; }
.partner-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent); }

.partners-pagination { display:flex; justify-content:center; gap:8px; margin-top:24px; flex-wrap:wrap; }
.partners-pagination button { min-width:36px; height:36px; padding:0 10px; border-radius:8px; border:1px solid var(--border); background:var(--bg-soft); color:var(--text-main); cursor:pointer; font-weight:600; transition:all .2s; font-size:14px; }
.partners-pagination button:hover { background:var(--bg-light); }
.partners-pagination button.active { background:var(--accent); color:#fff; border-color:var(--accent); }