/* ============================================================
   معمول سِتّي — Ramadan Liquid Glass Theme v2.0
   Mobile-first • RTL-ready • iPhone-optimized
   ============================================================ */

:root {
    /* Ramadan palette */
    --primary-gold: #d4a843;
    --primary-gold-light: #e8c96a;
    --primary-gold-dark: #b8912e;
    --deep-navy: #0f1b2d;
    --warm-cream: #faf6ef;
    --text-dark: #1a1a2e;
    --text-mid: #4a4a5a;
    --text-light: #8a8a9a;

    /* ── Liquid Glass tokens ── */
    --glass-white: rgba(255, 255, 255, 0.52);
    --glass-white-strong: rgba(255, 255, 255, 0.72);
    --glass-white-card: rgba(255, 255, 255, 0.42);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-border-subtle: rgba(255, 255, 255, 0.35);
    --glass-highlight: inset 0 1px 0 0 rgba(255, 255, 255, 0.7);
    --glass-shadow: 0 8px 32px rgba(15, 27, 45, 0.10), 0 2px 8px rgba(15, 27, 45, 0.06);
    --glass-shadow-lg: 0 16px 48px rgba(15, 27, 45, 0.12), 0 4px 12px rgba(15, 27, 45, 0.06);
    --blur-sm: blur(12px);
    --blur-md: blur(20px);
    --blur-lg: blur(32px);
    --glass-dark-bg: rgba(15, 27, 45, 0.7);

    /* Functional */
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 22px;
    --border-radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --container-width: 1200px;
    --header-height: 72px;
    --card-shadow-hover: 0 20px 50px rgba(15, 27, 45, 0.14), 0 4px 12px rgba(15, 27, 45, 0.06);
    --btn-shadow: 0 4px 16px rgba(212, 168, 67, 0.30);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
* { -webkit-overflow-scrolling: touch; }

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 15% 10%, rgba(212, 168, 67, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 85% 80%, rgba(212, 168, 67, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 40%, rgba(184, 145, 46, 0.04) 0%, transparent 50%),
        linear-gradient(170deg, #faf7f0 0%, #f5ecd6 30%, #efe3c8 60%, #e8d9b8 100%);
    background-attachment: fixed;
}

/* Subtle dot pattern */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(212, 168, 67, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(212, 168, 67, 0.04) 1px, transparent 1px);
    background-size: 50px 50px, 70px 70px;
    pointer-events: none; z-index: 0;
}
body > * { position: relative; z-index: 1; }

.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 16px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--primary-gold-dark); transition: var(--transition-fast); }
a:hover { color: var(--primary-gold); }
button { cursor: pointer; border: none; background: none; font-family: inherit; -webkit-tap-highlight-color: transparent; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 0.75rem; font-weight: 700; line-height: 1.3; color: var(--text-dark); }
h1 { font-size: 1.75rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.25rem; }
p { margin: 0 0 0.75rem; color: var(--text-mid); }

/* ============================================================
   ADMIN PREVIEW BANNER
   ============================================================ */
.admin-preview-banner {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
    color: white; text-align: center; padding: 10px 16px;
    font-weight: 700; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    box-shadow: 0 4px 16px rgba(212, 168, 67, 0.3);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin: 0 16px;
    position: relative; z-index: 101;
}
.admin-preview-banner a { color: white; text-decoration: underline; font-weight: 600; }

/* ============================================================
   HEADER — Floating Liquid Glass Pill
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 16px;
    /* transparent — the pill inside has the glass */
    background: transparent;
}

@supports(padding: max(0px)) {
    .site-header { padding-top: max(10px, env(safe-area-inset-top)); }
}

/* ── The glass pill ── */
.header-glass {
    background: var(--glass-white);
    -webkit-backdrop-filter: var(--blur-lg);
    backdrop-filter: var(--blur-lg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    box-shadow:
        var(--glass-shadow),
        var(--glass-highlight),
        0 0 0 0.5px rgba(255, 255, 255, 0.5);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    transition: var(--transition);
}

/* Gold shimmer accent line */
.header-glass::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.35), transparent);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.logo { display: flex; align-items: center; margin-inline-end: auto; }
.logo a { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.logo img {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
    border: 2px solid rgba(212, 168, 67, 0.5);
    box-shadow: 0 0 16px rgba(212, 168, 67, 0.20), 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}
.logo img:hover { box-shadow: 0 0 24px rgba(212, 168, 67, 0.35); }

.logo h1 { font-size: 1.4rem; color: var(--text-dark); margin: 0; font-weight: 800; letter-spacing: -0.02em; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-back-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: var(--transition);
    flex-shrink: 0;
}
.header-back-btn:hover { background: rgba(0, 0, 0, 0.08); }

/* Language pill — nested glass */
.language-switcher { display: inline-block; }

.language-switcher .lang-link {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: var(--blur-sm);
    backdrop-filter: var(--blur-sm);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: var(--text-dark);
    padding: 6px 14px; border-radius: 50px;
    text-decoration: none; font-size: 0.78rem; font-weight: 600;
    box-shadow: var(--glass-highlight), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.language-switcher .lang-link:hover {
    background: rgba(212, 168, 67, 0.12);
    border-color: rgba(212, 168, 67, 0.4);
    transform: translateY(-1px);
}

.language-switcher .flag-icon {
    width: 20px; height: 14px; object-fit: cover;
    border-radius: 2px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Cart button — nested glass circle */
.cart-icon {
    position: relative;
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: var(--blur-sm);
    backdrop-filter: var(--blur-sm);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: var(--text-dark); font-size: 1.15rem;
    cursor: pointer; transition: var(--transition);
    box-shadow: var(--glass-highlight), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cart-icon:hover {
    background: rgba(212, 168, 67, 0.12);
    border-color: rgba(212, 168, 67, 0.4);
    color: var(--primary-gold-dark);
}

.cart-count {
    position: absolute; top: -3px; right: -3px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
    color: white; font-size: 0.62rem; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    padding: 0 3px;
    box-shadow: 0 2px 8px rgba(212, 168, 67, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.8);
}

html[dir="rtl"] .cart-count { right: auto; left: -3px; }

/* ============================================================
   MINI CART — Bottom Sheet Glass Panel
   ============================================================ */
.mini-cart-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 27, 45, 0.35);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    z-index: 1000; display: none;
    align-items: flex-end; justify-content: center;
}
.mini-cart-overlay.visible { display: flex; }

.mini-cart {
    position: fixed; bottom: 0; left: 0; right: 0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    min-height: 60vh;
    max-height: 100vh;
    background: #fff;
    border-radius: 24px 24px 0 0;
    display: flex; flex-direction: column;
    box-shadow: 0 -10px 50px rgba(15, 27, 45, 0.18);
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 1001;
    overflow: hidden;
}
.mini-cart-overlay.active .mini-cart { transform: translateY(0); }

/* Drag handle */
.mini-cart-handle {
    display: flex; justify-content: center; padding: 10px 0 4px; cursor: grab;
}
.mini-cart-handle span {
    width: 40px; height: 4px; border-radius: 4px;
    background: rgba(0, 0, 0, 0.12);
}

.mini-cart-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 20px 14px;
}
.mini-cart-header h3 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.mini-cart-header .cart-items-count {
    font-size: 0.82rem; font-weight: 500; color: var(--text-light); margin-inline-start: 6px;
}

.close-mini-cart {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--text-mid); transition: var(--transition-fast);
}
.close-mini-cart:hover { background: rgba(231, 76, 60, 0.08); color: var(--error-color); }

