/**
 * Global Styles - Premium B2B Design
 * 
 * Professional, minimal CSS with Bootstrap utilities.
 * Premium styling for header and footer.
 *
 * @package     RalphWhite_B2B
 * @subpackage  Assets
 * @since       2.0.0
 */

/* ==========================================================================
   CSS Variables - Design System
   ========================================================================== */

:root {
    /* Brand Colors - Matching Reference Design */
    --primary-color: #1a2433;              /* Dark blue/navy - Primary background */
    --secondary-color: #2c3e50;            /* Lighter dark blue - Card backgrounds */
    --accent-color: #f58220;               /* Bright orange - Primary accent (alias for --color-accent-orange) */
    --accent-color-light: #ff9633;         /* Lighter orange for hovers (alias) */
    --accent-color-dark: #e6700d;          /* Darker orange (alias) */
    
    /* Primary Brand Colors (for consistency with existing code) */
    --color-primary: #1a2433;
    --color-primary-light: #233447;
    --color-primary-dark: #0f172a;
    --color-primary-accent: #2c3e50;
    
    /* Accent Colors - Orange */
    --color-accent-orange: #f58220;        /* Bright orange - Matching reference */
    --color-accent-orange-light: #ff9633;  /* Lighter orange */
    --color-accent-orange-dark: #e6700d;   /* Darker orange */
    --color-accent-gold: #f58220;          /* Use orange for gold accents */
    --color-accent-gold-light: #ff9633;
    --color-accent-gold-dark: #e6700d;
    
    /* Neutrals - Professional Grays */
    --color-white: #FFFFFF;
    --color-gray-50: #FAFBFC;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    
    /* Dark Theme Colors - For Hero, Footer & Dark Sections */
    --bg-dark: #1a2433;                    /* Dark blue/navy background */
    --color-dark-bg: #1a2433;              /* Dark blue background */
    --color-dark-secondary: #2c3e50;       /* Card/pill background */
    --color-dark-accent: #233447;          /* Dark accent */
    --color-dark-text: #FFFFFF;            /* White text on dark */
    --color-dark-text-muted: #a0aec0;      /* Light gray text on dark */
    
    /* Text Colors - Light Theme */
    --text-primary: #1a2433;               /* Dark blue for text */
    --text-secondary: #2c3e50;             /* Secondary dark */
    --text-muted: #6B7280;                 /* Muted gray */
    --text-light: #a0aec0;                 /* Light gray */
    
    /* Backgrounds - Light Theme */
    --bg-light: #f8f9fa;                   /* Light background */
    --bg-primary: #FFFFFF;                 /* White background */
    --bg-secondary: #F8FAFC;               /* Very light blue-gray */
    --bg-tertiary: #F1F5F9;                /* Slightly darker light */
    --bg-gradient-primary: linear-gradient(135deg, #1a2433 0%, #0f172a 100%);
    
    /* Semantic Colors */
    --color-success: #10B981;
    --color-success-light: #D1FAE5;
    --color-warning: #F59E0B;
    --color-warning-light: #FEF3C7;
    --color-error: #EF4444;
    --color-error-light: #FEE2E2;
    --color-info: #3B82F6;
    --color-info-light: #DBEAFE;
    
    /* Borders */
    --border-color: #E2E8F0;               /* Light border */
    --border-color-light: #F1F5F9;         /* Very light border */
    --border-color-dark: #CBD5E1;          /* Darker border */
    --border-dark: #334155;                /* Border on dark bg */
    
    /* Typography Scale - Matching Reference */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --heading-xl: 3rem;                    /* 48px - Hero headlines */
    --heading-lg: 2.25rem;                 /* 36px - Section titles */
    --heading-md: 1.75rem;                 /* 28px - Subsection titles */
    --heading-sm: 1.5rem;                  /* 24px - Card titles */
    --text-base: 1rem;                     /* 16px - Body text */
    --text-sm: 0.875rem;                   /* 14px - Small text */
    --text-xs: 0.75rem;                    /* 12px - Extra small */
    
    /* Buttons */
    --btn-radius: 8px;                     /* Rounded corners */
    --btn-padding: 12px 24px;              /* Standard button padding */
    
    /* Shadows - Subtle & Premium */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.2);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* Z-Index */
    --z-sticky: 1020;
    --z-modal: 1050;
    --z-modal-backdrop: 1040;
}

