/* Hamburger Icon */
.hamburger {
    display: inline-block;
    width: 32px;
    height: 24px;
    position: relative;
}
.hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: #222;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: 0.3s;
}
.hamburger span:nth-child(1) {
    top: 0;
}
.hamburger span:nth-child(2) {
    top: 10px;
}
.hamburger span:nth-child(3) {
    top: 20px;
}
/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d32f2f;
    --secondary-color: #8b0000;
    --dark-bg: #1a1a2e;
    --light-bg: #f5f5f5;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --light-bg: #1a1a2e;
    --white: #16213e;
    --text-dark: #e0e0e0;
    --text-light: #b0b0b0;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, Arial;
    direction: rtl;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: linear-gradient(135deg, var(--primary-color), #f44336);
    padding: 10px 0;
}

.top-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.top-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-links a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

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

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

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

.logo a {
    text-decoration: none;
}

.logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo h1 {
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.main-nav {
    flex: 1;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu li a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: linear-gradient(135deg, var(--primary-color), #f44336);
    color: var(--white);
    transform: translateY(-2px);
}

.header-actions {
    display: flex;
    gap: 15px;
}

.cart-icon {
    position: relative;
    color: #00d4ff;
    font-size: 24px;
    text-decoration: none;
    transition: var(--transition);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.cart-icon:hover {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(0, 212, 255, 1);
}

.cart-count {
    position: absolute;
    top: -8px;
    left: -8px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

/* Hero Banner Slider */
.hero-banner {
    background: linear-gradient(135deg, #d32f2f 0%, #8b0000 100%);
    padding: 30px 0;
    margin-top: 20px;
}

.slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: var(--dark-bg);
}

.slider {
    position: relative;
    width: 100%;
    height: 350px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
    background: var(--white);
}

.slide a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.slide a img {
    transition: transform 0.3s ease;
}

.slide a:hover img {
    transform: scale(1.02);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 40px;
    color: var(--white);
    text-align: center;
}

.slide-overlay h2 {
    font-size: 36px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-overlay p {
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 8px;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(255, 107, 53, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 15px;
}

.slider-btn.next {
    right: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot.active {
    background: var(--primary-color);
    border-color: var(--white);
    transform: scale(1.3);
}

.dot:hover {
    background: var(--white);
    transform: scale(1.2);
}

/* Products Section */
.products-section {
    padding: 60px 0;
}

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

.section-header h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 40px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.section-header h2 i {
    color: var(--primary-color);
    font-size: 36px;
}

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

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 20px;
    text-align: center;
    font-size: 18px;
    color: var(--text-dark);
    background: linear-gradient(to bottom, transparent, rgba(255, 107, 53, 0.05));
}

/* Different section backgrounds */
.gift-cards {
    background: linear-gradient(to bottom, var(--light-bg), #fff);
}

.direct-charge {
    background: var(--white);
}

.account-charge {
    background: linear-gradient(to bottom, #fff, var(--light-bg));
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-bg), #16213e);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

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

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

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-section p {
    color: #ccc;
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover,
.footer-section ul li:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

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

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

.footer-bottom p {
    color: #ccc;
}

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

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    direction: rtl;
}

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

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.newsletter-form button:hover {
    background: #ff5722;
    transform: translateY(-2px);
}

[data-theme="dark"] .newsletter-form input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.1);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 38px;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
    border: 3px solid #fff;
    z-index: 9999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/* Messenger Float Button */
.messenger-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #00B2FF, #006AFF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 38px;
    box-shadow: 0 8px 32px rgba(0, 132, 255, 0.6);
    border: 3px solid #fff;
    z-index: 9999;
    transition: var(--transition);
    animation: pulse-messenger 2s infinite;
}

.messenger-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 132, 255, 0.6);
}

@keyframes pulse-messenger {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 132, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(0, 132, 255, 0.7);
    }
}

/* القائمة الجانبية الجديدة */
.menu-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1201;
    background: #fff;
    border: none;
    font-size: 32px;
    color: #222;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 6px 16px;
}
.sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    max-width: 80vw;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 16px rgba(0,0,0,0.08);
    z-index: 1202;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px 24px 24px;
    transition: right 0.3s cubic-bezier(.4,0,.2,1);
}
.sidebar.open {
    right: 0;
}
.close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #888;
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: 24px;
}
.sidebar a {
    display: block;
    width: 100%;
    padding: 16px 0;
    font-size: 18px;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}
