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

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6f1e;
    --primary-color-rgb: 255, 111, 30;
    --secondary-color: #ff8533;
    --success-color: #3ce551;
    --warning-color: #ffd42d;
    --danger-color: #ef7575;
    --light-bg: #fcfcfc;
    --dark-bg: #252f4a;
    --text-primary: #252f4a;
    --text-secondary: #66718e;
    --border-color: #F1F1F4;
    --card-bg: #ffffff;
    --input-bg: #f9f9f9;
    --header-bg: #ffffff;
    --footer-bg: #252f4a;
    --footer-text: #ffffff;
    --footer-link: rgba(255,255,255,0.8);
    --shadow-color: rgba(0,0,0,0.1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));

    /* Legacy support */
    --primary-dark: #d05d10;
    --primary-light: #ff9847;
    --accent-color: #ff6f1e;
    --text-dark: var(--text-primary);
    --text-light: var(--text-secondary);
    --bg-light: var(--light-bg);
    --bg-secondary: var(--input-bg);
    --white: var(--card-bg);
    --transition: var(--transition-base);
    --shadow-md: 0 4px 6px -1px var(--shadow-color);
    --shadow-lg: 0 10px 15px -3px var(--shadow-color);
    --shadow-xl: 0 20px 25px -5px var(--shadow-color);
    --shadow-sm: 0 1px 2px 0 var(--shadow-color);
}

/* Dark Mode - Professional Colors */
[data-theme="dark"],
body.dark-mode {
    --primary-color: #ff8533;
    --primary-color-rgb: 255, 133, 51;
    --secondary-color: #ff9847;
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --light-bg: #301c0f;
    --dark-bg: #1e0f08;
    --border-color: #3d2513;
    --card-bg: #301c0f;
    --input-bg: #3d2513;
    --header-bg: #301c0f;
    --footer-bg: #1e0f08;
    --footer-text: #f8f9fa;
    --footer-link: rgba(255, 133, 51, 0.8);
    --shadow-color: rgba(0,0,0,0.7);

    /* Legacy support */
    --text-dark: var(--text-primary);
    --text-light: var(--text-secondary);
    --bg-light: var(--light-bg);
    --bg-secondary: var(--card-bg);
    --white: var(--card-bg);
    --accent-color: var(--primary-color);
}

/* Dark Mode - Category Card h3 Background */
body.dark-mode .category-card h3 {
    background: rgba(255, 133, 51, 0.12);
}

body.dark-mode .category-card:hover h3 {
    background: rgba(255, 133, 51, 0.2);
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    background: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition-base);
}

body.dark-mode {
    background: var(--light-bg);
}

.features {
    background: var(--light-bg);
}

.features-grid {
    background: var(--card-bg);
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.categories {
    background: var(--card-bg);
}

.category-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.products {
    background: var(--light-bg);
}

.product-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.footer {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--light-bg) 100%);
    border-top: 3px solid var(--primary-color);
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

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

.footer-content {
    padding: 2rem 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    width: 70px;
    height: auto;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 20px rgba(255, 111, 30, 0.4));
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.footer-links {
    display: contents;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    position: relative;
    padding-bottom: 1rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col li {
    margin: 0;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    position: relative;
    padding-right: 0.5rem;
}

.footer-col a::before {
    content: '→';
    position: absolute;
    right: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-color);
    padding-right: 1.5rem;
}

.footer-col a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

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

.footer-social a {
    width: 50px;
    height: 50px;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 111, 30, 0.4);
}

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

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-bottom p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer h3,
.footer .footer-brand span,
.footer a {
    color: var(--footer-text);
}

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

/* Override container in main content */
.main-content-adjust .container {
    margin-right: 0;
    margin-left: 0;
}

/* ==================== HEADER ==================== */
.header {
    background: var(--header-bg);
    color: var(--text-primary);
    position: fixed;
    top: 0;
    left: 0;
    right: 280px;
    width: calc(100% - 280px);
    z-index: 1000;
    box-shadow: 0 4px 20px var(--shadow-color);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: 80px;
    transition: var(--transition-base);
}

.header .logo-text h1,
.header .search-input,
.header .action-btn,
.header .user-profile .user-name,
.header .user-profile .user-level {
    color: var(--text-primary);
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: block;
    margin-top: -5px;
}

