:root,
[data-theme="dark"] {
    --bg-main: #10121b;
    --bg-secondary: #1a1c28;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-navbar: rgba(16, 18, 27, 0.92);
    --bg-navbar-mobile-menu: rgba(16, 18, 27, 0.98);
    --bg-dropdown: #171923;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #f8f9fa;
    --text-muted: #9ca3af;
    --text-heading: #ffffff;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --input-bg: #101115;
    --input-bg-focus: #161720;
    --input-border: rgba(255, 255, 255, 0.1);
    --input-color: #f8f9fa;
    --input-placeholder: #6b7280;
    --label-color: #e2e8f0;
    --nav-search-bg: rgba(255, 255, 255, 0.1);
    --nav-search-border: rgba(255, 255, 255, 0.2);
    --nav-search-color: #ffffff;
    --auth-card-bg: radial-gradient(circle at top right, #1d1e2b, #13141d);
    --auth-card-border: rgba(255, 255, 255, 0.05);
    --glass-hover-bg: rgba(255, 255, 255, 0.05);
    --card-shadow: rgba(0, 0, 0, 0.5);
    --theme-toggle-bg: rgba(255, 255, 255, 0.08);
    --theme-toggle-color: #ffffff;
    --theme-toggle-border: rgba(255, 255, 255, 0.18);
    --toggler-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    --store-navbar-height: 62px;

    --bs-body-font-family: 'Cairo', sans-serif;
    --bs-font-sans-serif: 'Cairo', sans-serif;
}

[data-theme="light"] {
    --bg-main: #f3f5f9;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-navbar: rgba(255, 255, 255, 0.96);
    --bg-navbar-mobile-menu: #ffffff;
    --bg-dropdown: #ffffff;
    --border-color: rgba(15, 23, 42, 0.1);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-heading: #0f172a;
    --input-bg: #ffffff;
    --input-bg-focus: #ffffff;
    --input-border: rgba(15, 23, 42, 0.12);
    --input-color: #1e293b;
    --input-placeholder: #94a3b8;
    --label-color: #334155;
    --nav-search-bg: #ffffff;
    --nav-search-border: rgba(15, 23, 42, 0.12);
    --nav-search-color: #1e293b;
    --auth-card-bg: linear-gradient(180deg, #ffffff, #f8fafc);
    --auth-card-border: rgba(15, 23, 42, 0.08);
    --glass-hover-bg: rgba(15, 23, 42, 0.03);
    --card-shadow: rgba(15, 23, 42, 0.12);
    --theme-toggle-bg: rgba(15, 23, 42, 0.06);
    --theme-toggle-color: #0f172a;
    --theme-toggle-border: rgba(15, 23, 42, 0.12);
    --toggler-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2815, 23, 42, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
    background-color: var(--bg-main) !important;
    color: var(--text-main) !important;
}

/* Glass Navbar */
.navbar,
.store-navbar {
    background-color: var(--bg-navbar) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}
.store-navbar .store-navbar-toggler,
.store-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.55);
    padding: 0.4rem 0.65rem;
}
[data-theme="light"] .store-navbar .store-navbar-toggler,
[data-theme="light"] .store-navbar .navbar-toggler {
    border-color: rgba(15, 23, 42, 0.15);
}
.store-navbar .store-navbar-toggler:focus,
.store-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.2);
}
.store-navbar .navbar-toggler-icon {
    background-image: var(--toggler-icon);
    filter: none;
}
.store-nav-search-input {
    background: var(--nav-search-bg) !important;
    border: 1px solid var(--nav-search-border) !important;
    color: var(--nav-search-color) !important;
}
.store-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.store-theme-toggle-menu {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-muted) !important;
    font-weight: inherit;
    text-align: start;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
}
.store-theme-toggle-menu:hover,
.store-theme-toggle-menu:focus {
    color: var(--accent-color) !important;
    background: var(--glass-hover-bg);
    outline: none;
}
@media (min-width: 992px) {
    .store-theme-toggle-menu {
        width: auto;
        padding: 0.5rem 0.75rem;
    }
}
.store-cart-link {
    padding-inline-end: 0.35rem !important;
}
.store-cart-badge {
    position: absolute;
    top: 2px;
    inset-inline-start: 0;
    min-width: 1.25rem;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.2rem 0.35rem;
}
.store-cart-link-mobile {
    color: #fff !important;
}
.store-navbar-mobile-actions .navbar-toggler {
    margin-inline-start: 0.15rem;
    border: none !important;
    box-shadow: none !important;
    padding: 0.35rem 0.5rem;
}
.store-navbar-mobile-actions .navbar-toggler:focus {
    box-shadow: none !important;
    outline: none;
}
body.store-front {
    padding-top: var(--store-navbar-height);
    overflow-x: hidden;
}
.store-front .page-content {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}
.store-navbar {
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1040;
    width: 100%;
    min-height: var(--store-navbar-height);
}
.store-brand {
    min-width: 0;
    flex: 1 1 auto;
    max-width: calc(100% - 96px);
    margin: 0;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}