/* ==========================================================================
   Base Styles - Minimal
   ========================================================================== */

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1;
    overflow-x: hidden;
    overflow-y: auto;
    font-size: var(--text-base);
    line-height: 1.6;
}

/* When menu is closed - ensure normal scroll and no padding */
body:not(.offcanvas-open) {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding-right: 0 !important;
}

/* When menu is open - prevent body scroll, remove padding */
body.offcanvas-open,
body:has(.offcanvas.show) {
    overflow-y: hidden !important;
    padding-right: 0 !important;
}

/* ==========================================================================
   Site Structure
   ========================================================================== */

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

/* ==========================================================================
   Header & Navigation - Premium Design
   ========================================================================== */

/* Utility Bar - Dark Premium Styling */
.header-utility-bar {
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--text-sm);
    letter-spacing: 0.01em;
}

.header-utility-bar .container {
    max-width: 1400px;
}

.utility-link {
    color: var(--color-dark-text-muted) !important;
    text-decoration: none !important;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

.utility-link:hover {
    color: var(--color-white) !important;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
    transform: translateY(-1px);
}

.utility-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.8;
    color: var(--color-dark-text-muted);
}

.utility-link:hover svg {
    opacity: 1;
    color: var(--color-white);
}

.header-utility-bar .utility-separator {
    color: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
}

/* Ensure Register Now link is visible */
.header-utility-bar .utility-register {
    color: var(--color-accent-orange) !important;
}

.header-utility-bar .utility-register:hover {
    color: var(--color-accent-orange-light) !important;
    background-color: rgba(238, 86, 34, 0.15) !important;
}

/* Compact Catalog in Header */
.header-catalog-label {
    color: var(--color-white);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-right: 0.5rem;
    opacity: 0.9;
    white-space: nowrap;
}

.header-catalog-compact {
    display: flex;
    align-items: center;
    margin: 0 0.25rem;
}

.header-catalog-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--color-white);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.header-catalog-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-accent-orange, #f58220);
    color: var(--color-white);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(245, 130, 32, 0.2);
}

.header-catalog-thumb {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 0.25rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-catalog-title {
    font-size: 0.8125rem;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-catalog-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: all var(--transition-base);
}

.header-catalog-link:hover .header-catalog-icon {
    opacity: 1;
    transform: translateX(2px);
}

/* Header Catalog Group - Left Side */
.header-catalog-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 0 1 auto;
}

/* Inline Search Bar in Header Utility Bar - Right Side, Larger Size */
.header-search-inline {
    flex-shrink: 0;
    margin-left: auto;
}

.header-search-inline-wrapper {
    display: flex;
    align-items: center;
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    min-width: 550px;
    max-width: 550px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: all var(--transition-base);
}

.header-search-inline-wrapper:focus-within {
    box-shadow: 0 4px 12px rgba(245, 130, 32, 0.35);
    outline: 2px solid rgba(245, 130, 32, 0.25);
    outline-offset: 2px;
}

.header-search-inline-field {
    flex: 1;
    padding: 11px 20px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    font-family: var(--font-primary);
    font-weight: 400;
}

.header-search-inline-field::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
    font-size: 1rem;
}

