/* 
 * Nature's Harmony - Main Stylesheet
 * E-commerce site for herbal and alkaline healing products
 */

/* ===== Variables ===== */
:root {
    /* Brand Colors */
    --primary: #3a7b5d;         /* Main brand color - forest green */
    --primary-light: #5a9b7d;   /* Lighter variant */
    --primary-dark: #2a5b3d;    /* Darker variant */
    --secondary: #d4e6c0;       /* Secondary brand color - soft sage */
    --accent: #8fb36c;          /* Accent color for highlights - bright green */
    --light: #f8fbf3;           /* Background light color - off-white */
    --dark: #2c3e2e;            /* Dark text color - deep green */
    --text: #333333;            /* Regular text color */
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-100: #f7f7f7;
    --gray-200: #e9e9e9;
    --gray-300: #d9d9d9;
    --gray-400: #b9b9b9;
    --gray-500: #999999;
    --gray-600: #777777;
    --gray-700: #555555;
    --gray-800: #333333;
    --gray-900: #111111;
    
    /* UI Colors */
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --info: #2196f3;
    
    /* Typography */
    --body-font: 'Open Sans', Helvetica, Arial, sans-serif;
    --heading-font: 'Montserrat', 'Open Sans', Helvetica, Arial, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-xxl: 3rem;     /* 48px */
    --space-xxxl: 5rem;    /* 80px */
    
    /* Border Radius */
    --radius-sm: 0.25rem;  /* 4px */
    --radius-md: 0.5rem;   /* 8px */
    --radius-lg: 1rem;     /* 16px */
    --radius-full: 50%;    /* Circular */
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    
    /* Container Width */
    --container-max: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== Layout & Containers ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
    margin: var(--space-sm) auto 0;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

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

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

.hidden {
    display: none;
}

/* ===== Header & Navigation ===== */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

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

.header-contact a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
}

.header-contact a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
}

.header-actions a:hover {
    color: var(--primary);
}

.header-cart {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

.logo img {
    max-height: 50px;
}

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

.menu-item {
    position: relative;
}

.menu-item a {
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 5px 0;
    display: block;
    transition: color 0.2s;
}

.menu-item a:hover,
.menu-item.current-menu-item a {
    color: var(--primary);
}

.menu-item.current-menu-item a {
    position: relative;
}

.menu-item.current-menu-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

/* Original Dropdown Menu Styles (retained for other dropdown menus) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

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

.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu a {
    padding: 8px 15px;
    font-weight: 400;
    color: var(--gray-700);
}

.dropdown-menu a:hover {
    background-color: var(--gray-100);
}

/* NEW Shop Dropdown Styles - Hover Only */
.shop-dropdown {
    position: relative;
}

.shop-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
    margin-top: 5px;
}

.shop-dropdown:hover .shop-dropdown-content {
    display: block;
}

.dropdown-item {
    padding: 0;
    display: block;
}

.dropdown-item a {
    display: block;
    padding: 8px 20px;
    text-decoration: none;
    color: #333333;
    font-size: 14px;
    transition: background-color 0.2s;
}

.dropdown-item a:hover {
    background-color: #f8f9fa;
    color: var(--primary);
}

.dropdown-category {
    display: block;
    padding: 10px 20px;
    font-size: 12px;
    color: #6c757d;
    font-weight: bold;
    border-top: 1px solid #e9ecef;
    margin-top: 5px;
    padding-top: 15px;
}

/* Menu Toggle and Mobile Styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--dark);
    margin: 4px 0;
    transition: 0.3s;
}

.search-form-container {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-form input {
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    padding: 8px 15px;
    width: 180px;
    transition: width 0.3s;
    font-size: 0.875rem;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary);
    width: 220px;
}

.search-form button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0;
}

.search-form button:hover {
    color: var(--primary);
}

.icon {
    vertical-align: middle;
}

/* Mobile Responsive Dropdown */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .menu-item {
        margin: 0;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .menu-item a {
        padding: 12px 15px;
    }
    
    .menu-toggle.active .icon-bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle.active .icon-bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .icon-bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .site-header.menu-active .menu {
        display: flex;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .menu-item.dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    /* Mobile Shop Dropdown */
    .shop-dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        display: none;
    }
    
    /* Only show dropdown on mobile when toggled with JS */
    .shop-dropdown.active .shop-dropdown-content {
        display: block;
    }
    
    .dropdown-item a {
        padding-left: 30px;
    }
    
    .dropdown-category {
        padding-left: 30px;
    }
}

