/* E-commerce Professional Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Consistent Design - POS Color System */
:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --primary-light: #66b3ff;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --success-color: #28a745;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RTL Support & Base Styles */
* {
    box-sizing: border-box;
}

body {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    scroll-behavior: smooth;
}

/* Enhanced Navigation Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--primary-dark) !important;
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    color: var(--gray-700) !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: var(--primary-light);
    background-color: rgba(99, 102, 241, 0.1);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Enhanced Dropdown Menu Styles */
.navbar .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    min-width: 200px;
    z-index: 9999 !important;
    position: absolute !important;
    transform: translateY(0) !important;
}

.navbar .dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
    border-radius: 0;
    display: flex;
    align-items: center;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.navbar .dropdown-item i {
    width: 20px;
    margin-left: 0.5rem;
    text-align: center;
}

.navbar .dropdown-divider {
    margin: 0.5rem 1rem;
    border-color: var(--gray-200);
}

/* Fix for dropdown positioning in RTL */
.navbar .dropdown-menu[data-bs-popper] {
    left: auto !important;
    right: 0 !important;
    transform: translate3d(0px, 42px, 0px) !important;
}

/* Ensure navbar doesn't clip dropdown */
.navbar {
    overflow: visible !important;
    position: relative;
    z-index: 1000;
}

.navbar .navbar-collapse {
    overflow: visible !important;
}

.navbar .dropdown {
    position: static;
}

@media (min-width: 992px) {
    .navbar .dropdown {
        position: relative;
    }
}

/* Additional dropdown fixes for better visibility */
.navbar .dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    animation: dropdownFadeIn 0.3s ease-out;
}

/* Ensure Bootstrap dropdown works properly */
.navbar .dropdown-menu {
    display: none;
}

.navbar .dropdown-menu.show,
.navbar .dropdown.show .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Only show dropdown when it has the show class */
.dropdown-menu:not(.show) {
    display: none !important;
}

.dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix for dropdown toggle */
.navbar .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Force dropdown to be above other elements */
.navbar .nav-item.dropdown {
    z-index: 10000 !important;
    position: relative !important;
}

.navbar .dropdown-menu {
    top: 100% !important;
    left: auto !important;
    right: 0 !important;
    margin-top: 0.25rem !important;
    border: 1px solid rgba(0,0,0,0.15) !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.175) !important;
}

/* Ensure dropdown items are clickable */
.navbar .dropdown-item {
    white-space: nowrap;
    cursor: pointer;
}

.navbar .dropdown-item:active {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Enhanced Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #8b5cf6 100%);
    color: white;
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-weight: 800;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out;
}