.sidebar a:hover {
    background: #f7f7f7;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.25);
    z-index: 1200;
    display: none;
}
.overlay.open {
    display: block;
}
@media (max-width: 768px) {
    .sidebar {
        width: 80vw;
        max-width: 320px;
        padding: 24px 16px 16px 16px;
    }
    .menu-toggle {
        top: 16px;
        right: 16px;
        font-size: 28px;
        padding: 4px 12px;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
        z-index: 1002;
    }
    .nav-menu {
        display: none;
        position: fixed;
        right: 0;
        top: 0;
        width: 70vw;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 16px rgba(0,0,0,0.08);
        flex-direction: column;
        padding: 40px 20px 20px 20px;
        gap: 10px;
        z-index: 1001;
        transition: transform 0.3s cubic-bezier(.4,0,.2,1);
        transform: translateX(100%);
    }
    .nav-menu.active {
        display: flex;
        transform: translateX(0);
    }
    .nav-menu li {
        width: 100%;
    }
    .nav-menu li a {
        width: 100%;
        padding: 16px 0;
        font-size: 18px;
        border-bottom: 1px solid #eee;
    }
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.25);
        z-index: 1000;
        pointer-events: auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    .sidebar-nav {
        position: fixed;
        right: 0;
        top: 0;
        width: 75vw;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 16px rgba(0,0,0,0.08);
        z-index: 1100;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(.4,0,.2,1);
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    .sidebar-nav.active {
        transform: translateX(0);
    }
    .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 24px 20px 12px 20px;
        border-bottom: 1px solid #eee;
    }
    .sidebar-menu {
        list-style: none;
        padding: 0 20px;
        margin: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .sidebar-menu li a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 0;
        font-size: 18px;
        color: #222;
        text-decoration: none;
        border-bottom: 1px solid #eee;
        transition: background 0.2s;
    }
    .sidebar-menu li a:hover {
        background: #f7f7f7;
    }
    .close-sidebar {
        background: none;
        border: none;
        font-size: 24px;
        color: #888;
        cursor: pointer;
        margin-left: 10px;
    }
    body.sidebar-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.25);
        z-index: 1099;
        pointer-events: auto;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--box-shadow);
        gap: 10px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li a {
        width: 100%;
        justify-content: flex-start;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        width: 100%;
        order: 3;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .section-header h2 {
        font-size: 24px;
        padding: 12px 25px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .product-card img {
        height: 150px;
    }
    
    .product-card h3 {
        font-size: 16px;
        padding: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        left: 20px;
    }
    
    .slider {
        height: 220px;
    }
    
    .slide-overlay h2 {
        font-size: 24px;
    }
    
    .slide-overlay p {
        font-size: 14px;
    }
    
    .slide-overlay {
        padding: 20px;
    }
    
    .slider-btn {
        padding: 8px 12px;
        font-size: 16px;
    }
    
    .slider-btn.prev {
        left: 8px;
    }
    
    .slider-btn.next {
        right: 8px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .top-links {
        gap: 15px;
    }
    
    .top-links a {
        font-size: 12px;
    }
    
    .logo img {
        width: 45px;
        height: 45px;
    }
    
    .section-header h2 {
        font-size: 20px;
        padding: 10px 20px;
    }
    
    .section-header h2 i {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .products-section {
        padding: 40px 0;
    }
    
    .slider {
        height: 150px;
    }
    
    .slide-overlay h2 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .slide-overlay p {
        font-size: 12px;
    }
    
    .slide-overlay {
        padding: 15px;
    }
    
    .slider-btn {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .slider-btn.prev {
        left: 5px;
    }
    
    .slider-btn.next {
        right: 5px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Style */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

/* Auth Pages Styles */
.auth-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #d32f2f 0%, #8b0000 100%);
    min-height: calc(100vh - 200px);
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-box {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header i {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.auth-header h2 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-light);
    font-size: 16px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary-color);
}

.form-group input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-primary {
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), #f44336);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    color: var(--text-light);
    font-size: 14px;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    padding: 12px;
    border: 2px solid #e0e0e0;
    background: var(--white);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.social-btn.google {
    color: #ea4335;
}

.social-btn.facebook {
    color: #1877f2;
}

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

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-footer p {
    color: var(--text-light);
}

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

.auth-footer a:hover {
    text-decoration: underline;
}

/* Responsive Auth Pages */
@media (max-width: 768px) {
    .auth-box {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-header h2 {
        font-size: 24px;
    }
    
    .auth-header i {
        font-size: 50px;
    }
}

/* Search Bar Styles */
.search-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
}

.search-toggle:hover {
    transform: scale(1.1);
}

.search-bar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.search-bar.active {
    max-height: 400px;
    padding: 20px 0;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-container > i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.result-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.result-category {
    font-size: 13px;
    color: var(--text-light);
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    background: none;
    border: 2px solid var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-left: 15px;
}

.dark-mode-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

.dark-mode-toggle i {
    font-size: 18px;
}

[data-theme="dark"] .dark-mode-toggle {
    border-color: var(--text-dark);
}

/* Lazy Loading Images */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img.lazy-loaded {
    opacity: 1;
}

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

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

[data-theme="dark"] img.lazy:not(.lazy-loaded) {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .header {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .product-card,
[data-theme="dark"] .cart-summary,
[data-theme="dark"] .search-results {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .footer {
    background: #0f1419;
}

[data-theme="dark"] .search-results {
    border-color: #333;
}

[data-theme="dark"] .search-result-item:hover {
    background: #1f2937;
}

/* Product Ratings */
.product-rating {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-rating .stars {
    color: #ffa500;
    font-size: 14px;
}

.product-rating .stars i {
    margin: 0 1px;
}

.product-rating .rating-text {
    font-size: 12px;
    color: #666;
}

[data-theme="dark"] .product-rating .rating-text {
    color: #aaa;
}

/* Reviews Section */
.reviews-summary {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rating-score {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer-info strong {
    color: var(--text-dark);
    margin-left: 10px;
}

.review-date {
    color: #999;
    font-size: 12px;
}

.review-text {
    color: #666;
    line-height: 1.6;
    margin: 15px 0;
}

.helpful-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

.helpful-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.no-reviews {
    text-align: center;
    color: #999;
    padding: 40px;
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 5;
}

.wishlist-btn i {
    font-size: 18px;
    color: #666;
    transition: all 0.3s ease;
}

.wishlist-btn:hover,
.wishlist-btn.active {
    transform: scale(1.1);
}

.wishlist-btn.active i {
    color: #d32f2f;
}

.wishlist-icon {
    position: relative;
    color: var(--text-dark);
    font-size: 24px;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.wishlist-icon:hover {
    color: var(--primary-color);
}

.wishlist-count {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.empty-wishlist {
    text-align: center;
    padding: 60px 20px;
}

.empty-wishlist h3 {
    color: var(--text-dark);
    margin: 20px 0 10px;
}

.empty-wishlist p {
    color: #666;
    margin-bottom: 30px;
}

.remove-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,0,0,0.8);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
}

.product-card:hover .remove-wishlist-btn {
    opacity: 1;
}

/* Quick View Button */
.quick-view-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    white-space: nowrap;
}

.product-card:hover .quick-view-btn {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.quick-view-btn:hover {
    background: #ff5722;
}

/* Quick View Modal */
.quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.quick-view-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
}

.modal-body {
    padding: 40px;
}

.modal-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--primary-color);
}

.modal-loading i {
    font-size: 48px;
    margin-bottom: 20px;
}

.quick-view-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.quick-view-image img {
    width: 100%;
    border-radius: 12px;
}

.quick-view-details h2 {
    color: var(--text-dark);
    margin-bottom: 20px;
}

.product-price-large {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: bold;
    margin: 20px 0;
}

.quick-view-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.quick-view-actions .btn {
    flex: 1;
    padding: 15px;
    text-align: center;
}

/* Recently Viewed Section */
.recently-viewed-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card-small {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.product-card-small img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-card-small h4 {
    font-size: 14px;
    color: var(--text-dark);
    margin: 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-small .product-price {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: bold;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.page-header p {
    color: #666;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .quick-view-content {
        grid-template-columns: 1fr;
    }
    
    .recently-viewed-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-view-actions {
        flex-direction: column;
    }
}

[data-theme="dark"] .reviews-summary,
[data-theme="dark"] .review-item,
[data-theme="dark"] .product-card-small,
[data-theme="dark"] .modal-content {
    background: var(--white);
}

[data-theme="dark"] .wishlist-btn {
    background: rgba(255,255,255,0.1);
}