.header-search-inline-submit {
    padding: 14px 20px;
    background: var(--color-accent-orange);
    border: none;
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.header-search-inline-submit:hover {
    background: var(--color-accent-orange-dark);
}

.header-search-inline-submit:active {
    transform: scale(0.98);
}

.header-search-inline-submit svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* Responsive adjustments for header catalog and search */
@media (max-width: 1400px) {
    .header-catalog-title {
        max-width: 100px;
    }
    
    .header-search-inline-wrapper {
        min-width: 340px;
        max-width: 480px;
    }
}

@media (max-width: 1200px) {
    .header-catalog-title {
        max-width: 80px;
    }
    
    .header-catalog-compact {
        margin: 0 0.15rem;
    }
    
    .header-search-inline-wrapper {
        min-width: 300px;
        max-width: 420px;
    }
    
    .header-search-inline-field {
        padding: 12px 18px;
        font-size: 0.9375rem;
    }
}

@media (max-width: 992px) {
    /* .header-catalog-compact {
        display: none;
    }
    
    .header-catalog-label {
        display: none;
    } */
    .header-catalog-group{
        justify-content: center;
        width: 100%;
    }
    .header-search-inline {
        margin-left: 0;
        width: 100%;
    }
    
    .header-search-inline-wrapper {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .header-catalog-group {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .header-search-inline {
        width: 100%;
        margin-left: 0;
    }
    
    .header-search-inline-wrapper {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }
    
    .header-search-inline-field {
        padding: 10px 16px;
        font-size: 0.9375rem;
    }
    
    .header-search-inline-submit {
        padding: 12px 16px;
    }
}
@media (max-width: 576px) {
    .header-catalog-label{
        width: 100%;
        text-align: center;
    }
}
.search-icon-link{
    display: none!important;
}
/* Site Header - Light Sticky Header Matching Reference */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
}

.site-header .container {
    max-width: 1400px;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--border-color);
}

.navbar {
    padding: 1rem 0;
}

@media (min-width: 992px) {
    .navbar {
        padding: 0;
    }
}

/* Logo - Premium */
.navbar-brand {
    padding: 0.5rem 0;
    transition: transform var(--transition-base);
}

.navbar-brand:hover {
    transform: scale(1.02);
}

    .site-logo {
    height: 48px!important;
    width: auto;
    transition: all var(--transition-base);
}

@media (min-width: 768px) {
    .site-logo {
        height: 56px!important;
    }
}

@media (min-width: 992px) {
    .site-logo {
        height: 90px!important;
    }
}
@media (max-width: 992px) {
    .navbar-nav .dropdown-menu {
        width: 100%;
    }
    .mobile-nav-premium .dropdown-menu .nav-link{
        color: var(--text-primary) !important;
    }
}

/* Nav Links - Dark Text on Light Background */
.navbar-nav {
    gap: 0.25rem;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    font-size: var(--text-base);
    padding: 0.625rem 1.5rem!important;
    border-radius: var(--btn-radius);
    transition: all var(--transition-base);
    position: relative;
    letter-spacing: 0.01em;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 2rem);
    height: 2px;
    background: var(--accent-color);
    transition: transform var(--transition-base);
    border-radius: 2px;
}

/* For dropdown toggles, use ::before for underline (Bootstrap uses ::after for arrow) */
/* .nav-link.dropdown-toggle::before {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 2rem);
    height: 2px;
    background: var(--accent-color);
    transition: transform var(--transition-base);
    border-radius: 2px;
} */

.nav-link:hover {
    color: var(--text-primary) !important;
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}
.dropdown-toggle::after{
    
    top: 2px;
    position: relative;
    left: 5px;
}
/* Underline animation on hover for dropdown toggles using ::before */
/* .nav-link.dropdown-toggle:hover::before {
    transform: translateX(-50%) scaleX(1);
} */