.hero-section .lead {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-section .btn {
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Enhanced Product Cards */
.product-card {
    border: none;
    border-radius: var(--border-radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-card .card-body {
    padding: 1.75rem;
    position: relative;
    z-index: 3;
    background: var(--white);
}

.product-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .card-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    color: var(--gray-600);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .price-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.product-card .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--success-color);
    margin: 0;
}

.product-card .price-old {
    font-size: 1rem;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.product-card .discount-badge {
    background: var(--danger-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 4;
}

.product-card .stock-info {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.product-card .btn-container {
    display: flex;
    gap: 0.5rem;
}

.product-card .btn {
    flex: 1;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

/* Product Card Hover Effects */
.product-card .btn-primary {
    background: var(--primary-color);
    border: none;
    color: white;
}

.product-card .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-card .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.product-card .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Enhanced Category Cards */
.category-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--gray-200);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.category-card:hover::before {
    opacity: 0.05;
}

.category-card .category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.category-card:hover .category-icon {
    color: var(--primary-dark);
    transform: scale(1.1);
}

.category-card h4 {
    color: var(--gray-800);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
}

.category-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

/* Enhanced Button Styles */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gray-600);
    color: white;
}

.btn-secondary:hover {
    background: var(--gray-700);
    transform: translateY(-2px);
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Modern Stylish Cart Badge */
.cart-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Arial', sans-serif;
    line-height: 1;
    text-align: center;
    box-shadow:
        0 4px 12px rgba(255, 107, 107, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    animation: cartBadgePulse 2s ease-in-out infinite;
    transform: scale(1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    /* Ensure perfect centering */
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.cart-badge:hover {
    transform: scale(1.2);
    box-shadow:
        0 6px 20px rgba(255, 107, 107, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Modern Cart Badge Animation */
@keyframes cartBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 4px 12px rgba(255, 107, 107, 0.4),
            0 2px 6px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.1);
        box-shadow:
            0 6px 18px rgba(255, 107, 107, 0.6),
            0 4px 10px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

/* Cart Badge Bounce Animation for Updates */
.cart-badge.updated {
    animation: cartBadgeBounce 0.6s ease-out;
}

@keyframes cartBadgeBounce {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Different Badge Styles for Different Counts */
.cart-badge.single-digit {
    width: 24px;
    height: 24px;
    font-size: 11px;
    border-radius: 50%;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-badge.double-digit {
    width: 28px;
    height: 24px;
    border-radius: 12px;
    font-size: 10px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.cart-badge.many-items {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow:
        0 4px 12px rgba(243, 156, 18, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cart-badge.many-items:hover {
    box-shadow:
        0 6px 20px rgba(243, 156, 18, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Cart Icon Animation */
.cart-icon-shake {
    animation: cartShake 0.6s ease-in-out;
}

@keyframes cartShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* Cart Link Hover Effect */
.nav-link:has(.cart-badge) {
    transition: all 0.3s ease;
}

.nav-link:has(.cart-badge):hover {
    transform: translateY(-2px);
}

/* Special Glow Effect for Cart Badge */
.cart-badge.glow {
    animation: cartGlow 1s ease-in-out;
}

@keyframes cartGlow {
    0%, 100% {
        box-shadow:
            0 4px 12px rgba(255, 107, 107, 0.4),
            0 2px 6px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 0 20px rgba(255, 107, 107, 0.8),
            0 0 30px rgba(255, 107, 107, 0.6),
            0 4px 12px rgba(255, 107, 107, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

/* Responsive Cart Badge */
@media (max-width: 768px) {
    .cart-badge {
        width: 20px;
        height: 20px;
        font-size: 10px;
        top: -8px;
        right: -8px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cart-badge.double-digit {
        width: 24px;
        height: 20px;
        border-radius: 10px;
        font-size: 9px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
}

/* Enhanced Price Display */
.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--success-color);
    margin: 0;
}

.price-old {
    text-decoration: line-through;
    color: var(--gray-400);
    font-size: 1rem;
    font-weight: 500;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Enhanced Stock Status */
.stock-status {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    display: inline-block;
}

.stock-in {
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.stock-low {
    color: var(--warning-color);
    background: rgba(245, 158, 11, 0.1);
}

.stock-out {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
}

/* Enhanced Search Bar */
.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    border-radius: var(--border-radius-xl);
    padding: 1rem 4rem 1rem 1.5rem;
    border: 2px solid var(--gray-200);
    background: var(--white);
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--white);
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

/* Enhanced Pagination */
.pagination {
    justify-content: center;
    gap: 0.5rem;
}

.page-item {
    margin: 0;
}

.page-link {
    border-radius: var(--border-radius);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gray-200);
    color: var(--gray-600);
    background: var(--white);
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.page-item.disabled .page-link {
    color: var(--gray-400);
    background: var(--gray-100);
    border-color: var(--gray-200);
    cursor: not-allowed;
}

/* Enhanced Footer */
.footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--gray-300);
    padding: 60px 0 30px;
    margin-top: 80px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    position: relative;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding: 0.25rem 0;
}

.footer a:hover {
    color: var(--primary-light);
    transform: translateX(-5px);
}

.footer p {
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--gray-700);
    border-radius: var(--border-radius);
    color: var(--gray-300);
    font-size: 1.2rem;
    transition: var(--transition);
    transform: translateX(0);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-500);
}

/* Modern Animations & Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Animation Classes */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fadeInDown {
    animation: fadeInDown 0.8s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Staggered Animations */
.stagger-animation > * {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 80px 0 60px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }

    .product-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .category-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .product-card {
        margin-bottom: 1.5rem;
    }

    .product-card .card-body {
        padding: 1.5rem;
    }

    .product-image {
        height: 200px;
    }

    .search-container {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .search-input {
        padding: 0.875rem 3.5rem 0.875rem 1.25rem;
    }

    .search-btn {
        width: 36px;
        height: 36px;
        right: 6px;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }

    .social-links {
        justify-content: center;
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .category-card {
        padding: 1.5rem 1rem;
    }

    .category-card .category-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .product-card .card-body {
        padding: 1.25rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}

/* Enhanced Loading Components */
.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

.loading-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: loading-dots 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loading-dots {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Skeleton Loading Enhanced */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius);
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text:last-child {
    margin-bottom: 0;
}

.skeleton-image {
    height: 200px;
    margin-bottom: 16px;
    border-radius: var(--border-radius);
}

.skeleton-card {
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

/* Modern Card Components */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-xl);
}

.gradient-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.modern-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
}

.modern-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

/* Enhanced Badges */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: white;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

.badge-outline {
    background: transparent;
    border: 2px solid currentColor;
}

/* Floating Action Button Enhanced */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    z-index: 1000;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    color: white;
}

.fab:active {
    transform: scale(0.95);
}

/* Notification Toast Enhanced */
.toast-container {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1050;
    max-width: 400px;
}

.toast {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: none;
    margin-bottom: 1rem;
    overflow: hidden;
}

.toast-success {
    border-right: 4px solid var(--success-color);
}

.toast-error {
    border-right: 4px solid var(--danger-color);
}

.toast-warning {
    border-right: 4px solid var(--warning-color);
}

.toast-info {
    border-right: 4px solid var(--info-color);
}

/* Enhanced Alert Styles */
.alert {
    border-radius: var(--border-radius-lg);
    border: none;
    font-weight: 500;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-right: 4px solid var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-right: 4px solid var(--danger-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border-right: 4px solid var(--warning-color);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
    border-right: 4px solid var(--info-color);
}

/* Enhanced Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

::-webkit-scrollbar-corner {
    background: var(--gray-100);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.shadow-soft {
    box-shadow: var(--shadow);
}

.shadow-medium {
    box-shadow: var(--shadow-md);
}

.shadow-large {
    box-shadow: var(--shadow-lg);
}

.shadow-extra-large {
    box-shadow: var(--shadow-xl);
}

.rounded-soft {
    border-radius: var(--border-radius);
}

.rounded-medium {
    border-radius: var(--border-radius-lg);
}

.rounded-large {
    border-radius: var(--border-radius-xl);
}

.transition-all {
    transition: var(--transition);
}

.transition-fast {
    transition: var(--transition-fast);
}

/* Hover Effects */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hover-scale {
    transition: var(--transition);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: var(--transition);
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Focus States */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Modern Form Elements */
.form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

/* Section Spacing */
.section-padding {
    padding: 5rem 0;
}

.section-padding-sm {
    padding: 3rem 0;
}

.section-padding-lg {
    padding: 7rem 0;
}

/* Text Utilities */
.text-muted {
    color: var(--gray-500) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

/* Background Utilities */
.bg-light {
    background-color: var(--light-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-success {
    background-color: var(--success-color) !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
}

/* Advanced UI Enhancements */

/* Glassmorphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
    color: white;
}

/* Animated Icons */
.icon-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* Modern Input Styles */
.modern-input {
    position: relative;
    margin-bottom: 2rem;
}

.modern-input input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: transparent;
}

.modern-input input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modern-input label {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 16px;
    color: #6c757d;
    transition: all 0.3s ease;
    pointer-events: none;
}

.modern-input input:focus + label,
.modern-input input:not(:placeholder-shown) + label {
    top: -10px;
    right: 15px;
    font-size: 12px;
    color: #667eea;
    background: white;
    padding: 0 5px;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 20px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-image {
    height: 200px;
    border-radius: 15px;
    margin-bottom: 15px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1050;
}

.toast {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: none;
    min-width: 300px;
}

.toast-success {
    border-right: 4px solid #28a745;
}

.toast-error {
    border-right: 4px solid #dc3545;
}

.toast-warning {
    border-right: 4px solid #ffc107;
}

.toast-info {
    border-right: 4px solid #17a2b8;
}

/* Progress Bar */
.progress-modern {
    height: 8px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: hidden;
}

.progress-modern .progress-bar {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Modern Card Styles */
.modern-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-card:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Badge Styles */
.badge-modern {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

.badge-gradient {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

/* Image Overlay Effects */
.image-overlay {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.image-overlay:hover::before {
    opacity: 1;
}

.image-overlay .overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.image-overlay:hover .overlay-content {
    opacity: 1;
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In Animation */
.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Zoom In Animation */
.zoom-in {
    animation: zoomIn 0.6s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modern Form Styles */
.form-floating-modern {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating-modern input,
.form-floating-modern textarea,
.form-floating-modern select {
    width: 100%;
    padding: 20px 15px 10px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    background: transparent;
    transition: all 0.3s ease;
}

.form-floating-modern input:focus,
.form-floating-modern textarea:focus,
.form-floating-modern select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-floating-modern label {
    position: absolute;
    top: 20px;
    right: 15px;
    font-size: 16px;
    color: #6c757d;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 5px;
}

.form-floating-modern input:focus + label,
.form-floating-modern input:not(:placeholder-shown) + label,
.form-floating-modern textarea:focus + label,
.form-floating-modern textarea:not(:placeholder-shown) + label,
.form-floating-modern select:focus + label,
.form-floating-modern select:not([value=""]) + label {
    top: -8px;
    font-size: 12px;
    color: #667eea;
}

/* Lazy Loading Image Placeholder */
img.lazy {
    background: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* ===== REGION SELECTION STYLING ===== */
.bg-light-success {
    background-color: #f0fdf4 !important;
}

#governorate {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    font-size: 15px;
    transition: var(--transition);
}

#governorate:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#regionInfo .alert {
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 15px;
}

#regionInfo .btn-link {
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

#regionInfo .btn-link:hover {
    text-decoration: underline;
}

/* ===== SHIPPING METHODS STYLING ===== */
.shipping-method-option {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
    cursor: pointer;
    background: var(--white);
    margin-bottom: 15px;
}

.shipping-method-option:hover {
    border-color: var(--primary-color);
    background-color: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.shipping-method-option.selected {
    border-color: var(--success-color);
    background-color: #f0fdf4;
    box-shadow: var(--shadow-lg);
}

.shipping-method-option.recommended {
    border-color: var(--warning-color);
    background-color: #fffbeb;
    position: relative;
}

.shipping-method-option.recommended::before {
    content: "⭐";
    position: absolute;
    top: -8px;
    right: 15px;
    background: var(--warning-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.shipping-method-option .form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 2px solid var(--gray-300);
    transition: var(--transition);
}

.shipping-method-option .form-check-input:checked {
    background-color: var(--success-color);
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.shipping-method-option .form-check-label {
    cursor: pointer;
    margin-bottom: 0;
    width: 100%;
    padding-right: 10px;
}

/* ===== CHECKOUT ENHANCEMENTS ===== */
.checkout-section {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 25px;
    border: 1px solid var(--gray-200);
}

.checkout-section h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
}

/* ===== ORDER SUMMARY ENHANCEMENTS ===== */
.order-summary {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 20px;
    border: 1px solid var(--gray-200);
}

.order-summary h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
}

.order-totals {
    border-top: 2px solid var(--gray-200);
    padding-top: 15px;
    margin-top: 15px;
}

.order-totals .d-flex {
    padding: 8px 0;
    font-size: 15px;
}

.order-totals .fw-bold {
    font-size: 18px;
    color: var(--success-color);
}

#shippingCost {
    font-weight: 500;
}

.order-totals .d-flex:has(#shippingCost) {
    background: var(--gray-100);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    margin: 5px 0;
}

/* ===== LOADING STATES ===== */
.spinner-border-sm {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 2px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .shipping-method-option {
        padding: 15px;
        margin-bottom: 12px;
    }

    .checkout-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .order-summary {
        margin-top: 20px;
        position: static;
        padding: 20px;
    }

    .shipping-method-option .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .shipping-method-option .text-end {
        text-align: right !important;
        margin-top: 10px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .checkout-section {
        padding: 15px;
        border-radius: var(--border-radius);
    }

    .order-summary {
        padding: 15px;
        border-radius: var(--border-radius);
    }

    .shipping-method-option {
        padding: 12px;
    }
}

/* ===================================
   ENHANCED OFFER INDICATORS STYLING
   =================================== */

/* Product Discount Ribbon - Modern Design */
.discount-ribbon {
    position: absolute;
    top: 15px;
    right: -8px;
    z-index: 12;
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 50%, #e55039 100%);
    color: white;
    padding: 10px 25px 10px 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.5);
    border-radius: 0 6px 6px 0;
    animation: pulseOffer 2.5s infinite;
    transform: translateX(0) translateZ(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.discount-ribbon::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 44px 0;
    border-color: transparent #c0392b transparent transparent;
}

.discount-ribbon::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #ff4757;
}

.discount-ribbon .discount-text {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 4px;
}

.discount-ribbon .discount-text::before {
    content: '🔥';
    font-size: 14px;
    animation: fireFlicker 1.8s infinite alternate;
}

/* Product Offer Badge - Enhanced */
.offer-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ffa726 0%, #ff9800 50%, #f57c00 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.5);
    animation: bounceOffer 4s infinite;
    z-index: 14;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.offer-badge i {
    margin-right: 6px;
    animation: fireFlicker 2s infinite alternate;
    font-size: 14px;
}

/* Fix for blurry offer badge text */
.offer-badge,
.offer-badge * {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Special styling for offer text */
.special-offer-text {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    display: inline-block;
    transform: translateZ(0);
}

/* Category Offer Badge - Premium Design */
.category-offer-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 50%, #6a1b9a 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.5);
    z-index: 10;
    animation: slideInOffer 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.category-offer-badge:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.7);
}

.category-offer-badge i {
    margin-right: 8px;
    animation: rotatePercent 3s infinite linear;
    font-size: 15px;
}

/* Product Card with Offer - Enhanced */
.product-card.has-offer {
    border: 3px solid #ff4757;
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.2);
    animation: glowOffer 4s infinite;
    position: relative;
    overflow: hidden;
}

.product-card.has-offer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 71, 87, 0.1), transparent);
    animation: shimmerOffer 3s infinite;
    z-index: 1;
}

.product-card.has-offer:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 71, 87, 0.3);
}

/* Category Card with Offer - Enhanced */
.category-card.has-category-offer {
    border: 3px solid #9c27b0;
    box-shadow: 0 10px 30px rgba(156, 39, 176, 0.2);
    animation: glowCategoryOffer 4s infinite;
    position: relative;
    overflow: hidden;
}

.category-card.has-category-offer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(156, 39, 176, 0.1), transparent);
    animation: shimmerCategoryOffer 3s infinite;
    z-index: 1;
}

.category-card.has-category-offer:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(156, 39, 176, 0.3);
}

/* ===================================
   ENHANCED OFFER ANIMATIONS
   =================================== */

@keyframes pulseOffer {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(255, 71, 87, 0.5);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 25px rgba(255, 71, 87, 0.7);
    }
}

@keyframes bounceOffer {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

@keyframes fireFlicker {
    0% {
        transform: rotate(-3deg) scale(1);
        color: #ff9800;
        text-shadow: 0 0 5px #ff5722;
    }
    50% {
        transform: rotate(0deg) scale(1.1);
        color: #ff5722;
        text-shadow: 0 0 10px #ff9800;
    }
    100% {
        transform: rotate(3deg) scale(1);
        color: #ff9800;
        text-shadow: 0 0 5px #ff5722;
    }
}

@keyframes rotatePercent {
    0% {
        transform: rotate(0deg);
        color: #e1bee7;
    }
    25% {
        transform: rotate(90deg);
        color: #ffffff;
    }
    50% {
        transform: rotate(180deg);
        color: #e1bee7;
    }
    75% {
        transform: rotate(270deg);
        color: #ffffff;
    }
    100% {
        transform: rotate(360deg);
        color: #e1bee7;
    }
}

@keyframes slideInOffer {
    0% {
        transform: translateX(-150%) scale(0.6);
        opacity: 0;
        rotate: -15deg;
    }
    60% {
        transform: translateX(10%) scale(1.1);
        opacity: 1;
        rotate: 5deg;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
        rotate: 0deg;
    }
}

@keyframes glowOffer {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(255, 71, 87, 0.2);
    }
    50% {
        box-shadow: 0 10px 30px rgba(255, 71, 87, 0.4);
    }
}

@keyframes glowCategoryOffer {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(156, 39, 176, 0.2);
    }
    50% {
        box-shadow: 0 10px 30px rgba(156, 39, 176, 0.4);
    }
}

@keyframes shimmerOffer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes shimmerCategoryOffer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ===================================
   RESPONSIVE OFFER INDICATORS
   =================================== */

@media (max-width: 768px) {
    .discount-ribbon {
        top: 10px;
        right: -6px;
        padding: 8px 20px 8px 15px;
        font-size: 11px;
    }

    .discount-ribbon::before {
        border-width: 0 6px 36px 0;
        left: -6px;
    }

    .discount-ribbon::after {
        border-width: 8px 0 8px 8px;
        right: -8px;
    }

    .offer-badge {
        bottom: 8px;
        left: 8px;
        padding: 6px 12px;
        font-size: 11px;
    }

    .category-offer-badge {
        top: 12px;
        left: 12px;
        padding: 8px 14px;
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .discount-ribbon {
        top: 8px;
        right: -4px;
        padding: 6px 16px 6px 12px;
        font-size: 10px;
    }

    .offer-badge {
        bottom: 6px;
        left: 6px;
        padding: 5px 10px;
        font-size: 10px;
    }

    .category-offer-badge {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 10px;
    }

    .product-card.has-offer,
    .category-card.has-category-offer {
        border-width: 2px;
    }
}

/* ===== MODERN NOTIFICATION SYSTEM ===== */

/* Notification Container */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999 !important;
    pointer-events: none;
    max-width: 400px;
    width: 100%;
}

/* Base Notification Styles - Dynamic colors handled by notifications.js */
.notification {
    background: white !important;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
    margin-bottom: 12px;
    overflow: visible !important;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease !important;
    pointer-events: auto;
    position: relative;
    /* border-left and border colors are now handled dynamically by notifications.js */
    min-height: 70px;
    z-index: 99999 !important;
    width: 350px !important;
    max-width: 350px !important;
}

/* Show Animation */
.notification-show {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

/* Hide Animation */
.notification-hide {
    transform: translateX(100%);
    opacity: 0;
    margin-bottom: 0;
    max-height: 0;
}

/* Notification Content */
.notification-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
    position: relative;
}

/* Notification Icon */
.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 12px;
    margin-top: 2px;
}

/* Notification Text */
.notification-text {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.3;
}

.notification-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Close Button */
.notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #666;
}

/* Progress Bar */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    width: 100%;
    transform-origin: left;
    animation: notificationProgress linear forwards;
}

@keyframes notificationProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Notification Type Styles - Colors handled dynamically by notifications.js */
.notification-success {
    /* All colors (border, background, etc.) are set dynamically by notifications.js */
}

.notification-success .notification-icon {
    /* Background color set dynamically by JavaScript */
}

.notification-success .notification-progress {
    /* Background color set dynamically by JavaScript */
}

/* Error Notification */
.notification-error {
    /* All colors (border, background, etc.) are set dynamically by notifications.js */
}

.notification-error .notification-icon {
    /* Background color set dynamically by JavaScript */
}

.notification-error .notification-progress {
    /* Background color set dynamically by JavaScript */
}

/* Warning Notification */
.notification-warning {
    /* All colors (border, background, etc.) are set dynamically by notifications.js */
}

.notification-warning .notification-icon {
    /* Background color set dynamically by JavaScript */
    /* Text color for warning icons is handled by JavaScript */
}

.notification-warning .notification-progress {
    /* Background color set dynamically by JavaScript */
}

/* Info Notification */
.notification-info {
    /* All colors (border, background, etc.) are set dynamically by notifications.js */
}

.notification-info .notification-icon {
    /* Background color set dynamically by JavaScript */
}

.notification-info .notification-progress {
    /* Background color set dynamically by JavaScript */
}

/* Hover Effects */
.notification:hover {
    transform: translateX(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.notification:hover .notification-progress {
    animation-play-state: paused;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification {
        margin-bottom: 8px;
    }

    .notification-content {
        padding: 12px;
        gap: 10px;
    }

    .notification-title {
        font-size: 13px;
    }

    .notification-message {
        font-size: 12px;
    }
}