.store-brand-name {
    color: var(--accent-color) !important;
    -webkit-text-fill-color: var(--accent-color) !important;
    background: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    font-weight: 800;
    font-size: clamp(0.95rem, 3.8vw, 1.15rem);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-width: 0;
}
.store-brand-logo {
    height: 32px;
    width: auto;
    max-width: none;
    object-fit: contain;
    flex-shrink: 0;
}
.store-brand-icon {
    color: var(--accent-color);
    font-size: 1.35rem;
    flex-shrink: 0;
}
@media (min-width: 992px) {
    :root {
        --store-navbar-height: 72px;
    }
    .store-brand {
        flex: 0 1 auto;
        max-width: none;
    }
    .store-brand-name {
        font-size: 1.2rem;
    }
    .store-brand-logo {
        height: 38px;
        max-width: none;
    }
    .store-brand-icon {
        font-size: 1.5rem;
    }
}
@media (max-width: 991.98px) {
    .store-navbar .navbar-collapse {
        background: var(--bg-navbar-mobile-menu);
        border: 1px solid var(--border-color);
        border-radius: 14px;
        padding: 0.85rem;
        margin-top: 0.75rem;
    }
    .store-navbar .navbar-nav {
        gap: 0.15rem;
    }
    .store-navbar .navbar-nav .nav-link {
        padding: 0.65rem 0.75rem;
        border-radius: 10px;
    }
    .store-navbar .navbar-nav .nav-link:hover {
        background: var(--glass-hover-bg);
    }
    .store-navbar .d-flex[role="search"] {
        width: 100%;
        margin: 0.5rem 0 0.75rem !important;
    }
    .store-navbar .dropdown-menu {
        background: var(--bg-dropdown);
        border: 1px solid var(--border-color);
    }
    .store-navbar .dropdown-item {
        color: var(--text-main);
    }
    .store-navbar .dropdown-item:hover {
        background: rgba(245, 158, 11, 0.12);
        color: var(--accent-color);
    }
}
.navbar-brand,
.store-brand {
    font-weight: 800;
    -webkit-text-fill-color: unset;
    background: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
}
.nav-link {
    color: var(--text-muted) !important;
    transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
}

/* Accent Text */
.text-accent {
    color: var(--accent-color) !important;
}

/* Buttons */
.btn-amber {
    background-color: var(--accent-color);
    color: #000;
    font-weight: 600;
    border: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
}
.btn-amber:hover {
    background-color: var(--accent-hover);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-glass {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    transition: background 0.2s, border 0.2s;
}
.btn-glass:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.1), transparent 40%),
                radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.05), transparent 50%);
    text-align: center;
}
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Product & Feature Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    height: 100%;
}
.glass-card:hover {
    transform: translateY(-5px);
    background: var(--glass-hover-bg);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 10px 30px var(--card-shadow);
}
.glass-card .icon-box {
    width: 60px;
    height: 60px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 1rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    color: var(--text-main);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--card-shadow);
    border-color: rgba(245, 158, 11, 0.3);
}
.product-card .card-title a {
    color: var(--text-main) !important;
}
.product-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}
.product-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 0.55rem;
    align-items: center;
}
.product-card-actions-single {
    grid-template-columns: 1fr;
}
.product-card-view-btn {
    width: 100%;
    min-height: 40px;
    height: 40px;
    padding: 0 0.85rem;
    font-weight: 700;
    border-radius: 10px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.product-card-cart-form {
    margin: 0;
    height: 40px;
}
.product-page-cart-form {
    width: 100%;
}
.product-page-qty-input {
    width: 88px;
    min-width: 88px;
    flex: 0 0 88px;
    text-align: center;
}
.product-page-add-btn {
    flex: 1 1 auto;
    width: auto;
    min-height: 46px;
    padding: 0.75rem 1rem;
    font-weight: 800;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}
.product-card-cart-btn {
    width: 44px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.12) !important;
    color: #fbbf24 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    font-size: 1rem;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.product-card-cart-btn:hover,
.product-card-cart-btn:focus {
    background: linear-gradient(180deg, #fbbf24, #f59e0b) !important;
    color: #151515 !important;
    border-color: rgba(245, 158, 11, 0.55) !important;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.22);
    transform: translateY(-1px);
    outline: none;
}
.product-card-cart-btn:active {
    transform: translateY(0);
}
.badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}
.product-card .card-body {
    padding: 1rem;
}
.product-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
}
.price-new {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.25rem;
}
.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-right: 8px;
}