.nav-link.active {
    color: var(--text-primary) !important;
    background-color: rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Underline animation for active dropdown toggles using ::before */
.nav-link.dropdown-toggle.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* Cart Icon - Dark on Light */
.cart-icon-link {
    position: relative;
    padding: 0.625rem;
    color: var(--text-primary) !important;
    border-radius: var(--btn-radius);
    transition: all var(--transition-base);
}

.cart-icon-link:hover {
    color: var(--text-primary) !important;
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.cart-count-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: linear-gradient(135deg, var(--color-accent-orange) 0%, var(--color-accent-orange-light) 100%);
    color: var(--color-white);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(238, 86, 34, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

/* User Dropdown - Dark on Light */
.user-dropdown-toggle {
    padding: 0.625rem;
    color: var(--text-primary) !important;
    border-radius: var(--btn-radius);
    transition: all var(--transition-base);
}

.user-dropdown-toggle:hover {
    color: var(--text-primary) !important;
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 220px;
    background: var(--bg-primary);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all var(--transition-base);
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: rgba(68, 53, 91, 0.08);
    color: var(--color-primary);
    transform: translateX(2px);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.dropdown-item:hover svg {
    opacity: 1;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color-light);
    margin: 0.5rem 0;
}

/* Mobile Menu Toggle - Dark on Light */
.navbar-toggler {
    border: 1px solid var(--border-color);
    border-radius: var(--btn-radius);
    padding: 0.5rem 0.75rem;
    transition: all var(--transition-base);
    color: var(--text-primary);
}

.navbar-toggler:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: var(--border-color);
}

.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%2826, 36, 51, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Menu - Premium Offcanvas */
.offcanvas {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure offcanvas doesn't take space when closed - Bootstrap handles visibility */
.offcanvas:not(.show) {
    visibility: hidden;
}

/* When menu is closed via class, ensure normal scroll */
body:not(.offcanvas-open) {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding-right: 0 !important;
}

.offcanvas-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-title {
    font-weight: 600;
    color: var(--color-dark-text);
    font-size: 1.125rem;
}

.offcanvas-body {
    padding: 0;
}

/* Premium Mobile Menu Styling - Dark Theme */
.mobile-menu-premium {
    background: var(--bg-dark);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    height: 100vh !important;
    max-height: 100vh !important;
}

.mobile-menu-premium .offcanvas-header {
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 1.5rem;
    margin: 0;
}

.mobile-menu-premium .offcanvas-title {
    color: var(--color-white) !important;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}

/* Close Button - Light Color */
.mobile-menu-premium .btn-close,
.mobile-menu-premium .btn-close-premium {
    opacity: 0.8;
    filter: invert(1) grayscale(100%) brightness(200%);
    transition: all var(--transition-base);
    padding: 0.5rem;
    border-radius: 0.375rem;
}

.mobile-menu-premium .btn-close:hover,
.mobile-menu-premium .btn-close-premium:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    filter: invert(1) grayscale(100%) brightness(200%);
}

.mobile-nav-premium {
    padding: 0.5rem;
    margin: 0;
}

.mobile-nav-premium .nav-item {
    margin-bottom: 0;
}

.mobile-nav-premium .nav-link {
    padding: 0.875rem 1rem;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--color-dark-text-muted) !important;
    border-radius: 0.5rem;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.25rem;
    width: 100%;
}

.mobile-nav-premium .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-accent-orange) 0%, var(--color-accent-gold) 100%);
    transform: scaleY(0);
    transition: transform var(--transition-base);
    border-radius: 0 4px 4px 0;
}

.mobile-nav-premium .nav-link:hover,
.mobile-nav-premium .nav-link.active {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: var(--color-white) !important;
    padding-left: 1.25rem;
}

.mobile-nav-premium .nav-link:hover::before,
.mobile-nav-premium .nav-link.active::before {
    transform: scaleY(1);
}

.mobile-nav-premium .nav-link.active {
    font-weight: 600;
    color: var(--color-white) !important;
}

.mobile-nav-premium .badge {
    margin-left: auto;
    background: linear-gradient(135deg, var(--color-accent-orange) 0%, var(--color-accent-gold) 100%) !important;
    color: var(--color-white) !important;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Ensure all text in mobile menu is light colored */
.mobile-menu-premium,
.mobile-menu-premium * {
    color: var(--color-dark-text) !important;
}

.mobile-menu-premium .text-muted,
.mobile-menu-premium .text-secondary {
    color: var(--color-dark-text-muted) !important;
    }
    
/* Search form and inputs in mobile menu */
.mobile-menu-premium input,
.mobile-menu-premium textarea,
.mobile-menu-premium select {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white) !important;
    }

.mobile-menu-premium input::placeholder,
.mobile-menu-premium textarea::placeholder {
    color: var(--color-dark-text-muted) !important;
    opacity: 0.7;
}

.mobile-menu-premium input:focus,
.mobile-menu-premium textarea:focus,
.mobile-menu-premium select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--color-accent-orange);
    color: var(--color-white) !important;
    box-shadow: 0 0 0 0.2rem rgba(238, 86, 34, 0.25);
}

/* Mobile Menu Responsive Enhancements */
@media (max-width: 991px) {
    .mobile-menu-premium .offcanvas-body {
        padding: 0;
    }
    
    .mobile-nav-premium {
        padding: 0.5rem;
    }
}

/* ==========================================================================
   Footer - Premium Dark Design
   ========================================================================== */

.site-footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* margin-top: 6rem; */
    color: var(--color-dark-text);
}

.site-footer .container {
    max-width: 1400px;
}

