: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;
}

body.product-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.1;
    pointer-events: none;
    z-index: -1;
}

.glow-1 {
    top: -10%;
    left: -10%;
    background: var(--primary);
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    background: #3b82f6;
}

.hidden {
    display: none !important;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.w-full {
    width: 100%;
    display: inline-block;
}

/* =========================================
   NAVBAR الموحد 
   ========================================= */
.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 {
        display: none;
    }

    .mobile-only-links {
        display: block;
    }

    .burger {
        display: block;
    }
}

/* =========================================
   MAIN CONTENT & PRODUCT DETAILS
   ========================================= */
.main-content {
    flex-grow: 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 7rem 1.5rem 6rem 1.5rem;
    position: relative;
    z-index: 10;
}

.breadcrumbs-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.back-link {
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
}

.back-link:hover {
    color: var(--primary);
}

.breadcrumbs-path {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: none;
}

@media (min-width: 640px) {
    .breadcrumbs-path {
        display: block;
    }
}

.breadcrumbs-path a {
    transition: 0.3s;
}

.breadcrumbs-path a:hover {
    color: var(--primary);
}

.divider {
    margin: 0 0.5rem;
}

.current-page {
    color: var(--primary);
    font-weight: 600;
}

.product-detail-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 5rem;
}

@media (min-width: 1024px) {
    .product-detail-card {
        flex-direction: row;
        padding: 2.5rem;
    }
}

/* GALLERY STYLES */
.product-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .product-gallery {
        width: 50%;
    }
}

.main-image-wrapper {
    width: 100%;
    height: 450px;
    background: #000;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ambient-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    filter: blur(30px) opacity(0.5);
    z-index: 0;
    transition: background-image 0.4s ease;
}

.main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.8));
    transition: opacity 0.3s ease;
}

.status-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.badge-red {
    background: #ef4444;
}

.badge-blue {
    background: #3b82f6;
}

.badge-green {
    background: #22c55e;
}

.thumbnails-container {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumbnail-img {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.6;
}

.thumbnail-img:hover {
    opacity: 1;
}

.thumbnail-img.active {
    border-color: var(--primary);
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.4));
}

/* INFO STYLES */
.product-info-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .product-info-container {
        width: 50%;
    }
}

.category-text {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .product-title {
        font-size: 2.75rem;
    }
}

.product-price-box {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-price-box span {
    font-size: 1.25rem;
    color: #d1d5db;
    font-family: var(--font-sans);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.feature-item i {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.led-feature i {
    color: #facc15;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.product-desc-box {
    margin-bottom: 2.5rem;
}

.product-desc-box h3 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.product-desc-box p {
    color: #d1d5db;
    line-height: 1.6;
    font-size: 0.95rem;
}

.stock-control-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.qty-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.4rem 1rem;
    /* تم زيادة الارتفاع قليلاً ليتناسق مع الحقول المجاورة */
    display: flex;
    align-items: center;
    justify-content: center;
    /* <--- السطر السحري الذي يقوم بتوسيط المحتوى */
    gap: 1.5rem;
}

.qty-control button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.2rem;
    padding: 0.5rem;
}

.qty-control button:hover {
    color: white;
}

#pQty {
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    width: 2rem;
    text-align: center;
}

.action-buttons {
    margin-bottom: 1.5rem;
}

.btn-add-cart {
    background: var(--primary);
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.btn-add-cart:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-out-of-stock {
    background: #374151;
    color: #9ca3af;
    font-weight: bold;
    padding: 1rem;
    border-radius: 0.75rem;
    border: none;
    cursor: not-allowed;
}

.admin-notice {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delivery-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.delivery-info i {
    color: var(--primary);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.3);
    border-radius: 4px;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    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.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;
}

.btn-primary {
    background: var(--primary);
    color: white;
    font-weight: bold;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

.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;
    text-align: center;
}

.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);
}

/* =========================================
   GUEST QUICK BUY (الشراء السريع)
   ========================================= */
.guest-checkout-wrapper {
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 20px rgba(14, 165, 233, 0.05);
}

.guest-checkout-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.guest-checkout-header h4 {
    color: var(--primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guest-checkout-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.guest-form .form-group {
    margin-bottom: 0;
}

.guest-form .glass-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qty-guest label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.btn-quick-buy {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-quick-buy:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
}

/* رسالة القفل للزائر */
.guest-lock-msg {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    animation: fadeInPage 0.5s ease;
}

.lock-icon {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.guest-lock-msg h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.guest-lock-msg p {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.5;
}

.mt-3 {
    margin-top: 1rem;
}

/* =========================================
   إصلاح هيكل كارت المنتج (للسماح بالقسم السفلي)
   ========================================= */
.product-detail-card {
    display: flex;
    flex-direction: column;
    /* جعل الكارت دائماً عمودياً */
    gap: 2rem;
}

.product-detail-row {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
}

@media (min-width: 1024px) {
    .product-detail-row {
        flex-direction: row;
        /* في الكومبيوتر: الصور يسار والمعلومات يمين */
    }
}

.guest-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 1rem 0;
    width: 100%;
}

/* =========================================
   تنسيقات حقول الإدخال الزجاجية (التي كانت مفقودة)
   ========================================= */
.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    margin-left: 0.25rem;
    font-weight: 500;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
}

.glass-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.glass-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

.glass-input::placeholder {
    color: #6b7280;
}

.resize-none {
    resize: none;
}

/* =========================================
   نظام الإشعارات الذكية (Toasts)
   ========================================= */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(11, 17, 32, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: slideDownToast 0.4s forwards;
}

.toast.success {
    border-left: 4px solid #22c55e;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.info {
    border-left: 4px solid var(--primary);
}

.toast.hide {
    animation: slideUpToast 0.4s ease forwards;
}

@keyframes slideDownToast {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUpToast {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-50px);
        opacity: 0;
    }
}
/* =========================================
   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;
}