/* Utilities */
.text-muted-custom {
    color: var(--text-muted) !important;
}
.border-custom {
    border-color: var(--border-color) !important;
}

/* Forms Input Styling */
.form-control, .form-select {
    background-color: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--input-color) !important;
    border-radius: 8px !important;
    padding: 0.8rem 1rem !important;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.form-control:focus, .form-select:focus {
    background-color: var(--input-bg-focus) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25) !important;
    color: var(--input-color) !important;
}
.form-control::placeholder {
    color: var(--input-placeholder);
}
.form-label {
    display: block;
    width: 100%;
    text-align: start;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--label-color);
}
.form-check-input {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
}
.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Auth Cards Interface */
.auth-card {
    background: var(--auth-card-bg);
    border: 1px solid var(--auth-card-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px var(--card-shadow);
}
.divider-text {
    display: flex;
    align-items: center;
    color: #6b7280;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.divider-text::before, .divider-text::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.divider-text::before { margin-left: 1rem; }
.divider-text::after { margin-right: 1rem; }
.social-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    padding: 0.7rem;
    flex: 1;
    transition: background 0.2s;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.social-btn:hover { background-color: rgba(255, 255, 255, 0.05); color: #fff; }
.btn-amber-glow {
    background: linear-gradient(180deg, #f59e0b, #d97706);
    color: #111;
    font-weight: 800;
    border-radius: 8px;
    padding: 0.8rem;
    font-size: 1.05rem;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}
.btn-amber-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}
.form-link { color: var(--accent-color); text-decoration: none; font-weight: 600; }
.form-link:hover { color: var(--accent-hover); }

/* Store Toast notifications */
.store-toast-container {
    top: calc(var(--store-navbar-height, 62px) + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1090;
    width: min(420px, calc(100vw - 1.5rem));
    pointer-events: none;
}
.store-toast-container .toast {
    pointer-events: auto;
    width: 100%;
    margin-bottom: 0.65rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    font-weight: 700;
    color: #fff;
}
.store-toast .toast-body {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
}
.store-toast-success {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.95), rgba(21, 128, 61, 0.92));
    border-color: rgba(74, 222, 128, 0.35);
}
.store-toast-danger {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(185, 28, 28, 0.92));
    border-color: rgba(252, 165, 165, 0.35);
}
.store-toast-warning {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.96), rgba(180, 83, 9, 0.92));
    border-color: rgba(251, 191, 36, 0.35);
    color: #111;
}
.store-toast-warning .btn-close {
    filter: none;
}
.store-toast-info {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(29, 78, 216, 0.92));
    border-color: rgba(147, 197, 253, 0.35);
}

/* الوضع الفاتح — تعديلات إضافية */
[data-theme="light"] .hero-section {
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 40%),
                radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.06), transparent 50%);
}
[data-theme="light"] footer .text-white,
[data-theme="light"] footer .text-white-50 {
    color: var(--text-heading) !important;
}
[data-theme="light"] .btn-glass {
    background-color: #ffffff;
    color: var(--text-main);
}
[data-theme="light"] .btn-glass:hover {
    background-color: #f8fafc;
    color: var(--text-main);
}
[data-theme="light"] .social-btn {
    color: var(--text-main);
    border-color: var(--border-color);
}
[data-theme="light"] .social-btn:hover {
    color: var(--text-main);
}
[data-theme="light"] .products-search-panel,
[data-theme="light"] .products-field .form-control,
[data-theme="light"] .products-field .form-select,
[data-theme="light"] .products-discounted-row,
[data-theme="light"] .products-reset-btn {
    background: #ffffff !important;
    color: var(--text-main) !important;
}
[data-theme="light"] .products-search-header h5,
[data-theme="light"] .products-field label,
[data-theme="light"] .products-discounted-row .form-check-label {
    color: var(--text-main) !important;
}
[data-theme="light"] .alert-info {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0c4a6e;
}

