/* =====================================================
   SPC eCommerce Template - Main Stylesheet
   Inspired by spccoatings.co.uk
   ===================================================== */

/* =====================================================
   1. ROOT VARIABLES & RESET
   ===================================================== */
:root {
    /* Primary Colors */
    --primary-color: #1e4d3c;
    --primary-light: #2a6b52;
    --primary-dark: #143a2c;

    /* Secondary/Accent Colors */
    --accent-color: #2d8659;
    --accent-hover: #246b47;
    --accent-light: #e8f5ec;

    /* Neutral Colors */
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6c757d;
    --text-muted: #999;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #e9ecef;
    --bg-dark: #1e4d3c;

    /* Border & Shadow */
    --border-color: #dee2e6;
    --border-light: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);

    /* Spacing */
    --container-padding: 15px;
    --section-padding: 80px 0;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Fonts */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* =====================================================
   2. TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

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

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

/* =====================================================
   3. UTILITY CLASSES
   ===================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

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

.section-padding {
    padding: var(--section-padding);
}

.text-accent {
    color: var(--accent-color) !important;
}

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

.border-accent {
    border-color: var(--accent-color) !important;
}

/* =====================================================
   4. BUTTONS
   ===================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: none;
    letter-spacing: 0;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(248, 156, 28, 0.3);
    outline: none;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

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

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* =====================================================
   5. FORM ELEMENTS
   ===================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background-color: var(--bg-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(248, 156, 28, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a4a4a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.form-check-label {
    font-size: 0.95rem;
    color: var(--text-medium);
    cursor: pointer;
    user-select: none;
}

.input-group {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.input-group-btn {
    background-color: var(--bg-light);
    border: none;
    padding: 12px 16px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    color: var(--text-dark);
}

.input-group-btn:hover {
    background-color: var(--bg-gray);
}

.input-group-field {
    flex: 1;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 8px;
    width: 60px;
}

.input-group-field:focus {
    outline: none;
}

/* =====================================================
   6. HEADER & NAVIGATION - Mega Menu with Smooth Transitions
   ===================================================== */

.header-top {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
}

.header-top a {
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition-fast);
}

.header-top a:hover {
    color: white;
}

/* Navbar Toggler Custom Styling */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 8px 12px;
    transition: all var(--transition-fast);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(248, 156, 28, 0.2);
    border-color: var(--accent-color);
}

.navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(30, 77, 60, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: transform var(--transition-base);
}

/* Rotate when menu is OPEN (collapsed class removed) */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    transform: rotate(90deg);
}

/* Force display toggler on mobile */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Hide toggler on desktop */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
}

/* Navbar Brand Styling */
.navbar-brand {
    font-size: 1.3rem;
    color: var(--primary-color) !important;
    transition: color var(--transition-fast);
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand img {
        max-height: 40px;
    }

    /* Force toggler visibility */
    .navbar-toggler {
        display: block !important;
    }

    /* Navbar collapse styling */
    .navbar-collapse {
        background-color: white;
        padding: 0;
        margin-top: 15px;
        border-top: 1px solid var(--border-light);
    }

    /* Nav links for mobile */
    .navbar-nav .nav-link {
        padding: 15px 0 !important;
        border-bottom: 1px solid var(--border-light);
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Mega Menu Container */
.nav-item.mega-menu {
    position: static;
}

.nav-item.mega-menu > .nav-link {
    position: relative;
    padding-right: 25px !important;
}

.mega-menu-arrow {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    transition: transform var(--transition-base);
}

.nav-item.mega-menu:hover .mega-menu-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Mega Menu Content - Smooth Dropdown */
.mega-menu-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 3px solid var(--accent-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
}

.nav-item.mega-menu:hover .mega-menu-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Mega Menu Container - Grid Layout */
.mega-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

/* Mega Menu Column */
.mega-menu-column {
    position: relative;
}

.mega-menu-column:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border-light), transparent);
}

/* Mega Menu Title */
.mega-menu-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mega-menu-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Mega Menu List */
.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.mega-menu-list li::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 0.8rem;
    opacity: 0;
    transition: all var(--transition-fast);
}

