html {
    scroll-behavior: smooth;
}

:root {
    /* Clean Medical Palette */
    --primary-color: #0f172a;
    /* Deep Slate */
    --secondary-color: #334155;
    /* Slate 700 */
    --accent-color: #2563eb;
    /* Royal Blue */
    --accent-glow: rgba(37, 99, 235, 0.2);
    --light-color: #ffffff;
    /* Pure White */
    --dark-color: #0f172a;
    /* Slate 900 */
    --gray-color: #475569;
    /* Slate 600 */
    --light-gray: #f8fafc;
    /* Slate 50 */
    --success-color: #059669;
    /* Clean Green */
    --danger-color: #dc2626;
    /* Clean Red */
    --warning-color: #d97706;
    /* Warm Amber */
    /* Refined Effects */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(15, 23, 42, 0.08);
    --blur: 12px;
    /* Shadows (More Subtle) */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.05);
    /* Transitions & Borders */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 10px;
    --border-radius-lg: 16px;
    --max-width: 1400px;
}

.dark-mode {
    --primary-color: #60a5fa;
    /* Sky Blue */
    --secondary-color: #1e293b;
    /* Slate 800 */
    --accent-color: #3b82f6;
    /* Modern Blue */
    --light-color: #0f172a;
    /* Deep Slate Background */
    --dark-color: #f8fafc;
    /* Slate 50 (Text) */
    --gray-color: #94a3b8;
    /* Slate 400 */
    --light-gray: #1e293b;
    /* Slate 800 */
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --blur: 20px;
    --card-bg: rgba(30, 41, 59, 0.7);
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.float-anim {
    animation: float 4s ease-in-out infinite;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.1;
}

.dark-mode .section-title {
    color: #f1f5f9;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    gap: 10px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 14px 0 var(--accent-glow);
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}


/* Loading Screen */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.tooth-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Scroll to Top Button */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}


/* Header & Navigation */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    border-bottom: 1px solid var(--glass-border);
    z-index: 9999;
    /* Max priority */
    transition: var(--transition);
    padding: 10px 0;
}

.header.scrolled {
    padding: 8px 0;
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-md);
}