/* سلة التسوق — بطاقات الجوال */
.cart-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}
.cart-item-card {
    padding: 1rem;
    overflow: hidden;
}
.cart-item-card-header {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: start;
}
.cart-item-image-wrap {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}
.cart-item-image-wrap img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    display: block;
}
.cart-item-details {
    min-width: 0;
}
.cart-item-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
}
.cart-item-title a {
    color: var(--text-main);
    text-decoration: none;
}
.cart-item-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.cart-item-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.cart-item-unit-price .price-new {
    font-size: 1.05rem;
}
.cart-item-remove-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.14);
    color: #f87171;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.cart-item-remove-btn:hover {
    background: #dc2626;
    color: #ffffff;
}
.cart-item-card-footer {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.cart-item-qty-form {
    width: 100%;
}
.cart-item-qty-row {
    display: flex;
    gap: 0.55rem;
    align-items: stretch;
}
.cart-item-qty-input {
    width: 88px;
    min-width: 88px;
    flex: 0 0 88px;
    text-align: center;
    min-height: 44px;
}
.cart-item-update-btn {
    flex: 1 1 auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 800;
    border-radius: 10px;
}
.cart-item-line-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.18);
}
.cart-item-line-total strong {
    color: var(--accent-color);
    font-size: 1.1rem;
}
.cart-summary-total {
    color: var(--text-main);
}
.cart-summary-amount {
    color: var(--accent-color);
    margin-inline-start: 0.35rem;
}
.cart-table {
    background: transparent;
    color: var(--text-main);
    margin-bottom: 0;
}
.cart-table thead tr {
    border-bottom: 1px solid var(--border-color);
}
.cart-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}
.cart-table th {
    color: var(--text-main);
    font-weight: 800;
    padding-bottom: 0.85rem;
}
.cart-table-product-link {
    color: var(--text-main) !important;
}
.cart-table-muted {
    color: var(--text-muted) !important;
}
[data-theme="light"] .cart-item-line-total {
    background: rgba(245, 158, 11, 0.1);
}

.store-front .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 12px;
    box-sizing: border-box;
}
@media (min-width: 576px) {
    .store-front .container {
        max-width: 540px;
    }
}
@media (min-width: 768px) {
    .store-front .container {
        max-width: 720px;
    }
}
@media (min-width: 992px) {
    .store-front .container {
        max-width: 960px;
    }
}
@media (min-width: 1200px) {
    .store-front .container {
        max-width: 1140px;
    }
}
@media (min-width: 1400px) {
    .store-front .container {
        max-width: 1320px;
    }
}

/* صفحة المنتجات */
.products-page {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    overflow-x: hidden;
}
.products-search-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 18px 40px var(--card-shadow);
    padding: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.products-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.products-search-header h5 {
    margin: 0;
    color: var(--text-main);
    font-weight: 800;
}
.products-results-count {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.92rem;
}
.products-filters-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    align-items: end;
    width: 100%;
    min-width: 0;
}
.products-field {
    min-width: 0;
}
.products-field label {
    display: block;
    width: 100%;
    text-align: start;
    color: var(--label-color);
    font-weight: 700;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
}
.products-field .form-control,
.products-field .form-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-color);
    border-radius: 14px;
    min-height: 46px;
}
.products-field .form-control:focus,
.products-field .form-select:focus {
    background: var(--input-bg-focus);
    border-color: var(--accent-color);
    color: var(--input-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.12);
}
.products-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}
.products-search-btn {
    flex: 1 1 auto;
    min-height: 46px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
    color: #151515;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.22);
}
.products-search-btn:hover {
    color: #151515;
    background: linear-gradient(180deg, #facc15, #f59e0b);
}
.products-reset-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 0 0 auto;
}
.products-reset-btn:hover {
    background: var(--glass-hover-bg);
    color: var(--text-main);
}
.products-reset-btn.is-active {
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.18));
    border-color: rgba(245, 158, 11, 0.45);
    color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.16);
}
.products-discounted-row {
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}
.products-discounted-row .form-check-label {
    color: var(--text-main);
    font-weight: 700;
}
.products-results,
.products-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.products-page .row {
    margin-inline: 0;
    width: 100%;
}
.products-page .row > [class*="col-"] {
    min-width: 0;
}
.store-pagination {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.store-pagination-summary {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}
.store-pagination .pagination {
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    margin-bottom: 0;
}
.store-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 40px;
    min-height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}
.store-pagination .page-item.active .page-link {
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
    border-color: rgba(245, 158, 11, 0.45);
    color: #151515;
    font-weight: 800;
}
.store-pagination .page-item.disabled .page-link {
    opacity: 0.55;
    pointer-events: none;
}
.store-pagination-ellipsis .page-link {
    min-width: 32px;
    letter-spacing: 0.08em;
}
@media (max-width: 575px) {
    .store-pagination-label {
        display: none;
    }
}
@media (min-width: 576px) {
    .products-search-panel {
        padding: 1.25rem;
    }
    .products-filters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .products-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
    .products-search-btn {
        flex: 0 0 auto;
        min-width: 110px;
    }
}
@media (min-width: 992px) {
    .products-filters-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    }
    .products-filter-actions {
        grid-column: auto;
        width: auto;
    }
}
