/* ============================================
   PREMIUM MINIMALIST DESIGN - 2024
   Lightweight | Clean | Modern
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors - Ultra Clean Palette */
    --primary: #000000;
    --secondary: #666666;
    --accent: #0066FF;
    --color-accent-terracotta: #D2691E;
    --border: #E5E5E5;
    --bg: #FFFFFF;
    --bg-subtle: #FAFAFA;
    --text: #000000;
    --text-light: #666666;
    --text-lighter: #999999;
    
    /* Spacing - 8px base */
    --s1: 0.25rem;
    --s2: 0.5rem;
    --s3: 0.75rem;
    --s4: 1rem;
    --s6: 1.5rem;
    --s8: 2rem;
    --s12: 3rem;
    --s16: 4rem;
    --s24: 6rem;
    
    /* Typography */
    --font: 'Inter', -apple-system, system-ui, sans-serif;
    
    /* Effects */
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
    --radius: 12px;
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { color: var(--text-light); }

a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition);
}

a:hover { opacity: 0.7; }

/* Container */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--s6);
    overflow-x: hidden;
}

/* Header - Ultra Clean */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    width: 100%;
    overflow-x: hidden;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: var(--s2);
    font-weight: 600;
    font-size: 18px;
}

.logo svg {
    width: 28px;
    height: 28px;
}

.main-nav ul {
    display: flex;
    gap: var(--s8);
    list-style: none;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
}

.main-nav a:hover {
    color: var(--text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--s4);
}

.header-actions button,
.header-actions a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: none;
    transition: background var(--transition);
    position: relative;
}

.header-actions button:hover,
.header-actions a:hover {
    background: var(--bg-subtle);
}

.wishlist-count,
.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Buttons - Minimal & Clean */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    padding: 0 var(--s6);
    height: 44px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-subtle);
    color: var(--text);
}

.btn-secondary:hover {
    background: #F0F0F0;
}

/* Hero - Clean & Spacious */
.hero-section {
    padding: var(--s24) 0 var(--s16);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s16);
    align-items: start;
}

.hero-subtitle {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-lighter);
    margin-bottom: var(--s4);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: var(--s6);
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-light);
    max-width: 480px;
    margin-bottom: var(--s8);
}

/* Spotlight Cards - Minimal */
.hero-spotlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s6);
}

.spotlight-card {
    background: var(--bg-subtle);
    border-radius: var(--radius);
    padding: var(--s8);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition);
}

.spotlight-card:hover {
    transform: translateY(-4px);
}

.spotlight-number {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-lighter);
    margin-bottom: var(--s3);
}

.spotlight-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--s3);
}

.spotlight-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: auto;
}

.spotlight-image {
    width: 100%;
    margin-top: var(--s6);
    border-radius: 8px;
}

/* Products Grid - Clean Cards */
.products-header {
    padding: var(--s16) 0 var(--s8);
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--s6);
    padding: var(--s8) 0 var(--s16);
}

.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.product-card > div:first-child {
    position: relative;
    background: var(--bg-subtle);
}

.product-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.wishlist-btn {
    position: absolute;
    top: var(--s3);
    right: var(--s3);
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.wishlist-btn:hover {
    background: var(--bg-subtle);
    transform: scale(1.05);
}

.product-info {
    padding: var(--s4);
}

.product-category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-lighter);
    margin-bottom: var(--s2);
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--s3);
    line-height: 1.3;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--s4);
}

.add-to-cart-btn {
    width: 100%;
}

/* Footer - Minimal */
.site-footer {
    border-top: 1px solid var(--border);
    padding: var(--s16) 0 var(--s8);
    margin-top: var(--s24);
    width: 100%;
    overflow-x: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--s12);
    margin-bottom: var(--s8);
}

.footer-social {
    display: flex;
    gap: var(--s3);
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.social-link:hover svg {
    stroke: white;
}

.footer-bottom {
    padding-top: var(--s8);
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--text-lighter);
}

/* Forms - Clean */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0 var(--s4);
    height: 44px;
    font-family: var(--font);
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    transition: border-color var(--transition);
}

