/**
 * Yola Accessories - Main Stylesheet
 * Background Color: #F8f0e5
 * RTL Support for Arabic
 */

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

:root {
    /* Premium Gradient Background */
    --bg-gradient: linear-gradient(to bottom, #F8f0e5, #F4e8d7);
    --bg-primary: #F8f0e5;
    --bg-secondary: #F4e8d7;
    
    /* Text Colors - Rich and Professional */
    --text-primary: #2c2416;
    --text-secondary: #6b5d4f;
    --text-light: #8a7a6a;
    
    /* Accent Colors - Warm Elegant Tones (matches #F8f0e5) */
    --primary-color: #b8a890;
    --accent-color: #b8a890;
    --accent-hover: #9a8670;
    --accent-light: rgba(184, 168, 144, 0.1);
	--accent-colorz: rgba(248, 240, 229, 0.5);

	
    /* Status Colors */
    --success-color: #7d9b7a;
    --warning-color: #d4a574;
    --danger-color: #b87a6a;
    --info-color: #8a9bb8;
    
    /* Borders & Dividers */
    --border-color: #e8dcc8;
    --border-accent: rgba(184, 168, 144, 0.3);
    
	
	
    /* Shadows - Subtle and Professional */
    --shadow-sm: 0 2px 8px rgba(44, 36, 22, 0.06);
    --shadow: 0 4px 16px rgba(44, 36, 22, 0.08);
    --shadow-lg: 0 8px 32px rgba(44, 36, 22, 0.12);
    --shadow-hover: 0 12px 40px rgba(44, 36, 22, 0.15);
    
    /* Card & Glass Effects */
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-bg-hover: rgba(255, 255, 255, 0.85);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    /* Design Elements */
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* Font Awesome Regular (outline) icons fix - needed for empty stars */
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("/assets/fonts/webfonts/fa-regular-400.woff2") format("woff2"),
         url("/assets/fonts/webfonts/fa-regular-400.ttf") format("truetype");
}

.far, .fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

/* Additional specificity for stars */
.stars .far {
    font-weight: 400 !important;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #F8f0e5, #E8E0D5); /* Your favorite gradient! */
    background-attachment: fixed; /* Keep gradient fixed when scrolling */
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Default to RTL (Arabic) */
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* LTR (English) */
html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.header {
    background: linear-gradient(to right, #F8f0e5, #E8E0D5); /* Gradient header */
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Remove sticky on mobile */
@media (max-width: 768px) {
    .header {
        position: relative;
    }
}

/* Header top removed for cleaner design */

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.logo img {
    max-height: 50px;
    width: 100%;
    max-width: 250px;
    object-fit: contain;
}

.logo span {
    width: 100%;
    max-width: 250px;
}

.search-bar {
    flex: 1;
    max-width: 600px;
}

.search-bar form {
    display: flex;
    gap: 10px;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: var(--accent-color);
}

.search-bar button {
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: var(--accent-hover);
}

.header-icons {
    display: flex;
    gap: 25px;
    align-items: center;
}

.header-auth-icons,
.header-shop-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-auth-icons {
    border-left: 1px solid var(--border-color);
    padding-left: 18px;
}

.icon-btn {
    position: relative;
    color: var(--text-secondary);
    font-size: 18px;
    text-decoration: none;
    padding: 6px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
}

.icon-btn i {
    font-size: 18px;
    transition: var(--transition);
    font-weight: 400;
}

.icon-btn:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}

.icon-btn:hover i {
    transform: scale(1.08);
}

/* Legacy header-icon for backwards compatibility */
.header-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.icon-btn .badge {
    position: absolute;
    top: -2px;
    left: -6px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    border-radius: 12px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: 2px solid #F8f0e5;
    z-index: 10;
    line-height: 1;
    letter-spacing: 0.3px;
}

.icon-btn:hover .badge {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    }
}

/* Navigation */
.nav {
    background: transparent; /* Transparent to show body gradient */
    border-top: 1px solid var(--border-color);
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 15px 0;
}

.nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav a:hover,
.nav a.active {
    color: var(--accent-color);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
}

/* Desktop Navigation Dropdown */
.nav-dropdown-item {
    position: relative;
}

.nav-dropdown-menu {
    /* Will be controlled by max-height on mobile, can be enhanced for desktop later */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: none; /* No transition on desktop */
}

/* Desktop hover effect - show dropdown on hover */
@media (min-width: 769px) {
    .nav-dropdown-item:hover .nav-dropdown-menu {
        max-height: 1000px;
        opacity: 1;
        visibility: visible;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border: none;
    font-size: 24px;
    color: white;
    cursor: move;
    padding: 12px 15px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    touch-action: none;
    user-select: none;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.5);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle.dragging {
    transition: none;
    opacity: 0.95;
    background: transparent;
    box-shadow: 0 8px 30px rgba(248, 240, 229, 0.6), 0 0 15px rgba(200, 150, 100, 0.25);
    transform: scale(1.05);
}



/* When menu is open (showing X), different styling */
.mobile-menu-toggle.menu-open {
    background: transparent;
    color: #2c3e50;
    box-shadow: none;
    cursor: pointer;
    animation: none;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), top 0.3s ease, right 0.3s ease, left 0.3s ease !important;
}

.mobile-menu-toggle.menu-open:hover {
    background: color-mix(in srgb, var(--accent-color) 12%, transparent);
    transform: scale(1.05);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--accent-hover) 40%, transparent);
}


/* Subtle pulse animation to hint draggability */
@keyframes menuButtonPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow:
            0 4px 20px var(--accent-hover),
            0 0 0 8px color-mix(in srgb, var(--accent-color) 40%, transparent);
    }
}

.mobile-menu-toggle:not(.dragging):not(.menu-open) {
    animation: menuButtonPulse 3s ease-in-out infinite;
}

/* Mobile menu toggle icons - professional styling */
.mobile-menu-toggle i {
    transition: all 0.3s ease;
}

.mobile-menu-toggle .fa-times {
    font-size: 28px;
    font-weight: 300;
}