/* ===== Hero Section ===== */
/* Hero Section with Slideshow */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden; /* Hide slides by default */
    transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible; /* Show active slide */
}

/* Overlay gradient for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    color: var(--white);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3); /* Added text shadow for better readability */
}

/* Optional: Slide indicators */
.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

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

.indicator.active {
    background-color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        height: 500px; /* Slightly shorter on mobile */
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 400px; /* Even shorter on small phones */
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
}
    
/* ===== Buttons ===== */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    border: none;
    line-height: 1;
}

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

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

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

.btn-secondary:hover {
    background-color: var(--dark);
    color: var(--white);
}

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

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

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

.btn-light:hover {
    background-color: var(--gray-200);
    color: var(--primary-dark);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--gray-100);
    color: var(--gray-700);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background-color: var(--gray-200);
    color: var(--primary);
}

.btn-text {
    color: var(--primary);
    font-weight: 600;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.btn-text::after {
    content: '→';
    margin-left: var(--space-xs);
    transition: var(--transition-fast);
}

.btn-text:hover {
    color: var(--primary-dark);
}

.btn-text:hover::after {
    transform: translateX(3px);
}

/* ===== Categories Section ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.category-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    background-color: var(--white);
}

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

.category-image {
    height: 200px;
    overflow: hidden;
}

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

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

.category-title {
    padding: var(--space-md);
    text-align: center;
    background-color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 0;
}

/* ===== Products Section ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

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

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

.product-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background-color: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.product-image {
    height: 200px;
    overflow: hidden;
}

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

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

.product-info {
    padding: var(--space-md);
}

.product-category {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: var(--space-xs);
}

.product-title {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

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

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

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.stars {
    color: #ffc107;
    margin-right: var(--space-xs);
}

.rating-count {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.product-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.125rem;
}

.product-actions {
    padding: 0 var(--space-md) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
}

.add-to-cart {
    flex-grow: 1;
}

.view-all-products {
    text-align: center;
    margin-top: var(--space-xl);
}

/* ===== Benefits Section ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.benefit-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

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

.benefit-icon {
    margin: 0 auto var(--space-md);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.benefit-title {
    margin-bottom: var(--space-sm);
    color: var(--primary);
}

.benefit-description {
    font-size: 0.9375rem;
    color: var(--gray-700);
    margin-bottom: 0;
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--dark);
    color: var(--gray-300);
}

.footer-main {
    padding: var(--space-xxl) 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
}

.footer-widget {
    margin-bottom: var(--space-xl);
}

.footer-logo {
    margin-bottom: var(--space-md);
}

.footer-logo img {
    max-height: 50px;
}

.footer-description {
    margin-bottom: var(--space-md);
    font-size: 0.9375rem;
    color: var(--gray-400);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--white);
    transition: var(--transition-fast);
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--white);
}

.widget-title {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-sm);
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.widget-menu li {
    margin-bottom: var(--space-sm);
}

.widget-menu a {
    color: var(--gray-400);
    transition: var(--transition-fast);
}

.widget-menu a:hover {
    color: var(--white);
    padding-left: var(--space-xs);
}

.contact-info li {
    display: flex;
    margin-bottom: var(--space-sm);
    color: var(--gray-400);
}

.contact-info .icon {
    margin-right: var(--space-sm);
    color: var(--accent);
}

.footer-bottom {
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.copyright {
    color: var(--gray-500);
}

/* ===== Shopping Cart Sidebar ===== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-title {
    margin-bottom: 0;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--gray-600);
}

.cart-close:hover {
    color: var(--primary);
}

.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: var(--space-md);
}

.cart-empty {
    text-align: center;
    padding: var(--space-xl) 0;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cart-item {
    display: flex;
    align-items: center;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--gray-200);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-right: var(--space-md);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.qty-btn {
    width: 25px;
    height: 25px;
    background-color: var(--gray-200);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.qty-btn:hover {
    background-color: var(--gray-300);
}

.cart-item-quantity input {
    width: 40px;
    height: 25px;
    text-align: center;
    border: 1px solid var(--gray-200);
    margin: 0 var(--space-xs);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 var(--space-sm);
}

.cart-item-remove:hover {
    color: var(--error);
}

.cart-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--gray-200);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.subtotal-amount {
    color: var(--primary);
    font-size: 1.125rem;
}

.cart-footer .btn {
    margin-bottom: var(--space-sm);
}

/* ===== Overlay ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 100;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== SHOP & CATEGORY PAGE STYLES ===== */

/* Shop Banner */
.shop-banner {
    background-color: var(--light);
    padding: 50px 0;
    margin-bottom: 40px;
}

.shop-banner-content {
    text-align: center;
}

.shop-banner h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--dark);
}