/* ── Progress Bar (Raffle) ── */
.cart-progress-section {
    padding: 0 20px 14px;
}
.cart-progress-wrapper {
    background: rgba(212, 168, 67, 0.06);
    border: 1px solid rgba(212, 168, 67, 0.15);
    border-radius: 14px; padding: 12px 16px;
}
.cart-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: sa;
    margin-bottom: 8px;
    font-size: 0.82rem;
    flex-direction: column;
}
.cart-progress-label {
    font-weight: 600; color: var(--text-dark);
}
.cart-progress-label i { color: var(--primary-gold); margin-inline-end: 4px; }
.cart-progress-amount {
    font-weight: 700; color: var(--primary-gold-dark); font-size: 0.85rem;
}
.cart-progress-bar {
    width: 100%; height: 8px; background: rgba(0, 0, 0, 0.06);
    border-radius: 8px; overflow: hidden; position: relative;
}
.cart-progress-fill {
    height: 100%; border-radius: 8px;
    background: linear-gradient(90deg, var(--primary-gold-light), var(--primary-gold-dark));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; min-width: 0;
}
.cart-progress-fill::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.3) 50%);
    background-size: 12px 100%;
    animation: progress-shimmer 1s linear infinite;
}
@keyframes progress-shimmer { 0% { transform: translateX(-12px); } 100% { transform: translateX(0); } }

.cart-progress-complete {
    text-align: center; font-size: 0.82rem; font-weight: 700;
    color: var(--success-color); margin-top: 6px;
    display: none;
}
.cart-progress-complete i { margin-inline-end: 4px; }
.cart-progress-wrapper.complete .cart-progress-complete { display: block; }
.cart-progress-wrapper.complete .cart-progress-fill {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}
.cart-progress-wrapper.complete { border-color: rgba(46, 204, 113, 0.2); background: rgba(46, 204, 113, 0.04); }

/* ── Mini cart content ── */
.mini-cart-content {
    flex: 1; overflow-y: auto; padding: 0 20px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.empty-cart {
    text-align: center; padding: 40px 0; color: var(--text-light); font-size: 0.95rem;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.empty-cart i { font-size: 2rem; opacity: 0.3; }

.mini-cart-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}
.mini-cart-item:last-child { border-bottom: none; }

.mini-cart-image {
    width: 60px; height: 60px; border-radius: 12px;
    overflow: hidden; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.mini-cart-image img { width: 100%; height: 100%; object-fit: cover; }

.mini-cart-details { flex: 1; min-width: 0; }
.mini-cart-details h4 {
    margin: 0 0 2px; font-size: 0.92rem; font-weight: 600;
    color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.item-size { font-size: 0.78rem; color: var(--text-light); margin: 0 0 4px; }
.item-price { font-weight: 700; color: var(--primary-gold-dark); margin: 0; font-size: 0.9rem; }

.mini-cart-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
html[dir="rtl"] .mini-cart-right { align-items: flex-start; }

.mini-cart-quantity {
    display: flex; align-items: center;
    background: rgba(0, 0, 0, 0.03); border-radius: 22px; padding: 3px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.mini-qty-btn {
    width: 28px; height: 28px; background: white; border: none; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; cursor: pointer;
    color: var(--primary-gold-dark); font-size: 0.72rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); transition: var(--transition-fast);
}
.mini-qty-btn:hover { background: var(--primary-gold); color: white; }
.mini-qty-btn:active { transform: scale(0.9); }
.mini-qty-value { padding: 0 10px; font-weight: 700; font-size: 0.92rem; min-width: 20px; text-align: center; }

.remove-item {
    color: var(--text-light); font-size: 0.78rem; background: none; border: none;
    cursor: pointer; padding: 4px 8px; border-radius: 6px;
    display: flex; align-items: center; gap: 4px; transition: var(--transition-fast);
    font-family: 'Cairo', sans-serif; font-weight: 500;
}
.remove-item:hover { color: var(--error-color); background: rgba(231, 76, 60, 0.06); }

/* ── Mini cart footer ── */
.mini-cart-footer {
    padding: 14px 20px; border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}
@supports(padding: max(0px)) {
    .mini-cart-footer { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}

.cart-total {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; font-size: 1.1rem; font-weight: 700;
}
.total-label { color: var(--text-dark); }
.total-value { color: var(--primary-gold-dark); font-size: 1.15rem; }

.mini-cart-actions { display: flex; gap: 10px; }
.mini-cart-actions .btn { flex: 1; font-size: 0.92rem; padding: 12px 16px; }
.mini-cart-actions .btn-view-cart {
    background: transparent; color: var(--text-dark); border: 1.5px solid rgba(0, 0, 0, 0.1);
}
.mini-cart-actions .btn-view-cart:hover { background: rgba(0, 0, 0, 0.03); }
.mini-cart-actions .btn-checkout {
    background: var(--text-dark); color: white; border: none;
}
.mini-cart-actions .btn-checkout:hover { background: #2a2a3e; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.site-main { padding: 24px 0 40px; min-height: calc(100vh - var(--header-height) - 120px); }

.section-title {
    text-align: center; margin-bottom: 32px; position: relative;
    padding-bottom: 18px; font-weight: 800; font-size: 1.5rem;
}
.section-title::after {
    content: '✦'; position: absolute; bottom: -2px; left: 50%;
    transform: translateX(-50%); font-size: 0.9rem; color: var(--primary-gold);
    letter-spacing: 8px; opacity: 0.7;
}

/* ============================================================
   PRODUCT CARDS — Liquid Glass
   ============================================================ */
.products-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 30px; }
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
    position: relative;
    background: var(--glass-white-card);
    -webkit-backdrop-filter: var(--blur-md); backdrop-filter: var(--blur-md);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), var(--glass-highlight);
    overflow: hidden; transition: var(--transition);
}

/* White sheen on top edge */
.product-card::before {
    content: ''; position: absolute; top: 0; left: 10%; right: 10%;
    height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    z-index: 2;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover), var(--glass-highlight);
    border-color: rgba(212, 168, 67, 0.25);
}

.product-card.out-of-stock { pointer-events: none; opacity: 0.6; filter: grayscale(0.3); }
.product-link { display: block; color: inherit; text-decoration: none; }

.product-image { height: 220px; overflow: hidden; position: relative; }

/* Fade image into glass card */
.product-image::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.7), transparent); pointer-events: none;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.product-card:hover .product-image img { transform: scale(1.06); }