.mega-menu-list li:hover::before {
    opacity: 1;
    left: 5px;
}

.mega-menu-list a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: block;
    padding: 5px 0;
}

.mega-menu-list a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Featured Banner */
.mega-menu-featured {
    background: linear-gradient(135deg, var(--accent-light) 0%, #f0f7f3 100%);
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
}

.mega-menu-featured::after {
    display: none;
}

.featured-banner {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.featured-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.mega-menu-featured:hover .featured-banner img {
    transform: scale(1.1);
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 34, 68, 0.95), transparent);
    color: white;
}

.featured-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.featured-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.featured-content .btn {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-dark);
    transition: all var(--transition-base);
}

.featured-content .btn:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(248, 156, 28, 0.3);
}

/* Responsive Mega Menu */
@media (max-width: 991px) {
    /* Mega menu always visible on mobile */
    .mega-menu-content {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        border-top: none;
        border-bottom: 1px solid var(--border-light);
        padding: 20px 0;
        background-color: var(--bg-light);
        display: block !important;
        pointer-events: auto !important;
    }

    .mega-menu-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .mega-menu-column:not(:last-child)::after {
        display: none;
    }

    .mega-menu-title {
        font-size: 1rem;
        margin-bottom: 15px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mega-menu-title::after {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        transition: transform var(--transition-fast);
    }

    /* Initially hide all lists on mobile - user clicks to expand */
    .mega-menu-list {
        display: none !important;
        padding-left: 15px;
    }

    /* Show when column is active */
    .mega-menu-column.active .mega-menu-list {
        display: block !important;
    }

    .mega-menu-column.active .mega-menu-title::after {
        transform: rotate(180deg);
    }

    .mega-menu-column.active .mega-menu-list {
        display: block !important;
        animation: slideDown 0.3s ease;
    }

    /* Hide mega menu arrow on mobile */
    .mega-menu-arrow {
        display: none;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mega-menu-featured {
        order: -1;
    }

    .featured-banner {
        min-height: 200px;
    }
}

/* NOTE: Old dropdown and submenu styles removed - now using Bootstrap 5 dropdowns */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 34, 68, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-overlay-content {
    width: 100%;
    max-width: 700px;
    padding: 20px;
}

.search-overlay-input {
    width: 100%;
    padding: 20px;
    font-size: 1.5rem;
    border: none;
    border-bottom: 2px solid var(--accent-color);
    background: transparent;
    color: white;
}

.search-overlay-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-overlay-input:focus {
    outline: none;
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.search-close:hover {
    transform: rotate(90deg);
}

/* =====================================================
   7. HERO SLIDER
   ===================================================== */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-slow);
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

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

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 34, 68, 0.85) 0%, rgba(0, 34, 68, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 600px;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hero-slider-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all var(--transition-fast);
}

.hero-slider-arrow:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.hero-slider-arrow.prev {
    left: 30px;
}

.hero-slider-arrow.next {
    right: 30px;
}

/* =====================================================
   8. PRODUCT CARDS
   ===================================================== */
.product-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 10;
}

.product-badge.hot {
    background-color: #e74c3c;
    color: white;
}

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

.product-badge.sale {
    background-color: #27ae60;
    color: white;
}

/* Rating Badge - Top Right */
.product-rating-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px 10px;
    border-radius: 4px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-rating-badge i {
    color: #f39c12;
    font-size: 0.85rem;
}

.product-rating-badge span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.product-rating-badge .rating-count {
    font-weight: 400;
    color: var(--text-light);
}

