/* ========================================
   EAKO FURNITURE — Premium Styles
   The Way to Smart Living
   ======================================== */

/* ========================================
   1. CSS Variables & Reset
   ======================================== */
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

:root {
    --color-primary: #2C1810;
    --color-primary-light: #4A2C20;
    --color-secondary: #8B7355;
    --color-accent: #C4956A;
    --color-background: #F8F6F3;
    --color-surface: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-muted: #6B6B6B;
    --color-border: #E5E3E0;
    --color-success: #2D7D46;
    --color-error: #B13A2A;
    --color-whatsapp: #25D366;
    
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Georgia', 'Playfair Display', serif;
    
    --container-width: 1200px;
    --container-padding: 20px;
    
    --transition-speed: 0.3s;
    --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

ul {
    list-style: none;
}

/* ========================================
   2. Container & Typography
   ======================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

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

.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-padding {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

/* ========================================
   3. Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-ease);
    text-align: center;
    text-decoration: none;
}

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

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

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

.btn-whatsapp:hover {
    background: #1DA851;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn-secondary {
    background: var(--color-border);
    color: var(--color-text);
}

.btn-secondary:hover {
    background: #d5d3d0;
    transform: translateY(-2px);
}

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

.btn-danger:hover {
    background: #8a2a1a;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ========================================
   4. Header
   ======================================== */

.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
    gap: 20px;
    padding: 0 20px;
    max-width: var(--container-width);
    margin-left: max(20px, calc((100vw - var(--container-width)) / 2 - 60px));
    margin-right: auto;
}

@media (max-width: 992px) {
    .header-inner {
        height: 75px;
        gap: 12px;
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 68px;
        gap: 10px;
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 60px;
        gap: 8px;
        padding: 0 10px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: auto;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    line-height: 0;
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    image-rendering: auto;
}

.logo-tagline {
    display: none !important;
}

@media (max-width: 768px) {
    .logo-image {
        height: 45px;
        max-width: 160px;
    }
}

/* Navigation */
.main-nav {
    display: none;
}

@media (min-width: 992px) {
    .main-nav {
        display: block;
    }

    .main-nav ul {
        display: flex;
        gap: 20px;
        align-items: center;
    }

    .main-nav a {
        position: relative;
        font-size: 0.85rem;
        font-weight: 500;
        white-space: nowrap;
        padding: 8px 4px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .main-nav a::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--color-accent);
        transition: width var(--transition-speed) var(--transition-ease);
    }

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

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

@media (min-width: 1200px) {
    .main-nav ul {
        gap: 28px;
    }
}

/* Between 992-1199px the nav's 11 items + full-size gap/padding can
   crowd header-actions against the right edge, squeezing the search
   input and cart icon. Tighten spacing in this band only. */
@media (min-width: 992px) and (max-width: 1199px) {
    .main-nav ul {
        gap: 10px;
    }

    .main-nav a {
        font-size: 0.78rem;
        padding: 8px 2px;
        letter-spacing: 0.02em;
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    margin-left: auto;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-background);
    border-radius: 8px;
    padding: 4px 8px;
    border: 1px solid var(--color-border);
    transition: all var(--transition-speed) var(--transition-ease);
}

.search-form:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.1);
}

.search-form input {
    width: 160px;
}

@media (max-width: 992px) {
    .search-form input {
        width: 120px;
    }
}

@media (max-width: 768px) {
    .search-form input {
        width: 80px;
        font-size: 0.85rem;
    }
    
    .main-nav {
        display: none;
    }
}

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

.search-form button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    color: var(--color-text-muted);
    transition: color var(--transition-speed);
}

.search-form button:hover {
    color: var(--color-primary);
}

.cart-link {
    position: relative;
    font-size: 1.25rem;
    color: var(--color-text);
    padding: 4px;
    transition: color var(--transition-speed);
}

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

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--color-accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--color-text);
    padding: 4px 8px;
    display: none;
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .search-form input {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .search-form input {
        width: 60px;
    }
}


/* Category Image Styles */
.category-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #f5f3f0;
}

.category-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-image-img {
    transform: scale(1.06);
}

/* Category cards on homepage */
.category-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border-color: #e5e3e0;
}