.mobile-menu-toggle .fa-bars {
    font-weight: 400;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        position: fixed;
        top: 150px;
    }
    
    /* Default position - lower specificity so inline styles can override */
    .mobile-menu-toggle {
        right: 15px;
        left: auto;
    }
    
    html[dir="ltr"] .mobile-menu-toggle {
        left: 15px;
        right: auto;
    }
    
    .nav {
        position: fixed;
        top: 0;
        width: 280px;
        height: 100vh;
        background: linear-gradient(to bottom, #F8f0e5, #E8E0D5);
        z-index: 999;
        overflow-y: auto;
        border-top: none;
    }
    
    /* RTL: Menu slides from right */
    html[dir="rtl"] .nav {
        right: -100%;
        left: auto;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease-in-out;
    }
    
    html[dir="rtl"] .nav.mobile-active {
        right: 0;
    }
    
    /* LTR: Menu slides from left */
    html[dir="ltr"] .nav {
        left: -100%;
        right: auto;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
        transition: left 0.3s ease-in-out;
    }
    
    html[dir="ltr"] .nav.mobile-active {
        left: 0;
    }
    
    .nav .container {
        padding: 0;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0;
        padding: 60px 0 20px 0;
    }
    
    .nav li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 18px 25px;
        font-size: 16px;
        color: var(--text-primary);
        transition: all 0.3s;
    }
    
    .nav a i {
        font-size: 18px;
        width: 24px;
        text-align: center;
        color: var(--accent-color);
    }
    
    .nav a:hover {
        background: rgba(248, 240, 229, 0.4);
        color: var(--accent-color);
        padding-right: 30px;
    }
    
    .nav a.active {
        background: linear-gradient(to left, rgba(248, 240, 229, 0.4), transparent);
        color: var(--accent-color);
        border-right: 4px solid var(--accent-color);
    }
    
    .nav a.active::after {
        display: none;
    }
    
    /* Mobile Categories Dropdown - Simple List */
    .nav .nav-dropdown-item {
        position: static; /* Don't use relative positioning to avoid overlay */
    }
    
    .nav .nav-dropdown-arrow {
        margin-right: auto;
        transition: transform 0.3s;
        font-size: 14px;
    }
    
    .nav .nav-dropdown-item.open .nav-dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .nav .nav-dropdown-menu {
        position: static; /* Inline - pushes content below */
        background: rgba(0, 0, 0, 0.02);
        border-right: 3px solid var(--accent-color);
        margin: 0;
        padding: 0;
        overflow: hidden;
        max-height: 0 !important; /* Force hidden when closed */
        opacity: 0 !important;
        visibility: hidden !important;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease, visibility 0s linear 0.4s;
    }
    
    .nav .nav-dropdown-item.open .nav-dropdown-menu {
        max-height: 2000px !important; /* Large enough for all categories */
        opacity: 1 !important;
        visibility: visible !important;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease, visibility 0s linear 0s;
    }
    
    /* Hide desktop grid layout on mobile */
    .nav .nav-dropdown-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    
    /* Simple category links - WITH images on mobile */
    .nav .nav-dropdown-category {
        display: flex;
        align-items: center;
        padding: 12px 35px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.3s;
        text-decoration: none;
        background: transparent;
        gap: 12px;
    }
    
    /* Show images on mobile - styled for mobile */
    .nav .nav-dropdown-category-image {
        display: flex !important;
        width: 50px;
        height: 50px;
        border-radius: 10px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        flex-shrink: 0;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        align-items: center;
        justify-content: center;
    }
    
    .nav .nav-dropdown-category-no-image {
        background: linear-gradient(135deg, #f8f9fa, #e9ecef);
        color: var(--text-secondary);
        font-size: 20px;
    }
    
    .nav .nav-dropdown-category-info {
        display: flex;
        flex-direction: column;
        gap: 3px;
        flex: 1;
    }
    
    .nav .nav-dropdown-category-name {
        color: var(--text-primary);
        font-size: 15px;
        font-weight: 600;
    }
    
    .nav .nav-dropdown-category-count {
        color: var(--text-secondary);
        font-size: 12px;
    }
    
    .nav .nav-dropdown-category:hover {
        background: rgba(0, 0, 0, 0.03);
        padding-right: 40px;
    }
    
    .nav .nav-dropdown-category:hover .nav-dropdown-category-name {
        color: var(--accent-color);
    }
    
    .nav .nav-dropdown-category:hover .nav-dropdown-category-image {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    /* View all link */
    .nav .nav-dropdown-view-all {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 18px 35px;
        background: rgba(0, 0, 0, 0.03);
        color: var(--accent-color);
        font-weight: 600;
        text-decoration: none;
        font-size: 15px;
        transition: all 0.3s;
        border-top: 2px solid rgba(0, 0, 0, 0.08);
        margin-top: 5px;
    }
    
    .nav .nav-dropdown-view-all:hover {
        background: rgba(0, 0, 0, 0.06);
        padding-right: 40px;
    }
    
    .nav .nav-dropdown-view-all i {
        font-size: 14px;
        transition: transform 0.3s;
    }
    
    .nav .nav-dropdown-view-all:hover i {
        transform: translateX(-3px);
    }
    
    /* Empty state */
    .nav .nav-dropdown-empty {
        padding: 30px 25px;
        text-align: center;
        color: var(--text-secondary);
    }
    
    .nav .nav-dropdown-empty i {
        font-size: 32px;
        margin-bottom: 10px;
        opacity: 0.5;
        display: block;
        color: var(--text-secondary);
    }
    
    .nav .nav-dropdown-empty p {
        margin: 0;
        font-size: 14px;
    }
    
    /* Hide search bar on very small screens */
    @media (max-width: 576px) {
        .search-bar {
            display: none;
        }
        
        .header-main .container {
            justify-content: space-between;
        }
    }
}

/* Admin Action Buttons - Enhanced Visibility */
.btn.btn-secondary,
.btn.btn-danger,
.btn.btn-warning,
.btn.btn-success {
    font-size: 16px !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
}

.btn.btn-secondary i,
.btn.btn-danger i,
.btn.btn-warning i,
.btn.btn-success i {
    font-size: 18px !important; /* Larger icons in buttons */
    font-weight: 900;
}

.btn.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn.btn-danger:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

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

.btn.btn-warning:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

.btn.btn-success:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

/* Table action buttons - Better visibility */
table .btn {
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px !important;
}

table .btn i {
    font-size: 16px !important;
}

/* Badge improvements */
.badge {
    font-size: 11px !important;
    padding: 5px 10px !important;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 12px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #f5ede3 0%, #e8ddd0 100%);
    color: #4a4a4a;
    margin-top: 60px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.footer-content {
    padding: 40px 0;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #5a5a5a;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s;
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--accent-color);
    transform: translateX(-3px);
}

.footer-section p {
    color: #5a5a5a;
    line-height: 1.6;
}

/* Hide policies section on mobile (already in header) */
@media (max-width: 768px) {
    .footer-policies-section {
        display: none !important;
    }
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: 2px solid #d4c4b0;
    border-radius: 5px;
    outline: none;
		 background: var(--accent-colorz); 
    color: #4a4a4a;
    transition: border-color 0.3s;
}

.newsletter-form input:focus {
    border-color: var(--accent-color);
}

.newsletter-form button {
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: var(--accent-hover);
}

/* Footer Social Icons */
.footer-social-icons {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-social-link {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    padding: 0 !important;
    margin: 0;
    text-align: center;
}

.footer-social-link svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    margin: 0 auto !important;
    position: relative;
    z-index: 2;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.footer-social-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.footer-social-link:hover svg {
    transform: scale(1.1);
}

/* Individual Brand Colors */
.footer-social-link.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0a5dcf 100%);
}

.footer-social-link.instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-social-link.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.footer-social-link.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
}

.footer-social-link.tiktok {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.footer-social-link.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%);
}

.footer-social-link.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
}