.breadcrumbs {
    font-size: 14px;
    color: var(--gray-600);
}

.breadcrumbs a {
    color: var(--primary);
}

/* Shop Grid Layout */
.shop-grid {
    display: flex;
    gap: 30px;
}

.shop-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.shop-main {
    flex: 1;
}

/* Product Header */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

/* Sidebar Widgets */
.sidebar-widget {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-widget .widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dark);
}

.filter-section {
    margin-bottom: 15px;
}

.filter-item {
    margin-bottom: 8px;
}

.filter-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.filter-item input {
    margin-right: 8px;
}

.count {
    margin-left: 5px;
    color: var(--gray-600);
    font-size: 12px;
}

/* Rating Stars */
.stars {
    color: #FFD700;
    letter-spacing: 1px;
}

.rating-text {
    margin-left: 5px;
    font-size: 14px;
}

/* Featured Products in Sidebar */
.featured-product-widget {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.featured-product-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.featured-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.featured-product-info {
    flex: 1;
}

.featured-product-info h4 {
    font-size: 14px;
    margin: 0 0 5px;
}

.featured-product-price {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.featured-product-rating .stars {
    font-size: 12px;
}

/* Product Items - Shop Version */
.product-item {
    margin-bottom: 30px;
}

/* Product actions overlay */
.product-actions-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.product-actions-overlay a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.2s;
}

.product-actions-overlay a:hover {
    background-color: var(--primary);
    color: white;
}

/* Featured Categories Banner */
.featured-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.category-banner {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.category-banner:hover {
    transform: translateY(-5px);
}

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

.category-banner span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

/* Featured Sections */
.featured-section {
    margin: 50px 0;
}

.featured-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
    color: var(--dark);
}

/* View All Link */
.view-all-link {
    text-align: center;
    margin-top: 20px;
}

.view-all-link a {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.view-all-link a:hover {
    background-color: var(--primary-dark);
}

/* Quick View Modal */
.quick-view-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quick-view-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.quick-view-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quick-view-overlay.active {
    opacity: 1;
    visibility: visible;
}

.quick-view-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
}

.quick-view-body {
    display: flex;
    padding: 30px;
}

.quick-view-image {
    flex: 1;
    max-width: 45%;
}

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

.quick-view-details {
    flex: 1;
    padding-left: 30px;
}

.quick-view-title {
    font-size: 24px;
    margin: 0 0 15px;
}

.quick-view-rating {
    margin-bottom: 15px;
}

.quick-view-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 20px;
}

.quick-view-description {
    margin-bottom: 20px;
    color: var(--gray-600);
    line-height: 1.6;
}

.quick-view-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.product-quantity {
    display: flex;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.product-quantity input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
}

.quick-view-meta {
    margin-bottom: 20px;
}

.meta-item {
    margin-bottom: 5px;
}

.meta-label {
    font-weight: bold;
    margin-right: 5px;
}

.quick-view-links {
    display: flex;
    gap: 20px;
}

.quick-view-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
}

