/* Intercom Store - Premium Design */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Premium Color Palette */
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Neutrals */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Functional Colors */
    --bg: #ffffff;
    --text: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ===== HEADER ===== */
.header {
    background: var(--bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: var(--space-xs) 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary);
    transition: width 0.2s ease;
}

.nav a:hover:after,
.nav a.active:after {
    width: 100%;
}

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

.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--primary);
    color: white !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cart-icon:after {
    display: none !important;
}

.cart-icon:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    border-radius: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.language-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.language-selector a {
    color: white;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 4px;
    transition: background 0.2s ease;
    font-size: 13px;
    font-weight: 500;
}

.language-selector a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.language-selector a.active {
    background: rgba(255, 255, 255, 0.25);
}

/* Mobile language selector fix */
@media (max-width: 480px) {
    .language-selector {
        gap: 4px;
    }

    .language-selector a {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* ===== SEARCH FORM ===== */
.search-form {
    display: flex;
    gap: 0;
}

.search-input {
    padding: 6px 12px;
    border: none;
    border-radius: 6px 0 0 6px;
    outline: none;
    font-size: 14px;
    width: 200px;
    transition: width 0.3s ease;
}

.search-input:focus {
    width: 250px;
}

.search-button {
    padding: 6px 12px;
    border: none;
    border-radius: 0 6px 6px 0;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-button:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    /* Smaller header-main on mobile */
    .header-main {
        padding: 10px 0;
    }

    .logo {
        font-size: 18px;
    }

    /* Hide header-top when scrolling down */
    .header.header-scrolled .header-top {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        padding: 4px;
    }

    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-md);
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        z-index: 10000;
        align-items: flex-start;
    }

    .nav.mobile-open {
        right: 0;
    }

    .nav a {
        width: 100%;
        padding: 12px 0;
        font-size: 18px;
    }

    .cart-icon {
        width: 100%;
        justify-content: center;
    }

    .search-input {
        width: 150px;
    }

    .search-input:focus {
        width: 180px;
    }

    /* Hide shipping promise and phone on mobile */
    .shipping-promise,
    .header-top a[href^="tel"] {
        display: none !important;
    }

    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }

    .container,
    .container-wide {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Product images smaller on mobile */
    .product-detail-image {
        max-height: 300px !important;
    }

    .product-detail-image img {
        max-height: 300px !important;
    }
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--space-md) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.5px;
}

.hero p {
    font-size: clamp(14px, 1.5vw, 16px);
    margin-bottom: 0;
    opacity: 0.9;
}

/* ===== USP BANNER ===== */
.usp-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    background: var(--gray-900);
    padding: var(--space-lg) 0;
}

.usp-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0 var(--space-md);
}

.usp-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.usp-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.usp-text strong {
    color: white;
    font-size: 15px;
    font-weight: 600;
}

.usp-text span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 1fr;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
}

@media (max-width: 1600px) {
    .product-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Product List View */
.list-view-controls {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    align-items: center;
}

.product-list-view {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-bottom: var(--space-lg);
    background: var(--border);
}

.product-list-header {
    background: var(--gray-800);
    color: white;
    display: grid;
    grid-template-columns: 100px 120px 1fr 180px 200px 80px;
    gap: 20px;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-list-item {
    background: white;
    display: grid;
    grid-template-columns: 100px 120px 1fr 180px 200px 80px;
    gap: 20px;
    padding: 15px 20px;
    align-items: center;
    transition: background-color 0.2s ease;
}

.product-list-item:hover {
    background: var(--gray-50);
}

.product-list-image {
    width: 100px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.product-list-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-list-code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--secondary);
    font-weight: 600;
}

.product-list-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

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

.product-list-price {
    text-align: right;
    font-size: 16px;
}

.product-list-stock {
    text-align: center;
    font-size: 13px;
}

.product-list-action {
    text-align: center;
}

@media (max-width: 1024px) {
    .product-list-header,
    .product-list-item {
        grid-template-columns: 80px 100px 1fr 140px 150px 70px;
        gap: 15px;
        padding: 12px 15px;
    }

    .product-list-image {
        width: 80px;
    }
}

@media (max-width: 768px) {
    .list-view-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .list-view-controls input,
    .list-view-controls select {
        max-width: 100% !important;
    }

    .product-list-header {
        grid-template-columns: 60px 1fr 100px 60px;
        gap: 10px;
        padding: 10px 12px;
        font-size: 11px;
    }

    .product-list-header div:nth-child(2),
    .product-list-header div:nth-child(4) {
        display: none;
    }

    .product-list-item {
        grid-template-columns: 60px 1fr 100px 60px;
        gap: 10px;
        padding: 10px 12px;
    }

    .product-list-image {
        width: 60px;
    }

    .product-list-code,
    .product-list-price {
        display: none;
    }

    .product-list-stock {
        font-size: 11px;
    }
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s ease;
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
}

.product-image-link {
    display: block;
    text-decoration: none;
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    background: white;
    position: relative;
    overflow: hidden;
    padding: 8px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: none;
}

.product-info {
    padding: var(--space-sm);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info .btn {
    margin-top: auto !important;
}

.product-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-800);
    line-height: 1.3;
    min-height: 36px;
}

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

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.product-price-vat {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.product-price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 13px;
    margin-right: 6px;
}