/* Search Section */
.search-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-container {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border-radius: 25px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.search-input-wrapper:focus-within {
    background: var(--card-bg);
    box-shadow: 0 0 20px rgba(255, 111, 30, 0.2);
    border-color: var(--primary-color);
}

.search-input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    flex: 1;
    width: 100%;
    font-weight: 500;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    margin-left: 0.5rem;
}

.search-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-btn {
    position: relative;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn:hover {
    border-color: var(--primary-color);
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 111, 30, 0.3);
}

/* Notification Button Styling */
.notification-btn {
    position: relative;
}

.notification-btn:hover i {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Toggle Buttons - Modern & Professional Style */
#languageToggle,
#darkModeToggle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 14px;
    border: 1.5px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.15rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1001;
    pointer-events: auto !important;
}

#languageToggle:hover,
#darkModeToggle:hover {
    background: linear-gradient(135deg, #ff6f1e, #ff8533);
    color: white;
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 111, 30, 0.4);
}

#languageToggle:active,
#darkModeToggle:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 111, 30, 0.3);
}

#languageToggle i,
#darkModeToggle i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#languageToggle:hover i {
    transform: rotate(-15deg) scale(1.1);
}

#darkModeToggle:hover i {
    transform: rotate(20deg) scale(1.1);
}

/* Dark Mode State Styles */
body.dark-mode #darkModeToggle {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
}

body:not(.dark-mode) #darkModeToggle {
    background: var(--input-bg);
    color: var(--primary-color);
    border-color: var(--border-color);
}

.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ef7575, #ff6f6f);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.35rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(239, 117, 117, 0.5);
    border: 2px solid var(--card-bg);
    letter-spacing: 0.02em;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ef7575, #ff6f6f);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.35rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(239, 117, 117, 0.5);
    animation: pulse 2s infinite;
    border: 2px solid var(--card-bg);
    letter-spacing: 0.02em;
}


.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--input-bg);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.user-profile:hover {
    background: var(--gradient-primary);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 111, 30, 0.3);
}

.user-profile:hover .user-info .user-name,
.user-profile:hover .user-info .user-level {
    color: white !important;
}

.user-profile .user-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.user-profile .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-profile .status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.status-indicator.online {
    background: #4ade80;
    animation: pulse 2s infinite;
}

.user-profile .user-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.user-profile .user-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.user-profile .user-level {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.dropdown-arrow {
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.user-profile:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: white;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.menu-toggle:hover span {
    background: white;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 50vh;
    max-height: 600px;
    display: block;
    background: var(--gradient-primary);
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 50vh;
    max-height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.hero-slide.prev {
    transform: translateX(-100%);
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-text {
    flex: 1;
    color: var(--white);
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1.2s ease;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

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

.hero-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fadeIn 0.8s ease;
    display: block;
}

/* Slider Navigation */
.hero-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 100;
    pointer-events: none;
}

.prev-btn, .next-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition-base);
    pointer-events: all;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.prev-btn:hover, .next-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Promotional Banner - Scrolling Text */
.promo-banner {
    padding: 0.75rem 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(255, 111, 30, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 133, 51, 0.1) 0%, rgba(255, 111, 30, 0.08) 25%, rgba(255, 133, 51, 0.12) 50%, rgba(255, 111, 30, 0.08) 75%, rgba(255, 133, 51, 0.1) 100%);
    background-size: 200% 200%;
    animation: waveFlow 3s ease-in-out infinite;
    z-index: 0;
}

.promo-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 20px,
        rgba(255, 133, 51, 0.3) 20px,
        rgba(255, 133, 51, 0.3) 40px,
        transparent 40px,
        transparent 60px
    );
    background-size: 60px 100%;
    animation: wavesMove 4s linear infinite;
    opacity: 0.15;
    z-index: 1;
}

@keyframes waveFlow {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}

@keyframes wavesMove {
    0% {
        background-position-x: 0px;
    }
    100% {
        background-position-x: 60px;
    }
}