.quick-view-links a:hover {
    color: var(--primary);
}

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

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 4px;
    border: 1px solid var(--gray-200);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.pagination a:hover, .pagination span.current {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination a.next {
    width: auto;
    padding: 0 15px;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1200px) {
    .footer-widgets {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-widget:first-child {
        grid-column: span 4;
        margin-bottom: var(--space-lg);
    }
    
    /* Shop Page Adjustments */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .search-form-container {
        display: none;
    }
    
    .products-grid,
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    /* Shop and Category Page Adjustments */
    .shop-grid {
        flex-direction: column;
    }
    
    .shop-sidebar {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .quick-view-body {
        flex-direction: column;
    }
    
    .quick-view-image {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .quick-view-details {
        padding-left: 0;
    }
    
    .featured-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cart-sidebar {
        width: 350px;
        right: -350px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation .menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 100;
    }
    
    .main-navigation.active .menu {
        max-height: 400px;
    }
    
    .menu-item a {
        padding: 12px 20px;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }
    
    .shop-dropdown:hover .shop-dropdown-content {
        display: block;
    }
    
    .dropdown-menu a {
        padding-left: 40px;
    }
    
    .header-contact {
        display: none;
    }
    
    .products-grid,
    .categories-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    /* Shop and Category Page Adjustments */
    .product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .shop-ordering {
        width: 100%;
    }
    
    .quick-view-actions {
        flex-direction: column;
    }
    
    .shop-banner h1 {
        font-size: 28px;
    }
    
    .products-grid .product-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .products-grid .product-info {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    
    .products-grid .product-price {
        margin-top: auto;
    }
}

@media (max-width: 576px) {
    .products-grid,
    .categories-grid,
    .blog-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form input[type="email"] {
        border-radius: var(--radius-md);
        margin-bottom: var(--space-sm);
    }
    
    .newsletter-form button {
        border-radius: var(--radius-md);
        width: 100%;
    }
    
    .hero {
        height: 450px;
    }
    
    .hero-slide {
        height: 450px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .header-contact {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    /* Shop and Category Page Adjustments */
    .featured-categories {
        grid-template-columns: 1fr;
    }
    
    .shop-banner h1 {
        font-size: 24px;
    }
    
    .quick-view-modal {
        width: 95%;
    }
    
    .quick-view-body {
        padding: 15px;
    }
    
    .pagination a, .pagination span {
        width: 35px;
        height: 35px;
        margin: 0 3px;
    }
    
    .quick-view-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-quantity {
        width: 100%;
    }
    
    .product-quantity input {
        flex: 1;
    }
}

/* ===== Admin Dashboard Styles ===== */
/* Admin Dashboard Styles - Adapted from Shop Page */
/* Admin Dashboard CSS with Blue Theme */

:root {
    --primary: #4a6fa5;         /* Changed to blue */
    --primary-light: #6b8cbc;   /* Lighter blue */
    --primary-dark: #345584;    /* Darker blue */
    --secondary: #d4dce6;       /* Light blue-gray */
    --accent: #f59e0b;          /* Amber/orange accent */
    --light: #f8f9fb;           /* Very light blue-tinted white */
    --dark: #2e3b4e;            /* Dark blue-gray */
    --text: #333333;            /* Kept the same */
    --white: #ffffff;           /* Kept the same */
    --gray-100: #f7f7f7;        /* Kept the same */
    --gray-200: #e9e9e9;        /* Kept the same */
    --gray-300: #d9d9d9;        /* Kept the same */
    --gray-400: #b9b9b9;        /* Kept the same */
    --gray-500: #999999;        /* Kept the same */
    --gray-600: #777777;        /* Kept the same */
    --gray-700: #555555;        /* Kept the same */
    --gray-800: #333333;        /* Kept the same */
    --gray-900: #111111;        /* Kept the same */
}

/* Base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
}

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

/* Admin Header Styles */
.admin-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

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

/* Button Styles */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

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

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

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

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

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

/* Admin Layout */
.admin-container {
    display: flex;
    min-height: calc(100vh - 64px); /* Adjust based on header height */
}

.admin-sidebar {
    width: 250px;
    background-color: var(--white);
    border-right: 1px solid var(--gray-200);
    padding: 15px 0;
}

.admin-content {
    flex: 1;
    padding: 20px;
    background-color: var(--light);
}

/* Admin Navigation */
.admin-nav {
    padding: 0 15px;
}

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

.admin-nav-section h3 {
    text-transform: uppercase;
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.admin-nav-section ul {
    list-style-type: none;
    padding: 0;
}

.admin-nav-section li {
    margin-bottom: 3px;
}

.admin-nav-section li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.admin-nav-section li a:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

.admin-nav-section li.active a {
    background-color: var(--primary-light);
    color: var(--white);
}

.admin-nav-section li a i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
}

/* Admin Section Styles */
.admin-section {
    display: none;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.admin-section.active {
    display: block;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.admin-section-header h2 {
    color: var(--dark);
    font-size: 24px;
    margin: 0;
}

/* Stats Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: var(--primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin-right: 20px;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 5px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

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

.bg-accent {
    background-color: var(--accent);
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background-color: var(--gray-100);
    color: var(--gray-700);
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
    border-bottom: 2px solid var(--gray-200);
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-800);
}

.admin-table tbody tr:hover {
    background-color: var(--light);
}

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

/* Recent Orders */
.recent-orders {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.recent-orders h3 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
}

/* Form Styles */
.admin-form .form-group {
    margin-bottom: 20px;
}

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

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

.form-hint {
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 5px;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Search & Filter Styles */
.search-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-search {
    display: flex;
    align-items: center;
    max-width: 300px;
    width: 100%;
    position: relative;
}

.admin-search input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
}

.admin-search button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
}

.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-controls select {
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    background-color: white;
}

/* Pagination */
.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.admin-pagination button {
    padding: 8px 15px;
}

.admin-pagination span {
    color: var(--gray-600);
}

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

.admin-modal-content {
    background-color: white;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.admin-modal-sm {
    max-width: 500px;
}

.admin-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: var(--gray-600);
    cursor: pointer;
}

.admin-modal-body {
    margin-top: 20px;
}

/* Product Variants Section */
.product-variants {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.product-variants h3 {
    margin-bottom: 5px;
    color: var(--dark);
}

#variants-container {
    margin: 15px 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .search-filter-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-search {
        max-width: 100%;
    }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 5px;
}

.action-buttons button {
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.action-buttons button i {
    font-size: 14px;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background-color: var(--gray-200);
    color: var(--gray-700);
}

.badge-featured {
    background-color: var(--accent);
    color: white;
}

.badge-new {
    background-color: #8e44ad; /* Purple */
    color: white;
}

.badge-out-of-stock {
    background-color: #e74c3c;
    color: white;
}

/* Notification Container */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.notification {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-success {
    background-color: #2ecc71; /* Green */
    color: white;
}

.notification-error {
    background-color: #e74c3c; /* Red */
    color: white;
}

.notification-warning {
    background-color: var(--accent); /* Using our accent color */
    color: white;
}

.notification-info {
    background-color: var(--primary); /* Using our primary color */
    color: white;
}

/* Variant Item Styles */
.variant-item {
    background-color: var(--light);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.variant-actions {
    display: flex;
    align-items: flex-end;
}

/* Form Helpers */
.form-hint {
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 5px;
}

/* Product Image Preview */
.image-preview {
    width: 100%;
    height: 200px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light);
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-preview-placeholder {
    color: var(--gray-500);
    text-align: center;
}

/* Categories List and Form Layout */
.categories-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.category-form-container {
    background-color: var(--light);
    border-radius: 8px;
    padding: 20px;
}

.category-form-container h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-form-container {
        margin-top: 20px;
    }
}

/* Order Status Badges */
.status-pending {
    background-color: var(--primary); /* Blue */
    color: white;
}

.status-processing {
    background-color: var(--accent); /* Amber */
    color: white;
}

.status-completed {
    background-color: #2ecc71; /* Green */
    color: white;
}

.status-cancelled {
    background-color: #e74c3c; /* Red */
    color: white;
}

/* Search & Filter Refinements */
.admin-search input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-controls select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Card styles for sections */
.admin-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.admin-card-header h3 {
    color: var(--dark);
    font-size: 18px;
    margin: 0;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .admin-table {
        font-size: 14px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
    }
    
    .admin-header h1 {
        font-size: 22px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-number {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .admin-card {
        padding: 15px;
    }
    
    .admin-section {
        padding: 15px;
    }
    
    .action-buttons button {
        width: 100%;
    }
    
    .admin-user {
        gap: 8px;
    }
    
    .admin-user span {
        display: none;
    }
    
    .btn-sm {
        padding: 5px 10px;
        font-size: 13px;
    }
}