.footer-main {
    padding: 5rem 0 3rem;
}

@media (max-width: 991px) {
    .footer-main {
        padding: 4rem 0 2.5rem;
    }
}

@media (max-width: 767px) {
    .footer-main {
        padding: 3rem 0 2rem;
    }
}

.footer-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--color-dark-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--color-white);
    text-decoration: none;
    transform: translateX(4px);
    padding-left: 4px;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    margin-right: 0;
    transition: all var(--transition-base);
    transform: translateX(-8px);
    color: var(--color-accent-orange);
}

.footer-links a:hover::before {
    opacity: 1;
    margin-right: 0.5rem;
    transform: translateX(0);
}

.footer-text {
    color: var(--color-dark-text-muted) !important;
}

.footer-tagline {
    color: var(--color-accent-orange) !important;
}

.footer-contact-item {
    margin-bottom: 0.875rem;
}

.footer-contact-icon {
    width: 18px;
    height: 18px;
    color: var(--color-accent-orange);
    flex-shrink: 0;
    opacity: 0.9;
}

.footer-contact-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-dark-text-muted) !important;
    transition: all var(--transition-base);
}

.footer-contact-text:hover {
    color: var(--color-white) !important;
}

.footer-contact a.footer-contact-text {
    text-decoration: none;
}

.footer-contact a.footer-contact-text:hover {
    color: var(--color-accent-orange) !important;
}

.footer-toll-free-badge,
.footer-fax-badge {
    font-size: 0.75rem;
    color: var(--color-dark-text-muted);
    opacity: 0.7;
    font-style: italic;
}

.footer-contact p {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-dark-text) !important;
}

.footer-contact p:last-child {
    margin-bottom: 0;
}

.footer-contact .footer-company-name,
.footer-contact p strong,
.footer-contact .fw-semibold {
    color: var(--color-white) !important;
}

/* Override Bootstrap text classes in footer */
.site-footer .text-secondary,
.site-footer .text-muted,
.site-footer .text-primary {
    color: var(--color-dark-text-muted) !important;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-dark-text-muted);
    margin: 0;
    font-weight: 500;
}

.footer-credits {
    font-size: 0.8125rem;
    color: var(--color-dark-text-muted);
    margin: 0;
    font-style: italic;
    opacity: 0.8;
}

.footer-web-design {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-web-design-text {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--color-dark-text-muted);
    opacity: 0.7;
}

.footer-web-design-link {
    color: var(--color-dark-text-muted);
    text-decoration: none;
    transition: all var(--transition-base);
    opacity: 0.7;
}

.footer-web-design-link:hover {
    color: var(--color-white);
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-credits {
        font-size: 0.75rem;
    }
    
    .footer-web-design {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .footer-web-design-text {
        font-size: 0.75rem;
    }
    
    .footer-main .row {
        --bs-gutter-y: 2rem;
    }
}

/* ==========================================================================
   Bootstrap Overrides - Premium
   ========================================================================== */

.btn-primary {
    background: var(--color-accent-orange);
    border: none;
    color: var(--color-white);
    font-weight: 600;
    padding: var(--btn-padding);
    border-radius: var(--btn-radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-xs);
}

/* Button Outlined Style (for Login/View Catalog) */
.btn-outline-light {
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    background: transparent;
    padding: var(--btn-padding);
    border-radius: var(--btn-radius);
    font-weight: 600;
    transition: all var(--transition-base);
}

.btn-outline-light:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ==========================================================================
   Product Card - Advanced & Premium (Global Component)
   ========================================================================== */

.product-card-advanced {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-card-wrapper {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.product-card-wrapper:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--color-accent-orange);
    transform: translateY(-4px);
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: #f9fafb;
}

.btn-product-favorite {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 15;
    color: #6b7280;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0;
    line-height: 1;
}

.product-card-stock-badge {
    z-index: 12;
}

.product-card-sale-badge {
    z-index: 12;
}

.btn-product-favorite:hover:not(.loading):not(:disabled) {
    background: var(--color-white);
    border-color: var(--color-accent-orange);
    color: var(--color-accent-orange);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(238, 86, 34, 0.3);
}

.btn-product-favorite.active {
    background: var(--color-accent-orange);
    border-color: var(--color-accent-orange);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(238, 86, 34, 0.4);
}

.btn-product-favorite.active:hover:not(.loading):not(:disabled) {
    background: var(--color-accent-orange-dark);
    border-color: var(--color-accent-orange-dark);
    color: var(--color-white);
    transform: scale(1.15);
}

.btn-product-favorite.loading {
    cursor: wait;
    opacity: 0.7;
    pointer-events: none;
}

.btn-product-favorite.loading svg {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.95);
    }
}