.out-of-stock-overlay {
    position: absolute; inset: 0; background: rgba(15, 27, 45, 0.5);
    display: flex; align-items: center; justify-content: center; z-index: 3;
}
.out-of-stock-text {
    background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    padding: 8px 20px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; color: var(--text-dark);
}
.stock-badge {
    position: absolute; top: 12px; right: 12px;
    background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: var(--error-color); padding: 6px 14px; border-radius: 50px; font-weight: 700; font-size: 0.8rem; z-index: 5;
}
html[dir="rtl"] .stock-badge { right: auto; left: 12px; }

/* ── Product Badges (NEW, FREE, CHARITY) ── */
.product-badge-new {
    position: absolute; top: 12px; left: 12px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white; padding: 5px 14px; border-radius: 50px;
    font-weight: 700; font-size: 0.75rem; z-index: 5;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}
html[dir="rtl"] .product-badge-new { left: auto; right: 12px; }
@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Charity badge on catalog card — wider for longer text */
.charity-card .product-badge-new {
    background: linear-gradient(135deg, #6a8f6e, #4a7a4f);
    font-size: 0.7rem;
    padding: 5px 12px;
    box-shadow: 0 3px 10px rgba(74, 122, 79, 0.3);
    animation: none;
}

/* "جديد" badge on charity card — sits below the charity badge */
.badge-new-extra {
    top: 46px !important;
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    font-size: 0.68rem !important;
    padding: 4px 12px !important;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3) !important;
    animation: badgePulse 2s ease-in-out infinite !important;
}

.sp-badge-new.badge-new-extra {
    top: 56px !important;
    font-size: 0.78rem !important;
    padding: 5px 16px !important;
}

.sp-badge-new { top: 16px; left: 16px; font-size: 0.85rem; padding: 6px 18px; }
html[dir="rtl"] .sp-badge-new { left: auto; right: 16px; }

.price-charity {
    color: #4a7a4f !important;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Charity card — subtle green border */
.product-card.charity-card { border: 2px solid rgba(74, 122, 79, 0.15); }
.product-card.charity-card::before {
    background: linear-gradient(135deg, #6a8f6e, #4a7a4f) !important;
}

/* Charity banner on single product page */
.sp-charity-banner {
    background: linear-gradient(135deg, rgba(74, 122, 79, 0.06), rgba(74, 122, 79, 0.02));
    border: 1.5px solid rgba(74, 122, 79, 0.15);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #3d6b41;
}
.sp-charity-banner i {
    color: #e74c3c;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.product-info { padding: 16px 20px 54px; }
.product-name { font-size: 1.12rem; margin: 0 0 6px; font-weight: 700; }
.product-short-desc { color: var(--text-light); font-size: 0.84rem; margin-bottom: 8px; line-height: 1.5; }
.product-price { font-size: 1.05rem; font-weight: 700; color: var(--primary-gold-dark); margin-bottom: 0; }

.quick-add-btn {
    position: absolute; bottom: 14px; right: 14px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
    color: white; padding: 8px 18px; border-radius: 50px;
    font-size: 0.78rem; font-weight: 700;
    display: flex; align-items: center; gap: 6px;
    box-shadow: var(--btn-shadow); transition: var(--transition);
}
html[dir="rtl"] .quick-add-btn { right: auto; left: 14px; }
.quick-add-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212, 168, 67, 0.45); }
.quick-add-btn:active { transform: scale(0.96); }
.quick-add-btn:disabled { background: var(--text-light); box-shadow: none; cursor: not-allowed; }

/* ============================================================
   SINGLE PRODUCT — Glass Panel
   ============================================================ */
.single-product-container { padding: 8px 0 24px; max-width: 600px; margin: 0 auto; }

/* ── Product Image Card ── */
.sp-image-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
    aspect-ratio: 4 / 3;
    background: #f5f0e8;
}
.sp-image-card img {
    width: 100%; height: 100%; object-fit: cover;
}
.sp-image-card .stock-badge {
    position: absolute; top: 16px; right: 16px;
    background: rgba(231, 76, 60, 0.9); color: white;
    padding: 6px 14px; border-radius: 20px;
    font-size: 0.82rem; font-weight: 700;
}
html[dir="rtl"] .sp-image-card .stock-badge { right: auto; left: 16px; }

/* ── Product Info Card ── */
.sp-info-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 12px;
    text-align: center;
}
.sp-title {
    font-size: 1.5rem; font-weight: 800; margin: 0 0 8px; color: var(--text-dark);
}
.sp-description {
    font-size: 0.92rem; color: var(--text-mid); line-height: 1.7; margin: 0;
}

/* ── Sizes Card ── */
.sp-sizes-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 12px;
}
.sp-card-heading {
    font-size: 0.95rem; font-weight: 700; margin: 0 0 14px;
    color: var(--text-dark); text-align: center;
}

.sp-size-list { display: flex; flex-direction: column; gap: 10px; }