/* Product Action Buttons Row */
.product-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.product-action-buttons .product-view-btn,
.product-action-buttons .product-add-to-cart {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.product-action-buttons .product-view-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.product-action-buttons .product-view-btn i {
    font-size: clamp(0.85rem, 2vw, 1rem);
}

/* Visible Add to Cart Button */
.product-add-to-cart {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 2px 4px rgba(248, 156, 28, 0.3);
}

.product-add-to-cart i {
    font-size: clamp(0.85rem, 2vw, 1rem);
}

/* Responsive adjustments for action buttons */
@media (max-width: 576px) {
    .product-action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .product-action-buttons .product-view-btn,
    .product-action-buttons .product-add-to-cart {
        width: 100%;
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .product-action-buttons .product-view-btn i,
    .product-action-buttons .product-add-to-cart i {
        font-size: 0.9rem;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .product-action-buttons .product-view-btn,
    .product-action-buttons .product-add-to-cart {
        padding: 11px 14px;
        font-size: 0.82rem;
    }
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background-color: var(--bg-light);
}

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

.product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    transition: bottom var(--transition-base);
    z-index: 5;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-dark);
    font-size: 1rem;
}

.product-action-btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.product-action-btn.wishlist-btn.active {
    background-color: #e74c3c;
    color: white;
}

.product-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

.product-rating {
    display: none; /* Hidden when using rating badge */
}

/* Keep rating display if not using badge */
.product-rating-visible {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.product-rating i {
    color: #f39c12;
    font-size: 0.9rem;
}

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

.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

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

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

.product-discount {
    font-size: 0.85rem;
    color: #27ae60;
    font-weight: 600;
}

.product-footer {
    margin-top: auto;
}

/* =====================================================
   9. SECTIONS
   ===================================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-header-actions {
    margin-top: 20px;
}

/* Flash Sale */
.flash-sale {
    background: #faf9f7;
    color: var(--text-dark);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.flash-sale::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s linear infinite;
}

@keyframes pulse {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

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

.flash-sale-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.flash-sale-title h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin: 0;
}

.flash-sale-timer {
    display: flex;
    gap: 20px;
}

.timer-block {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 8px;
    min-width: 90px;
}

.timer-value {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.timer-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.flash-sale-products {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-behavior: smooth;
}

.flash-sale-products::-webkit-scrollbar {
    height: 8px;
}

.flash-sale-products::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.flash-sale-products::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.flash-sale-products .product-card {
    min-width: 280px;
}

/* Features Bar */
.features-bar {
    background: linear-gradient(135deg, #0a4904 0%, #4b72a2 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.features-bar::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 20s linear infinite;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 1;
}

.feature-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s ease;
}

.feature-box-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.feature-box-content h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.feature-box-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.feature-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

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

.category-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 34, 68, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.category-overlay h3 {
    color: white;
    font-size: 1.2rem;
    margin: 0;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--accent-light) 0%, #f0f7f3 100%);
    color: var(--text-dark);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.newsletter h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.newsletter p {
    color: var(--text-medium);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

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

/* =====================================================
   10. FOOTER
   ===================================================== */
.footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 70px 0 30px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

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

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

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
}

.footer-widget ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

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

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

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

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* =====================================================
   11. MODALS
   ===================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: 8px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

.modal-body {
    padding: 30px;
}

/* Quick View Modal */
.quick-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.quick-view-image {
    aspect-ratio: 1;
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
}

.quick-view-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-view-info h3 {
    margin-bottom: 10px;
}

.quick-view-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 15px 0;
}

/* =====================================================
   12. CART & CHECKOUT
   ===================================================== */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

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

.cart-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom: 2px solid var(--border-color);
}

.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

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

.cart-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-product-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.cart-product-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.cart-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform var(--transition-fast);
}

.cart-remove:hover {
    transform: scale(1.2);
}

.cart-summary {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1rem;
}

.cart-summary-row.total {
    border-top: 2px solid var(--border-color);
    padding-top: 15px;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Checkout Steps */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--border-light);
    z-index: 0;
}

.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    background-color: var(--bg-white);
    padding: 0 10px;
}

.checkout-step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-light);
    transition: all var(--transition-base);
}

.checkout-step.active .checkout-step-number {
    background-color: var(--accent-color);
    color: white;
}

.checkout-step.completed .checkout-step-number {
    background-color: #27ae60;
    color: white;
}

.checkout-step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.checkout-step.active .checkout-step-label,
.checkout-step.completed .checkout-step-label {
    color: var(--text-dark);
}