/* Mobile Menu */
.mobile-menu {
    display: none;
    background: var(--color-surface);
    padding: 16px 0;
    border-top: 1px solid var(--color-border);
    max-height: 80vh;
    overflow-y: auto;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu > ul > li {
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu > ul > li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-size: 0.95rem;
}

.mobile-menu a:hover {
    background: var(--color-background);
    color: var(--color-accent);
}

/* Category items in mobile */
.mobile-category-item {
    position: relative;
}

.mobile-category-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.mobile-category-toggle .toggle-icon {
    font-size: 1.2rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.mobile-category-toggle.active {
    color: var(--color-accent);
}

.mobile-submenu {
    display: none;
    padding-left: 16px !important;
    background: var(--color-background);
    margin: 0 !important;
}

.mobile-submenu li {
    border-bottom: none !important;
}

.mobile-submenu a {
    padding: 10px 16px !important;
    font-size: 0.88rem !important;
    font-weight: 400 !important;
    color: var(--color-text-muted) !important;
}

.mobile-submenu a:hover {
    background: var(--color-surface) !important;
    color: var(--color-text) !important;
}

@media (min-width: 992px) {
    .mobile-menu {
        display: none !important;
    }
}

/* ========================================
   5. Hero Section
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-surface) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 149, 106, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-inner {
    display: grid;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.hero-content h1 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-accent {
    color: var(--color-accent);
    display: inline-block;
    position: relative;
}

.hero-accent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-accent);
    opacity: 0.3;
}

.hero-description {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    max-width: 500px;
    margin-bottom: 2rem;
    color: var(--color-text-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-image {
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-border);
    aspect-ratio: 4/3;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}


/* Hero Slideshow Enhancements */
.hero-slideshow {
    position: relative;
    overflow: hidden;
    background: #f5f3f0;
}

.hero-slides {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    min-width: 100%;
    display: grid;
    gap: 40px;
    align-items: center;
    padding: 40px 0;
    position: relative;
}

@media (min-width: 992px) {
    .hero-slide {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        padding: 60px 0;
    }
}

.hero-slide .hero-content {
    padding: 20px 0;
    animation: fadeInUp 0.8s ease;
}

.hero-slide .hero-image {
    border-radius: 16px;
    overflow: hidden;
    background: #e5e3e0;
    aspect-ratio: 4/3;
    animation: fadeIn 0.8s ease;
}

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

/* Slide Indicators */
.hero-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.hero-indicator.active {
    background: var(--color-accent, #C4956A);
    border-color: var(--color-accent, #C4956A);
    width: 32px;
    border-radius: 6px;
}

/* Navigation Arrows */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44, 24, 16, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.hero-nav:hover {
    background: rgba(44, 24, 16, 0.9);
    transform: translateY(-50%) scale(1.05);
}

.hero-nav-prev {
    left: 20px;
}

.hero-nav-next {
    right: 20px;
}

@media (max-width: 768px) {
    .hero-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .hero-nav-prev { left: 10px; }
    .hero-nav-next { right: 10px; }
    .hero-indicator {
        width: 10px;
        height: 10px;
    }
    .hero-indicator.active {
        width: 24px;
    }
    .hero-slide {
        padding: 20px 0;
    }
}

/* Autoplay Progress Bar */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--color-accent, #C4956A);
    z-index: 10;
    transition: width 0.1s linear;
    width: 0%;
}

/* ========================================
   6. Category Showcase
   ======================================== */

.categories-section {
    background: var(--color-surface);
}

.category-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.category-card {
    background: var(--color-background);
    padding: 24px 16px;
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition-speed) var(--transition-ease);
    cursor: pointer;
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-border);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    display: block;
}

.category-card h3 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.category-card p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.category-link {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-accent);
    display: inline-block;
    margin-top: 8px;
}

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

/* ========================================
   7. Why Eako Section
   ======================================== */

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

.why-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.why-item {
    text-align: center;
    padding: 20px;
}

.why-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: block;
}

.why-item h3 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.why-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ========================================
   8. WhatsApp CTA
   ======================================== */

.whatsapp-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
}

.whatsapp-cta .cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.whatsapp-cta h2 {
    color: white;
}

.whatsapp-cta p {
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   9. Footer
   ======================================== */

.site-footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    margin-bottom: 8px;
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: 12px;
    margin: 12px 0;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-tagline {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-brand a {
    color: var(--color-accent);
}

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

.footer-grid h4 {
    color: white;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-grid ul li {
    margin-bottom: 8px;
}

.footer-grid a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition-speed);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-credit {
    color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   10. Animations
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animations */
.stagger > * {
    opacity: 0;
}

.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }

/* Loading spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Toast notification */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--color-primary);
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideUp 0.3s ease;
    font-weight: 500;
    max-width: 360px;
}

@media (max-width: 480px) {
    .toast-notification {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
        text-align: center;
    }
}

/* ========================================
   11. Accessibility
   ======================================== */

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Skip to content */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    font-weight: 600;
}

.skip-to-content:focus {
    top: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   12. Responsive Utilities
   ======================================== */

.hide-on-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-on-mobile {
        display: block;
    }
    .show-on-mobile {
        display: none;
    }
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }

/* ========================================
   13. Product Grid (shared)
   ======================================== */

.product-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.product-card {
    background: var(--color-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) var(--transition-ease);
}

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