.btn-product-favorite:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-product-favorite svg {
    width: 22px;
    height: 22px;
    transition: all var(--transition-base);
}

.btn-product-favorite:hover svg {
    transform: scale(1.1);
}

.product-card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-card-overlay {
    display: none;
}

.product-card-view-btn {
    display: none;
}

.product-card-featured-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 12;
    background: #fbbf24;
    color: #1f2937;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

.product-card-stock-badge,
.product-card-sale-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 12;
}

.product-card-sale-badge {
    background: var(--color-accent-orange);
    color: var(--color-white);
    box-shadow: 0 2px 4px rgba(245, 130, 32, 0.3);
}

.product-card-stock-out {
    background: rgba(107, 114, 128, 0.95);
    color: var(--color-white);
    backdrop-filter: blur(8px);
}

.product-card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.product-card-category {
    font-size: 0.75rem;
    color: var(--color-accent-orange-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #e6700d38;
    display: inline-block;
    width: auto;
    max-width: max-content;
    padding: 0px 15px;
    border-radius: 24px;
}

.product-card-sku {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    flex: 1;
}

.product-card-title-link {
    color: #1f2937;
    text-decoration: none;
    transition: color var(--transition-base);
}

.product-card-title-link:hover {
    color: var(--color-accent-orange);
    text-decoration: none;
}

.product-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent-orange);
    margin-bottom: 1rem;
}

.product-card-price del {
    font-size: 0.875rem;
    font-weight: 500;
    color: #9ca3af;
    margin-right: 0.5rem;
}

.product-card-price ins {
    text-decoration: none;
    color: var(--color-accent-orange);
}

.product-card-min-order {
    font-size:9px;
    color: #6b7280;
    margin-bottom: 1rem;
    font-weight: 500;
}

.product-card-actions {
    margin-top: auto;
}

.btn-product-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-product-card-add {
    background: var(--color-accent-orange);
    color: var(--color-white);
    box-shadow: 0 2px 4px rgba(245, 130, 32, 0.2);
}

.btn-product-card-add:hover {
    background: #e0731a;
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 130, 32, 0.3);
}

.btn-product-card-add.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-product-card-add.loading .btn-text {
    opacity: 0;
}

.btn-product-card-add.loading .btn-loading {
    display: block !important;
    position: absolute;
}

.btn-product-card-view {
    background: transparent;
    color: #1f2937;
    border: 1px solid #d1d5db;
}

.btn-product-card-view:hover {
    background: #1f2937;
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #1f2937;
}

.btn-loading .spinner {
    animation: spin 0.8s linear infinite;
}

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

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

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ==========================================================================
   Section Titles & Subtitles (Global Component)
   ========================================================================== */

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent-orange) 100%);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.text-start .section-title::after,
.section-title.text-start::after {
    left: 0;
    transform: none;
}

.section-title .highlight {
    color: var(--color-accent-orange);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.7;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
}

    .section-title::after {
        width: 50px;
        height: 3px;
        bottom: -0.5rem;
    }
    
    .section-subtitle {
        font-size: 1.0625rem;
    }
}

/* ==========================================================================
   Reviews/Testimonials Section - Premium Modern Design
   ========================================================================== */

.homepage-reviews-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.reviews-header {
    margin-bottom: 4rem;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .reviews-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.review-item {
    perspective: 1000px;
}

.review-card-modern {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 2px solid var(--border-color-light);
    border-radius: 1.5rem;
    padding: 1rem;
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.review-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent-orange) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.review-card-modern:hover {
    box-shadow: 0 12px 40px rgba(68, 53, 91, 0.15);
    border-color: var(--color-primary);
    transform: translateY(-8px);
    background: var(--bg-primary);
}

.review-card-modern:hover::before {
    transform: scaleX(1);
}

.review-quote-icon {
    position: absolute;
    top: 0rem;
    right: 0.5rem;
    color: var(--color-primary);
    opacity: 0.1;
    width: 55px;
    height: 55px;
    transition: all var(--transition-base);
}

.review-card-modern:hover .review-quote-icon {
    opacity: 0.15;
    transform: scale(1.1) rotate(5deg);
}

.review-content-wrapper {
    flex: 1;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.review-stars-modern {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--color-accent-gold);
    justify-content: flex-start;
}

.review-stars-modern svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(236, 167, 44, 0.2));
}

