/* Modern Clean CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --max-width: 1400px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Header Styles */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.header-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.header-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
}

.header-links a:hover {
    opacity: 0.8;
}

.header-main {
    padding: 1rem 0;
}

.header-main-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.logo-image {
    max-width: 250px;
    height: auto;
}

.xmas-greeting {
    font-size: 1.1rem;
    font-weight: 600;
    color: #c41e3a;
    font-style: italic;
    margin-top: -0.25rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.search-area {
    max-width: 600px;
}

.search-form {
    position: relative;
}

.search-input-group {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s;
}

.search-input-group:focus-within {
    border-color: var(--primary-color);
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.search-button:hover {
    background: var(--primary-dark);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cart-button {
    position: relative;
    background: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
    font-weight: 500;
}

.cart-button:hover {
    background: #059669;
}

.cart-button .glyphicon {
    background: white;
    color: var(--secondary-color);
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
}

.cart-badge {
    background: white;
    color: var(--secondary-color);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Navigation - Hamburger Menu Style */
.main-nav {
    background: var(--primary-dark);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.nav-buttons-container {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-extra-buttons {
    display: flex;
    align-items: center;
    gap: 0;
}

.hamburger-button,
.nav-button {
    background: transparent;
    border: none;
    color: white;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
    font-weight: 500;
}

.hamburger-button:hover,
.nav-button:hover {
    background: var(--primary-color);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger-icon span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    transition: all 0.3s;
}

.nav-arrow-down {
    font-size: 0.7rem;
}

.nav-dropdown-wrapper {
    position: relative;
}

.nav-extra-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 1100;
}

.nav-extra-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-extra-dropdown a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.nav-extra-dropdown a:last-child {
    border-bottom: none;
}

.nav-extra-dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Main Navigation Panel */
.nav-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    background: white;
    box-shadow: 2px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.nav-panel.active {
    transform: translateX(0);
}

.nav-panel-header {
    background: var(--primary-dark);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-panel-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.nav-close-button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

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

.nav-item {
    border-bottom: 1px solid var(--border-color);
}

.nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 1rem;
    text-transform: capitalize;
}

.nav-link:hover {
    background: var(--bg-light);
}

.nav-link.active {
    background: var(--bg-light);
    color: var(--primary-color);
    font-weight: 600;
}

.nav-arrow {
    font-size: 1.25rem;
    color: var(--text-medium);
}

/* Submenu Panel */
.nav-dropdown {
    position: fixed;
    top: 0;
    left: 320px;
    bottom: 0;
    width: auto;
    min-width: 400px;
    max-width: 600px;
    background: white;
    box-shadow: 2px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 2001;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s;
    column-count: 2;
    column-gap: 0;
}

.nav-dropdown.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.nav-dropdown-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 10;
    column-span: all;
}

.nav-back-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-dropdown-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.nav-dropdown a {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    break-inside: avoid;
    page-break-inside: avoid;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Main Layout */
.main-content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 0 0 2rem 0;
}

/* Sidebar */
.sidebar {
    height: fit-content;
}

.sidebar-section {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.25rem;
}

.sidebar-menu a {
    display: block;
    padding: 0.375rem 0.5rem;
    color: var(--text-medium);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-size: 0.875rem;
    line-height: 1.4;
}

.sidebar-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 0.75rem;
}

.sidebar-menu .active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* Hero Slider */
.hero-slider {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    min-height: 400px;
}

.hero-slide {
    padding: 0 3rem;
    height: 100%;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.95);
    line-height: 1.5;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    display: inline-block;
    margin-bottom: 0.5rem;
    backdrop-filter: blur(10px);
}

.hero-badge.ai {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.hero-badge span {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.hero-text {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.hero-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: none;
}

.hero-button.ai {
    background: rgba(59, 130, 246, 1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
}

.hero-button.white {
    background: white;
    color: #0052cc;
}

.hero-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important;
}

/* Product Grid */
.product-category {
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.product-category:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Alternating category styles */
.product-category:nth-child(odd) {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-left: 4px solid var(--primary-color);
}

.product-category:nth-child(even) {
    background: linear-gradient(135deg, #fefefe 0%, #f1f5f9 100%);
    border-left: 4px solid var(--secondary-color);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.2);
    position: relative;
    overflow: hidden;
}

.product-category:nth-child(even) .category-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.category-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.category-title::before {
    content: '📦';
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.product-category:nth-child(2) .category-title::before { content: '💻'; }
.product-category:nth-child(3) .category-title::before { content: '🖨️'; }
.product-category:nth-child(4) .category-title::before { content: '📱'; }
.product-category:nth-child(5) .category-title::before { content: '🔌'; }
.product-category:nth-child(6) .category-title::before { content: '⚙️'; }
.product-category:nth-child(7) .category-title::before { content: '🖥️'; }
.product-category:nth-child(8) .category-title::before { content: '📡'; }

.category-link {
    color: white;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-link:hover {
    background: white;
    color: var(--primary-color);
    transform: translateX(5px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-category:nth-child(even) .category-link:hover {
    color: var(--secondary-color);
}

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

.product-card {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

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

.product-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #78350f;
    padding: 0.375rem 0.75rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0.75rem;
    border-top-left-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
    z-index: 10;
    border: 1px solid #f59e0b;
    border-top: none;
    border-left: none;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 1.8em;
    display: block;
    max-width: 85%;
    line-height: 1.4;
    transition: height ease 1s, background ease 0.3s;
}

.product-badge:hover {
    height: 5em;
    background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
    transition: height ease 1s, background ease 0.3s;
}


.product-image-wrapper {
    position: relative;
    padding: 2rem;
    background: var(--bg-light);
    text-align: center;
}

.product-image {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
}

.product-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.4;
    flex: 1;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

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

.product-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: auto;
}

.price-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--danger-color);
}

.price-vat {
    font-size: 0.875rem;
    color: var(--text-medium);
}

/* Footer */
.site-footer {
    background: var(--text-dark);
    color: white;
    margin-top: 4rem;
}

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

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

.footer-section h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Utility Classes */
.hidden {
    display: none;
}

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Icon Styles */
.icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    vertical-align: middle;
}

/* Mobile Adjustments */
.mobile-menu-toggle {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .header-main-content {
        grid-template-columns: 1fr auto;
        gap: 1rem;
    }
    
    .logo-container {
        grid-column: 1;
        grid-row: 1;
    }
    
    .header-actions {
        grid-column: 2;
        grid-row: 1;
    }
    
    .search-area {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 768px) {
    /* Compact header for mobile */
    .site-header {
        position: relative;
    }
    
    .header-top {
        padding: 0.375rem 0;
        font-size: 0.75rem;
    }
    
    .header-top-content {
        gap: 0.5rem;
    }
    
    .header-links {
        font-size: 0.75rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .header-links span:not(.glyphicon) {
        display: none;
    }
    
    .header-main {
        padding: 0.5rem 0;
    }
    
    .header-main-content {
        grid-template-columns: 1fr auto;
        gap: 0.75rem;
        align-items: center;
    }
    
    .logo-container {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }
    
    .header-actions {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
    }
    
    .search-area {
        grid-column: 1 / -1;
        grid-row: 2;
        min-width: 0;
    }
    
    /* Compact logo area */
    .logo-container {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 0.75rem;
        min-width: 0;
        overflow: hidden;
    }
    
    .xmas-greeting {
        grid-column: 1 / -1;
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
        font-size: 0.95rem;
    }
    
    .logo-image {
        max-width: 150px;
        max-height: 35px;
        width: auto;
        height: auto;
    }
    
    /* Hide Trustpilot on mobile to save space */
    .trustpilot-widget {
        display: none;
    }
    
    /* Compact search */
    .search-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .search-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Hide Brexit notice text on mobile */
    .search-area > div {
        display: none;
    }
    
    /* Compact cart button */
    .header-actions {
        justify-content: flex-end;
        flex-shrink: 0;
    }
    
    .cart-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    .cart-button span:not(.glyphicon):not(.cart-badge) {
        display: none;
    }
    
    .cart-count {
        font-size: 0.75rem;
        min-width: 1.25rem;
        height: 1.25rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-slider {
        min-height: 330px;
    }
    
    .hero-slide {
        padding: 1.5rem 2rem;
    }
    
    /* Make logo shrink to prevent cart overflow */
    .logo-container {
        min-width: 0;
        flex-shrink: 1;
    }
    
    .logo-image {
        max-width: 100%;
        width: auto;
        height: auto;
    }
    
    /* Make category headers smaller on mobile */
    .category-header {
        padding: 1rem;
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
    
    .category-header h2 {
        font-size: 1.25rem;
    }
    
    /* Make View All button smaller on mobile */
    .category-link {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
    
    /* Mobile "All Products" panel takes full width */
    .nav-panel {
        width: 100%;
        max-width: 100vw;
    }
    
    /* Mobile submenus slide from right as overlay */
    .nav-dropdown {
        left: 0;
        width: 100%;
        max-width: 100vw;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out, opacity 0.2s, visibility 0.2s;
    }
    
    .nav-dropdown.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* Add back button for mobile submenus */
    .nav-dropdown-header {
        padding: 1rem;
        justify-content: flex-start;
    }
    
    .nav-dropdown-header::before {
        content: '← ';
        font-size: 1.2rem;
        margin-right: 0.5rem;
        cursor: pointer;
    }
    
    /* Single column for mobile submenus */
    .nav-dropdown {
        column-count: 1;
    }
    
    .nav-dropdown a {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }
    
    /* Mobile-specific navigation changes for extra menus */
    .nav-buttons-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .hamburger-button {
        width: auto;
        justify-content: flex-start;
        padding: 1rem;
        border-bottom: none;
    }
    
    .nav-extra-buttons {
        flex-direction: column;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-button {
        width: 100%;
        justify-content: space-between;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-dropdown-wrapper {
        width: 100%;
    }
    
    .nav-extra-dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        background: rgba(0, 0, 0, 0.1);
    }
    
    .nav-extra-dropdown.active {
        max-height: 500px;
    }
    
    .nav-extra-dropdown a {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-extra-dropdown a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-slider {
        min-height: 330px;
    }
    
    .hero-slide {
        padding: 1.5rem 1rem;
    }
    
    .hero-badge {
        padding: 0.3rem 0.7rem;
        margin-bottom: 0.3rem;
        font-size: 0.7rem;
    }
    
    .hero-badge span {
        font-size: 0.7rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 0.3rem;
    }
    
    .hero-text {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem;
    }
    
    .hero-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Hero Slider Styles */
.slider {
    margin-bottom: 2rem;
    position: relative;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

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

/* Glyphicon compatibility */
.glyphicon {
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
}

.glyphicon-user:before { content: "👤"; font-family: sans-serif; }
.glyphicon-shopping-cart:before { content: "🛒"; font-family: sans-serif; }
.glyphicon-envelope:before { content: "✉"; font-family: sans-serif; }
.glyphicon-log-out:before { content: "🚪"; font-family: sans-serif; }
.glyphicon-search:before { content: "🔍"; font-family: sans-serif; }
.glyphicon-phone-alt:before { content: "📞"; font-family: sans-serif; }

/* Additional layout helpers */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col {
    flex: 1;
    padding: 0 0.5rem;
}

/* Price and Badge Styling */
.badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--radius-sm);
}

.price {
    color: var(--danger-color);
    font-weight: 600;
}

/* Trustpilot widget spacing */
.trustpilot-widget {
    margin: 0;
}

/* Alert Boxes */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

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

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

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

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
}

.btn-secondary {
    color: white;
    background-color: #6b7280;
    border-color: #6b7280;
}

.btn-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
}

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

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

.btn-warning {
    color: #000;
    background-color: var(--warning-color);
    border-color: var(--warning-color);
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
}

/* Popup Panels */
.popup-panel {
    max-width: 500px;
    padding: 20px;
    background-color: #FFFFFF;
    border: 1px solid #d2d2d2;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #333;
    line-height: 1.6;
}

.popup-panel-small {
    max-width: 400px;
}

.popup-panel-medium {
    max-width: 450px;
}

.popup-panel-header {
    font-size: 11pt;
    color: #6699FF;
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
}

.popup-panel-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.popup-panel-icon {
    width: 60px;
    height: auto;
    flex-shrink: 0;
}

.popup-panel-text {
    flex: 1;
}

.popup-panel-footer {
    text-align: center;
    margin-top: 20px;
}

.popup-panel small {
    color: #666;
}

.popup-panel .form-input {
    width: 100%;
    max-width: 350px;
    padding: 8px;
    border: 1px solid #d2d2d2;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Search Results Popup */
.search-results-popup {
    width: 80vw;
    max-height: 100vh;
    border: 1px #6699FF solid;
    background-color: #FFFFFF;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 10px;
}

.search-results-header {
    text-align: center;
    font-size: 8pt;
    color: blue;
    cursor: pointer;
    padding: 8px;
    margin: 0 0 10px 0;
}

.search-results-section-header {
    border-top: 1px #6699FF solid;
    color: #6699FF;
    font-size: 10pt;
    padding-top: 10px;
    margin: 10px 0;
}

.search-results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.search-result-card {
    flex: 0 0 calc(20% - 8px);
    min-width: 160px;
    max-width: 200px;
    text-align: center;
    border: 1px solid #d2d2d2;
    border-radius: 4px;
    padding: 10px;
    transition: all 0.2s;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    display: block;
}

.search-result-card:hover {
    background-color: #d7ddfa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-result-card img {
    max-height: 100px;
    width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.search-result-price {
    color: #e42f2f;
    font-weight: bold;
}

.search-result-vat-price {
    font-size: 90%;
    color: #333;
}

.search-result-title {
    margin: 6px 0;
    font-size: 85%;
    line-height: 1.3;
    color: #333;
    font-weight: normal;
}

.search-result-category {
    color: #666;
    font-size: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 6px;
}

/* Message Boxes for notifications and alerts */
.message-box {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    border-left: 4px solid;
    background-color: #f5f5f5;
    line-height: 1.6;
}

.message-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 110%;
}

.message-box p {
    margin: 8px 0 0 0;
}

.success-box {
    background-color: #dff0d8;
    border-left-color: #3c763d;
    color: #3c763d;
}

.warning-box {
    background-color: #fcf8e3;
    border-left-color: #8a6d3b;
    color: #8a6d3b;
}

.error-box {
    background-color: #f2dede;
    border-left-color: #a94442;
    color: #a94442;
}

.info-box {
    background-color: #d9edf7;
    border-left-color: #31708f;
    color: #31708f;
}

/* Page layout for checkout and account pages */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.content-wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-title {
    color: #333;
    font-size: 28px;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #6699FF;
}

/* Simple Modal Dialog */
.simple-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.simple-modal.show {
    display: block;
}

.modal-dialog {
    background-color: #ffffff;
    margin: 50px auto;
    padding: 0;
    border-radius: 8px;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e5e5e5;
    background-color: #f8f8f8;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 15px 30px;
    border-top: 1px solid #e5e5e5;
    background-color: #f8f8f8;
    border-radius: 0 0 8px 8px;
    text-align: right;
}

/* Form validation classes for JavaScript validation */
.form-group {
    margin-bottom: 20px;
}

.form-group.has-error label {
    color: #a94442;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #a94442 !important;
    background-color: #fff5f5;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.form-group.has-error input:focus,
.form-group.has-error select:focus,
.form-group.has-error textarea:focus {
    border-color: #843534 !important;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
}

.error-block {
    color: #a94442;
    font-size: 0.875rem;
    display: block;
    margin-top: 5px;
    font-weight: 500;
}

/* Product Details List */
.product-details-list {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin: 1rem 0;
}

.detail-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row:hover {
    background: #f3f4f6;
}

.detail-label {
    font-weight: 600;
    color: #4b5563;
    font-size: 0.875rem;
}

.detail-value {
    color: #111827;
    font-size: 0.875rem;
    word-break: break-all;
}

@media (max-width: 768px) {
    .detail-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .detail-label {
        font-size: 0.8125rem;
    }
    
    .detail-value {
        font-size: 0.8125rem;
        padding-left: 0;
    }
}

/* Manufacturer Code Badge */
.manufacturer-code {
    font-size: 0.95rem;
    margin: 0.375rem 0 0 0;
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
}

.manufacturer-code .code-label {
    color: var(--text-medium);
    font-weight: 500;
}

.manufacturer-code .code-value {
    color: var(--primary-color);
    font-weight: 700;
}