.product-card a {
    text-decoration: none;
    color: var(--color-text);
    display: block;
}

.product-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-background);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-card h3 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 16px 4px;
}

.product-type {
    padding: 0 16px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.product-price {
    padding: 4px 16px 12px;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.product-description {
    padding: 0 16px 16px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

/* ========================================
   13b. Placeholder Image
   ======================================== */

.placeholder-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-background) 0%, #efece6 100%);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
    border-radius: inherit;
}

/* ========================================
   13c. Filters (product & category listing)
   ======================================== */

.filter-section {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: var(--color-primary);
    margin-right: 4px;
}

.filter-link {
    padding: 8px 18px;
    border-radius: 20px;
    background: var(--color-background);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all var(--transition-speed) var(--transition-ease);
}

.filter-link:hover {
    color: var(--color-primary);
    border-color: var(--color-border);
}

.filter-link.active {
    background: var(--color-primary);
    color: white;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 48px;
}

.page-link {
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-speed) var(--transition-ease);
}

.page-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.page-current {
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ========================================
   13d. Product Detail Page
   ======================================== */

.product-detail-grid {
    display: grid;
    gap: 40px;
    margin-top: 8px;
}

@media (min-width: 900px) {
    .product-detail-grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 56px;
    }
}

.product-gallery .main-image {
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-background);
    box-shadow: var(--shadow-sm);
}

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

.product-info h1 {
    margin-bottom: 6px;
}

.product-info .product-type {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.product-info .specifications,
.product-info .dimensions {
    background: var(--color-background);
    border-radius: 10px;
    padding: 20px 24px;
    margin: 20px 0;
}

.product-info .specifications h3,
.product-info .dimensions h3 {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.product-info .specifications ul,
.product-info .dimensions ul {
    display: grid;
    gap: 6px;
}

.product-info .specifications li,
.product-info .dimensions li {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.product-info .specifications li strong,
.product-info .dimensions li strong {
    color: var(--color-text);
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.product-actions .btn {
    flex: 1;
    min-width: 200px;
}

.related-products {
    margin-top: 80px;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 32px;
}

/* ========================================
   13e. About / static content pages
   ======================================== */

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    margin: 32px 0 12px;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-values {
    list-style: none;
    padding: 0;
}

.about-values li {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.about-values li:last-child {
    border-bottom: none;
}

.about-values strong {
    color: var(--color-primary);
}

.about-cta {
    margin-top: 40px;
    text-align: center;
}

/* ========================================
   13f. Contact page
   ======================================== */

.contact-methods {
    display: grid;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-cards {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.contact-card {
    text-align: center;
    padding: 28px 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) var(--transition-ease);
}

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

.contact-card .contact-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.contact-card h3 {
    margin-bottom: 4px;
}

.contact-showroom {
    background: var(--color-background);
    padding: 36px;
    border-radius: 16px;
    text-align: center;
}

.htmx-indicator {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    opacity: 1;
}

/* ========================================
   14. Error Pages
   ======================================== */

.error-page .hero-actions {
    justify-content: center;
}

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
}

.error-code {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.error-page h1 {
    margin: 16px 0 8px;
}

.error-page p {
    max-width: 500px;
    margin: 0 auto 24px;
}

/* ========================================
   15. Breadcrumbs
   ======================================== */

.breadcrumbs {
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.breadcrumbs a {
    color: var(--color-text);
    text-decoration: none;
}

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

.breadcrumbs span {
    margin: 0 8px;
}

/* ========================================
   16. Cart Page
   ======================================== */

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

.cart-empty .empty-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 16px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.cart-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--color-background);
    font-weight: 600;
    border-bottom: 2px solid var(--color-border);
}

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

.cart-table .product-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-table .product-name {
    font-weight: 600;
}

.cart-table .product-attributes {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.cart-table .product-attributes span {
    display: inline-block;
    background: var(--color-background);
    padding: 2px 10px;
    border-radius: 4px;
    margin: 2px 4px 2px 0;
}

.cart-table .quantity-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    text-align: center;
}

.cart-table .item-total {
    font-weight: 600;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--color-error);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px 8px;
    transition: color var(--transition-speed);
}

.remove-btn:hover {
    color: #8a2a1a;
}

.cart-summary {
    background: var(--color-background);
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 2px solid var(--color-border);
    margin-top: 12px;
    padding-top: 16px;
}

.total-row .total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.cart-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.cart-actions .btn {
    flex: 1;
    min-width: 160px;
}

/* Responsive cart table */
@media (max-width: 768px) {
    .cart-table {
        display: block;
        overflow-x: auto;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .cart-table .product-image {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .cart-actions .btn {
        flex: 1 1 100%;
    }
}

.item-count {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

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

.cart-table .product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--color-background);
}

.cart-table .item-notes {
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.notes-input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 40px;
}