/* ==========================================================================
   InkBoomer Responsive CSS - Light Theme
   Mobile-First Approach with Comprehensive Fixes
   ========================================================================== */

/* ==========================================================================
   Base Mobile Styles (Default - Under 480px)
   ========================================================================== */

.container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

/* Header Mobile */
.main-nav {
    height: 64px;
}

.nav-brand .brand-text {
    font-size: var(--text-lg);
}

/* Desktop menu hidden on mobile */
.desktop-menu {
    display: none;
}

/* Mobile menu toggle visible */
.mobile-only {
    display: flex;
}

/* ==========================================================================
   HERO SECTION - Mobile Fixes
   ========================================================================== */

.hero-section {
    min-height: auto;
    padding: var(--space-8) 0 var(--space-6);
    overflow: visible;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.hero-text {
    order: 2;
    text-align: center;
}

.hero-image-wrapper {
    order: 1;
    max-height: 300px;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    line-height: 0.95;
}

.hero-accent {
    font-size: clamp(2rem, 8vw, 3rem);
}

.hero-description {
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
}

/* Hero Slider Navigation - Fixed Position */
.hero-navigation {
    position: relative;
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-4);
    padding: var(--space-4) 0;
}

.hero-nav-btn {
    width: 48px;
    height: 48px;
    position: static;
    transform: none;
}

.hero-dots {
    position: relative;
    bottom: auto;
    margin-top: var(--space-4);
}

/* ==========================================================================
   MOBILE MENU - Fixes
   ========================================================================== */

.mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    z-index: 999;
    padding: var(--space-6);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.mobile-menu .nav-links li {
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu .nav-links a {
    display: block;
    padding: var(--space-4) 0;
    font-size: var(--text-lg);
    font-weight: 600;
}

/* Mobile Dropdown */
.mobile-menu .sub-menu {
    padding-left: var(--space-6);
    background: var(--color-surface);
}

.mobile-menu .sub-menu a {
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--color-text-muted);
}

/* ==========================================================================
   CUSTOMIZE SECTION - Mobile Text Overflow Fix
   ========================================================================== */

.customize-section {
    padding: var(--space-12) 0;
    overflow: hidden;
}

.customize-section .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.customize-title {
    font-size: clamp(2rem, 8vw, 3rem) !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.customize-subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem);
    padding: 0 var(--space-2);
}

.customize-features {
    flex-direction: column;
    gap: var(--space-3);
}

.customize-feature {
    font-size: var(--text-sm);
    white-space: normal;
    text-align: center;
}

.customize-actions {
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
}

.customize-actions .btn {
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   FOOTER - Mobile Centered Stack
   ========================================================================== */

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    text-align: center;
}

.footer-brand {
    order: 1;
}

.footer-brand .footer-tagline {
    margin: var(--space-3) 0;
}

.footer-brand .social-links {
    justify-content: center;
    gap: var(--space-4);
}

.footer-column {
    order: 2;
}

.footer-column:nth-child(2) {
    order: 2;
}

.footer-column:nth-child(3) {
    order: 3;
}

.footer-heading {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.footer-links a {
    padding: var(--space-2) 0;
}

.footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

.footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* Section Titles */
.section-title {
    font-size: var(--text-3xl);
}

/* Grids */
.category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

/* Cards */
.category-card {
    aspect-ratio: 1;
    min-height: 150px;
}

.category-name {
    font-size: var(--text-lg);
}

.product-info {
    padding: var(--space-3);
}

.product-title {
    font-size: var(--text-sm);
}

.price-current {
    font-size: var(--text-base);
}

/* Newsletter */
.newsletter-title {
    font-size: var(--text-2xl);
}

.newsletter-form {
    flex-direction: column;
}

.newsletter-input,
.newsletter-submit {
    width: 100%;
}

/* ==========================================================================
   Small Mobile (480px+)
   ========================================================================== */

@media (min-width: 480px) {
    .hero-title {
        font-size: var(--text-5xl);
    }

    .category-name {
        font-size: var(--text-xl);
    }

    .product-title {
        font-size: var(--text-base);
    }

    .newsletter-form {
        flex-direction: row;
    }

    .newsletter-input {
        flex: 1;
    }

    .newsletter-submit {
        width: auto;
    }

    .customize-title {
        font-size: clamp(2.5rem, 10vw, 4rem) !important;
    }
}

/* ==========================================================================
   Tablet (768px+)
   ========================================================================== */

@media (min-width: 768px) {
    .container {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }

    /* Header */
    .main-nav {
        height: 72px;
    }

    .nav-brand .brand-text {
        font-size: var(--text-xl);
    }

    /* Hero */
    .hero-section {
        padding: var(--space-12) 0;
    }

    .hero-title {
        font-size: var(--text-6xl);
    }

    .hero-image-wrapper {
        max-height: 400px;
    }

    .hero-navigation {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        justify-content: space-between;
        padding: 0 var(--space-4);
        margin-top: 0;
    }

    .hero-nav-btn {
        position: static;
    }

    /* Grids */
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
    }

    /* Footer - 3 columns */
    .footer-grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        text-align: left;
    }

    .footer-brand .social-links {
        justify-content: flex-start;
    }

    .footer-links {
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Customize */
    .customize-title {
        font-size: var(--text-5xl) !important;
    }

    .customize-actions {
        flex-direction: row;
        width: auto;
    }

    .customize-actions .btn {
        width: auto;
    }
}

/* ==========================================================================
   Desktop (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {
    .container {
        padding-left: var(--space-8);
        padding-right: var(--space-8);
    }

    /* Header */
    .main-nav {
        height: 80px;
    }

    .nav-brand .brand-text {
        font-size: var(--text-2xl);
    }

    .desktop-menu {
        display: flex;
    }

    .mobile-only {
        display: none;
    }

    /* Hero */
    .hero-content {
        flex-direction: row;
        align-items: center;
    }

    .hero-text {
        order: 1;
        text-align: left;
        flex: 1;
    }

    .hero-image-wrapper {
        order: 2;
        max-height: none;
        flex: 1;
    }

    .hero-title {
        font-size: var(--text-7xl);
    }

    /* Grids */
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-5);
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-5);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

/* ==========================================================================
   Large Desktop (1440px+)
   ========================================================================== */

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 5rem;
    }

    .category-grid {
        gap: var(--space-6);
    }
}

/* ==========================================================================
   SHOP HERO - Unified Height
   ========================================================================== */

.shop-hero {
    min-height: 280px;
    max-height: 350px;
}

@media (min-width: 768px) {
    .shop-hero {
        min-height: 320px;
        max-height: 400px;
    }
}

@media (min-width: 1024px) {
    .shop-hero {
        min-height: 350px;
        max-height: 450px;
    }
}