.review-text-modern {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-primary);
    margin: 0;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.review-text-modern::before,
.review-text-modern::after {
    content: '';
}

.review-author-section {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color-light);
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.review-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(68, 53, 91, 0.2);
}

.review-author-initial {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.review-author-details {
    flex: 1;
}

.review-author-name-modern {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.review-author-company-modern {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 768px) {
    .reviews-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .review-card-modern {
        padding: 2.5rem 2rem;
    }
    
    .review-text-modern {
        font-size: 1.125rem;
    }
    
    .review-quote-icon {
        width: 60px;
        height: 60px;
        top: 1.5rem;
        right: 2rem;
    }
    
    .review-stars-modern svg {
        width: 24px;
        height: 24px;
    }
}

/* ==========================================================================
   Admin Styles
   ========================================================================== */

.order_data_column {
    clear: both;
    float: none;
    width: 100%;
    margin-top: 1.25rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
}

.product-unavailable {
    background: rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   AJAX Search Results Dropdown
   ========================================================================== */

.homepage-search-wrapper,
.shop-search-wrapper,
.hero-member-search-wrapper {
    position: relative;
    z-index: 1030;
    overflow: visible;
}

.hero-member-search-wrapper {
    overflow: visible !important;
}

.ajax-search-results {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 2px solid var(--border-color-light);
    border-radius: 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    max-height: 600px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
}

.hero-member-search-wrapper .ajax-search-results {
    z-index: 9999;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color-light);
    background: var(--bg-secondary);
}

.results-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.results-count strong {
    color: var(--color-primary);
    font-weight: 700;
}

.total-count {
    color: var(--text-muted);
    font-weight: 400;
}

.view-all-link {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-base);
}

.view-all-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.search-results-list {
    padding: 0.5rem;
}

.search-result-item {
    display: block;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: background-color var(--transition-base);
    margin-bottom: 0.5rem;
}

.search-result-item:last-child {
    margin-bottom: 0;
}

.search-result-item:hover {
    background: var(--bg-secondary);
}

.result-link {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.result-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color-light);
}

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

.result-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-sku {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

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

.result-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.result-stock.in-stock {
    color: var(--color-success);
}

.result-stock.out-of-stock {
    color: var(--text-muted);
}

.stock-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.result-stock.in-stock .stock-indicator {
    background: var(--color-success);
}

.result-stock.out-of-stock .stock-indicator {
    background: var(--text-muted);
}

.search-no-results {
    padding: 2rem 1.5rem;
    text-align: center;
}
body.search-no-results{
    text-align: left;
}
.no-results-icon {
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.no-results-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.browse-shop-link {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-base);
}

.browse-shop-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.search-loading {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color-light);
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1031;
    display: none;
    white-space: nowrap;
}

.search-loading .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color-light);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   Header Search Icon & Modal
   ========================================================================== */

/* Search Icon in Navigation - Hidden on desktop when inline search is available */
.search-icon-nav {
    display: flex;
    align-items: center;
}

/* Hide desktop search icon when inline search is available in utility bar */
@media (min-width: 768px) {
    .search-icon-nav {
        display: none !important;
    }
}
.modal{
    background: #000000d9;
    padding: 0 !important;
}
.search-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--text-primary);
    transition: color var(--transition-base);
    text-decoration: none;
}

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

.search-icon-link svg {
    width: 24px;
    height: 24px;
}

/* Header Search Modal - Minimal & Clean - Matching Homepage Design */
.header-search-modal-content {
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 0;
    background: transparent;
    max-width: 800px;
}

.header-search-modal-content .modal-body {
    padding: 2rem;
    background: transparent;
}

.header-search-wrapper {
    position: relative;
    overflow: visible;
    width: 100%;
}

