/**
 * Blyze Art - Modern Main Stylesheet
 * Theme: Red & Black with Glassmorphism Effects
 */

:root {
    --primary-red: #dc3545;
    --primary-red-dark: #c82333;
    --primary-red-light: #ff4757;
    --primary-black: #0a0a0a;
    --primary-black-dark: #1a1a1a;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #343a40;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 60px rgba(220, 53, 69, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    color: var(--primary-black);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* ========== MODERN HEADER ========== */
.site-header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(220, 53, 69, 0.1);
}

.site-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--primary-red),
        var(--primary-red-light),
        var(--primary-red),
        transparent
    );
    animation: headerGlow 3s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    position: relative;
}

.header-right {
    display: flex;
    align-items: center;
}

/* Modern Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-img {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-light));
    padding: 3px;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
    }
    50% {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(220, 53, 69, 0.6);
    }
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, var(--white), var(--primary-red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Modern Header Icons */
.header-icon {
    position: relative;
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-icon:hover {
    color: var(--primary-red-light);
    background: rgba(220, 53, 69, 0.15);
    border-color: var(--primary-red);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.cart-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-light));
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

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

.user-avatar-header {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--primary-red);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.user-avatar-link {
    display: inline-block;
    transition: var(--transition);
}

.user-avatar-link:hover .user-avatar-header {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
    border-color: var(--primary-red-light);
}

/* User Menu Button */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px 12px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--white);
}

.user-menu-btn:hover {
    background: rgba(220, 53, 69, 0.15);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

/* ========== MODERN NAVIGATION ========== */
.main-nav {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(220, 53, 69, 0.15);
    margin-top: 15px;
    border-radius: var(--radius);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 3px;
    padding: 0;
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-red-light));
    transition: var(--transition);
    transform: translateX(-50%);
}

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

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg,
        rgba(220, 53, 69, 0.2),
        rgba(220, 53, 69, 0.1)
    );
    color: var(--primary-red-light);
    transform: translateY(-1px);
}

.nav-link i {
    font-size: 16px;
}

/* ========== MOBILE MENU ========== */
.mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-toggle:hover {
    background: rgba(220, 53, 69, 0.15);
    border-color: var(--primary-red);
    transform: scale(1.05);
}

.mobile-header {
    display: none;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-black), var(--primary-black-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.btn-outline:hover {
    background: var(--primary-black);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.6);
}

/* ========== HERO SLIDER ========== */
.hero-slider {
    position: relative;
    height: 550px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin: 20px 0;
    box-shadow: var(--shadow-xl);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.7) 40%,
        transparent 100%
    );
    padding: 60px 0 40px;
    color: var(--white);
}

.hero-content h2 {
    font-size: 42px;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ========== SECTIONS ========== */
.products-section,
.categories-section {
    padding: 60px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 25px;
    background: linear-gradient(135deg, var(--primary-black), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg,
        transparent,
        var(--primary-red),
        var(--primary-red-light),
        var(--primary-red),
        transparent
    );
    border-radius: 2px;
}

/* ========== PRODUCTS GRID ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

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

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-light));
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.5);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.price-current {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-red);
}

.price-old {
    font-size: 16px;
    color: var(--gray-medium);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
}

/* ========== CATEGORIES ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

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

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
}

/* ========== FOOTER ========== */
.site-footer {
    background: linear-gradient(135deg, var(--primary-black), var(--primary-black-dark));
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

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

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-red-light);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ========== FORM ELEMENTS ========== */
.form-group {
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--gray-dark);
}

/* ========== LOADING OVERLAY ========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

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

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== NOTIFICATIONS ========== */
.notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--white);
    padding: 16px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    opacity: 0;
    transition: var(--transition);
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

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

.notification.error {
    border-right: 4px solid var(--primary-red);
}

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

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

/* ========== COOKIE CONSENT ========== */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    color: var(--white);
    padding: 20px 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 9998;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* ========== MAIN ========== */
main {
    min-height: calc(100vh - 400px);
}

/* ========== AUTH PAGES (Login/Register) ========== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 45px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--primary-red),
        var(--primary-red-light),
        var(--primary-red)
    );
}

.auth-logo {
    text-align: center;
    margin-bottom: 35px;
}

.auth-logo-img {
    width: 85px;
    height: 85px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
    animation: logoFloat 3s ease-in-out infinite;
}

.auth-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--primary-black), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-links {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.auth-links a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-links a:hover {
    color: var(--primary-red-light);
    text-decoration: underline;
}

/* ========== USER MENU DROPDOWN ========== */
.user-menu {
    position: relative;
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.user-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg,
        rgba(220, 53, 69, 0.05),
        rgba(220, 53, 69, 0.02)
    );
    border-bottom: 1px solid rgba(220, 53, 69, 0.1);
    border-radius: var(--radius) var(--radius) 0 0;
}