.promo-scroll {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.promo-marquee {
    display: flex;
    animation: scrollText 30s linear infinite;
}

.marquee-content {
    display: flex;
    gap: 4rem;
}

.scroll-text {
    color: #ff8533;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 10;
    transition: color 0.3s ease;
}

body.dark-mode .scroll-text {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause on hover */
.promo-banner:hover .promo-marquee {
    animation-play-state: paused;
}

.hero-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 0.75rem;
}

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

.indicator.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--bg-light);
}

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

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Section Headers */
.section-header {
    display: none;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Hero Section Dark Mode */
.hero {
    background: var(--gradient-primary);
}

.hero-title,
.hero-subtitle,
.indicator {
    color: white;
}

.features {
    padding: 4rem 0;
    background: var(--light-bg);
}

.category-card,
.feature-card,
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.category-card h3,
.feature-card h3,
.product-name {
    color: var(--text-primary);
}

.category-card .category-count,
.feature-card p,
.product-price .old-price {
    color: var(--text-secondary);
}

.newsletter {
    background: var(--gradient-primary);
}

/* Categories Section */
.categories {
    padding: 2rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

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

.category-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 2rem;
    color: var(--white);
    overflow: hidden;
    position: relative;
}

.category-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
    z-index: 1;
}

body.dark-mode .category-image::after {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.category-image:hover::after {
    background: linear-gradient(135deg, rgba(255, 111, 30, 0.2), rgba(255, 133, 51, 0.3));
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-image i {
    font-size: 3rem;
    color: white;
    position: relative;
    z-index: 2;
}

.category-card h3 {
    position: static;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    padding: 1rem 1rem;
    margin: 0;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.category-card h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 133, 51, 0.1) 0%, rgba(255, 111, 30, 0.08) 25%, rgba(255, 133, 51, 0.12) 50%, rgba(255, 111, 30, 0.08) 75%, rgba(255, 133, 51, 0.1) 100%);
    background-size: 200% 200%;
    animation: waveFlow 3s ease-in-out infinite;
    z-index: 0;
}

.category-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 20px,
        rgba(255, 133, 51, 0.3) 20px,
        rgba(255, 133, 51, 0.3) 40px,
        transparent 40px,
        transparent 60px
    );
    background-size: 60px 100%;
    animation: wavesMove 4s linear infinite;
    opacity: 0.15;
    z-index: 1;
}

@keyframes waveFlow {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}

@keyframes wavesMove {
    0% {
        background-position-x: 0px;
    }
    100% {
        background-position-x: 60px;
    }
}

.category-card:hover h3 {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 133, 51, 0.15);
}

.category-card:hover h3::before {
    background: linear-gradient(135deg, rgba(255, 133, 51, 0.2) 0%, rgba(255, 111, 30, 0.15) 25%, rgba(255, 133, 51, 0.25) 50%, rgba(255, 111, 30, 0.15) 75%, rgba(255, 133, 51, 0.2) 100%);
    animation-duration: 1.5s;
}

.category-card:hover h3::after {
    opacity: 0.3;
    animation-duration: 2s;
}

.category-count {
    display: none;
}

/* Products Page Styles */
.products-section {
    padding: 3rem 0 5rem;
    background: var(--light-bg);
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.products-info h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.products-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.products-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--light-bg);
    padding: 0.25rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.view-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary-color);
    color: white;
}

.sort-select-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--light-bg);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.sort-select-wrapper i {
    color: var(--primary-color);
}

.filter-select {
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
}

.filter-select:focus {
    outline: none;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
}

.filter-tag i:first-child {
    color: var(--primary-color);
}

.remove-filter {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.remove-filter:hover {
    background: var(--danger-color);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.products-grid.list-view .product-card-v2 {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.products-grid.list-view .product-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.products-grid.list-view .product-info {
    flex: 1;
    padding-left: 2rem;
}

.product-card-v2 {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.product-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(255, 111, 30, 0.2);
    border-color: var(--primary-color);
}

.product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background: var(--light-bg);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-info {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
}

/* Product Purchase Page */
.product-purchase-section {
    padding: 2rem 0;
    background: var(--light-bg);
    min-height: calc(100vh - 80px);
    position: relative;
}

.product-purchase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 111, 30, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 133, 51, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.product-purchase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.product-purchase-card {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.product-purchase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
}

.product-image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 20px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.product-image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(255, 111, 30, 0.2);
    transition: all 0.4s ease;
}

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

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

.product-info-section {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    margin-bottom: 2rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-category {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.product-rating {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 2rem;
}

.star {
    font-size: 1.3rem;
    color: #ddd;
}

.star.active {
    color: #f59e0b;
}

.quantity-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantity-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.quantity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 111, 30, 0.15);
    border-color: var(--primary-color);
}

.quantity-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.quantity-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.price-section {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    text-align: center;
    margin-bottom: 2rem;
}

.price-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.old-price {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.form-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 111, 30, 0.1);
}

.form-control:disabled {
    background: var(--light-bg);
    opacity: 0.8;
    cursor: not-allowed;
}

.int-format-jaafar {
    text-align: center;
    font-weight: 600;
}

.purchase-section {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
}

.purchase-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(255, 111, 30, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 250px;
    font-family: 'Cairo', sans-serif;
}

.purchase-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 111, 30, 0.4);
}