/* =====================================================
   13. DASHBOARD
   ===================================================== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    min-height: 600px;
}

.dashboard-sidebar {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
}

.dashboard-user {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.dashboard-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--bg-light);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}

.dashboard-user h4 {
    margin-bottom: 5px;
}

.dashboard-nav {
    list-style: none;
}

.dashboard-nav li {
    margin-bottom: 5px;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 6px;
    transition: all var(--transition-fast);
    color: var(--text-medium);
}

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

.dashboard-nav i {
    width: 20px;
    text-align: center;
}

.dashboard-content {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 30px;
}

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

.stat-card {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.stat-card-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Orders Table */
.orders-table {
    width: 100%;
    border-collapse: collapse;
}

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

.orders-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom: 2px solid var(--border-color);
}

.orders-table td {
    padding: 20px 15px;
    border-bottom: 1px solid var(--border-light);
}

.order-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.order-status.pending {
    background-color: #fff3cd;
    color: #856404;
}

.order-status.processing {
    background-color: #cce5ff;
    color: #004085;
}

.order-status.shipped {
    background-color: #d4edda;
    color: #155724;
}

.order-status.delivered {
    background-color: #d1ecf1;
    color: #0c5460;
}

.order-status.cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* =====================================================
   14. AUTH PAGES
   ===================================================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.auth-box {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

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

.auth-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-light);
    margin: 0;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .btn {
    width: 100%;
    margin-top: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-light);
}

.auth-footer p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* =====================================================
   15. PRODUCT DETAILS PAGE
   ===================================================== */
.product-details {
    padding: 60px 0;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.product-gallery {
    display: grid;
    gap: 15px;
}

.product-main-image {
    aspect-ratio: 1;
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    cursor: zoom-in;
}

.product-main-image:hover img {
    transform: scale(1.5);
}

.product-main-image {
    overflow: hidden;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.product-thumbnail {
    aspect-ratio: 1;
    background-color: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.product-thumbnail.active {
    border-color: var(--accent-color);
}

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

.product-info h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.product-sku {
    color: var(--text-muted);
}

.product-price-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-price-old-large {
    font-size: 1.3rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-short-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.product-actions-main {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.product-tabs {
    margin-top: 50px;
}

.product-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 30px;
}

.product-tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
}

.product-tab-btn.active {
    color: var(--accent-color);
}

.product-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.product-tab-btn.active::after {
    transform: scaleX(1);
}

.product-tab-content {
    display: none;
}

.product-tab-content.active {
    display: block;
}

/* Related Products */
.related-products {
    margin-top: 60px;
}

/* =====================================================
   16. NOTIFICATIONS
   ===================================================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 350px;
    z-index: 5000;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.success {
    border-left: 4px solid #27ae60;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification.warning {
    border-left: 4px solid #f39c12;
}

.notification.info {
    border-left: 4px solid #3498db;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background-color: #d4edda;
    color: #27ae60;
}

.notification.error .notification-icon {
    background-color: #f8d7da;
    color: #e74c3c;
}

.notification.warning .notification-icon {
    background-color: #fff3cd;
    color: #f39c12;
}

.notification.info .notification-icon {
    background-color: #cce5ff;
    color: #3498db;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    font-size: 1rem;
    margin: 0 0 5px;
}

.notification-content p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-light);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.notification-close:hover {
    color: var(--text-dark);
}

/* =====================================================
   17. PRINT STYLES (Invoice)
   ===================================================== */
@media print {
    .header,
    .footer,
    .dashboard-sidebar,
    .btn,
    .no-print {
        display: none !important;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-content {
        border: none;
        box-shadow: none;
    }

    body {
        background-color: white;
    }
}

/* NOTE: Bootstrap grid system is now provided by bootstrap.min.css.
 * This includes: .row, .col-1 through .col-12, responsive columns (.col-sm-*, .col-md-*, .col-lg-*),
 * offset classes, gap utilities (.g-1 through .g-5), and Bootstrap utility classes.
 */

/* =====================================================
   19. OFF-CANVAS CART
   ===================================================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

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

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

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

.cart-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-sidebar-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-sidebar-header h3 i {
    color: var(--accent-color);
}

.cart-sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px;
}

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

.cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-sidebar-empty {
    text-align: center;
    padding: 40px 20px;
}

.cart-sidebar-empty i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.cart-sidebar-empty p {
    color: #999;
    margin-bottom: 20px;
}

.cart-sidebar-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-sidebar-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

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

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

.cart-sidebar-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.cart-sidebar-item-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.cart-sidebar-item-title a:hover {
    color: var(--accent-color);
}

.cart-sidebar-item-variant {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 8px;
}

.cart-sidebar-item-price {
    font-weight: 600;
    color: var(--accent-color);
}

.cart-sidebar-item-remove {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    margin-top: 5px;
}

.cart-sidebar-item-remove:hover {
    text-decoration: underline;
}

.cart-sidebar-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.cart-sidebar-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.cart-sidebar-qty-value {
    min-width: 35px;
    text-align: center;
    font-weight: 600;
}

.cart-sidebar-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.cart-sidebar-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.cart-sidebar-subtotal span:last-child {
    color: var(--accent-color);
}

.cart-sidebar-tax {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 15px;
}

.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

/* Cart sidebar responsive adjustments */
@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-sidebar-item-image {
        width: 60px;
        height: 60px;
    }
}

/* =====================================================
   20. ADDITIONAL STYLES
   ===================================================== */
/* Product & Category Image Styles */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide {
    background-size: cover;
    background-position: center;
}

/* Clean Button Style */
.btn-clean {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-clean:hover {
    background: transparent;
    color: white;
}

/* =====================================================
   HERO SECTION - Business Motto & Featured Categories
   ===================================================== */
.hero-section {
    position: relative;
    padding: var(--section-padding);
    overflow: hidden;
    background: #faf9f7;
}

.hero-background {
    position: relative;
    background: transparent;
    border-radius: 0;
    padding: 40px 0;
    overflow: hidden;
}

.hero-background::before {
    display: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Left Side - Business Motto */
.hero-content-side {
    color: var(--text-dark);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 25px;
    border: 1px solid rgba(248, 156, 28, 0.2);
}

.hero-badge i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-motto {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-cta .btn {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-base);
}

.hero-cta .btn-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-dark);
}

.hero-cta .btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(248, 156, 28, 0.3);
}

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

.hero-cta .btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* Right Side - Featured Categories */
.hero-featured-side {
    position: relative;
}

.hero-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.hero-featured-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
}

.hero-featured-item.large {
    grid-column: span 2;
}

.hero-featured-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.hero-featured-item.large .hero-featured-image {
    height: 220px;
}

.hero-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.hero-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 34, 68, 0.95) 0%, rgba(0, 34, 68, 0.7) 50%, transparent 100%);
    padding: 20px;
    color: var(--bg-white);
}