.second-hand-badge {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    margin-top: 4px;
}

.stock-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    margin-top: 4px;
}

.stock-badge.in-stock {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.stock-badge.at-supplier {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.stock-badge.incoming {
    background: #fed7aa;
    color: #c2410c;
    border: 1px solid #fdba74;
}

.stock-badge.out-of-stock {
    background: var(--gray-100);
    color: var(--danger);
    border: 1px solid var(--gray-300);
}

.stock-badge.delivery-time {
    background: var(--gray-100);
    color: var(--success);
    border: 1px solid var(--gray-300);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 6px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-900);
}

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

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

.btn-success:hover {
    background: #047857;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

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

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

.btn-danger:hover {
    background: #b91c1c;
}

.btn-info {
    background: #0ea5e9;
    color: white;
}

.btn-info:hover {
    background: #0284c7;
}

.btn-block {
    width: 100%;
}

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

/* ===== CART & CHECKOUT ===== */
.cart-item, .product-detail {
    background: white;
    border-radius: 12px;
    padding: var(--space-lg);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-md);
}

/* Compact Cart Layout */
.cart-item-compact {
    display: grid;
    grid-template-columns: 60px 1fr auto auto auto auto;
    gap: var(--space-md);
    align-items: center;
    background: white;
    padding: var(--space-sm);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: var(--space-sm);
}

.cart-item-image-small {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--gray-50);
    padding: 4px;
}

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

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

.cart-item-name-compact {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.badge-used {
    background: var(--gray-200);
    color: var(--gray-700);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 8px;
}

.cart-item-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.cart-item-backorder {
    font-size: 11px;
    color: var(--warning);
    margin-top: 2px;
}

.cart-item-quantity {
    min-width: 100px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--gray-100);
    border-color: var(--primary);
}

.qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.qty-input-direct {
    width: 50px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px;
    font-size: 14px;
    font-weight: 600;
}

.qty-input-direct:focus {
    outline: none;
    border-color: var(--primary);
}