.sp-size-option {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: rgba(0, 0, 0, 0.01);
}
.sp-size-option:hover { border-color: rgba(212, 168, 67, 0.25); background: rgba(212, 168, 67, 0.02); }
.sp-size-option.selected {
    border-color: var(--primary-gold);
    background: rgba(212, 168, 67, 0.05);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.08);
}
.sp-size-option.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.sp-size-details { flex: 1; min-width: 0; }
.sp-size-name { display: block; font-weight: 600; font-size: 0.92rem; color: var(--text-dark); }
.sp-size-weight { display: block; font-size: 0.78rem; color: var(--text-light); margin-top: 2px; }
.sp-size-price { font-weight: 800; font-size: 1.05rem; color: var(--primary-gold-dark); white-space: nowrap; }

.sp-size-check {
    width: 26px; height: 26px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; color: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.sp-size-option.selected .sp-size-check {
    background: var(--primary-gold); border-color: var(--primary-gold);
    color: white;
}

.sp-bestseller {
    position: absolute; top: -8px; right: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white; font-size: 0.65rem; font-weight: 700;
    padding: 3px 10px; border-radius: 10px;
}
html[dir="rtl"] .sp-bestseller { right: auto; left: 12px; }

/* ── Sticky Action Bar (Qty + Add to Cart) ── */
.sp-action-card {
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    backdrop-filter: blur(20px) saturate(1.8);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.08);
    margin: 0;
    border-radius: 0;
}
.sp-action-card.out-of-stock { opacity: 0.5; pointer-events: none; }

/* Add bottom padding to page so sticky bar doesn't cover content */
.single-product-container { padding-bottom: 90px !important; }

.sp-action-row {
    display: flex; align-items: center; gap: 12px;
    max-width: 600px; margin: 0 auto;
}

.sp-qty-section {
    display: flex; align-items: center; gap: 0;
    flex-shrink: 0;
}
.sp-qty-label { display: none; }

.sp-qty-section .quantity-control {
    width: auto; min-width: 0;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    overflow: hidden;
    display: flex; align-items: center;
}
.sp-qty-section .qty-btn {
    width: 40px; height: 42px;
    background: transparent;
    font-size: 0.85rem;
    color: var(--primary-gold-dark);
}
.sp-qty-section .qty-btn:hover { background: rgba(212, 168, 67, 0.08); }
.sp-qty-section .qty-input {
    width: 36px; height: 42px;
    font-size: 1.05rem; font-weight: 700;
}

.sp-add-btn {
    flex: 1;
    background: var(--text-dark);
    color: white;
    border: none;
    padding: 0 24px;
    height: 46px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
}
.sp-add-btn:hover { background: #2a2a3e; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }
.sp-add-btn:active { transform: scale(0.98); }
.sp-add-btn:disabled { background: var(--text-light); box-shadow: none; cursor: not-allowed; }

/* Legacy compat — keep old selectors working */
.product-title { font-size: 1.6rem; margin-bottom: 12px; font-weight: 800; }
.product-description { margin-bottom: 24px; color: var(--text-mid); line-height: 1.7; font-size: 0.95rem; }
.size-selector { display: flex; flex-direction: column; gap: 10px; }
.size-option {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius); cursor: pointer; transition: var(--transition);
    position: relative; background: rgba(255, 255, 255, 0.4);
}
.size-option:hover { border-color: rgba(212, 168, 67, 0.3); background: rgba(212, 168, 67, 0.04); }
.size-option.selected { border-color: var(--primary-gold); background: rgba(212, 168, 67, 0.06); box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1); }
.size-option.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.size-name { font-weight: 600; }
.size-price { font-weight: 700; color: var(--primary-gold-dark); }
.bestseller-tag { display: none; }

.product-form { display: flex; align-items: end; gap: 16px; margin-bottom: 24px; }
.quantity-wrapper { display: flex; flex-direction: column; gap: 6px; }
.quantity-wrapper label { font-size: 0.88rem; font-weight: 600; margin-bottom: unset; color: var(--text-mid); }

.quantity-control {
    display: flex; align-items: center;
    border: 1.5px solid rgba(0, 0, 0, 0.07); border-radius: 50px;
    overflow: hidden; width: 120px; background: rgba(255, 255, 255, 0.6);
}

.qty-btn {
    width: 38px; height: 38px; background: rgba(0, 0, 0, 0.02); border: none;
    cursor: pointer; display: flex; justify-content: center; align-items: center;
    color: var(--primary-gold-dark); font-size: 0.85rem; transition: var(--transition-fast);
}
.qty-btn:active { transform: scale(0.92); }
.qty-btn:hover { background: rgba(212, 168, 67, 0.12); }
.minus-btn { border-radius: 50px 0 0 50px; }
.plus-btn { border-radius: 0 50px 50px 0; }
html[dir="rtl"] .minus-btn { border-radius: 0 50px 50px 0; }
html[dir="rtl"] .plus-btn { border-radius: 50px 0 0 50px; }

.qty-input {
    flex: 1; border: none; text-align: center; font-size: 1rem; font-weight: 600;
    padding: 0; height: 38px; width: 40px; -moz-appearance: textfield;
    background: transparent; color: var(--text-dark);
}
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.add-to-cart-btn { flex: 1; height: 46px; }

/* ============================================================
   CART PAGE — Clean Modern Design
   ============================================================ */
.cart-section { padding: 16px 0; }
.cart-section .section-title { font-size: 1.6rem; margin-bottom: 8px; }
.cart-items-count-label { text-align: center; font-size: 0.88rem; color: var(--text-light); margin-bottom: 24px; }