.purchase-btn i {
    font-size: 1.3rem;
    margin-left: 0.75rem;
}

/* New Purchase Layout */
.purchase-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.product-image-wrapper-v2 {
    position: relative;
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 111, 30, 0.15);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 111, 30, 0.1) 0%, transparent 70%);
    animation: rotateGlow 10s linear infinite;
    pointer-events: none;
}

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

.product-image-main {
    width: 85%;
    height: 85%;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 3;
    transition: transform 0.4s ease;
}

.product-image-wrapper-v2:hover .product-image-main {
    transform: scale(1.05);
}

.product-badge-purchase {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 20px rgba(255, 111, 30, 0.3);
    z-index: 3;
    animation: pulse 2s infinite;
}

.purchase-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-header-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
}

.product-name-purchase {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.product-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating-display .star {
    font-size: 1rem;
    color: #ddd;
}

.rating-display .star.active {
    color: #f59e0b;
}

.rating-display span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.quick-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.info-card {
    background: var(--card-bg);
    padding: 1.25rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(255, 111, 30, 0.15);
}

.info-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-section-v2 {
    background: linear-gradient(135deg, rgba(255, 111, 30, 0.08) 0%, rgba(255, 133, 51, 0.08) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--border-color);
}

.price-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.price-value-large {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.price-currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.price-old {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.quantity-selector {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
}

.selector-label {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.quantity-controls-v2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.qty-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    background: var(--light-bg);
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.qty-input {
    flex: 1;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--light-bg);
    font-family: 'Cairo', sans-serif;
}

.quantity-limits {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.total-price-section {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-price-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.total-price-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
}

.user-input-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
}

.user-input-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.user-input-label i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.user-id-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.user-id-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 111, 30, 0.1);
}

.purchase-btn-v2 {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(255, 111, 30, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: 'Cairo', sans-serif;
}

.purchase-btn-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 111, 30, 0.4);
}

.purchase-btn-v2 i {
    font-size: 1.5rem;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.purchase-btn-v2:hover .btn-shine {
    left: 100%;
}

.security-notice {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.security-notice i {
    color: var(--primary-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
}

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

.page-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
}

/* Featured Products Section */
.featured-products {
    background: var(--light-bg);
}

.featured-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 111, 30, 0.3);
    animation: pulse 2s infinite;
}

.featured-badge i {
    font-size: 1rem;
    animation: spin 3s linear infinite;
}

.featured-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.title-line {
    flex: 1;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    position: relative;
}

.title-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.title-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.featured-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-product {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-product:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 111, 30, 0.25);
}

.featured-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--light-bg);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

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

.featured-name {
    padding: 1.25rem;
    text-align: center;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    transition: color 0.3s ease;
}

.featured-product:hover .featured-name {
    color: var(--primary-color);
}

/* News & Offers Section - Innovative Design */
.news-offers {
    padding: 3rem 0;
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--card-bg) 100%);
    position: relative;
    overflow: hidden;
}

.news-offers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.news-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 0;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.news-card:hover::before {
    left: 100%;
}

.news-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(255, 111, 30, 0.2);
}

.news-card:hover .news-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.news-icon {
    width: 50px;
    height: 50px;
    background: var(--light-bg);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 1.5rem;
    float: right;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(255, 111, 30, 0.1);
}

.news-content {
    padding: 1.5rem;
    overflow: hidden;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--light-bg);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.news-date i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0.5rem 0;
    line-height: 1.4;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.news-card:hover .news-title {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 1rem 0;
    font-size: 1rem;
}

.news-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    position: relative;
}

.news-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.news-link:hover::after {
    width: 100%;
    left: 0;
}

.news-link:hover {
    gap: 0.8rem;
    color: var(--secondary-color);
}

.products-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-base);
    font-weight: 500;
    color: var(--text-primary);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 111, 30, 0.3);
}

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

.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-base);
    position: relative;
    box-shadow: 0 2px 10px var(--shadow-color);
    border: 1px solid var(--border-color);
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

.product-badge.sale {
    background: var(--gradient-primary);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: var(--input-bg);
}

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

.product-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}

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

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