textarea {
    padding: var(--s3) var(--s4);
    height: auto;
    min-height: 100px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
}

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: var(--s2);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--s4);
    }
    
    .main-nav { display: none; }
    
    .hero-grid,
    .hero-spotlights,
    .footer-content {
        grid-template-columns: 1fr !important;
    }
    
    .products-grid {
        grid-template-columns: 1fr !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-section {
        padding: var(--s12) 0 var(--s8);
    }
    
    .spotlight-card {
        padding: var(--s6);
        min-height: 300px;
    }
    
    .product-image {
        height: 250px;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: var(--s6);
    }
    
    /* Footer responsive */
    .site-footer > .container > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Contact page responsive */
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Forms full width */
    input, textarea, select, .btn {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Utilities */
.text-center { text-align: center; }
.mb-4 { margin-bottom: var(--s4); }
.mb-8 { margin-bottom: var(--s8); }
.mt-8 { margin-top: var(--s8); }


/* Category Filter */
.category-filter {
    display: flex;
    gap: var(--s3);
    justify-content: center;
    flex-wrap: wrap;
    margin: var(--s8) 0;
}

.filter-btn {
    padding: var(--s2) var(--s6);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    transition: all var(--transition);
    cursor: pointer;
}

.filter-btn:hover {
    background: var(--bg-subtle);
    border-color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: var(--s12);
    margin-top: var(--s12);
}

.badge {
    text-align: left;
}

.badge-number {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    display: block;
    margin-bottom: var(--s2);
}

.badge-days {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-lighter);
    display: block;
    margin-bottom: var(--s2);
}

.badge-label {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.4;
    max-width: 150px;
}

/* Video */
.hero-video {
    position: relative;
    margin-top: var(--s8);
    border-radius: var(--radius);
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 16px solid var(--primary);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 4px;
}

/* Spotlight Card Backgrounds */
.spotlight-card.bg-concrete {
    background: #F5F5F5;
}

.spotlight-card.bg-terracotta {
    background: #C19A82;
    color: white;
}

.spotlight-card.bg-terracotta .spotlight-number,
.spotlight-card.bg-terracotta .spotlight-title {
    color: white;
}

.spotlight-card.bg-terracotta .spotlight-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Account & Orders Pages */
.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--s12);
    padding: var(--s12) 0;
}

.account-sidebar {
    position: sticky;
    top: 80px;
}

.account-profile {
    background: var(--bg-subtle);
    border-radius: var(--radius);
    padding: var(--s8);
    text-align: center;
    margin-bottom: var(--s6);
}

.account-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--s4);
    font-size: 2rem;
    font-weight: 600;
    color: white;
}

.account-nav {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.account-nav-link {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: var(--s4) var(--s5);
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    border-bottom: 1px solid var(--border);
}

.account-nav-link:last-child {
    border-bottom: none;
}

.account-nav-link:hover {
    background: var(--bg-subtle);
    color: var(--text);
}

.account-nav-link.active {
    background: var(--primary);
    color: white;
}

.account-content {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--s8);
}

/* Order Cards */
.order-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: var(--s6);
    margin-bottom: var(--s6);
    transition: all var(--transition);
}