.cart-empty-message {
    text-align: center; padding: 60px 24px;
    background: #fff;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}
.empty-cart-icon { font-size: 2.5rem; color: var(--text-light); margin-bottom: 16px; opacity: 0.5; }

/* ── Cart Progress (Raffle) on cart page ── */
.cart-page-progress {
    max-width: 600px; margin: 0 auto;
    padding: 16px 20px 14px;
}
.cart-page-progress .cart-progress-section { margin-bottom: 0; padding: 0; }
.cart-page-progress + .cart-item { border-top: 1px solid rgba(0, 0, 0, 0.05); }

.cart-container { display: flex; flex-direction: column; gap: 0; max-width: 600px; margin: 0 auto; }

/* ── Individual Cart Items ── */
.cart-items {
    background: #fff;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.cart-header { display: none; /* Hide table header for clean mobile-first design */ }

.cart-item {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}
.cart-item:last-child { border-bottom: none; }

.cart-item-product { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.cart-item-image {
    width: 72px; height: 72px; border-radius: 14px;
    overflow: hidden; flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-details h3 {
    font-size: 1rem; margin: 0 0 3px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-size { font-size: 0.82rem; color: var(--text-light); margin: 0 0 6px; }
.cart-item-inline-price { font-weight: 700; color: var(--text-dark); font-size: 0.95rem; }

/* Hide desktop-only columns in clean layout */
.cart-item-price,
.cart-item-total { display: none; }
.cart-item-actions { display: none; }

.cart-item-right {
    display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0;
}
html[dir="rtl"] .cart-item-right { align-items: flex-start; }

.cart-item .quantity-control {
    width: auto; min-width: 110px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
}
.cart-item .qty-btn { width: 34px; height: 34px; }
.cart-item .qty-input { height: 34px; font-size: 0.95rem; }

.cart-item .remove-item-btn {
    color: var(--text-light); font-size: 0.78rem; background: none; border: none;
    cursor: pointer; padding: 4px 0; transition: var(--transition-fast);
    font-family: 'Cairo', sans-serif; font-weight: 500;
}
.cart-item .remove-item-btn:hover { color: var(--error-color); }

/* ── Cart Summary ── */
.cart-summary {
    background: #fff;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    padding: 24px 20px; margin-top: 16px;
}
.cart-summary h3 { display: none; }

.cart-summary-item {
    display: flex; justify-content: space-between;
    margin-bottom: 10px; font-size: 0.95rem; color: var(--text-mid);
}

.cart-summary-total {
    display: flex; justify-content: space-between;
    padding-top: 14px; margin-top: 14px;
    border-top: 2px solid rgba(0, 0, 0, 0.06);
    font-size: 1.15rem; font-weight: 700; color: var(--text-dark);
}
.cart-summary-total .summary-value { color: var(--primary-gold-dark); }

.cart-note { font-size: 0.82rem; color: var(--text-light); text-align: center; margin-top: 10px; }

.cart-buttons {
    display: flex; flex-direction: column; gap: 10px; margin-top: 20px;
}
.cart-buttons .btn-checkout-main {
    background: var(--text-dark); color: white; border: none;
    padding: 14px; font-size: 1rem; font-weight: 700;
    border-radius: 14px; width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.cart-buttons .btn-checkout-main:hover { background: #2a2a3e; }
.cart-buttons .btn-continue {
    background: transparent; color: var(--text-mid); border: none;
    padding: 10px; font-size: 0.92rem; font-weight: 600; text-align: center;
}
.cart-buttons .btn-continue:hover { color: var(--primary-gold-dark); }

@media (min-width: 992px) {
    .cart-container { max-width: 680px; }
}

/* ============================================================
   CHECKOUT — Glass
   ============================================================ */
.checkout-section { padding: 16px 0; }
.progress-container { margin-bottom: 28px; }
.progress-bar { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; margin: 0 auto; max-width: 500px; }
.progress-bar::before { content: ''; position: absolute; top: 50%; left: 12%; right: 12%; height: 2px; background: rgba(0, 0, 0, 0.06); transform: translateY(-50%); z-index: -1; }
.step { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }
.step-icon { width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, 0.03); display: flex; justify-content: center; align-items: center; margin-bottom: 6px; border: 2px solid rgba(0, 0, 0, 0.06); transition: var(--transition); }
.step-icon i, .step-icon svg { font-size: 1.1rem; color: var(--text-light); }
.step.active .step-icon { background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark)); border-color: var(--primary-gold); box-shadow: 0 4px 16px rgba(212, 168, 67, 0.3); }
.step.completed .step-icon { background: var(--primary-gold-light); border-color: var(--primary-gold); }
.step.active .step-icon i, .step.active .step-icon svg, .step.completed .step-icon i, .step.completed .step-icon svg, .step.active svg { color: white; }
.step-title { font-size: 0.78rem; color: var(--text-light); font-weight: 600; }
.step.active .step-title { color: var(--primary-gold-dark); font-weight: 700; }
.step.completed .step-title { color: var(--primary-gold); }

.checkout-container { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 992px) { .checkout-container { grid-template-columns: 3fr 2fr; } }

.checkout-form-container {
    background: var(--glass-white-card); -webkit-backdrop-filter: var(--blur-md); backdrop-filter: var(--blur-md);
    border-radius: var(--border-radius-xl); border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), var(--glass-highlight); padding: 24px;
}

.checkout-summary-mobile { display: none; background: rgba(212, 168, 67, 0.05); border-radius: var(--border-radius); padding: 16px; margin-bottom: 20px; border: 1px solid rgba(212, 168, 67, 0.1); }
@media (max-width: 991px) { .checkout-summary-mobile { display: block; } .checkout-summary-desktop { display: none; } }

.checkout-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 600; }
.checkout-total-mobile { display: flex; justify-content: space-between; font-weight: 700; }
.customer-info { margin-bottom: 24px; }
.customer-info h3 { font-size: 1.1rem; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-gold); }

.form-group { margin-bottom: 18px; position: relative; }
label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; color: var(--text-dark); }

input, textarea {
    width: 100%; padding: 12px 40px 12px 16px;
    border: 1.5px solid rgba(0, 0, 0, 0.07); border-radius: var(--border-radius);
    font-size: 1rem; font-family: 'Cairo', sans-serif;
    background: rgba(255, 255, 255, 0.6); color: var(--text-dark);
    transition: var(--transition-fast); -webkit-appearance: none;
}
html[dir="rtl"] input:not(.qty-input), html[dir="rtl"] textarea { text-align: right; padding: 12px 16px 12px 40px; }
input:focus, textarea:focus { outline: none; border-color: var(--primary-gold); background: white; box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1); }
.input-icon { position: absolute; right: 14px; top: 52px; color: var(--text-light); font-size: 0.9rem; }
html[dir="rtl"] .input-icon { right: auto; left: 14px; }
.error { color: var(--error-color); font-size: 0.82rem; margin-top: 5px; display: none; }

.payment-method { background: rgba(255, 255, 255, 0.5); border-radius: var(--border-radius); padding: 14px 16px; display: flex; align-items: center; gap: 14px; border: 1px solid rgba(0, 0, 0, 0.04); }
.payment-icon { width: 40px; height: 40px; background: rgba(212, 168, 67, 0.08); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.1rem; color: var(--primary-gold-dark); }
.payment-info { flex: 1; }
.payment-title { font-weight: 600; color: var(--text-dark); }
.checkout-buttons { display: flex; justify-content: space-between; margin-top: 28px; gap: 12px; }