.btn-icon {
    width: 45px;
    height: 45px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-icon:hover {
    background: var(--gradient-primary);
    color: white;
    transform: rotate(360deg);
    box-shadow: 0 4px 15px rgba(255, 111, 30, 0.4);
}

.product-info {
    padding: 5px;
}

.product-name {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.product-rating span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Load More */
.load-more {
    text-align: center;
    margin-top: 3rem;
}

/* Newsletter Section */
.newsletter {
    padding: 5rem 0;
    background: var(--gradient-primary);
    color: var(--white);
}

.newsletter-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    outline: none;
}

.newsletter-form button {
    padding: 1rem 2.5rem;
    white-space: nowrap;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

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

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

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

.footer-col h3 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-brand span {
    color: var(--primary-light);
}

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

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a,
.footer-col ul li {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col ul li a:hover {
    color: var(--white);
    transform: translateX(-5px);
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-image {
        height: 300px;
    }

    .hero-circle {
        width: 250px;
        height: 250px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-text h2 {
        font-size: 1.8rem;
    }
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(0);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Sidebar Header - AI Professional */
.sidebar-header {
    background: transparent;
    flex-shrink: 0;
    margin: 0;
    position: relative;
    padding-top: 0;
}


.profile-glass {
    position: relative;
    overflow: visible;
}

.profile-badge {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    padding: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shine 3s infinite;
}

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

.profile-badge:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(255, 111, 30, 0.15);
    transform: translateY(-1px);
}

.badge-avatar {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.badge-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.badge-glow {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #ff6f1e, #ff8533);
    border-radius: 13px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-badge:hover .badge-glow {
    opacity: 0.15;
    filter: blur(10px);
}

.badge-info {
    flex: 1;
    min-width: 0;
}

.badge-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-balance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.balance-icon-svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.badge-status {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    position: relative;
}

.status-glow {
    width: 100%;
    height: 100%;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
        transform: scale(1.15);
    }
}

/* User Card - Innovative */
.user-card-innovative {
    position: relative;
    z-index: 1;
}

.profile-top {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.avatar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
    animation: ring-rotate 4s linear infinite;
    border: 3px solid transparent;
}

@keyframes ring-rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.avatar-img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 111, 30, 0.4);
    position: relative;
    z-index: 1;
    object-fit: cover;
    animation: avatar-breathe 3s ease-in-out infinite;
}

@keyframes avatar-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #22c55e;
    border: 4px solid white;
    border-radius: 50%;
    z-index: 2;
    animation: status-dot-pulse 2s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5);
}

@keyframes status-dot-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5), 0 0 0 0 rgba(34, 197, 94, 0.8);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5), 0 0 0 8px rgba(34, 197, 94, 0);
    }
}

.user-info-section {
    text-align: center;
    margin-bottom: 1.25rem;
}

.user-name-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: white;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.user-tier {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.balance-wrapper {
    display: flex;
    justify-content: center;
}

.balance-chip {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    backdrop-filter: blur(15px);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 3px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.balance-chip:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.2),
        inset 0 1px 3px rgba(255, 255, 255, 0.4);
}

.chip-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chip-amount {
    font-size: 1.3rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

/* User Card Gradient */
.user-card-gradient {
    position: relative;
    z-index: 1;
    text-align: center;
}

.user-avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: #22c55e;
    border: 3px solid white;
    border-radius: 50%;
    z-index: 2;
}

.status-indicator.pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.user-details {
    text-align: center;
    margin-bottom: 1rem;
}

.user-details .user-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-role {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    display: block;
}

.balance-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.balance-icon {
    font-size: 1.2rem;
    color: white;
}

.balance-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.balance-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.balance-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

/* Dark Mode Toggle moved to header */

/* Navigation - Professional */
.sidebar-nav-pro {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
    margin: 0;
    min-height: 0;
}

.nav-item-pro {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    margin: 0.25rem 0;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 0.92rem;
    font-weight: 600;
    overflow: hidden;
}

.nav-item-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.nav-item-pro:hover,
.nav-item-pro.active {
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(255, 111, 30, 0.25);
}

.nav-item-pro:hover::before,
.nav-item-pro.active::before {
    opacity: 1;
}

.nav-icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 111, 30, 0.1);
    border-radius: 12px;
    font-size: 1.05rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.nav-item-pro:hover .nav-icon-box,
.nav-item-pro.active .nav-icon-box {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: scale(1.1);
}