.quantity-fixed {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-item-price-compact {
    min-width: 80px;
    text-align: right;
}

.price-old-compact {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-current {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}

.price-vat-compact {
    font-size: 9px;
    color: var(--text-muted);
}

.cart-item-total-compact {
    min-width: 90px;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
}

.cart-item-remove {
    min-width: 40px;
    text-align: center;
}

.btn-remove-compact {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

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

.cart-summary {
    background: white;
    border-radius: 12px;
    padding: var(--space-lg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
}

.summary-row.total {
    font-size: 24px;
    font-weight: 700;
    border-top: 2px solid var(--border);
    border-bottom: none;
    margin-top: var(--space-sm);
}

/* ===== PAGE TITLE ===== */
.page-title {
    background: white;
    padding: var(--space-lg) 0;
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.page-title h1 {
    font-size: 36px;
    font-weight: 700;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.9);
    margin-top: var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-tagline {
    font-weight: 600;
    color: white !important;
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 14px;
}

.footer-phone,
.footer-email,
.footer-link {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-phone:hover,
.footer-email:hover,
.footer-link:hover {
    color: white;
}

.footer-bottom {
    padding: var(--space-lg) 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-credit {
    margin-top: 4px;
    font-size: 13px;
}

/* ===== ALERTS ===== */
.alert {
    padding: var(--space-md);
    border-radius: 8px;
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification.toast-hide {
    opacity: 0;
    transform: translateX(400px);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-weight: 500;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
}

.toast-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-success .toast-close {
    color: #065f46;
}

.toast-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-error .toast-close {
    color: #991b1b;
}

.toast-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-warning .toast-close {
    color: #92400e;
}

.toast-info {
    background: #dbeafe;
    color: #1e3a8a;
    border-left: 4px solid #3b82f6;
}

.toast-info .toast-icon {
    color: #3b82f6;
}

.toast-info .toast-close {
    color: #1e3a8a;
}

@media (max-width: 768px) {
    .toast-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }

    .toast-notification.toast-show {
        transform: translateY(0);
    }

    .toast-notification {
        transform: translateY(-100px);
    }

    .toast-notification.toast-hide {
        transform: translateY(-100px);
    }
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: var(--space-md);
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .usp-banner {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    /* Mobile: Cart Page */
    .cart-container-grid {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .cart-summary-wrapper {
        order: 2 !important;
        margin-top: 20px !important;
    }

    .cart-items-wrapper {
        order: 1 !important;
    }

    .cart-item-compact {
        grid-template-columns: 50px 1fr;
        gap: var(--space-sm);
        padding: var(--space-sm);
    }

    .cart-item-image-small {
        width: 50px;
        height: 50px;
    }

    .cart-item-quantity,
    .cart-item-price-compact,
    .cart-item-total-compact,
    .cart-item-remove {
        grid-column: 2;
        min-width: auto;
        margin-top: 8px;
        text-align: left;
    }

    .quantity-controls {
        flex-wrap: wrap;
    }

    .btn-remove-compact {
        width: 100%;
        margin-top: 8px;
    }

    /* Mobile: Checkout Page */
    .checkout-container-grid {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .checkout-form-wrapper {
        order: 1 !important;
    }

    .checkout-summary-wrapper {
        order: 2 !important;
        margin-top: 20px !important;
    }

    .checkout-form,
    .checkout-summary {
        width: 100% !important;
    }

    .checkout-summary {
        position: static;
        margin-top: 0;
    }

    /* Mobile: Product Page */
    .product-detail {
        padding: var(--space-md);
    }

    .product-detail-grid,
    .product-page-grid {
        grid-template-columns: 1fr !important;
        display: block !important;
    }

    .product-page-grid > div {
        margin-bottom: var(--space-md);
    }

    .product-image-large {
        max-width: 100%;
        margin-bottom: var(--space-md);
    }

    /* Mobile: Navigation */
    .nav {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: stretch;
    }

    .cart-icon {
        width: 100%;
        text-align: center;
    }

    /* Mobile: General */
    .container,
    .container-wide {
        padding: 0 var(--space-sm);
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }
}

/* ===== SHOP LAYOUT & SIDEBAR ===== */
.shop-layout {
    display: flex;
    gap: 30px;
    padding-top: 30px;
}

.shop-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 140px;
    align-self: flex-start;
    /* No max-height - sidebar can be as tall as needed */
}

.shop-sidebar-inner {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Mobile sidebar toggle button */
.sidebar-toggle-btn {
    display: none;
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 15px;
    text-align: left;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sidebar-toggle-btn .toggle-icon {
    transition: transform 0.3s ease;
}

.sidebar-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

/* Dropdown fixes - prevent scroll in scroll */
.dropdown-filter {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.dropdown-item {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-item.active {
    background: #e3f2fd;
    font-weight: 600;
}

/* Mobile sidebar styles */
@media (max-width: 1024px) {
    .shop-layout {
        flex-direction: column;
        gap: 20px;
        padding-top: 20px;
    }

    .shop-sidebar {
        width: 100%;
        position: static;
    }

    .sidebar-toggle-btn {
        display: flex;
    }

    .shop-sidebar-inner {
        padding: 15px;
        display: none;
    }

    .shop-sidebar-inner.mobile-open {
        display: block;
    }

    /* Make filters horizontal on tablet/mobile */
    .filter-section {
        margin-bottom: 15px;
    }

    /* Dropdown menus on mobile - full width and better positioned */
    .dropdown-menu {
        max-height: calc(100vh - 250px);
    }
}

@media (max-width: 768px) {
    .shop-layout {
        padding-top: 15px;
    }

    .shop-sidebar-inner {
        padding: 12px;
    }

    .filter-section label {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }

    /* Stack view mode buttons better */
    .filter-section .btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Dropdown toggle buttons */
    .dropdown-toggle {
        padding: 8px 12px !important;
        font-size: 13px;
    }

    /* Dropdown items */
    .dropdown-item {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ===== UTILITIES ===== */
.no-products {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
    background: white;
    border-radius: 12px;
    margin: var(--space-xl) 0;
}