.checkout-summary-desktop {
    background: var(--glass-white-card); -webkit-backdrop-filter: var(--blur-md); backdrop-filter: var(--blur-md);
    border-radius: var(--border-radius-xl); border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), var(--glass-highlight);
    padding: 24px; position: sticky; top: calc(var(--header-height) + 20px);
}
.checkout-summary-desktop h3 { font-size: 1.1rem; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-gold); }
.checkout-items { margin-bottom: 16px; }
.checkout-item { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.04); }
.checkout-item:last-child { border-bottom: none; }
.checkout-item-image { width: 54px; height: 54px; border-radius: var(--border-radius-sm); overflow: hidden; position: relative; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); }
.checkout-item-image img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item-quantity { position: absolute; bottom: 0; right: 0; background: rgba(15, 27, 45, 0.75); color: white; font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 4px 0 0 0; }
html[dir="rtl"] .checkout-item-quantity { right: auto; left: 0; border-radius: 0 4px 0 0; }
.checkout-item-details { flex: 1; }
.checkout-item-details h4 { margin: 0 0 3px; font-size: 0.92rem; font-weight: 600; }
.checkout-item-details p { margin: 0; font-size: 0.82rem; color: var(--text-light); }
.checkout-item-price { font-weight: 700; color: var(--primary-gold-dark); }
.checkout-summary-total { display: flex; justify-content: space-between; padding-top: 14px; margin-top: 14px; border-top: 2px solid rgba(0, 0, 0, 0.06); font-size: 1.1rem; font-weight: 700; }
.edit-cart-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; margin-top: 14px; color: var(--primary-gold-dark); }
.edit-cart-link:hover { text-decoration: underline; }

/* Success Modal */
.success-modal { position: fixed; inset: 0; background: rgba(15, 27, 45, 0.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: none; z-index: 1000; overflow-y: auto; padding: 30px 16px; }
.success-modal-content { max-width: 520px; margin: 40px auto; background: var(--glass-white-strong); -webkit-backdrop-filter: var(--blur-lg); backdrop-filter: var(--blur-lg); border-radius: var(--border-radius-xl); border: 1px solid var(--glass-border); padding: 32px 24px; box-shadow: 0 20px 60px rgba(15, 27, 45, 0.2); }
.success-icon { font-size: 3.5rem; color: var(--success-color); text-align: center; margin-bottom: 16px; }
.success-title { font-size: 1.5rem; text-align: center; margin-bottom: 8px; }
.success-message { text-align: center; color: var(--text-mid); margin-bottom: 24px; }
.success-order-details { background: rgba(212, 168, 67, 0.05); border-radius: var(--border-radius); padding: 20px; margin-bottom: 24px; border: 1px solid rgba(212, 168, 67, 0.1); }
.success-order-item { display: flex; justify-content: space-between; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed rgba(0, 0, 0, 0.06); }
.success-order-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.success-order-item.total { margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--primary-gold); font-weight: 700; font-size: 1.05rem; color: var(--primary-gold-dark); }
.success-buttons { text-align: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { padding: 12px 28px; border: none; border-radius: 50px; font-size: 0.95rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition); font-family: 'Cairo', sans-serif; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark)); color: white; box-shadow: var(--btn-shadow); }
.btn-primary:hover { box-shadow: 0 8px 28px rgba(212, 168, 67, 0.45); transform: translateY(-1px); }
.btn-primary:disabled { background: var(--text-light); box-shadow: none; cursor: not-allowed; transform: none; }
.btn-secondary { background: transparent; color: var(--primary-gold-dark); border: 2px solid var(--primary-gold); }
.btn-secondary:hover { background: rgba(212, 168, 67, 0.06); }

/* ============================================================
   FOOTER — Floating Liquid Glass Card
   ============================================================ */
.site-footer { padding: 20px 16px; margin-top: 28px; background: transparent; }

@supports(padding: max(0px)) {
    .site-footer { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}

.footer-glass {
    background: var(--glass-white);
    -webkit-backdrop-filter: var(--blur-lg); backdrop-filter: var(--blur-lg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--glass-shadow), var(--glass-highlight), 0 0 0 0.5px rgba(255, 255, 255, 0.5);
    padding: 28px 24px;
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
    position: relative; overflow: hidden;
}

.footer-glass::before {
    content: ''; position: absolute; top: -1px; left: 20%; right: 20%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.35), transparent);
}

.footer-content { display: flex; flex-direction: column; align-items: center; gap: 0; }
.footer-logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; }
.footer-logo img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(212, 168, 67, 0.4); box-shadow: 0 0 14px rgba(212, 168, 67, 0.15); margin-bottom: 8px; }
.footer-logo p { font-weight: 700; color: var(--text-dark); margin: 0; font-size: 0.95rem; }
.ramadan-ornament { padding: 6px 0 10px; font-size: 0.85rem; color: var(--primary-gold); letter-spacing: 8px; opacity: 0.5; }
.footer-info { color: var(--text-mid); font-size: 0.85rem; }
.footer-info p { margin: 0 0 4px; }
.developer-credit { font-size: 0.8rem; color: var(--text-light); margin: 0; }
.developer-credit a { color: var(--primary-gold-dark); font-weight: 600; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.footer-contact a { display: flex; align-items: center; gap: 8px; color: var(--primary-gold-dark); font-size: 0.9rem; }

/* ============================================================
   TOAST / LOADING / POPUP
   ============================================================ */
.notification-toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-100px); background: var(--glass-dark-bg); -webkit-backdrop-filter: var(--blur-md); backdrop-filter: var(--blur-md); color: white; border-radius: var(--border-radius); max-width: max-content; padding: 12px 18px; z-index: 1000; opacity: 0; box-shadow: 0 8px 32px rgba(15, 27, 45, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease; }
.notification-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.notification-toast.success { border-left: 4px solid var(--success-color); }
.notification-toast.error { border-left: 4px solid var(--error-color); }
html[dir="rtl"] .notification-toast.success { border-left: none; border-right: 4px solid var(--success-color); }
html[dir="rtl"] .notification-toast.error { border-left: none; border-right: 4px solid var(--error-color); }
.notification-content { display: flex; align-items: center; gap: 10px; }
.notification-toast.success .notification-icon { color: var(--success-color); }
.notification-toast.error .notification-icon { color: var(--error-color); }
.notification-icon { font-size: 18px; flex-shrink: 0; }
.notification-message { font-size: 0.9rem; font-weight: 500; }
@keyframes toast-pulse { 0% { box-shadow: 0 8px 32px rgba(15, 27, 45, 0.3); } 50% { box-shadow: 0 8px 40px rgba(15, 27, 45, 0.4); } 100% { box-shadow: 0 8px 32px rgba(15, 27, 45, 0.3); } }
.notification-toast.show { animation: toast-pulse 2s infinite ease-in-out; }