.nav-label {
    flex: 1;
    position: relative;
    z-index: 1;
}

.active-indicator {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: white;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-badge-pro {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.notification-mark {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    animation: notification-ping 2s ease-in-out infinite;
}

@keyframes notification-ping {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.75rem 0;
}

.logout-btn-pro {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.2);
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logout-btn-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logout-btn-pro:hover {
    color: white;
    border-color: #ef4444;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.logout-btn-pro:hover::before {
    opacity: 1;
}

.logout-icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 12px;
    font-size: 1.05rem;
    color: #ef4444;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.logout-btn-pro:hover .logout-icon-box {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: scale(1.1);
}

.sidebar-footer-pro {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 111, 30, 0.03);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.sidebar-footer-pro a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-footer-pro a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

body.dark-mode .nav-icon-box {
    background: rgba(255, 111, 30, 0.15);
}

body.dark-mode .nav-item-pro:hover,
body.dark-mode .nav-item-pro.active {
    box-shadow: 0 4px 15px rgba(255, 111, 30, 0.35);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    margin: 0.25rem 0;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.nav-link:hover,
.nav-link.active {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(-5px);
}

.nav-link:hover i,
.nav-link.active i {
    color: white;
}

.badge-compact {
    margin-right: auto;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
}

.logout-btn-compact {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.875rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.logout-btn-compact:hover {
    background: #ef4444;
    color: white;
    transform: translateX(-3px);
}

.logout-btn-compact i {
    width: 20px;
    text-align: center;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section:last-child {
    margin-bottom: 0;
}

.nav-section-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 0.5rem 0.5rem;
    margin-bottom: 0.25rem;
}

/* Navigation Items */
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    margin: 0.25rem 0;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary-color);
    border-radius: 0 3px 3px 0;
    transition: height 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    background: var(--input-bg);
    color: var(--primary-color);
}

.nav-item.active::after {
    height: 70%;
}

.nav-item:hover {
    transform: translateX(-3px);
}

.nav-icon {
    min-width: 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 111, 30, 0.08);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    background: var(--gradient-primary);
    color: white;
    transform: rotate(5deg) scale(1.05);
}

.nav-text {
    flex: 1;
    font-weight: 600;
}

.nav-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

.notification-pulse {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    position: relative;
}

.notification-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

.logout-btn {
    width: calc(100% - 3rem);
    margin: 1.5rem auto;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    background: rgba(255, 111, 30, 0.05);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 111, 30, 0.3);
}

.footer-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-text span {
    display: block;
    margin-bottom: 0.25rem;
}

.footer-text a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-text a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Dark Mode Support */
body.dark-mode .sidebar {
    background: linear-gradient(180deg, #301c0f 0%, #1e0f08 100%);
}

body.dark-mode .nav-section-title {
    color: #adb5bd;
}

body.dark-mode .nav-item {
    color: #f8f9fa;
}

body.dark-mode .nav-item:hover,
body.dark-mode .nav-item.active {
    background: rgba(255, 111, 30, 0.15);
}

body.dark-mode .sidebar-footer {
    background: rgba(30, 15, 8, 0.4);
}

.profile-balance-card {
    background: var(--gradient-primary);
    border-radius: 15px;
    padding: 1rem;
    color: white;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.2);
    position: relative;
    overflow: hidden;
}