.order-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.order-status {
    display: inline-block;
    padding: var(--s2) var(--s3);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.pending { background: #FEF3C7; color: #92400E; }
.order-status.processing { background: #DBEAFE; color: #1E40AF; }
.order-status.shipped { background: #D1FAE5; color: #065F46; }
.order-status.delivered { background: #D1FAE5; color: #065F46; }
.order-status.cancelled { background: #FEE2E2; color: #991B1B; }

/* Checkout */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--s12);
    padding: var(--s12) 0;
}

.order-summary {
    position: sticky;
    top: 80px;
    background: var(--bg-subtle);
    border-radius: var(--radius);
    padding: var(--s6);
    height: fit-content;
}

/* Alerts */
.alert {
    padding: var(--s4) var(--s6);
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: var(--s6);
    border-left: 4px solid;
}

.alert-success {
    background: #ECFDF5;
    border-color: #10B981;
    color: #065F46;
}

.alert-error {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #991B1B;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: var(--s16) 0;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--s6);
    opacity: 0.3;
}

.empty-state h2 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: var(--s4);
}

.empty-state p {
    color: var(--text-lighter);
    margin-bottom: var(--s8);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .checkout-grid,
    .account-layout {
        grid-template-columns: 1fr;
    }
    
    .order-summary,
    .account-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .trust-badges {
        flex-direction: column;
        gap: var(--s8);
    }
    
    .category-filter {
        gap: var(--s2);
    }
    
    .filter-btn {
        padding: var(--s2) var(--s4);
        font-size: 12px;
    }
}


/* ============================================
   COMPREHENSIVE RESPONSIVE FIXES
   ============================================ */

/* Prevent horizontal scroll globally */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Container fixes */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Ensure all pages have proper margins */
main {
    width: 100%;
    overflow-x: hidden;
}

/* Global margin fixes for all content */
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* Fix for pages without proper container structure */
main > div:not(.container),
main > section:not(.hero-section):not(.site-footer) {
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    /* Container padding */
    .container {
        padding: 0 1rem !important;
    }
    
    /* All main content gets proper margins */
    main > div:not(.container),
    main > section:not(.hero-section):not(.site-footer) {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Specific content areas */
    .page-content,
    .content-wrapper,
    .main-content,
    .auth-form,
    .form-wrapper {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        width: 100%;
        box-sizing: border-box;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Header responsive fixes */
.site-header {
    width: 100%;
    overflow-x: hidden;
}

.header-content {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

/* Footer responsive fixes */
.site-footer {
    width: 100%;
    overflow-x: hidden;
}

.footer-grid {
    width: 100%;
}

/* Image responsive fixes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Grid responsive fixes */
.products-grid,
.hero-grid,
.hero-spotlights {
    width: 100%;
}

/* Form responsive fixes */
input, textarea, select {
    max-width: 100%;
    box-sizing: border-box;
}

/* Button responsive fixes */
.btn {
    box-sizing: border-box;
    max-width: 100%;
}

/* Mobile First Responsive Design */
@media (max-width: 767px) {
    /* Container padding */
    .container {
        padding: 0 1rem;
    }
    
    /* Header */
    .header-content {
        height: 56px;
        gap: 0.5rem;
    }
    
    .logo {
        flex-shrink: 0;
    }
    
    .logo svg {
        width: 24px;
        height: 24px;
    }
    
    .logo a {
        font-size: 14px;
    }
    
    .header-actions {
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .header-actions button,
    .header-actions a {
        width: 32px;
        height: 32px;
    }
    
    /* Hide desktop navigation */
    .main-nav {
        display: none;
    }
    
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex !important;
    }
    
    /* Hero section */
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-spotlights {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .spotlight-card {
        padding: 1.5rem;
        min-height: 300px;
    }
    
    .spotlight-number {
        font-size: 2rem;
    }
    
    .spotlight-title {
        font-size: 1.125rem;
    }
    
    .spotlight-description {
        font-size: 0.9rem;
    }
    
    /* Products */
    .products-header {
        padding: 2rem 0 1.5rem;
    }
    
    .products-header h1 {
        font-size: 2rem !important;
    }
    
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .product-image {
        height: 250px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.25rem;
    }
    
    /* Category filter */
    .category-filter {
        gap: 0.5rem;
        margin: 1.5rem 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Trust badges */
    .trust-badges {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .badge {
        text-align: center;
    }
    
    .badge-number {
        font-size: 2.5rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 2rem 0 1.5rem !important;
    }
    
    .footer-bottom {
        padding: 1.5rem 0 !important;
        font-size: 0.8rem;
    }
    
    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Forms */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.875rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Search bar */
    #searchBar {
        padding: 1rem 0;
    }
    
    #searchBar form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    #searchBar input,
    #searchBar button {
        width: 100%;
    }
    
    /* Tables */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile menu */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        z-index: 999;
        padding: 1.5rem;
        overflow-y: auto;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .mobile-menu nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-menu nav li {
        margin-bottom: 1rem;
    }
    
    .mobile-menu nav a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        font-weight: 500;
        border-radius: 8px;
        transition: background 0.2s;
        border-bottom: 1px solid var(--border);
    }
    
    .mobile-menu nav a:hover {
        background: var(--bg-subtle);
    }
}

/* Small mobile */
@media (max-width: 479px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .products-header h1 {
        font-size: 1.75rem !important;
    }
    
    .spotlight-card {
        padding: 1rem;
        min-height: 250px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .header-actions button,
    .header-actions a {
        width: 28px;
        height: 28px;
    }
    
    .header-actions svg {
        width: 16px;
        height: 16px;
    }
    
    .logo svg {
        width: 20px;
        height: 20px;
    }
    
    .logo a {
        font-size: 12px;
    }
}

/* Tablet landscape */
@media (min-width: 768px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .hero-spotlights {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large desktop */
@media (min-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .container {
        max-width: 1280px;
    }
}

/* Ensure no element causes overflow */
* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix for specific elements that might overflow */
pre, code {
    overflow-x: auto;
    max-width: 100%;
}

svg {
    max-width: 100%;
    height: auto;
}

/* Touch-friendly improvements for mobile */
@media (max-width: 767px) {
    /* Ensure tap targets are at least 44px */
    a, button, input[type="submit"], input[type="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve touch scrolling */
    .category-filter,
    .mobile-menu {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent text size adjustment */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
}

/* ============================================
   BANNER SYSTEM - CENTERED TEXT WITH CUSTOM COLORS
   ============================================ */
.banner-container {
    text-align: center !important;
    width: 100%;
    position: relative;
}

.simple-banner {
    padding: 0.75rem 3rem 0.75rem 1rem; /* Extra right padding for close button */
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    display: block;
    position: relative;
}

.simple-banner:last-child {
    border-bottom: none;
}

.banner-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    position: relative;
}

.simple-banner a.banner-link {
    color: inherit !important;
    text-decoration: none;
    display: block;
    transition: opacity 0.2s;
    text-align: center !important;
    flex: 1;
    margin: 0;
    padding: 0;
}

.simple-banner a.banner-link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.simple-banner span {
    display: block;
    text-align: center !important;
    flex: 1;
    margin: 0;
    padding: 0;
}

.banner-close {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    font-size: 18px !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.7 !important;
    transition: opacity 0.2s !important;
    z-index: 10 !important;
}

.banner-close:hover {
    opacity: 1 !important;
}

/* Responsive banner adjustments */
@media (max-width: 768px) {
    .simple-banner {
        padding: 0.5rem 2.5rem 0.5rem 0.75rem;
        font-size: 0.85rem;
        text-align: center !important;
    }
    
    .banner-close {
        right: 8px !important;
        font-size: 16px !important;
        width: 18px !important;
        height: 18px !important;
    }
    
    .simple-banner a.banner-link,
    .simple-banner span {
        text-align: center !important;
    }
}