.loading-overlay { position: fixed; inset: 0; background: rgba(250, 246, 239, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: none; justify-content: center; align-items: center; z-index: 1000; }
.spinner { font-size: 2.5rem; color: var(--primary-gold); }

.size-selection-overlay { position: fixed; inset: 0; background: rgba(15, 27, 45, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 1000; opacity: 0; transition: opacity 0.3s ease; }
.size-selection-overlay.active { opacity: 1; }
.size-selection-popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -60%); max-width: 90%; width: 420px; background: var(--glass-white-strong); -webkit-backdrop-filter: var(--blur-lg); backdrop-filter: var(--blur-lg); border-radius: var(--border-radius-xl); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow-lg), var(--glass-highlight); z-index: 1001; opacity: 0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.size-selection-popup.active { transform: translate(-50%, -50%); opacity: 1; }
.popup-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.popup-header h3 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.close-popup { width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, 0.04); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--text-mid); transition: var(--transition-fast); }
.close-popup:hover { background: rgba(231, 76, 60, 0.08); color: var(--error-color); }
.popup-body { padding: 20px; }
.popup-body p { margin-bottom: 14px; text-align: center; color: var(--text-mid); font-size: 0.92rem; }
.size-options { display: flex; flex-direction: column; gap: 12px; }
.size-option-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1.5px solid rgba(0, 0, 0, 0.05); border-radius: var(--border-radius); position: relative; transition: var(--transition); background: rgba(255, 255, 255, 0.4); }
.size-option-item:hover { border-color: rgba(212, 168, 67, 0.3); background: rgba(212, 168, 67, 0.04); }
.size-option-info { flex: 1; }
.size-option-name { font-weight: 600; margin-bottom: 2px; }
.size-option-price { font-size: 0.88rem; color: var(--primary-gold-dark); font-weight: 700; }
.size-select-btn { background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark)); color: white; padding: 7px 16px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; display: flex; align-items: center; gap: 5px; cursor: pointer; transition: var(--transition); box-shadow: 0 2px 8px rgba(212, 168, 67, 0.25); }
.size-select-btn:hover { box-shadow: 0 4px 16px rgba(212, 168, 67, 0.4); transform: translateY(-1px); }
.popup-buttons { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.popup-buttons .btn { flex: 1; }

/* ============================================================
   DROPDOWNS
   ============================================================ */
.select-container { position: relative; width: 100%; }
.search-input { width: 100%; padding: 12px 40px 12px 16px; border: 1.5px solid rgba(0, 0, 0, 0.07); border-radius: var(--border-radius); font-size: 1rem; background: rgba(255, 255, 255, 0.6); }
.dropdown-arrow { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--text-light); pointer-events: none; transition: transform 0.3s ease; }
html[dir="rtl"] .dropdown-arrow { right: auto; left: 14px; }
.select-container.active .dropdown-arrow { transform: translateY(-50%) rotate(180deg); }
.dropdown-list { position: absolute; top: 100%; left: 0; right: 0; max-height: 250px; overflow-y: auto; background: var(--glass-white-strong); -webkit-backdrop-filter: var(--blur-md); backdrop-filter: var(--blur-md); border: 1px solid var(--glass-border); border-top: none; border-radius: 0 0 var(--border-radius) var(--border-radius); z-index: 100; display: none; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.dropdown-item { padding: 10px 16px; cursor: pointer; transition: var(--transition-fast); border-bottom: 1px solid rgba(0, 0, 0, 0.03); }
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: rgba(212, 168, 67, 0.06); }
.dropdown-item .city-name { font-weight: 600; }
.dropdown-item .region-name { font-size: 0.78rem; color: var(--text-light); margin-right: 5px; }
html[dir="rtl"] .search-input { padding: 12px 16px 12px 40px; text-align: right; }
html[dir="rtl"] .dropdown-item { text-align: right; }
html[dir="rtl"] .dropdown-item .region-name { margin-right: 0; margin-left: 5px; }
.dropdown-item[data-region="القدس"], .dropdown-item[data-region="Jerusalem"] { border-left: 3px solid #f1c40f; }
.dropdown-item[data-region="الشمال"], .dropdown-item[data-region="Northern"] { border-left: 3px solid #2ecc71; }
.dropdown-item[data-region="الضفة"], .dropdown-item[data-region="West Bank"] { border-left: 3px solid #3498db; }
.dropdown-item[data-region="أخرى"], .dropdown-item[data-region="Other"] { border-left: 3px solid #9b59b6; }
html[dir="rtl"] .dropdown-item[data-region="القدس"], html[dir="rtl"] .dropdown-item[data-region="Jerusalem"] { border-left: none; border-right: 3px solid #f1c40f; }
html[dir="rtl"] .dropdown-item[data-region="الشمال"], html[dir="rtl"] .dropdown-item[data-region="Northern"] { border-left: none; border-right: 3px solid #2ecc71; }
html[dir="rtl"] .dropdown-item[data-region="الضفة"], html[dir="rtl"] .dropdown-item[data-region="West Bank"] { border-left: none; border-right: 3px solid #3498db; }
html[dir="rtl"] .dropdown-item[data-region="أخرى"], html[dir="rtl"] .dropdown-item[data-region="Other"] { border-left: none; border-right: 3px solid #9b59b6; }
.hidden { display: none; }
.full-address-preview { margin-top: 10px; padding: 10px 16px; background: rgba(212, 168, 67, 0.05); border-radius: var(--border-radius); font-weight: 600; color: var(--primary-gold-dark); border-left: 3px solid var(--primary-gold); }
html[dir="rtl"] .full-address-preview { border-left: none; border-right: 3px solid var(--primary-gold); }
.addressPreview { display: none; }
#citySearch:focus, #addressDetails:focus { outline: none; border-color: var(--primary-gold); background: white; box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1); }
.dropdown-list::-webkit-scrollbar { width: 6px; }
.dropdown-list::-webkit-scrollbar-track { background: transparent; }
.dropdown-list::-webkit-scrollbar-thumb { background: var(--primary-gold); border-radius: 3px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .single-product-container { padding: 8px 0; }
}

@media (max-width: 768px) {
    :root { --header-height: 64px; }
    .site-header { padding: 8px 10px; }
    .header-glass { padding: 8px 14px; border-radius: var(--border-radius-lg); }
    .logo img { width: 36px; height: 36px; }
    .logo h1 { font-size: 1.2rem; }
    .language-switcher .lang-link { padding: 5px 10px; font-size: 0.72rem; }
    .language-switcher .flag-icon { width: 18px; height: 12px; }
    .cart-icon { width: 38px; height: 38px; font-size: 1.05rem; }
    .section-title { font-size: 1.35rem; }
    .admin-preview-banner { border-radius: 0 0 12px 12px; font-size: 0.78rem; margin: 0 10px; }
    .footer-glass { padding: 22px 18px; border-radius: var(--border-radius-lg); }

    .cart-header { display: none; }
    .cart-item { display: flex; flex-direction: row; padding: 16px; position: relative; }
    .cart-item-product { display: flex; gap: 12px; flex: 1; align-items: center; }
    .remove-item-btn { font-size: 0.78rem; }
    html[dir="rtl"] .remove-item-btn { right: auto; left: 14px; }
    .cart-item-controls { display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin-bottom: 10px; }
    .cart-item-price { display: none; }
    .price-label { font-size: 0.78rem; color: var(--text-light); margin-bottom: 2px; }
    .price-value { font-weight: 600; color: var(--primary-gold-dark); }
    .cart-item-quantity { display: flex; justify-content: flex-end; }
    html[dir="rtl"] .cart-item-quantity { justify-content: flex-start; }
    .cart-item-total { display: none; }
    .quantity-control { width: auto; min-width: 110px; }
    .checkout-buttons { flex-direction: column; gap: 10px; }
    .checkout-form-container { padding: 16px; }
    .success-modal-content { padding: 24px 16px; }

    .checkout-items-mobile { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(0, 0, 0, 0.04); max-height: 300px; overflow-y: auto; }
    .checkout-item-mobile { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.03); }
    .checkout-item-mobile:last-child { border-bottom: none; }
    .checkout-item-mobile .checkout-item-image { width: 48px; height: 48px; border-radius: var(--border-radius-sm); overflow: hidden; position: relative; }
    .checkout-item-mobile .checkout-item-image img { width: 100%; height: 100%; object-fit: cover; }
    .checkout-item-mobile .checkout-item-quantity { position: absolute; bottom: 0; right: 0; background: rgba(15, 27, 45, 0.7); color: white; font-size: 0.65rem; font-weight: 700; padding: 1px 5px; border-radius: 3px 0 0 0; }
    html[dir="rtl"] .checkout-item-mobile .checkout-item-quantity { right: auto; left: 0; border-radius: 0 3px 0 0; }
    .checkout-item-mobile .checkout-item-details { flex: 1; }
    .checkout-item-mobile .checkout-item-details h4 { margin: 0 0 2px; font-size: 0.88rem; }
    .checkout-item-mobile .checkout-item-details p { margin: 0 0 2px; font-size: 0.78rem; color: var(--text-light); }
    .checkout-item-mobile .checkout-item-price { font-weight: 600; color: var(--primary-gold-dark); font-size: 0.88rem; }
    .checkout-delivery-fee-mobile { display: flex; justify-content: space-between; width: 100%; margin-bottom: 0.5rem; margin-top: 2rem; font-size: 0.92rem; }
    .checkout-total-mobile { padding: 10px 0 5px; display: flex; justify-content: space-between; font-size: 1.05rem; font-weight: 700; border-top: 2px solid rgba(0, 0, 0, 0.06); margin-top: 5px; color: var(--primary-gold-dark); }
    .region-info { flex-direction: row !important; align-items: center; gap: 10px; }
    .dropdown-list { max-height: 200px; }
}

@media (max-width: 768px) {
    html[dir="rtl"] .cart-item-product { text-align: right; }
    html[dir="rtl"] .cart-item-price { text-align: right; }
    html[dir="rtl"] .cart-item-total { flex-direction: row-reverse; }
}

@media (max-width: 480px) {
    .logo h1 { font-size: 1.05rem; }
    .header-actions { gap: 6px; }
    .language-switcher .lang-link { padding: 4px 8px; font-size: 0.68rem; gap: 4px; }
    .flag-icon { width: 16px; height: 11px; }
    .mini-cart { max-width: 100%; border-radius: 20px 20px 0 0; }
    .product-form { flex-direction: column; align-items: stretch; }
    .quantity-wrapper { margin-bottom: 12px; }
    .quantity-control { width: 100%; }
    .btn { padding: 11px 20px; font-size: 0.9rem; }
    .cart-item-product { gap: 10px; }
    .cart-item-image { width: 64px; height: 64px; }
    .quantity-control { min-width: 100px; }
    .qty-btn { width: 34px; height: 34px; }
    .mini-cart-item { padding: 10px 0; gap: 10px; }
    .mini-cart-image { width: 52px; height: 52px; }
    .mini-cart-details h4 { font-size: 0.85rem; }
    .item-size, .item-price { font-size: 0.78rem; }
    .mini-qty-btn { width: 26px; height: 26px; }
    .mini-qty-value { padding: 0 7px; font-size: 0.85rem; }
}

@media (hover: none) {
    .product-card:hover { transform: none; box-shadow: var(--glass-shadow), var(--glass-highlight); }
    .btn-primary:hover { transform: none; }
    .quick-add-btn:hover { transform: none; }
}

@supports(padding: max(0px)) {
    .mini-cart-footer, .checkout-buttons { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}

/* ── Charity Restriction Popup ── */
.charity-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 27, 45, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.charity-popup-overlay.active { opacity: 1; }

.charity-popup-card {
    background: #fff;
    border-radius: 24px;
    padding: 36px 28px 28px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.charity-popup-overlay.active .charity-popup-card {
    transform: scale(1) translateY(0);
}

.charity-popup-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    line-height: 1;
}

.charity-popup-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: #2c2c2c;
}

.charity-popup-msg {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    margin: 0 0 22px;
}

.charity-popup-btn {
    background: linear-gradient(135deg, #8a7456, #6d5a3f);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 13px 40px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(138,116,86,0.25);
}
.charity-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(138,116,86,0.35);
}
.charity-popup-btn:active {
    transform: scale(0.97);
}
input.otp-digit {

    padding: 1rem !important;

    text-align: center;

}