.profile-balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.user-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.profile-section .user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.profile-section .user-avatar:hover {
    transform: scale(1.05);
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #4ade80;
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.profile-section .user-info {
    flex: 1;
    min-width: 0;
}

.profile-section .user-name {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.2rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-section .user-email {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: #4ade80;
    font-weight: 600;
    background: rgba(74, 222, 128, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.balance-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.balance-info {
    flex: 1;
}

.profile-section .balance-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.balance-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
}

.balance-refresh {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    font-size: 0.8rem;
}

.balance-refresh:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg) scale(1.1);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    background: var(--light-bg);
}

.sidebar {
    background: var(--light-bg);
}

.profile-balance-section {
    padding: 1rem;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-nav .nav-item {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.sidebar-nav .nav-item:hover {
    background: var(--input-bg);
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

.sidebar-footer .footer-text {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

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

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

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-weight: 500;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

.sidebar-nav .nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    z-index: 0;
    border-radius: 12px;
}

.sidebar-nav .nav-item:hover::before,
.sidebar-nav .nav-item.active::before {
    width: 4px;
}

.sidebar-nav .nav-item:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: translateX(-8px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.2);
}

.sidebar-nav .nav-item.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    transform: translateX(-8px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.sidebar-nav .nav-item i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.sidebar-nav .nav-item.active i {
    transform: scale(1.1);
}

.sidebar-nav .nav-item span {
    flex: 1;
    position: relative;
    z-index: 1;
}

.sidebar-nav .nav-item:hover i {
    color: var(--primary-color);
}

.sidebar-nav .nav-item.active i {
    color: white;
}

.badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 111, 30, 0.3);
}

/* Footer CSS moved to earlier in file */

.logout-btn,
.sidebar-nav .logout-btn {
    width: 100%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 1rem;
}

.logout-btn:hover,
.sidebar-nav .logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.logout-btn i,
.sidebar-nav .logout-btn i {
    font-size: 1.1rem;
}

/* Adjust Main Content for Sidebar */
.main-content-adjust {
    margin-right: 280px;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    transition: var(--transition);
}

/* Desktop: Sidebar is visible */
@media (min-width: 769px) {
    .header {
        right: 280px;
    }
}

/* Mobile Sidebar */
@media (max-width: 768px) {
    .header {
        right: 0 !important;
        width: 100% !important;
        height: 65px;
    }

    .header-container {
        padding: 0 0.75rem;
        height: 100%;
        grid-template-columns: auto 1fr auto auto;
        gap: 0.75rem;
    }

    .logo-section {
        display: flex;
        align-items: center;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
    }

    .logo-text {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .logo-text h1 {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .logo-subtitle {
        display: none;
    }

    .search-section {
        display: none !important;
    }

    .user-actions {
        gap: 0.5rem;
        display: flex;
        align-items: center;
    }

    /* Hide notification button on mobile */
    .notification-btn {
        display: none !important;
    }

    .action-btn {
        min-width: 45px;
        min-height: 45px;
        padding: 0.5rem;
    }

    .sidebar {
        width: 100%;
        transform: translateX(100%);
        top: 0;
        z-index: 999;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content-adjust {
        margin-right: 0 !important;
        margin-top: 65px;
        padding: 0 5px;
    }

    .menu-toggle {
        display: flex;
        grid-column: 4;
        margin-right: 0;
    }

    .user-actions {
        grid-column: 3;
    }

    .logo-section {
        grid-column: 1;
    }

    /* Hero Slider Mobile */
    .hero {
        min-height: 25vh;
        max-height: 200px;
    }

    .hero-slider {
        min-height: 25vh;
        max-height: 200px;
    }

    .hero-slide {
        min-height: 25vh;
        max-height: 200px;
    }

    .hero-slide .slide-background {
        display: none !important;
    }

    .hero-image {
        width: 100%;
        height: 100%;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* Promo Banner Mobile */
    .promo-banner {
        padding: 0.75rem 0;
    }

    .scroll-text {
        font-size: 0.95rem;
    }

    /* Categories Mobile */
    .categories {
        padding: 2rem 0;
    }

    .categories .container {
        padding: 0 1rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .category-image {
        height: 150px;
    }

    .category-card h3 {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    /* Featured Products Mobile */
    .featured-products {
        padding: 3rem 0;
    }

    .featured-header {
        margin-bottom: 2rem;
    }

    .featured-badge {
        padding: 0.4rem 1.2rem;
        font-size: 0.85rem;
    }

    .title-text {
        font-size: 1.8rem;
    }

    .title-line {
        flex: 0.5;
    }

    .featured-description {
        font-size: 1rem;
    }

    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .featured-image {
        height: 150px;
    }

    .featured-name {
        font-size: 0.95rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.75rem;
        gap: 0.75rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .logo-subtitle {
        display: none;
    }

    .user-actions {
        gap: 0.5rem;
    }

    #languageToggle,
    #darkModeToggle {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        font-size: 1rem;
    }

    .notification-btn {
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
    }

    .sidebar-header {
        padding: 1rem;
        min-height: 70px;
        padding-top: 70px;
    }

    .profile-balance-card {
        padding: 0.75rem;
    }

    .profile-section .user-avatar {
        width: 40px;
        height: 40px;
    }

    .profile-section .user-name {
        font-size: 0.9rem;
    }

    .profile-section .user-email {
        font-size: 0.7rem;
    }

    .balance-value {
        font-size: 1.2rem;
    }

    /* Hero Mobile Small */
    .hero {
        min-height: 22vh;
        max-height: 180px;
    }

    .hero-slider {
        min-height: 22vh;
        max-height: 180px;
    }

    .hero-slide {
        min-height: 22vh;
        max-height: 180px;
    }

    /* Promo Banner Small Mobile */
    .promo-banner {
        padding: 0.5rem 0;
    }

    .scroll-text {
        font-size: 0.85rem;
    }

    .promo-content {
        padding: 0 1rem;
    }

    /* Categories Small Mobile */
    .categories {
        padding: 1.5rem 0;
    }

    .categories .container {
        padding: 0 0;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .category-image {
        height: 180px;
    }

    .category-card h3 {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }

    /* Featured Products Small Mobile */
    .featured-products {
        padding: 2rem 0;
    }

    .featured-products .container {
        padding: 0 0.75rem;
    }

    .featured-header {
        margin-bottom: 1.5rem;
    }

    .featured-badge {
        padding: 0.35rem 1rem;
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .featured-title {
        gap: 0.75rem;
        margin: 1rem 0;
    }

    .title-text {
        font-size: 1.5rem;
    }

    .title-line {
        flex: 0.3;
        height: 2px;
    }

    .title-line::before {
        width: 8px;
        height: 8px;
    }

    .featured-description {
        font-size: 0.9rem;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .featured-image {
        height: 140px;
    }

    .featured-name {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    /* Hero Navigation Mobile */
    .prev-btn,
    .next-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    /* Products Page Mobile */
    .products-section {
        padding: 2rem 0 3rem;
    }

    .products-section .container {
        padding: 0 1px;
    }

    .products-toolbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0.75rem;
    }

    .products-info h2 {
        font-size: 1.2rem;
    }

    .products-controls {
        width: 100%;
        justify-content: space-between;
    }

    .filter-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }

    .sort-select-wrapper {
        flex: 1;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .product-image {
        height: 130px;
    }

    .product-name {
        font-size: 8px;
    }

    .current-price {
        font-size: 1.3rem;
    }

    .quick-view-btn,
    .add-to-cart-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Purchase Page Mobile */
    .product-purchase-container {
        padding: 0 0.75rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 0.85rem;
    }

    .purchase-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-image-wrapper-v2 {
        aspect-ratio: 1;
        height: auto;
        width: 120px;
        min-height: auto;
        border-radius: 16px;
        position: relative;
        grid-column: 1;
        grid-row: 1;
    }

    .product-image-main {
        width: 100%;
        height: 100%;
        border-radius: 16px;
        object-fit: cover;
    }

    .image-glow {
        opacity: 0.3;
    }

    .purchase-info-wrapper {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 1rem;
        align-items: start;
    }

    .product-header-info {
        grid-column: 2;
        grid-row: 1;
        padding: 0;
        background: transparent;
        border: none;
    }

    .quick-info-cards,
    .price-section-v2,
    .quantity-selector,
    .total-price-section,
    .user-input-section,
    .purchase-btn-v2,
    .security-notice {
        grid-column: 1 / -1;
    }

    .product-badge-purchase {
        top: 15px;
        right: 15px;
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .product-name-purchase {
        font-size: 1.25rem;
    }

    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .quick-info-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .info-card {
        padding: 1rem;
    }

    .info-card i {
        font-size: 1.25rem;
    }

    .price-section-v2 {
        padding: 1.5rem;
    }

    .price-value-large {
        font-size: 2rem;
    }

    .price-currency {
        font-size: 1rem;
    }

    .price-old {
        font-size: 0.9rem;
    }

    .product-header-info,
    .quantity-selector,
    .total-price-section,
    .user-input-section {
        padding: 1.25rem;
    }

    .selector-label {
        font-size: 1rem;
    }

    .qty-input {
        font-size: 1.25rem;
        height: 45px;
    }

    .qty-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .quantity-limits {
        font-size: 0.75rem;
    }

    .total-price-label {
        font-size: 1rem;
    }

    .total-price-value {
        font-size: 1.5rem;
    }

    .user-input-label {
        font-size: 0.95rem;
    }

    .user-input-label i {
        font-size: 1.1rem;
    }

    .user-id-input {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .purchase-btn-v2 {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .purchase-btn-v2 i {
        font-size: 1.25rem;
    }

    .security-notice {
        font-size: 0.8rem;
    }

    .pagination {
        gap: 0.25rem;
    }

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

    .hero-indicators {
        gap: 0.5rem;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .indicator.active {
        width: 20px;
    }
}