/* Search Input Wrapper - Large & Prominent with Orange Border */
.header-search-input-wrapper {
    /* background: #ffffff;
    border: 2px solid var(--color-accent-orange, #f58220);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem; */
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 15px 0px;
    border-bottom: 2px solid var(--color-accent-orange-dark, #e6700d);
    /* box-shadow: 0 8px 30px rgba(245, 130, 32, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%; */
}

.header-search-input-wrapper:hover,
.header-search-input-wrapper:focus-within {
    border-bottom: 2px solid var(--color-accent-orange-dark, #e6700d);
    /* box-shadow: 0 12px 40px rgba(245, 130, 32, 0.3); */
    /* transform: translateY(-2px); */
}

.header-search-icon {
    color: var(--color-accent-orange, #f58220);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.header-search-field {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 1.0625rem;
    color: var(--color-dark-text);
    font-weight: 500;
}

.header-search-field::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.header-search-submit-btn {
    background: var(--color-accent-orange, #f58220);
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.5rem;
    min-width: 48px;
    height: 48px;
}

.header-search-submit-btn:hover {
    background: var(--color-accent-orange-dark, #e6700d);
    transform: translateX(4px) scale(1.05);
}

.header-search-submit-btn svg {
    width: 20px;
    height: 20px;
}

/* Modal Search Results */
.header-modal-search-results {
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid var(--border-color-light, #e2e8f0);
    border-radius: 1rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1055;
    margin-top: 0.5rem;
}

.header-modal-search-loading {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.5rem;
    background: #ffffff;
    border: 2px solid var(--border-color-light, #e2e8f0);
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1056;
    white-space: nowrap;
    margin-top: 0.5rem;
}

/* Inline Search Results - Positioned below search bar in utility bar */
.header-inline-search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1030;
    margin-top: 0.25rem;
}

.header-inline-search-loading {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.25rem;
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1031;
    white-space: nowrap;
    margin-top: 0.25rem;
}

/* Ensure search wrapper has relative positioning for dropdown */
.header-search-inline {
    position: relative;
}

/* Modal backdrop adjustment - Dark backdrop */
#headerSearchModal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

#headerSearchModal .modal-dialog {
    margin: 0 auto;
}

/* Close button styling for dark backdrop */
#headerSearchModal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

#headerSearchModal .btn-close-white:hover {
    opacity: 1;
}

/* ==========================================================================
   Hide "View cart" links
   ========================================================================== */

/* Hide WooCommerce "View cart" links after add to cart */
a.wc-forward,
.woocommerce-message a.wc-forward,
.woocommerce-info a.wc-forward {
    display: none !important;
}

/* Hide any "View cart" text links in WooCommerce notices */
.woocommerce-message:has(a[href*="cart"]),
.woocommerce-info:has(a[href*="cart"]) {
    position: relative;
}

.woocommerce-message a[href*="cart"],
.woocommerce-info a[href*="cart"] {
    display: none !important;
}

/* Products Loading Indicator */
.products-loading {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
    color: var(--color-accent-orange, #f58220);
}

/* Smooth transitions for filter changes */
#products-container {
    transition: opacity 0.3s ease;
}

#products-container.hidden {
    opacity: 0;
}

/* Collapsible Category Filter Styles */
.category-parent-group {
    margin-bottom: 0.5rem;
}

.category-parent-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    user-select: none;
    transition: all 0.2s ease;
    font-weight: 600;
    color: var(--text-primary, #1a2433);
    border-bottom: 1px solid transparent;
}

.category-parent-header.active {
    border-bottom-color: var(--color-accent-orange, #f58220);
}

.category-toggle-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
}

.category-toggle-icon:hover {
    background-color: rgba(245, 130, 32, 0.1);
}

.category-parent-name-link {
    flex: 1;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.category-parent-name-link:hover {
    color: var(--color-accent-orange, #f58220);
}

.category-parent-header.active .category-parent-name-link {
    color: var(--color-accent-orange, #f58220);
}

.category-toggle-icon svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.category-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 1.5rem;
}

.category-children.expanded {
    max-height: 2000px;
    padding-top: 0.5rem;
}

.category-child-label {
    display: block;
    margin-bottom: 0.5rem;
    padding-left: 0;
}