.footer-social-link.snapchat {
    background: linear-gradient(135deg, #fffc00 0%, #f4e200 100%);
}

.footer-social-link.snapchat svg {
    color: #000000 !important;
}

.footer-bottom {
    border-top: 1px solid rgba(231, 76, 60, 0.15);
    padding: 20px 0;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn i {
    font-size: 18px;
}

/* Icon-only buttons */
.btn-icon-only {
    padding: 14px;
    min-width: 48px;
    justify-content: center;
}

.btn-icon-only i {
    font-size: 20px;
    margin: 0;
}

@media (max-width: 768px) {
    .btn-icon-only {
        padding: 12px;
        min-width: 44px;
    }
    
    .btn-icon-only i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .btn-icon-only {
        padding: 10px;
        min-width: 40px;
    }
    
    .btn-icon-only i {
        font-size: 16px;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Cards */
.card {
    background: var(--accent-colorz);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Account Page Specific Styles */
.account-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    border-right: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.account-nav-link:hover {
    background: rgba(231, 76, 60, 0.05);
    border-right-color: rgba(231, 76, 60, 0.3);
}

.account-nav-link.active {
    background: rgba(231, 76, 60, 0.08);
    border-right-color: var(--accent-color);
    font-weight: 600;
}

.account-nav-icon {
    transition: all 0.3s;
}

.account-nav-link:hover .account-nav-icon {
    stroke: var(--accent-color);
    transform: scale(1.1);
}

.account-nav-link.active .account-nav-icon {
    stroke: var(--accent-color);
}

/* Stats cards in account dashboard */
.stats-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 2px solid rgba(231, 76, 60, 0.1);
    transition: all 0.3s;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(231, 76, 60, 0.2);
}

/* Product Card */
.product-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-color: rgba(0, 0, 0, 0.15);
}

/* Product card image wrapper for hover effect */
.product-card-image-wrapper {
    position: relative;
    display: block;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.product-card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: var(--bg-primary);
    transition: opacity 0.4s ease-in-out;
}

.product-card-image-primary {
    position: relative;
    z-index: 2;
}

.product-card-image-secondary {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
}

/* Desktop hover effect - only if secondary image exists */
@media (min-width: 769px) {
    .product-card-image-wrapper:has(.product-card-image-secondary):hover .product-card-image-primary {
        opacity: 0;
    }
    
    .product-card-image-wrapper:has(.product-card-image-secondary):hover .product-card-image-secondary {
        opacity: 1;
    }
}

/* Mobile touch effect - tap to toggle */
@media (max-width: 768px) {
    .product-card-image-wrapper.show-secondary .product-card-image-primary {
        opacity: 0;
    }
    
    .product-card-image-wrapper.show-secondary .product-card-image-secondary {
        opacity: 1;
    }
}

.product-card-badge {
    position: absolute;
    top: 15px;
    background: linear-gradient(135deg, #d4a574, #b8a890);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
    z-index: 5;
    animation: pulseDiscount 2s ease-in-out infinite;
}

/* RTL: Badge on right */
html[dir="rtl"] .product-card-badge {
    right: 15px;
    left: auto;
}

/* LTR: Badge on left */
html[dir="ltr"] .product-card-badge {
    left: 15px;
    right: auto;
}

/* Discount Badge - Positioned at opposite corner from product badge */
.discount-badge {
    position: absolute;
    top: 15px;
    background: linear-gradient(135deg, #d4a574, #b8a890);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
    z-index: 6;
    animation: pulseDiscount 2s ease-in-out infinite;
}

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

/* RTL: Discount badge on left (opposite of product badge) */
html[dir="rtl"] .discount-badge {
    left: 15px;
    right: auto;
}

/* LTR: Discount badge on right (opposite of product badge) */
html[dir="ltr"] .discount-badge {
    right: 15px;
    left: auto;
}

.product-card-content {
    padding: 20px;
}

/* RTL: Content aligned right */
html[dir="rtl"] .product-card-content {
    text-align: right;
    direction: rtl;
}

/* LTR: Content aligned left */
html[dir="ltr"] .product-card-content {
    text-align: left;
    direction: ltr;
}

.product-card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* RTL: Title aligned right */
html[dir="rtl"] .product-card-title {
    text-align: right;
}

/* LTR: Title aligned left */
html[dir="ltr"] .product-card-title {
    text-align: left;
}

.product-card-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.3;
}

.product-card-price .discounted-price,
.product-card-price .original-price {
    white-space: nowrap;
}

/* RTL: Price aligned right */
html[dir="rtl"] .product-card-price {
    text-align: right;
}

/* LTR: Price aligned left */
html[dir="ltr"] .product-card-price {
    text-align: left;
}

/* Discounted Price Styling */
.discounted-price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 24px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 18px;
    font-weight: 400;
    margin-inline-start: 8px;
}

/* Product Page Discount Prices - Larger */
.product-detail .discounted-price {
    font-size: 36px;
}

.product-detail .original-price {
    font-size: 24px;
    margin-inline-start: 10px;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
    font-size: 14px;
}

/* RTL: Rating flows right to left */
html[dir="rtl"] .product-card-rating {
    flex-direction: row;
    justify-content: flex-start;
}

/* LTR: Rating flows left to right */
html[dir="ltr"] .product-card-rating {
    flex-direction: row;
    justify-content: flex-start;
}

.stars {
    color: #f39c12;
    display: inline-flex;
    gap: 2px;
    /* Let it inherit RTL from page for correct star order */
}

.stars i {
    font-size: inherit;
}

/* RTL support for half star - flip it horizontally so left half is filled */
[dir="rtl"] .stars .fa-star-half-alt {
    transform: scaleX(-1);
    display: inline-block;
}

.product-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* RTL: Actions flow right to left */
html[dir="rtl"] .product-card-actions {
    flex-direction: row;
    direction: rtl;
}

/* LTR: Actions flow left to right */
html[dir="ltr"] .product-card-actions {
    flex-direction: row;
    direction: ltr;
}

.wishlist-btn {
				 background: var(--accent-colorz); 
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.wishlist-btn i {
    font-size: 18px;
    font-weight: 300;
    transition: all 0.3s ease;
}

/* Hover state for NOT in wishlist - lighter background with border glow */
.wishlist-btn:not(.active):hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    border-width: 2px;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.wishlist-btn:not(.active):hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Active state - in wishlist (solid gradient) */
.wishlist-btn.active {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    border-color: transparent;
 box-shadow: 0 6px 16px rgba(248, 240, 229, 0.6);
}

.wishlist-btn.active i {
    font-weight: 900 !important;
}

/* Hover state for IN wishlist - pulse glow effect */
.wishlist-btn.active:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    animation: none;
}

.wishlist-btn.active:hover i {
    transform: scale(1.05);
}

/* Pulse animation for active wishlist button */
@keyframes wishlistPulse {
    0%, 100% { 
        box-shadow: 0 8px 24px rgba(231, 76, 60, 0.5), 0 0 20px rgba(231, 76, 60, 0.3);
    }
    50% { 
        box-shadow: 0 8px 28px rgba(231, 76, 60, 0.6), 0 0 30px rgba(231, 76, 60, 0.4);
    }
}

/* Subtle heartbeat for active hover */
@keyframes heartBeatSubtle {
    0%, 100% { transform: scale(1); }
    25%, 75% { transform: scale(1.05); }
    50% { transform: scale(1.08); }
}

/* Make outline icons more professional and subtle */
.wishlist-btn i.far,
.wishlist-btn i.fa-heart,
.btn i.far,
.btn i.fa-eye {
    font-weight: 300;
}

/* Solid heart when active */
.wishlist-btn.active i.far {
    font-weight: 900 !important;
}

/* Reduce icon stroke weight for a cleaner look */
.far.fa-heart,
.far.fa-eye {
    -webkit-text-stroke: 0.3px currentColor;
}

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

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Products grid wrapper - no effect on desktop */
.products-grid-wrapper {
    overflow: visible;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

/* Variant Selection Sections */
.variant-section {
    margin-bottom: 25px;
    padding: 20px;
    background: transparent;
    border: 2px solid rgba(231, 76, 60, 0.1);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.variant-section:hover {
    border-color: rgba(231, 76, 60, 0.2);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.variant-label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-primary);
}

/* Size Selector */
.size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.size-option {
    min-width: 70px;
    padding: 14px 24px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
		 background: var(--accent-colorz); 
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.size-option:hover {
    border-color: var(--accent-color);
    background: rgba(231, 76, 60, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.15);
}

.size-option.selected {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
}

/* Color Selector */
.color-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.color-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    position: relative;
}

.color-option::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.color-option:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.color-option.selected {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.color-option.selected::after {
    border-color: var(--accent-color);
}

/* Quantity Selector */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
			 background: var(--accent-colorz); 

}

.quantity-btn {
    background: var(--bg-light);
    border: none;
    color: var(--text-primary);
    width: 44px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.quantity-btn:hover {
    background: var(--accent-color);
    color: white;
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn:disabled {
    background: #f0f0f0;
    color: #ccc;
    cursor: not-allowed;
}

.quantity-btn i {
    font-size: 14px;
    font-weight: 600;
}

.quantity-selector input[type="number"] {
    width: 70px;
    height: 48px;
    border: none;
    border-left: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0;
		 background: var(--accent-colorz); 
    -moz-appearance: textfield;
}

.quantity-selector input[type="number"]::-webkit-outer-spin-button,
.quantity-selector input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-selector input[type="number"]:focus {
    outline: none;
    background: #fafafa;
}

/* Mobile adjustments for variant selectors and quantity */
@media (max-width: 768px) {
    .variant-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .size-option {
        min-width: 60px;
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .color-option {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .variant-section {
        padding: 12px;
    }
    
    .variant-label {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .size-selector {
        gap: 10px;
    }
    
    .color-selector {
        gap: 12px;
    }
    
    .size-option {
        min-width: 55px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .color-option {
        width: 42px;
        height: 42px;
    }
    
    .quantity-selector {
        width: 100%;
        max-width: 200px;
    }
    
    .quantity-btn {
        width: 50px;
        height: 52px;
    }
    
    .quantity-selector input[type="number"] {
        flex: 1;
        min-width: 0;
    }
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
	background: var(--accent-colorz);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: var(--danger-color);
    font-size: 14px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-success {
    color: var(--success-color);
    font-size: 14px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.alert i {
    font-size: 20px;
}

.alert-success {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.15), rgba(39, 174, 96, 0.08));
    color: #155724;
    border: 2px solid rgba(39, 174, 96, 0.3);
}

.alert-error {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(231, 76, 60, 0.08));
    color: #721c24;
    border: 2px solid rgba(231, 76, 60, 0.3);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.15), rgba(243, 156, 18, 0.08));
    color: #856404;
    border: 2px solid rgba(243, 156, 18, 0.3);
}

.alert-info {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(52, 152, 219, 0.08));
    color: #0c5460;
    border: 2px solid rgba(52, 152, 219, 0.3);
}

/* Banner/Hero */
.hero-banner {
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* Section Titles */
.section-title {
    font-size: 36px;
    font-weight: 700;
    margin: 50px 0 35px;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title::before,
.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    max-width: 150px;
}

.section-title::after {
    content: '';
    display: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.pagination .active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
    background: transparent;
}

table {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(231, 76, 60, 0.1);
}

table th {
background: linear-gradient(135deg, #e0c9a6 0%, #d3b58f 100%);
    color: white;
    padding: 15px;
    text-align: right;
    font-weight: bold;
}

table td {
    padding: 15px;
    border-bottom: 1px solid rgba(160, 128, 96, 0.15);
    background: transparent;
}


table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background-color: var(--bg-primary);
}

/* Filters */
.filters {
    background: linear-gradient(135deg, rgba(248, 240, 229, 0.9), rgba(232, 224, 213, 0.9));
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, rgba(248, 240, 229, 0.98), rgba(232, 224, 213, 0.98));
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--danger-color);
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    /* Prevent horizontal scroll on mobile */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .header-main {
        overflow-x: hidden;
    }
    
    .header-main .container {
        flex-direction: column;
        gap: 15px;
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .search-bar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    /* Wrapper for horizontal scroll */
    .products-grid-wrapper {
        position: relative;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scroll-behavior: smooth;
        margin: 0 -20px; /* Extend to screen edges */
        padding: 0 20px 10px 20px; /* Add padding back + bottom for scrollbar */
        scroll-snap-type: x proximity; /* Snap to cards when close */
    }
    
    /* Transform grid to horizontal flex on mobile */
    .products-scroll-mobile.grid-4 {
        display: flex;
        flex-wrap: nowrap; /* Keep all items in one row */
        gap: 15px;
        grid-template-columns: unset; /* Override grid */
    }
    
    /* Fixed width for product cards on mobile */
    .products-scroll-mobile .product-card {
        flex: 0 0 280px; /* Fixed width: 280px */
        min-width: 280px;
        max-width: 280px;
        scroll-snap-align: start; /* Snap alignment */
        scroll-snap-stop: normal; /* Allow free scrolling through multiple items */
    }
    
    /* Smooth scrollbar styling */
    .products-grid-wrapper::-webkit-scrollbar {
        height: 6px;
    }
    
    .products-grid-wrapper::-webkit-scrollbar-track {
        background: var(--border-color);
        border-radius: 10px;
        margin: 0 20px;
    }
    
    .products-grid-wrapper::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 10px;
    }
    
    .products-grid-wrapper::-webkit-scrollbar-thumb:hover {
        background: var(--accent-hover);
    }
    
    /* For grids that don't have products-scroll-mobile class */
    .grid-4:not(.products-scroll-mobile) {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    /* ===================================
       MOBILE PRODUCT CARD REDESIGN
       =================================== */
    
    /* Product Card - Compact Mobile Design */
    .product-card {
        background: #F8F0E5 !important;
        padding: 10px !important;
        border-radius: 12px !important;
        margin-bottom: 15px;
    }
    
    /* Product Image - Square Aspect Ratio */
    .product-card-image-wrapper,
    .product-card-image {
        height: auto !important;
        aspect-ratio: 1 / 1;
        border-radius: 8px !important;
    }
    
    .product-card-image {
        object-fit: cover;
    }
    
    /* Product Content - Reduced Padding */
    .product-card-content {
        padding: 10px 0 0 0 !important;
    }
    
    /* Product Name - Smaller Font, 2 Lines Max */
    .product-card-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin: 8px 0 6px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 33.8px; /* 13px * 1.3 * 2 lines */
    }
    
    /* Price - Smaller, Bold */
    .product-card-price {
        font-size: 14px !important;
        font-weight: 700 !important;
        margin: 0 0 10px 0 !important;
    }
    
    /* Discounted prices on mobile - same size as regular price */
    .product-card-price .discounted-price {
        font-size: 14px !important;
        font-weight: 700 !important;
    }
    
    .product-card-price .original-price {
        font-size: 12px !important;
        font-weight: 400 !important;
    }
    
    /* Hide Rating on Mobile */
    .product-card-rating {
        display: none !important;
    }
    
    /* Action Buttons - Side by Side */
    .product-card-actions {
        display: flex !important;
        gap: 8px !important;
        margin-top: 0 !important;
    }
    
    .product-card-actions .btn {
        height: 38px !important;
        font-size: 14px !important;
        padding: 0 12px !important;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    
    .product-card-actions .wishlist-btn {
        width: auto !important;
        min-width: 45px !important;
        height: 38px !important;
        padding: 0 10px !important;
        flex: 0 0 auto;
    }
    
    /* Grid Layout - 2 Columns */
    .grid-4:not(.products-scroll-mobile),
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }
.flex { display: flex; }
.flex-between { justify-content: space-between; }
.flex-center { justify-content: center; align-items: center; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.d-none { display: none; }
.d-block { display: block; }

/* ===================================
   PRODUCT CARD ENHANCEMENTS
   =================================== */

/* Product Card Container */
.product-card {
        background: #F8F0E5 !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Product Image Container */
.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-color: #f5f5f5;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Wishlist Button on Product Image */
.product-image .wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px; /* RTL: right side */
    z-index: 10;
}

/* Stock Badge on Product Image */
.stock-badge {
    position: absolute;
    top: 10px;
    left: 10px; /* RTL: left side */
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 5;
}

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

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

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

/* Product Info Section */
.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.4;
    min-height: 45px; /* Consistent height */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover {
    color: var(--accent-color);
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 14px;
}

.product-rating i {
    color: #f39c12;
}

.product-rating i.far {
    color: #ddd;
}

.product-rating span {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Product Price */
.product-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.product-price .original-price {
    font-size: 16px;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-right: 10px;
}

.product-price .discount {
    font-size: 14px;
    color: var(--success-color);
    font-weight: normal;
    margin-right: 5px;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

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

/* ===================================
   HEADER IMPROVEMENTS
   =================================== */

/* Make sure header is always visible */
.header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Better contrast for search bar */
.search-bar input {
    background-color: #F8F0E5; 
    border: 2px solid #E0D8C5;
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px; 
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: #D1C2A8;
    box-shadow: 0 4px 12px rgba(248, 240, 229, 0.6); 
    outline: none;
}
.search-bar button {
    background-color: var(--accent-color);
    color: white;
    border: none;
}

.search-bar button:hover {
    background-color: var(--accent-hover);
}

/* ===================================
   NOTIFICATION STYLES
   =================================== */

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

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

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

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

.notification i {
    font-size: 24px;
}

.notification.success i {
    color: var(--success-color);
}

.notification.error i {
    color: var(--danger-color);
}

.notification.warning i {
    color: var(--warning-color);
}

/* ===================================
   PAGINATION
   =================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a {
    padding: 8px 16px;
    background-color: var(--accent-colorz);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.pagination a.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* ===================================
   AUTH PAGES (Login, Register, Forgot Password)
   =================================== */

.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.auth-box .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: var(--text-secondary);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.google-btn:hover {
    background: #f8f9fa;
    border-color: #4285f4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

.google-btn img {
    width: 20px;
    height: 20px;
}

/* ===================================
   ACCOUNT PAGE STYLES
   =================================== */

.account-tabs {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.account-content {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    border: 2px solid rgba(231, 76, 60, 0.15);
}

/* ===================================
   TABLE ENHANCEMENTS
   =================================== */

.table-responsive {
    background: transparent;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0;
    overflow-x: auto;
}

table {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(231, 76, 60, 0.1);
}

table thead tr {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

table thead tr th {
    color: white !important;
}

table tbody tr {
    background: transparent;
    transition: all 0.3s;
}

table tbody tr:hover {
    background: var(--accent-colorz); 
}

table tbody tr:hover {
    background: var(--accent-colorz); 
}

/* ===================================
   HERO/BANNER SECTIONS
   =================================== */

.hero-section {
    background: linear-gradient(135deg, rgba(248, 240, 229, 0.8), rgba(232, 224, 213, 0.8));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ===================================
   ADMIN DASHBOARD STYLES
   =================================== */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
    border-color: var(--accent-color);
}

.stat-card .stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.stat-card .stat-label {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ===================================
   EMPTY STATE STYLES
   =================================== */

.empty-state {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    border: 2px dashed var(--border-color);
}

/* ===================================
   RESPONSIVE GRADIENT ADJUSTMENTS
   =================================== */

@media (max-width: 768px) {
    body {
        background: linear-gradient(to bottom, #F8f0e5, #E8E0D5);
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .auth-box {
        padding: 30px 20px;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
}

/* ===================================
   GLOBAL ICON IMPROVEMENTS
   Make ALL icons crystal clear and visible!
   =================================== */

/* All Font Awesome icons - Better visibility */
i.fas,
i.fab,
i.far,
.fa,
.fa-solid,
.fa-regular,
.fa-brands {
    font-weight: 900 !important; /* Bolder icons everywhere */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Icons in buttons - Extra visibility */
button i,
.btn i,
a.btn i {
    display: inline-block;
    vertical-align: middle;
    font-size: 1.15em !important;
}

/* Specific important icons - Larger sizes */
.fa-heart,
.fa-shopping-cart,
.fa-user,
.fa-search,
.fa-bars,
.fa-times,
.fa-edit,
.fa-trash,
.fa-eye,
.fa-ban,
.fa-check {
    font-size: 1.25em !important;
}

/* Icons with backgrounds - Subtle shadow for depth */
.icon-btn i,
.wishlist-btn i {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.04));
}

/* Product card icons */
.product-card i,
.product-actions i {
    font-size: 1.2em !important;
}

/* Admin panel icons - More prominent */
.admin-content i,
.dashboard-stats i,
table i {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
    font-size: 1.1em !important;
}

/* Navigation icons */
.nav a i {
    margin-left: 8px;
    font-size: 1.15em !important;
}

.nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s;
}

.nav a:hover .nav-icon,
.nav a.active .nav-icon {
    transform: scale(1.1);
}

.nav a span {
    display: inline-block;
}

/* Badge icons */
.badge i {
    font-size: 0.9em;
    margin-left: 4px;
}

/* Stat card icons - Much larger */
.stat-icon i {
    font-size: 3em !important;
    font-weight: 900 !important;
}

/* Form icons */
.form-group i,
.input-group i {
    font-size: 1.1em;
}

/* Alert icons */
.alert i {
    font-size: 1.3em !important;
    margin-left: 10px;
}

/* Ensure icons never break or become invisible */
i {
    font-style: normal !important;
    font-variant: normal !important;
    line-height: 1 !important;
    speak: none;
}

/* Fix for very small icons in specific contexts */
.pagination i,
.breadcrumb i {
    font-size: 0.9em;
}

/* Action button icons in tables - Crystal clear */
table .btn i {
    font-size: 1.2em !important;
    font-weight: 900 !important;
}

/* Social media icons */
.social-links i {
    font-size: 1.5em !important;
}

/* ===================================
   ADMIN DASHBOARD LAYOUT
   =================================== */

.admin-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(to bottom, #F8f0e5, #E8E0D5);
    background-attachment: fixed;
}

.admin-sidebar {
    width: 280px;
    background: linear-gradient(to bottom, #F8f0e5, #E8E0D5);
    color: var(--text-primary);
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    position: fixed;
    height: 100vh;
    top: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.admin-sidebar.mobile-hidden {
    transform: translateX(100%);
}

.admin-sidebar-logo {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-sidebar-logo:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

.admin-sidebar-logo img {
    max-width: 150px;
    max-height: 60px;
    transition: transform 0.3s ease;
}

.admin-sidebar-logo:hover img {
    transform: scale(1.05);
}

.admin-sidebar-logo h2 {
    font-size: 24px;
    margin-top: 10px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.admin-sidebar-logo:hover h2 {
    color: var(--accent-color);
}

.nav-section {
    margin-bottom: 25px;
}

.nav-section-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.nav-section-title.collapsible {
    cursor: pointer;
    opacity: 1;
    padding: 14px 15px;
    transition: all 0.3s;
    border-radius: 8px;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.03);
    margin-bottom: 8px;
}

.nav-section-title.collapsible:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(-3px);
}

.nav-section-title.collapsible i:first-child {
    font-size: 18px;
    min-width: 22px;
    color: var(--text-primary);
}

.nav-section-title .toggle-icon {
    font-size: 14px;
    transition: transform 0.3s;
    margin-left: auto;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 8px;
    border-radius: 6px;
}

.nav-section-title.collapsible:hover .toggle-icon {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

.nav-section-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-right: 15px;
    margin-top: 8px;
    border-right: 2px solid rgba(0, 0, 0, 0.1);
}

.nav-section-items.expanded {
    max-height: 500px;
    padding-bottom: 10px;
}

/* Visual indicator for expanded sections */
.nav-section-items.expanded + .nav-section-title .toggle-icon,
.nav-section-title.collapsible.expanded .toggle-icon {
    background: var(--accent-color);
    color: white;
    transform: rotate(180deg);
}

/* Add expanded class styling for better visual feedback */
.nav-section-title.collapsible.section-expanded {
    background: rgba(0, 0, 0, 0.04);
}

.nav-section-title.collapsible.section-expanded .toggle-icon {
    background: var(--accent-color);
    color: white;
}

.nav-section > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.03);
}

.nav-section > a:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(-3px);
}

.nav-section > a.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.nav-section > a i {
    width: 22px;
    min-width: 22px;
    text-align: center;
    font-size: 18px;
}

/* Sub-items styling - different from main */
.nav-section-items a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 400;
}

.nav-section-items a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    transform: translateX(-3px);
}

.nav-section-items a.active {
    background: var(--accent-color);
    color: white;
    font-weight: 500;
}

.nav-section-items a i {
    width: 18px;
    min-width: 18px;
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

.visit-website-link {
    color: var(--text-primary) !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
}

.visit-website-link svg {
    width: 20px;
    min-width: 20px;
}

.visit-website-link:hover {
    background: rgba(52, 152, 219, 0.15) !important;
    color: #3498db !important;
    transform: translateX(-5px) !important;
}

.logout-link {
    margin-top: 10px;
    border-top: none;
    padding-top: 0 !important;
    color: var(--text-primary) !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
}

.logout-link svg {
    width: 20px;
    min-width: 20px;
}

.logout-link:hover {
    background: rgba(231, 76, 60, 0.15) !important;
    color: var(--accent-color) !important;
    transform: translateX(-5px) !important;
}

.admin-content {
    flex: 1;
    margin-right: 280px;
    padding: 30px;
    min-height: 100vh;
    background: transparent;
}

.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.mobile-menu-toggle i {
    font-size: 20px;
}

/* ===================================
   ADMIN DASHBOARD RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .admin-sidebar {
        width: 260px;
    }
    
    .admin-content {
        margin-right: 260px;
        padding: 20px;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .admin-sidebar {
        transform: translateX(100%);
    }
    
    .admin-sidebar.mobile-visible {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-right: 0;
        padding: 80px 15px 20px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card .stat-icon {
        font-size: 36px;
    }
    
    .stat-card .stat-value {
        font-size: 24px;
    }
    
    /* ===================================
       MOBILE-FRIENDLY TABLES - NO SCROLL!
       =================================== */
    
    /* Hide original table structure */
    table thead {
        display: none;
    }
    
    table,
    table tbody,
    table tr {
        display: block;
        width: 100%;
    }
    
    /* Each row becomes a card */
    table tr {
        margin-bottom: 15px;
        border: 2px solid var(--border-color);
        border-radius: 12px;
        padding: 15px;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* Each cell becomes a row */
    table td {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0 !important;
        border: none !important;
        text-align: right !important;
        gap: 10px;
    }
    
    table td:not(:last-child) {
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    /* Add labels before each cell */
    table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 13px;
        flex-shrink: 0;
        width: 40%;
    }
    
    /* Style the cell content */
    table td > * {
        flex: 1;
        text-align: left;
    }
    
    /* Status badges */
    table td .badge {
        display: inline-block;
        padding: 5px 10px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
    }
    
    /* Action buttons - stack vertically */
    table td:last-child {
        border-bottom: none !important;
        padding-top: 15px !important;
    }
    
    table td:last-child:before {
        content: '';
        display: none;
    }
    
    table td form,
    table td > div {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    table td .btn,
    table td button,
    table td a.btn {
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 15px !important;
        font-size: 14px !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    
    /* Images in tables */
    table td img {
        max-width: 60px !important;
        max-height: 60px !important;
        border-radius: 8px;
    }
    
    /* Cards stack on mobile */
    .card {
        margin-bottom: 15px;
    }
    
    /* Form groups full width */
    .form-group {
        margin-bottom: 15px;
    }
    
    /* Grid layouts become single column */
    [style*="display: grid"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Settings navigation */
    .settings-nav {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    
    .settings-nav a {
        white-space: nowrap;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* Flex containers stack vertically */
    .card > div[style*="display: flex"],
    div[style*="justify-content: space-between"] {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: stretch !important;
    }
    
    /* Headings smaller */
    h1 {
        font-size: 24px !important;
    }
    
    h2 {
        font-size: 20px !important;
    }
    
    h3 {
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    .admin-content {
        padding: 70px 10px 15px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .stat-card .stat-value {
        font-size: 20px;
    }
    
    .stat-card .stat-label {
        font-size: 14px;
    }
}

/* End of Additional Styles */

/* ===============================================
   Homepage Categories Section
   =============================================== */

.homepage-categories-section {
    padding: 60px 0;
    margin: 40px 0;
}

.homepage-categories-header {
    text-align: center;
    margin-bottom: 40px;
}

.homepage-categories-header .section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.homepage-categories-header .section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0;
}

.homepage-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.homepage-category-card {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 3/4;
}

.homepage-category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.homepage-category-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

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

.homepage-category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    transition: background 0.4s ease;
}

.homepage-category-card:hover .homepage-category-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.homepage-category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    color: white;
}

.homepage-category-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.homepage-category-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}






.homepage-category-bg{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
object-fit:cover;
z-index:0;
}

/* Scroll Animation Styles */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Stagger animation for product cards */
.scroll-animate.delay-1 {
    transition-delay: 0.1s;
}

.scroll-animate.delay-2 {
    transition-delay: 0.2s;
}

.scroll-animate.delay-3 {
    transition-delay: 0.3s;
}

.scroll-animate.delay-4 {
    transition-delay: 0.4s;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Mobile optimization */
@media (max-width: 768px) {
    .scroll-animate {
        transform: translateY(20px);
        transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    }
}
/* ===== View All - Desktop (below grid) ===== */
.view-all-section {
    display: block;
    margin-top: 32px;
    text-decoration: none;
    color: inherit;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.view-all-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    background: linear-gradient(135deg, rgba(184,168,144,0.12), rgba(248,240,229,0.78));
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.4s ease;
}

.view-all-section:hover .view-all-inner {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.view-all-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.view-all-icon-wrap {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(184,168,144,0.4);
}

.view-all-icon-wrap i {
    font-size: 26px;
    color: white;
}

.view-all-text {
    line-height: 1.35;
}

.view-all-label {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
}

.view-all-sub {
    font-size: 13.5px;
    color: var(--text-secondary);
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.view-all-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.35s ease;
}

/* ===== View All - Mobile Card (inside horizontal scroll) ===== */
.view-all-card {
    display: none;                    /* Hidden by default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 168px;
	max-height: 410px;
    flex-shrink: 0;
    margin-left: 14px;                /* spacing after last product */
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, rgba(184,168,144,0.18), rgba(248,240,229,0.75));
    border: 2px dashed var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.35s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.view-all-card:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(184,168,144,0.28), rgba(248,240,229,0.92));
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.view-all-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 20px 12px;
}

.view-all-card .view-all-icon-wrap {
    width: 56px;
    height: 56px;
    margin-bottom: 4px;
}

.view-all-card .view-all-icon-wrap i {
    font-size: 22px;
}

/* Show mobile card only on mobile */
@media (max-width: 768px) {
    .view-all-section {
        display: none;           /* Hide desktop version on mobile */
    }
    
    .view-all-card {
        display: flex;           /* Show mobile card */
    }
    
    .view-all-card {
        min-height: 225px;
        min-width: 170px;
    }
}

/* Desktop only - hide mobile card */
@media (min-width: 769px) {
    .view-all-card {
        display: none;
    }
}
/* Enhanced View All Categories Button */
.view-all-categories-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 32px;
    background: rgba(248, 240, 229, 0.6);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 16.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-all-categories-btn:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(184,168,144,0.28), rgba(248,240,229,0.92));
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.view-all-categories-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.homepage-categories-view-all {
    text-align: center;
}

.homepage-categories-view-all .btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.homepage-categories-view-all .btn:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(184,168,144,0.28), rgba(248,240,229,0.92));
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .homepage-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .homepage-category-name {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .homepage-categories-section {
        padding: 40px 0;
        margin: 20px 0;
    }
    
    .homepage-categories-header .section-title {
        font-size: 28px;
    }
    
    .homepage-categories-header .section-subtitle {
        font-size: 16px;
    }
    
    .homepage-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .homepage-category-card {
        aspect-ratio: 4/5;
    }
    
    .homepage-category-content {
        padding: 15px;
    }
    
    .homepage-category-name {
        font-size: 18px;
    }
    
    .homepage-category-count {
        font-size: 13px;
    }
    
    .homepage-category-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
        bottom: 15px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .homepage-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .homepage-category-card {
        aspect-ratio: 16/9;
    }
    
    .homepage-category-name {
        font-size: 24px;
    }
}

/* Header Mobile Responsive Styles */
@media (max-width: 768px) {
    .header-main .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 15px 15px;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* Logo first, centered */
    .logo {
        font-size: 18px;
        order: 1;
        width: 100%;
        max-width: 100%;
        text-align: center !important;
        align-items: center !important;
        margin-bottom: 5px;
        gap: 5px;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .logo img {
        max-height: 40px;
        max-width: 150px;
        box-sizing: border-box;
    }
    
    .logo span {
        font-size: 16px;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
        text-align: center !important;
    }
    
    /* Override RTL/LTR for mobile - always centered */
    html[dir="rtl"] .logo,
    html[dir="ltr"] .logo {
        text-align: center !important;
        align-items: center !important;
    }
    
    html[dir="rtl"] .logo img,
    html[dir="ltr"] .logo img {
        align-self: center !important;
    }
    
    html[dir="rtl"] .logo span,
    html[dir="ltr"] .logo span {
        text-align: center !important;
    }
    
    /* Search bar second, full width */
    .search-bar {
        order: 2;
        width: 100%;
        max-width: 100%;
        display: block !important;
        margin-bottom: 10px;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .search-bar form {
        box-sizing: border-box;
        overflow: hidden;
        width: 100%;
        display: flex;
    }
    
    .search-bar input {
        padding: 10px 15px;
        font-size: 15px;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    .search-bar button {
        padding: 10px 20px;
        font-size: 14px;
        box-sizing: border-box;
        white-space: nowrap;
    }
    
    /* Icons container third, takes full width */
    .header-icons {
        order: 3;
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 0;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    /* Shopping icons on LEFT for RTL, RIGHT for LTR */
    .header-shop-icons {
        display: flex;
        gap: 10px;
    }
    
    html[dir="rtl"] .header-shop-icons {
        order: 1;
    }
    
    html[dir="ltr"] .header-shop-icons {
        order: 3;
    }
    
    /* Auth icons on RIGHT for RTL, LEFT for LTR */
    .header-auth-icons {
        border-left: none !important;
        border-right: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: flex;
        gap: 10px;
    }
    
    html[dir="rtl"] .header-auth-icons {
        order: 3;
    }
    
    html[dir="ltr"] .header-auth-icons {
        order: 1;
    }
    
    /* Language switcher always in center */
    .language-switcher {
        order: 2;
    }
    
    .icon-btn {
        font-size: 20px;
        padding: 6px;
    }
    
    .icon-btn i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .header-main .container {
        padding: 12px 10px;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .logo {
        font-size: 15px;
        gap: 4px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .logo img {
        max-height: 35px;
        max-width: 120px;
        box-sizing: border-box;
    }
    
    .logo span {
        font-size: 14px;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
    }
    
    .header-auth-icons,
    .header-shop-icons {
        gap: 8px;
    }
    
    .icon-btn {
        font-size: 19px;
        padding: 5px;
    }
    
    .icon-btn i {
        font-size: 19px;
    }
    
    .search-bar input {
        padding: 9px 12px;
        font-size: 14px;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    .search-bar button {
        box-sizing: border-box;
        padding: 9px 15px;
        font-size: 13px;
        min-width: 60px;
    }
}

/* ========================================
   ANIMATED HEART WISHLIST EFFECT
   ======================================== */
.wishlist-heart-animated {
    position: relative;
    overflow: visible !important;
}

.wishlist-heart-animated .heart-svg-container {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
	
}

.wishlist-heart-animated .heart-svg-outline,
.wishlist-heart-animated .heart-svg-filled,
.wishlist-heart-animated .heart-svg-celebrate {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wishlist-heart-animated .heart-svg-outline {
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.wishlist-heart-animated:not(.active):hover .heart-svg-outline {
    color: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.wishlist-heart-animated .heart-svg-filled {
    color: white;
    display: none;
}

.wishlist-heart-animated .heart-svg-celebrate {
    display: none;
    color: var(--accent-color);
    width: 40px;
    height: 40px;
}

.wishlist-heart-animated.active .heart-svg-outline {
    display: none;
}

.wishlist-heart-animated.active .heart-svg-filled {
    display: block;
    animation: heartFillAnimation 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wishlist-heart-animated.active .heart-svg-celebrate {
    display: block;
    animation: heartCelebrateAnimation 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes heartFillAnimation {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    25% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(0.95);
        filter: brightness(1.5);
    }
    75% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1);
        opacity: 1;
    }
}

@keyframes heartCelebrateAnimation {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(180deg);
        filter: brightness(1.5);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5) rotate(360deg);
        opacity: 0;
    }
}

.wishlist-heart-animated.active {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover)) !important;
    transform: scale(1);
}

.wishlist-heart-animated.active:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

.wishlist-heart-animated.active:hover .heart-svg-filled {
    animation: heartBeatPulse 0.8s ease-in-out infinite;
}

@keyframes heartBeatPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    25%, 75% {
        transform: translate(-50%, -50%) scale(1.08);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
    }
}

@media (max-width: 768px) {
    .wishlist-heart-animated .heart-svg-container {
        width: 20px;
        height: 20px;
    }
    
    .wishlist-heart-animated .heart-svg-outline,
    .wishlist-heart-animated .heart-svg-filled {
        width: 20px;
        height: 20px;
    }
    
    .wishlist-heart-animated .heart-svg-celebrate {
        width: 35px;
        height: 35px;
    }
}


/* ========================================
   MULTILINGUAL SUPPORT - RTL/LTR STYLES
   ======================================== */

/* Language Switcher Styling */
.language-switcher {
    display: flex;
    gap: 5px;
    margin: 0 10px;
    align-items: center;
}

.language-switcher button {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 45px;
}

.language-switcher button:hover {
    background: var(--accent-light);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.language-switcher button.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

@media (max-width: 768px) {
    .language-switcher {
        margin: 10px 0;
        justify-content: center;
    }
    
    .language-switcher button {
        padding: 10px 15px;
        font-size: 16px;
    }
}

/* RTL-Specific Styles */
html[dir="rtl"] {
    text-align: right;
}

html[dir="ltr"] {
    text-align: left;
}

/* ===================================
   HEADER RTL/LTR DIRECTION SUPPORT
   =================================== */

/* RTL - Right to Left Layout (Arabic) - DEFAULT */
.header-main .container {
    flex-direction: row !important;
}

/* Only apply right alignment on desktop, not mobile */
@media (min-width: 769px) {
    .logo {
        align-items: flex-end;
    }

    .logo span {
        text-align: right;
    }

    .logo img {
        align-self: flex-end;
    }
}

.mobile-menu-toggle {
    right: 15px;
}

.search-bar {
    direction: rtl;
}

.search-bar input {
    text-align: right;
}

.header-icons {
    flex-direction: row;
}

.header-auth-icons {
    order: 1;
}

.language-switcher {
    order: 2;
}

.header-shop-icons {
    order: 3;
}

.nav {
    direction: rtl;
}

.nav ul {
    direction: rtl;
}

.nav a {
    text-align: right;
}

/* LTR - Left to Right Layout (English) - OVERRIDES */
html[dir="ltr"] .header-main .container {
    flex-direction: row !important;
}

/* Only apply left alignment on desktop, not mobile */
@media (min-width: 769px) {
    html[dir="ltr"] .logo {
        align-items: flex-start !important;
    }

    html[dir="ltr"] .logo span {
        text-align: left !important;
    }

    html[dir="ltr"] .logo img {
        align-self: flex-start !important;
    }
}

html[dir="ltr"] .mobile-menu-toggle {
    left: 15px !important;
    right: auto !important;
}

html[dir="ltr"] .search-bar {
    direction: ltr !important;
}

html[dir="ltr"] .search-bar input {
    text-align: left !important;
}

html[dir="ltr"] .header-icons {
    flex-direction: row !important;
}

html[dir="ltr"] .header-auth-icons {
    border-left: none !important;
    border-right: 1px solid var(--border-color) !important;
    padding-left: 0 !important;
    padding-right: 18px !important;
    order: 1 !important;
}

html[dir="ltr"] .language-switcher {
    order: 2 !important;
}

html[dir="ltr"] .header-shop-icons {
    order: 3 !important;
}

html[dir="ltr"] .nav {
    direction: ltr !important;
}

html[dir="ltr"] .nav ul {
    direction: ltr !important;
    justify-content: center !important;
}

html[dir="ltr"] .nav a {
    text-align: left !important;
}

/* RTL Explicit Overrides (in case needed) - Desktop only */
html[dir="rtl"] .header-main .container {
    flex-direction: row !important;
}

@media (min-width: 769px) {
    html[dir="rtl"] .logo {
        align-items: flex-end !important;
    }

    html[dir="rtl"] .logo span {
        text-align: right !important;
    }

    html[dir="rtl"] .logo img {
        align-self: flex-end !important;
    }
}

html[dir="rtl"] .mobile-menu-toggle {
    right: 15px !important;
    left: auto !important;
}

html[dir="rtl"] .search-bar {
    direction: rtl !important;
}

html[dir="rtl"] .search-bar input {
    text-align: right !important;
}

html[dir="rtl"] .header-icons {
    flex-direction: row !important;
}

html[dir="rtl"] .header-auth-icons {
    border-left: 1px solid var(--border-color) !important;
    border-right: none !important;
    padding-left: 18px !important;
    padding-right: 0 !important;
    order: 1 !important;
}

html[dir="rtl"] .language-switcher {
    order: 2 !important;
}

html[dir="rtl"] .header-shop-icons {
    order: 3 !important;
}

html[dir="rtl"] .nav {
    direction: rtl !important;
}

html[dir="rtl"] .nav ul {
    direction: rtl !important;
}

html[dir="rtl"] .nav a {
    text-align: right !important;
}

/* Flex Direction for RTL */
html[dir="rtl"] .flex-row {
    flex-direction: row-reverse;
}

/* Margins and Padding */
html[dir="rtl"] .mr-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

html[dir="rtl"] .ml-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

html[dir="rtl"] .text-left {
    text-align: right !important;
}

html[dir="rtl"] .text-right {
    text-align: left !important;
}

html[dir="ltr"] .mr-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

html[dir="ltr"] .ml-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

/* Breadcrumb Direction */
html[dir="rtl"] .breadcrumb {
    direction: rtl;
}

html[dir="ltr"] .breadcrumb {
    direction: ltr;
}

/* Icon Flipping for RTL */
html[dir="rtl"] .fa-chevron-right:before {
    content: "\f053"; /* chevron-left */
}

html[dir="rtl"] .fa-chevron-left:before {
    content: "\f054"; /* chevron-right */
}

html[dir="rtl"] .fa-arrow-right:before {
    content: "\f060"; /* arrow-left */
}

html[dir="rtl"] .fa-arrow-left:before {
    content: "\f061"; /* arrow-right */
}

html[dir="rtl"] .fa-angle-right:before {
    content: "\f104"; /* angle-left */
}

html[dir="rtl"] .fa-angle-left:before {
    content: "\f105"; /* angle-right */
}

/* Navigation Arrows for RTL */
html[dir="rtl"] .nav-dropdown-arrow {
    transform: scaleX(-1);
}

html[dir="rtl"] .slider-arrow {
    transform: scaleX(-1);
}

/* Product Card Adjustments */
html[dir="rtl"] .product-card {
    text-align: right;
}

html[dir="ltr"] .product-card {
    text-align: left;
}

/* Form Inputs */
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    text-align: right;
}

html[dir="ltr"] input,
html[dir="ltr"] textarea,
html[dir="ltr"] select {
    text-align: left;
}

/* Tables */
html[dir="rtl"] table {
    direction: rtl;
}

html[dir="ltr"] table {
    direction: ltr;
}

/* Buttons with Icons */
html[dir="rtl"] .btn i {
    margin-right: 0;
    margin-left: 8px;
}

html[dir="ltr"] .btn i {
    margin-left: 0;
    margin-right: 8px;
}

/* Button text direction */
html[dir="rtl"] .btn {
    direction: rtl;
}

html[dir="ltr"] .btn {
    direction: ltr;
}

/* Cart Badge Position */
html[dir="rtl"] .cart-count {
    left: -8px;
    right: auto;
}

html[dir="ltr"] .cart-count {
    right: -8px;
    left: auto;
}

/* Wishlist Button Position - Only for absolutely positioned wishlist buttons */
.product-image .wishlist-btn {
    position: absolute;
    top: 10px;
    z-index: 10;
}

html[dir="rtl"] .product-image .wishlist-btn {
    right: 10px;
    left: auto;
}

html[dir="ltr"] .product-image .wishlist-btn {
    left: auto;
    right: 10px;
}

/* Dropdown Menus */
html[dir="rtl"] .dropdown-menu {
    right: 0;
    left: auto;
}

html[dir="ltr"] .dropdown-menu {
    left: 0;
    right: auto;
}

/* Tooltips */
html[dir="rtl"] .tooltip {
    text-align: right;
}

html[dir="ltr"] .tooltip {
    text-align: left;
}

/* Pagination */
html[dir="rtl"] .pagination {
    direction: rtl;
}

html[dir="ltr"] .pagination {
    direction: ltr;
}

/* List Items */
html[dir="rtl"] li {
    text-align: right;
}

html[dir="ltr"] li {
    text-align: left;
}

/* Search Box */
html[dir="rtl"] .search-box input {
    padding-right: 45px;
    padding-left: 15px;
}

html[dir="rtl"] .search-box button {
    right: auto;
    left: 5px;
}

html[dir="ltr"] .search-box input {
    padding-left: 45px;
    padding-right: 15px;
}

html[dir="ltr"] .search-box button {
    left: auto;
    right: 5px;
}

/* Float Utilities */
html[dir="rtl"] .float-right {
    float: left !important;
}

html[dir="rtl"] .float-left {
    float: right !important;
}

html[dir="ltr"] .float-right {
    float: right !important;
}

html[dir="ltr"] .float-left {
    float: left !important;
}

/* Alert/Notification Icons */
html[dir="rtl"] .alert i {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="ltr"] .alert i {
    margin-left: 0;
    margin-right: 10px;
}

/* Card Headers */
html[dir="rtl"] .card-header {
    text-align: right;
}

html[dir="ltr"] .card-header {
    text-align: left;
}

/* Modal Content */
html[dir="rtl"] .modal-content {
    text-align: right;
}

html[dir="ltr"] .modal-content {
    text-align: left;
}

/* ===================================
   FOOTER RTL/LTR DIRECTION SUPPORT
   =================================== */

/* Footer Columns */
html[dir="rtl"] .footer-column {
    text-align: right;
}

html[dir="ltr"] .footer-column {
    text-align: left;
}

html[dir="rtl"] .footer {
    direction: rtl !important;
}

html[dir="ltr"] .footer {
    direction: ltr !important;
}

html[dir="rtl"] .footer-section {
    text-align: right !important;
}

html[dir="ltr"] .footer-section {
    text-align: left !important;
}

html[dir="rtl"] .footer-section h3 {
    text-align: right !important;
}

html[dir="ltr"] .footer-section h3 {
    text-align: left !important;
}

html[dir="rtl"] .footer-section ul {
    text-align: right !important;
}

html[dir="ltr"] .footer-section ul {
    text-align: left !important;
}

html[dir="rtl"] .footer-section a {
    text-align: right !important;
}

html[dir="ltr"] .footer-section a {
    text-align: left !important;
}

html[dir="rtl"] .footer-section p {
    text-align: right !important;
}

html[dir="ltr"] .footer-section p {
    text-align: left !important;
}

html[dir="rtl"] .newsletter-form {
    direction: rtl !important;
}

html[dir="ltr"] .newsletter-form {
    direction: ltr !important;
}

html[dir="rtl"] .newsletter-form input {
    text-align: right !important;
}

html[dir="ltr"] .newsletter-form input {
    text-align: left !important;
}

html[dir="rtl"] .footer-bottom {
    text-align: center !important;
    direction: rtl !important;
}

html[dir="ltr"] .footer-bottom {
    text-align: center !important;
    direction: ltr !important;
}

html[dir="rtl"] .footer-social-icons {
    direction: rtl !important;
}

html[dir="ltr"] .footer-social-icons {
    direction: ltr !important;
}

/* Smooth Transitions for Direction Change */
* {
    transition: text-align 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

/* Disable transitions for direction-specific transforms */
[dir] .fa-chevron-right,
[dir] .fa-chevron-left,
[dir] .fa-arrow-right,
[dir] .fa-arrow-left,
[dir] .fa-angle-right,
[dir] .fa-angle-left {
    transition: none;
}

/* ===================================
   PRODUCT CARDS RTL/LTR COMPREHENSIVE
   =================================== */

/* Product Card Container */
html[dir="rtl"] .product-card {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] .product-card {
    direction: ltr;
    text-align: left;
}

/* Product Info Section */
html[dir="rtl"] .product-info {
    text-align: right;
}

html[dir="ltr"] .product-info {
    text-align: left;
}

/* Product Title Links */
html[dir="rtl"] .product-title a,
html[dir="rtl"] .product-card-title a {
    text-align: right;
}

html[dir="ltr"] .product-title a,
html[dir="ltr"] .product-card-title a {
    text-align: left;
}

/* Product Rating and Price Container */
html[dir="rtl"] .product-rating,
html[dir="rtl"] .product-price {
    text-align: right;
}

html[dir="ltr"] .product-rating,
html[dir="ltr"] .product-price {
    text-align: left;
}

@media (max-width: 768px) {
    .products-grid-wrapper {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }

    .products-scroll-mobile {
        padding-inline-end: 350px;
    }

    .view-all-card {
        margin-inline-end: 0;
        margin-inline-start: 0;
        scroll-snap-align: end;
    }
}