.hero-featured-overlay h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.hero-featured-item.large .hero-featured-overlay h3 {
    font-size: 1.5rem;
}

.hero-featured-overlay p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.btn-featured {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    background: var(--accent-color);
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-base);
}

.btn-featured:hover {
    background: var(--accent-hover);
    transform: translateX(5px);
}

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

.hero-content-side > * {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-badge { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-motto { animation-delay: 0.3s; }
.hero-cta { animation-delay: 0.4s; }

.hero-featured-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.hero-featured-item:nth-child(1) { animation-delay: 0.3s; }
.hero-featured-item:nth-child(2) { animation-delay: 0.4s; }
.hero-featured-item:nth-child(3) { animation-delay: 0.5s; }
.hero-featured-item:nth-child(4) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-featured-side {
        order: -1;
    }

    .hero-cta {
        justify-content: flex-start;
    }

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

@media (max-width: 767px) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-background {
        padding: 20px 0;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .hero-motto {
        max-width: 100%;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-featured-grid {
        gap: 12px;
    }

    .hero-featured-image {
        height: 140px;
    }

    .hero-featured-item.large .hero-featured-image {
        height: 180px;
    }

    .hero-featured-overlay {
        padding: 15px;
    }

    .hero-featured-overlay h3 {
        font-size: 1.1rem;
    }

    .hero-featured-item.large .hero-featured-overlay h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 575px) {
    .hero-featured-grid {
        grid-template-columns: 1fr;
    }

    .hero-featured-item.large {
        grid-column: span 1;
    }
}
