:root {
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --darkblue: #0b1120;
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.shop-page {
    background-color: var(--darkblue);
    color: var(--text-light);
    font-family: var(--font-sans);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: fadeInPage 0.8s ease forwards;
}

@keyframes fadeInPage {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

.bg-glow {
    position: fixed;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

.glow-1 {
    top: 20%;
    left: -10%;
    background: var(--primary);
}

.glow-2 {
    bottom: 0%;
    right: -10%;
    background: #3b82f6;
}

.top-nav {
    position: fixed;
    width: 100%;
    z-index: 100;
    background: rgba(11, 17, 32, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid rgb(255 255 255 / 20%); transition: 0.3s;
    border-radius: 0 0 1.5rem 1.5rem;
    
}

.nav-container {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-logo {
    height: 2.5rem;
    object-fit: contain;
}

.nav-links-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active-link {
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-primary-outline {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.desktop-cart-icon {
    position: relative;
    color: white;
    font-size: 1.25rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.desktop-cart-icon:hover {
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.nav-user-section {
    position: relative;
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.375rem 1.25rem 0.375rem 0.375rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: 0.3s;
}

.nav-user-info:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-avatar-img {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-text-details {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-user-name {
    font-size: 0.875rem;
    font-weight: bold;
    color: white;
}

.user-role {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-dev {
    color: #c084fc;
}

.role-admin {
    color: var(--primary);
}

.role-customer {
    color: #34d399;
}

.mobile-dropdown-icon {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.mobile-nav-dropdown {
    position: absolute;
    top: 130%;
    right: 0;
    background: rgba(11, 17, 32, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 0.5rem;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.mobile-nav-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-link {
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: 0.3s;
}

.mobile-link:hover,
.mobile-link.active-link {
    background: rgba(14, 165, 233, 0.15);
    color: var(--primary);
}

.menu-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0.5rem 0;
}

.text-red {
    color: #f87171 !important;
}

.text-red:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}

.burger {
    position: relative;
    width: 30px;
    height: 23px;
    background: transparent;
    cursor: pointer;
    display: none;
}

.burger input {
    display: none;
}

.burger span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: white;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.burger span:nth-of-type(1) {
    top: 0px;
    transform-origin: left center;
}

.burger span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
    transform-origin: left center;
}

.burger span:nth-of-type(3) {
    top: 100%;
    transform-origin: left center;
    transform: translateY(-100%);
}

.burger input:checked~span:nth-of-type(1) {
    transform: rotate(45deg);
    top: 0px;
    left: 5px;
}

.burger input:checked~span:nth-of-type(2) {
    width: 0%;
    opacity: 0;
}

.burger input:checked~span:nth-of-type(3) {
    transform: rotate(-45deg);
    top: 28px;
    left: 5px;
}

@media (min-width: 993px) {
    .mobile-only-links {
        display: none;
    }
}

@media (max-width: 992px) {

    .nav-links-center,
    .desktop-only,
    .desktop-cart-icon {
        display: none;
    }

    .mobile-only-links {
        display: block;
    }

    .burger {
        display: block;
    }
}

.store-header {
    margin-top: 80px;
    padding: 6rem 1.5rem 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* خلفية متدرجة تكسر السواد */
    background: linear-gradient(135deg, rgba(11, 17, 32, 1) 0%, rgba(14, 165, 233, 0.08) 50%, rgba(11, 17, 32, 1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* أمواج زرقاء (Aurora) تتحرك ببطء في الخلفية */
.store-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 50%);
    animation: rotate-wave 15s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotate-wave {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.store-title {
    position: relative;
    z-index: 1;
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    /* إضاءة النيون الأساسية */
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px var(--primary), 0 0 40px var(--primary);
    animation: neon-flicker 6s infinite;
    /* وميض هادئ جداً (كل 6 ثواني) */
}

/* وميض النيون (يظل مضيئاً معظم الوقت ويومض بلمحة سريعة) */
@keyframes neon-flicker {

    0%,
    90%,
    94%,
    98%,
    100% {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px var(--primary), 0 0 40px var(--primary);
        opacity: 1;
    }

    92%,
    96% {
        text-shadow: none;
        opacity: 0.7;
    }
}

.store-subtitle {
    position: relative;
    z-index: 1;
    color: #e5e7eb;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}


.shop-main-content {
    flex-grow: 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 3rem 1.5rem 6rem 1.5rem;
    position: relative;
    z-index: 10;
}

.shop-controls {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 2rem;
}

@media (min-width: 1024px) {
    .shop-controls {
        flex-direction: row;
    }
}

.filters {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    width: 100%;
    padding-bottom: 0.5rem;
}

@media (min-width: 1024px) {
    .filters {
        width: auto;
    }
}

.custom-scrollbar::-webkit-scrollbar {
    height: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.5);
    border-radius: 4px;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
}

.filter-btn:hover {
    border-color: rgba(14, 165, 233, 0.5);
    color: white;
}

.filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

.search-box {
    width: 100%;
    position: relative;
}

@media (min-width: 1024px) {
    .search-box {
        width: 24rem;
    }
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    z-index: 10;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
    font-size: 0.875rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

/* =========================================
   6. PRODUCTS GRID & AMBIENT EFFECT (تأثير اليوتيوب للصور)
   ========================================= */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 0;
}

.loading-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 15px 35px -10px rgba(14, 165, 233, 0.3);
}

/* حيز الصورة */
.product-img-wrapper {
    width: 100%;
    height: 22rem;
    background: #000000;
    /* خلفية سوداء لتعزيز الإضاءة */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* الخدعة: الخلفية المضيئة الملونة (Ambient Background) */
.ambient-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    filter: blur(3px) opacity(0.8);
    z-index: 0;
    transition: all 0.6s ease;
}

.product-card:hover .ambient-bg {
    filter: blur(30px) opacity(0.7);
    /* يزداد الإشعاع عند التمرير */
    transform: scale(1.1);
}

/* الصورة الحقيقية الحادة (تكون فوق الإشعاع) */
.product-img-wrapper img.main-product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform 0.6s ease;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
    /* ظل لتبدو بارزة */
}

.product-card:hover img.main-product-img {
    transform: scale(1.05);
}

/* حيز المعلومات */
/* =========================================
   تنسيقات نصوص كارت المنتج (المتوازنة)
   ========================================= */
.product-info-wrapper {
    padding: 1.25rem 1.5rem;
    background: transparent;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* السطر العلوي: الاسم والأبعاد */
.product-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.product-info-top h3 {
    font-size: 1.125rem;
    font-weight: bold;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* تصميم أنيق لخانة الأبعاد */
.product-dim {
    font-size: 1rem;
    color: #10ecf7;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    font-family: monospace;
    /* خط مناسب للأرقام والأبعاد */
}

/* السطر الأوسط: الفئة */
.product-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* السطر السفلي: السعر والسلة */
.product-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.25rem;
}

/* تنسيق زر السلة */
.cart-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(14, 165, 233, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.cart-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.cart-btn.added {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}


.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
}

.modal-overlay.opacity-0 {
    opacity: 0;
}

.modal-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1.5rem;
    width: 90%;
    max-width: 24rem;
    position: relative;
    transition: transform 0.3s ease;
}

.modal-content.scale-95 {
    transform: scale(0.95);
}

.modal-content.scale-100 {
    transform: scale(1);
}

.btn-close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-close-modal:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.modal-body {
    text-align: center;
}

.modal-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem auto;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(14, 165, 233, 0.3);
    font-size: 1.5rem;
    color: var(--primary);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.modal-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.w-full {
    width: 100%;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
    font-weight: bold;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    color: #d1d5db;
    font-weight: bold;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: 0.3s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* =========================================
   FLOATING CART & MINI-CART POPUP
   ========================================= */
.floating-cart-wrapper {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
}

/* الزر العائم */
.floating-cart-btn {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s, background 0.3s;
    /* حركة السباحة المستمرة */
    animation: float-up-down 3s ease-in-out infinite;
}

.floating-cart-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

@keyframes float-up-down {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
        box-shadow: 0 15px 30px rgba(14, 165, 233, 0.4);
    }

    100% {
        transform: translateY(0);
    }
}

/* الشارة الحمراء للعدد */
.floating-cart-btn .cart-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--darkblue);
}

/* النافذة المصغرة (Mini-Cart) */
.mini-cart-popup {
    position: absolute;
    bottom: 5rem;
    right: 0;
    width: 320px;
    max-width: calc(100vw - 3rem);
    background: rgba(11, 17, 32, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

.mini-cart-popup.hidden {
    transform: scale(0.5);
    opacity: 0;
    pointer-events: none;
}

.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-cart-header h3 {
    color: white;
    font-size: 1.1rem;
}

.btn-close-mini {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-close-mini:hover {
    color: #ef4444;
}

/* قائمة المنتجات في النافذة (محدودة الطول) */
.mini-cart-items {
    max-height: 250px;
    /* تحديد الطول */
    overflow-y: auto;
    /* السماح بالنزول (Scroll) */
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 1rem 0;
}

.mini-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.mini-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mini-item img {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    object-fit: cover;
    background: #000;
}

.mini-item-info h4 {
    color: white;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.mini-item-info p {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 0.2rem;
}

.mini-item-qty {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.mini-cart-footer {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-checkout {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: bold;
    display: block;
    transition: 0.3s;
}

.btn-checkout:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}
/* زر حذف المنتج من السلة المصغرة */
.btn-remove-item {
    margin-left: auto; /* يدفعه لأقصى اليمين */
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem;
    transition: 0.3s;
}

.btn-remove-item:hover {
    color: #b91c1c;
    transform: scale(1.2);
}
/* تنسيق الزر المعطل للمنتجات غير المتوفرة */
.cart-btn.disabled-btn {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.3);
    cursor: not-allowed;
}

.cart-btn.disabled-btn:hover {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
    transform: none; /* إلغاء حركة التكبير */
}
/* =========================================
   9. FOOTER
   ========================================= */
.footer {
    background: #00000047;
    color: #d1d5db;
    border-top: 1px solid #111827;
    padding: 2rem 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media(min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    height: 4.5rem;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: #6b7280;
    line-height: 1.6;
    max-width: 28rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.footer h4 {
    color: white;
    font-weight: bold;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.footer-contact ul,
.footer-hours ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-contact i {
    color: var(--primary);
    font-size: 1.25rem;
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 0.5rem;
}

.footer-hours li.closed span:last-child {
    color: #ef4444;
}

.footer-bottom {
    border-top: 1px solid #111827;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #4b5563;
}