.dark-mode .header.scrolled {
    background-color: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.dark-mode .logo {
    color: var(--dark-color);
}

.logo i {
    margin-right: 12px;
    color: var(--accent-color);
}

.logo-highlight {
    color: var(--accent-color);
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(90deg, var(--accent-color), #3b82f6);
    color: white;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    z-index: 1001;
    /* Above header */
}

.promo-banner button {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}

.logo:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.logo:active {
    transform: scale(0.98);
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin-right: 32px;
    gap: 8px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
}

.dark-mode .nav-link {
    color: var(--gray-color);
}

.nav-link:hover {
    color: var(--accent-color);
    background-color: rgba(59, 130, 246, 0.1);
}

.nav-link.active {
    color: var(--accent-color);
    background-color: rgba(59, 130, 246, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: var(--light-gray);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.dark-mode .theme-toggle {
    background: var(--secondary-color);
    color: var(--dark-color);
}

.theme-toggle:hover {
    background-color: var(--accent-color);
    color: white;
    transform: rotate(15deg);
}

.search-box {
    display: flex;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid transparent;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--accent-color);
    background-color: white;
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.dark-mode .search-box {
    background-color: var(--secondary-color);
}

.search-box input {
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--dark-color);
    width: 180px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.search-btn {
    padding: 0 16px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.cart-btn {
    position: relative;
    background: var(--light-gray);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.dark-mode .cart-btn {
    background: var(--secondary-color);
    color: var(--dark-color);
}

.cart-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
}

.dark-mode .cart-count {
    border-color: var(--primary-color);
}

.hamburger {
    display: none;
    background: var(--light-gray);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.dark-mode .hamburger {
    background: var(--secondary-color);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.dark-mode .hamburger span {
    background-color: var(--dark-color);
}


/* Hero Section */

.hero {
    position: relative;
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, #1e293b, #020617);
    color: white;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.dark-mode .hero {
    background: radial-gradient(circle at top right, #0f172a, #000);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="500" cy="500" r="400" fill="none" stroke="white" stroke-width="0.5" stroke-dasharray="10,20" opacity="0.1"/></svg>');
    background-size: 600px;
    animation: pulse 20s infinite linear;
}

@keyframes pulse {
    from {
        transform: scale(1) rotate(0deg);
    }

    to {
        transform: scale(1.1) rotate(5deg);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary-color));
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 40px;
    color: #94a3b8;
    max-width: 600px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    gap: 32px;
}

.stat-item {
    text-align: left;
    border-left: 2px solid rgba(59, 130, 246, 0.3);
    padding-left: 20px;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: white;
}

.stat-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* About Section */

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.dark-mode .about-text h3 {
    color: var(--light-color) !important;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature {
    text-align: center;
    padding: 20px 15px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.dark-mode .feature {
    background-color: var(--secondary-color);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.dark-mode .feature h4 {
    color: var(--light-color) !important;
}

.feature p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-placeholder i {
    position: absolute;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.image-placeholder i:nth-child(1) {
    top: 20%;
    left: 20%;
}

.image-placeholder i:nth-child(2) {
    top: 20%;
    right: 20%;
}

.image-placeholder i:nth-child(3) {
    bottom: 20%;
    left: 20%;
}

.image-placeholder i:nth-child(4) {
    bottom: 20%;
    right: 20%;
}


/* Brands Section */

.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .brands-grid {
        grid-template-columns: 1fr;
    }
}

.brand-item {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.dark-mode .brand-item {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
}

.brand-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.brand-logo i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.brand-logo h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.dark-mode .brand-logo h3 {
    color: var(--light-color) !important;
}

.brand-item p {
    color: var(--gray-color);
    font-size: 0.95rem;
}


/* Categories Section */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.category-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.dark-mode .category-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-glow), transparent);
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--glass-border);
}

.category-card:hover::before {
    opacity: 0.1;
}

.category-icon {
    width: 90px;
    height: 90px;
    background-color: var(--accent-color);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 32px;
    transition: var(--transition);
    color: white;
    font-size: 2.25rem;
    box-shadow: 0 8px 16px var(--accent-glow);
}

.category-card:hover .category-icon {
    transform: rotate(5deg) scale(1.1);
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.dark-mode .category-card h3 {
    color: var(--dark-color);
}

.category-card p {
    color: var(--gray-color);
    margin-bottom: 24px;
    font-weight: 500;
}

.category-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    gap: 8px;
}

.category-link:hover {
    gap: 12px;
}


/* Products Section */


/* Products Section */

.product-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--light-gray);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition);
}

.dark-mode .filter-btn {
    background: var(--secondary-color);
}

.filter-btn:hover {
    background: var(--accent-color);
    color: white;
}

.filter-btn.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.products-grid .product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.products-grid .product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.products-grid .product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.products-grid .product-card:nth-child(4) {
    animation-delay: 0.4s;
}

.products-grid .product-card:nth-child(5) {
    animation-delay: 0.5s;
}

.products-grid .product-card:nth-child(6) {
    animation-delay: 0.6s;
}

.product-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    z-index: 1;
}

.product-card:hover::before {
    left: 150%;
    transition: 0.7s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.dark-mode .product-card {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.product-image {
    width: 100%;
    height: 240px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.dark-mode .product-image {
    background-color: var(--secondary-color);
}

.product-image i {
    font-size: 4rem;
    color: var(--accent-color);
    transition: var(--transition);
    opacity: 0.8;
}

.product-card:hover .product-image i {
    transform: scale(1.1) rotate(-5deg);
    opacity: 1;
}

.best-seller-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(45deg, var(--accent-color), #3b82f6);
    color: white;
    padding: 8px 40px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    /* Override previous padding if any */
}

.product-category {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: inline-block;
    padding: 0;
    background: transparent;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.dark-mode .product-name {
    color: #f1f5f9;
}

.product-description {
    font-size: 0.95rem;
    color: var(--gray-color);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.dark-mode .product-price {
    color: var(--accent-color);
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.product-btn {
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.product-view {
    background: var(--light-gray);
    color: var(--primary-color);
}

.dark-mode .product-view {
    background: #334155;
    color: #f1f5f9;
}

.product-view:hover {
    background: #e2e8f0;
}

.product-cart {
    background: var(--accent-color);
    color: white;
}

.product-cart:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px var(--accent-glow);
}


/* Operations Section */

.operations-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.step {
    background: var(--light-gray);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    transition: var(--transition);
    position: relative;
    border: 1px solid transparent;
}

.dark-mode .step {
    background: var(--secondary-color);
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.dark-mode .step-content h3 {
    color: var(--dark-color);
}

.step-content p {
    color: var(--gray-color);
    margin-bottom: 24px;
    line-height: 1.7;
}

.step-equipment {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.step-equipment span {
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border-radius: 50px;
    font-size: 0.813rem;
    font-weight: 700;
}


/* Contact Section */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--primary-color);
}

.dark-mode .contact-info h3 {
    color: var(--dark-color);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-item i {
    width: 48px;
    height: 48px;
    background: var(--light-gray);
    color: var(--accent-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.dark-mode .contact-item i {
    background: var(--secondary-color);
}

.contact-details h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.dark-mode .contact-details h4 {
    color: var(--dark-color);
}

.contact-details p {
    color: var(--gray-color);
}

.contact-form {
    background: white;
    padding: 48px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--light-gray);
}

.dark-mode .contact-form {
    background: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 0.875rem;
}

.dark-mode .form-group label {
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 500;
    transition: var(--transition);
}

.dark-mode .form-group input,
.dark-mode .form-group textarea {
    background: var(--secondary-color);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .form-group input::placeholder,
.dark-mode .form-group textarea::placeholder {
    color: var(--gray-color);
    opacity: 0.8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: white;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.dark-mode .form-group input:focus,
.dark-mode .form-group textarea:focus {
    background: var(--primary-color);
}

.error-message {
    color: var(--danger-color);
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 4px;
}


/* Contact Section */

.contact-content {
    display: flex;
    gap: 60px;
}

@media (max-width: 992px) {
    .contact-content {
        flex-direction: column;
    }
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.dark-mode .contact-info h3 {
    color: var(--light-color) !important;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.dark-mode .contact-item h4 {
    color: var(--light-color) !important;
}

.contact-item p {
    color: var(--gray-color);
}

.map-placeholder {
    height: 200px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
}

.dark-mode .map-placeholder {
    background-color: var(--secondary-color);
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.dark-mode .form-group label {
    color: var(--light-color) !important;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background-color: var(--light-gray);
    color: var(--dark-color);
    transition: var(--transition);
}

.dark-mode .form-group input,
.dark-mode .form-group textarea {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--light-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.error-message {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-top: 5px;
    min-height: 20px;
}


/* Footer */

.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 70px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}


/* Footer */

.footer {
    background: var(--primary-color);
    color: white;
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 80px;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-column h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.footer-column p {
    color: #94a3b8;
    margin-bottom: 24px;
    line-height: 1.7;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
    padding-left: 8px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-4px);
}

.newsletter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter input {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: inherit;
}

.newsletter input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}


/* Admin Panel Styles */

.admin-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 32px;
}

.admin-table-container {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    padding: 20px 24px;
    background: rgba(59, 130, 246, 0.05);
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--glass-border);
}

.dark-mode .admin-table th {
    color: var(--dark-color);
    background: rgba(255, 255, 255, 0.02);
}

.admin-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--secondary-color);
    font-weight: 500;
    vertical-align: middle;
}

.dark-mode .admin-table td {
    color: var(--gray-color);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(59, 130, 246, 0.02);
}

.admin-product-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--light-gray);
}

.admin-actions-cell {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.edit-btn {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
}

.delete-btn {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.edit-btn:hover {
    background: var(--accent-color);
    color: white;
}

.delete-btn:hover {
    background: var(--danger-color);
    color: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 500;
    transition: var(--transition);
    color: var(--primary-color);
}

.dark-mode .form-input {
    background: var(--secondary-color);
    color: white;
}

.form-input:focus {
    outline: none;
    background: white;
    border-color: var(--accent-color);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table td {
        display: block;
        padding: 10px 24px;
        border: none;
    }

    .admin-table td:first-child {
        padding-top: 24px;
    }

    .admin-table td:last-child {
        padding-bottom: 24px;
        border-bottom: 1px solid var(--glass-border);
    }

    .admin-table td::before {
        content: attr(data-label);
        font-weight: 800;
        display: block;
        font-size: 0.75rem;
        text-transform: uppercase;
        color: var(--accent-color);
        margin-bottom: 4px;
    }
}


/* Dashboard Layout */

.admin-page {
    background: var(--light-gray);
    min-height: 100vh;
}

.dark-mode .admin-page {
    background: #0f172a;
    /* Deeper slate for dashboard background */
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
    /* Space for fixed header */
}


/* Sidebar */

.dashboard-sidebar {
    width: 280px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    border-right: 1px solid var(--glass-border);
    position: fixed;
    top: 80px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.dark-mode .sidebar-link {
    color: var(--gray-color);
}

.sidebar-link i {
    width: 20px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
}

.sidebar-link.active i {
    transform: scale(1.1);
}


/* Main Content */

.dashboard-main {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    max-width: 1400px;
}

@media (max-width: 992px) {
    .dashboard-sidebar {
        width: 80px;
        padding: 32px 12px;
    }

    .sidebar-link span {
        display: none;
    }

    .dashboard-main {
        margin-left: 80px;
    }
}

@media (max-width: 576px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
    }

    .dashboard-main {
        margin-left: 0;
        padding: 24px;
    }

    .admin-page.sidebar-open .dashboard-sidebar {
        transform: translateX(0);
        width: 280px;
    }

    .admin-page.sidebar-open .sidebar-link span {
        display: inline;
    }
}


/* Dashboard Stats Cards */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 24px;
    transition: var(--transition);
}

.dark-mode .stat-card {
    background: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.05);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
}

.stat-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.stat-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-info h4 {
    font-size: 0.875rem;
    color: var(--gray-color);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.dark-mode .stat-value {
    color: var(--dark-color);
}


/* User Profile & Auth */

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50px;
    transition: var(--transition);
}

.user-profile-btn:hover {
    background: rgba(59, 130, 246, 0.05);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.user-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.dark-mode .user-name {
    color: var(--dark-color);
}

.auth-dropdown {
    position: relative;
}

.auth-menu {
    position: absolute;
    top: 120%;
    right: 0;
    width: 240px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    border: 1px solid var(--light-gray);
}

.dark-mode .auth-menu {
    background: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.05);
}

.auth-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.auth-menu-header {
    padding: 12px;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 8px;
}

.dark-mode .auth-menu-header {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.auth-menu-header p {
    font-size: 0.75rem;
    color: var(--gray-color);
}

.auth-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.dark-mode .auth-menu-item {
    color: var(--dark-color);
}

.auth-menu-item:hover {
    background: rgba(59, 130, 246, 0.05);
    color: var(--accent-color);
}

.auth-menu-item.logout {
    color: var(--danger-color);
}


/* Unified Login Modal */

.login-modal-content {
    max-width: 500px;
    padding: 0;
    overflow: hidden;
}

.login-header {
    background: var(--primary-color);
    padding: 40px;
    text-align: center;
    color: white;
}

.login-header i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.login-body {
    padding: 40px;
}

.social-login-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.fb-login-btn {
    background: #1877f2;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.fb-login-btn:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    color: var(--gray-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--light-gray);
}

.credentials-login h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1rem;
    text-align: center;
}

.dark-mode .credentials-login h4 {
    color: var(--dark-color);
}

.login-footer {
    padding: 24px;
    background: rgba(59, 130, 246, 0.05);
    text-align: center;
}

.login-footer p {
    font-size: 0.875rem;
    color: var(--gray-color);
}

.login-footer a {
    color: var(--accent-color);
    font-weight: 700;
}

@media (max-width: 576px) {
    .modal-body {
        padding: 40px 24px;
    }
}


/* Cart Sidebar */

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background-color: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border-left: 1px solid var(--glass-border);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 32px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.dark-mode .cart-header h3 {
    color: var(--dark-color);
}

.cart-close {
    background: var(--light-gray);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.dark-mode .cart-close {
    background: var(--secondary-color);
    color: var(--dark-color);
}

.cart-close:hover {
    background: var(--danger-color);
    color: white;
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-color);
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid var(--light-gray);
}

.dark-mode .cart-footer {
    border-top-color: var(--secondary-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.dark-mode .cart-total {
    color: var(--light-color) !important;
}

.btn-checkout {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

.cart-note {
    font-size: 0.85rem;
    color: var(--gray-color);
    text-align: center;
}


/* Animation Classes */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}


/* Dark Mode Specific Fixes */

.dark-mode .brand-item p,
.dark-mode .category-card p,
.dark-mode .product-description,
.dark-mode .step-content p,
.dark-mode .contact-item p,
.dark-mode .footer-column p,
.dark-mode .footer-bottom p,
.dark-mode .footer-column ul li a,
.dark-mode .footer-links a,
.dark-mode .cart-note {
    color: var(--gray-color);
}

.dark-mode .form-group input::placeholder,
.dark-mode .form-group textarea::placeholder {
    color: var(--gray-color);
}

.dark-mode .cart-item-info h4 {
    color: var(--dark-color);
}

.dark-mode .quantity-btn {
    color: var(--dark-color);
}

.dark-mode {
    color-scheme: dark;
}


/* Modal Dark Mode Styles */

.modal-product {
    display: flex;
    gap: 40px;
}

@media (max-width: 768px) {
    .modal-product {
        flex-direction: column;
    }
}

.modal-product-image {
    flex: 1;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.dark-mode .modal-product-image {
    background-color: var(--secondary-color);
}

.modal-product-image i {
    font-size: 5rem;
    color: var(--accent-color);
}

.modal-product-info {
    flex: 2;
}

.modal-product-info h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.dark-mode .modal-product-info h2 {
    color: var(--light-color) !important;
}

.modal-description {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 25px;
}

.modal-details {
    margin-bottom: 30px;
}

.detail-group {
    margin-bottom: 20px;
}

.detail-group h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.dark-mode .detail-group h4 {
    color: var(--light-color) !important;
}

.detail-group p {
    color: var(--gray-color);
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}


/* Cart Item Styles */

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

.dark-mode .cart-item {
    border-bottom-color: var(--secondary-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.cart-item-info p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 8px;
}

.cart-item-price {
    font-weight: 600;
    color: var(--accent-color);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--light-gray);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--dark-color);
    transition: var(--transition);
}

.dark-mode .quantity-btn {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.quantity-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.cart-item-remove:hover {
    transform: scale(1.2);
}


/* Responsive Styles */


/* Modal Overlay & Base System */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 800px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
    max-height: 90vh;
    overflow-y: auto;
}

.dark-mode .modal-content {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.login-footer {
    padding: 24px 40px;
    border-top: 1px solid var(--light-gray);
    text-align: center;
}

.dark-mode .login-footer {
    border-color: rgba(255, 255, 255, 0.05);
}

.login-footer p {
    font-size: 0.95rem;
    color: var(--gray-color);
}

.login-footer a {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
    margin-left: 5px;
    transition: var(--transition);
}

.login-footer a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.dark-mode .modal-close {
    background: var(--secondary-color);
    color: var(--dark-color);
}

.modal-close:hover {
    background: var(--danger-color);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
}


/* Responsive Styles */

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--light-color);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .dark-mode .nav-menu {
        background-color: var(--primary-color);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        margin: 10px 0;
        font-size: 1.1rem;
    }

    .nav-actions {
        margin-right: 50px;
    }

    .search-box input {
        width: 150px;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -6px);
    }

    .about-content {
        flex-direction: column;
    }

    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .stat-item {
        min-width: 100%;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-number {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-padding {
        padding: 60px 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}


/* Admin Analytics & Alerts */

.alert-dropdown {
    position: relative;
    margin-right: 15px;
}

.alert-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    background: var(--danger-color);
    border-radius: 50%;
    border: 2px solid var(--light-color);
}

.alert-menu {
    position: absolute;
    top: 50px;
    right: 0;
    width: 320px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    padding: 20px;
}

.alert-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.alert-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.alert-menu-header h4 {
    font-size: 1rem;
    color: var(--primary-color);
}

.alert-menu-header button {
    background: var(--light-gray);
    border: 1px solid var(--glass-border);
    color: var(--accent-color);
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.alert-menu-header button:hover {
    background: var(--accent-color);
    color: white;
}

.alert-list {
    max-height: 300px;
    overflow-y: auto;
}

.alert-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

.alert-item:last-child {
    border-bottom: none;
}

.alert-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.alert-icon.info {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-color);
}

.alert-icon.warning {
    background: rgba(217, 119, 6, 0.1);
    color: var(--warning-color);
}

.alert-icon.danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger-color);
}

.alert-content h5 {
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: var(--primary-color);
}

.alert-content p {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.empty-alerts {
    text-align: center;
    padding: 30px 0;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.dark-mode .alert-menu {
    background: var(--secondary-color);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .alert-menu-header h4,
.dark-mode .alert-content h5 {
    color: var(--dark-color);
}


/* Scroll Animations */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Tab Navigation */
.tab-content {
    display: none;
    animation: fadeEffect 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeEffect {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Admin Responsive Tables */
@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        display: none;
        /* Hide sidebar on mobile for now */
    }

    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 600px;
        /* Force scroll */
    }
}

/* Skeleton Loading */
.skeleton-row td {
    padding: 12px !important;
}

.skeleton-bar {
    height: 20px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    width: 100%;
}

.dark-mode .skeleton-bar {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}