.user-menu-avatar {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--primary-red);
}

.user-menu-name {
    font-weight: 700;
    color: var(--primary-black);
    font-size: 16px;
}

.user-menu-items {
    list-style: none;
    padding: 10px;
    margin: 0;
}

.user-menu-item {
    margin-bottom: 5px;
}

.user-menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--gray-dark);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    font-weight: 500;
}

.user-menu-item a:hover {
    background: linear-gradient(135deg,
        rgba(220, 53, 69, 0.1),
        rgba(220, 53, 69, 0.05)
    );
    color: var(--primary-red);
    transform: translateX(-3px);
}

.user-menu-item i {
    width: 20px;
    text-align: center;
}

/* ========== RATING STARS ========== */
.rating-stars {
    display: inline-flex;
    gap: 2px;
}

.stars {
    display: inline-flex;
    gap: 3px;
}

.stars i {
    color: #ffc107;
    font-size: 14px;
}

/* ========== PAGE HEADER ========== */
.page-header {
    background: linear-gradient(135deg, var(--primary-black), var(--primary-black-dark));
    color: var(--white);
    padding: 50px 0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        var(--primary-red),
        var(--primary-red-light),
        var(--primary-red),
        transparent
    );
}

.page-header h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 10px;
}

/* ========== ALERTS ========== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-right-width: 4px;
    border-right-style: solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-right-color: #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-right-color: var(--primary-red);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-right-color: #ffc107;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-right-color: #17a2b8;
}

/* ========== TABLES ========== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

thead {
    background: linear-gradient(135deg, var(--primary-black), var(--primary-black-dark));
    color: var(--white);
}

th, td {
    padding: 14px 18px;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
}

th {
    font-weight: 600;
}

tbody tr:hover {
    background: rgba(220, 53, 69, 0.03);
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--primary-black);
    transition: var(--transition);
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

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

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

.badge-warning {
    background: #ffc107;
    color: var(--primary-black);
}

.badge-info {
    background: #17a2b8;
    color: var(--white);
}

/* ========== HEADER SEARCH BAR ========== */
.header-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 8px 8px 8px 20px;
    transition: var(--transition);
    max-width: 350px;
    margin-left: 20px;
}

.header-search:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
    transform: scale(1.02);
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 14px;
    width: 100%;
    font-family: 'Cairo', sans-serif;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-light));
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.5);
}

/* ========== ENHANCED HEADER FEATURES ========== */
.site-header {
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header Top Bar */
.header-top-bar {
    background: linear-gradient(135deg, var(--primary-black), #1a1a1a);
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(220, 53, 69, 0.1);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

.header-top-contacts {
    display: flex;
    gap: 20px;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.header-contact-item:hover {
    color: var(--primary-red-light);
}

.header-social-links {
    display: flex;
    gap: 12px;
}

.header-social-links a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.header-social-links a:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-3px) rotate(360deg);
}

/* Header with Top Bar Modified */
.site-header.has-top-bar {
    padding-top: 0;
}

/* ========== STICKY HEADER SCROLL EFFECT ========== */
.site-header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 8px 32px rgba(220, 53, 69, 0.2);
}

.site-header.scrolled .logo-img {
    width: 48px;
    height: 48px;
}

.site-header.scrolled .header-main {
    padding: 12px 0;
}

/* ========== MEGA MENU ========== */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    border-top: 3px solid var(--primary-red);
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.mega-menu-section {
    padding: 15px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mega-menu-section:hover {
    background: rgba(220, 53, 69, 0.05);
}

.mega-menu-section h4 {
    color: var(--primary-red);
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-menu-section ul {
    list-style: none;
}

.mega-menu-section li {
    margin-bottom: 10px;
}

.mega-menu-section a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mega-menu-section a:hover {
    color: var(--primary-red);
    transform: translateX(-3px);
}

/* ========== QUICK ACTIONS ========== */
.header-quick-actions {
    display: flex;
    gap: 10px;
    margin-left: 15px;
}

.quick-action-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-light));
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.quick-action-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
}

.quick-action-btn .action-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--white);
    color: var(--primary-red);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== WISHLIST BUTTON ========== */
.wishlist-btn {
    position: relative;
}

.wishlist-btn:hover .wishlist-icon {
    color: #ff6b6b;
    animation: heartbeat 0.6s ease;
}

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

/* ========== HEADER BOTTOM BORDER ========== */
.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--primary-red) 20%,
        var(--primary-red-light) 50%,
        var(--primary-red) 80%,
        transparent 100%
    );
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
