/* ==========================================================================
   SONY STORE - RESPONSIVE STYLESHEET
   Mobile, Tablet, Laptop & Desktop Breakpoints
   Optimized for 320px, 375px, 390px, 414px, 430px & Desktop
   ========================================================================== */

/* Global Overflow Safety Guard */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Fluid Typography & Container Bounds */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.btn-google-auth {
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .btn-google-auth {
        padding: 12px 14px;
        font-size: 0.88rem;
    }
    .btn-google-auth svg {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
}

/* ==========================================================================
   Large Laptops & Desktops (1200px and down)
   ========================================================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-grid {
        gap: 40px;
    }
    .product-detail-grid {
        gap: 40px;
    }
    .interactive-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Laptops & Tablets (992px and down)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .why-grid, .interactive-why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .promise-stages-container {
        grid-template-columns: 1fr;
    }

    .founder-name-title {
        font-size: 2.8rem;
        letter-spacing: 4px;
    }

    .quote-text {
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   Mobile Devices & Small Tablets (768px and down)
   ========================================================================== */
@media (max-width: 768px) {
    .site-header {
        height: auto;
    }

    .header-inner {
        height: 75px;
        min-height: 75px;
        padding: 0 4px;
        gap: 8px;
    }

    .site-header.scrolled .header-inner {
        height: 65px;
        min-height: 65px;
    }

    .brand-logo {
        gap: 10px;
    }

    .logo-badge {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 1rem;
    }

    .brand-logo > div > div:first-child, .brand-name-text {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }

    .brand-sub {
        font-size: 0.58rem;
        letter-spacing: 2px;
        margin-top: 1px;
    }

    .header-actions {
        gap: 8px;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 0.9rem;
    }

    .site-header .main-nav {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background: rgba(9, 10, 15, 0.98);
        backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 30px 24px;
        gap: 18px;
        border-bottom: 1px solid var(--border-gold);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        box-shadow: 0 20px 40px rgba(0,0,0,0.9);
    }

    .site-header .main-nav.mobile-active {
        transform: translateY(0);
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: clamp(2rem, 7vw, 2.5rem);
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title, .watch-collection-heading {
        font-size: clamp(1.8rem, 6vw, 2.3rem);
        text-align: center;
    }

    .watch-collection-subtitle {
        font-size: 0.9rem;
        text-align: center;
        padding: 0 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-grid, .interactive-why-grid, .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .shop-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .search-filter-box {
        width: 100%;
    }

    .category-pills {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .cart-drawer {
        width: 100%;
        max-width: 100vw;
    }

    .btn-group-detail {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-grid > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-typography-card {
        padding: 36px 20px;
    }

    .founder-name-title {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
        letter-spacing: 2px;
        text-align: center;
    }

    .story-lead-text, .story-body-paragraph {
        font-size: 0.98rem;
        text-align: left;
    }

    .timeline-line {
        left: 16px;
    }

    .timeline-item {
        margin-left: 45px;
        padding: 20px 16px;
    }

    .timeline-node {
        left: -43px;
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
    }

    .testimonial-carousel-wrapper {
        padding: 0;
    }

    .carousel-btn {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .prev-btn { left: -5px; }
    .next-btn { right: -5px; }

    .testimonial-card {
        padding: 28px 16px;
    }

    .review-text {
        font-size: 0.98rem;
    }

    /* Order Progress Tracker Mobile Layout */
    .status-tracker {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 10px 0;
    }

    .status-line-back, .status-line-fill {
        display: none;
    }

    .status-step {
        display: flex;
        align-items: center;
        gap: 14px;
        width: 100%;
        text-align: left;
    }

    .step-circle {
        margin: 0;
        min-width: 32px;
    }

    .step-label {
        font-size: 0.85rem;
    }

    /* Checkout & Auth Cards */
    .auth-card, .checkout-card, .account-card, .settings-card {
        padding: 28px 18px;
        margin: 30px auto;
        width: 100%;
        box-sizing: border-box;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .account-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==========================================================================
   Mobile Precision Sizing (320px to 480px Target Mobile Range)
   ========================================================================== */
@media (max-width: 480px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-inner {
        height: 70px;
        min-height: 70px;
        gap: 6px;
    }

    .site-header.scrolled .header-inner {
        height: 60px;
        min-height: 60px;
    }

    .brand-logo {
        gap: 8px;
    }

    .logo-badge {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 0.95rem;
    }

    .brand-logo > div > div:first-child, .brand-name-text {
        font-size: 1rem;
        letter-spacing: 1.2px;
    }

    .brand-sub {
        font-size: 0.52rem;
        letter-spacing: 1.5px;
    }

    .header-actions {
        gap: 6px;
    }

    .icon-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: clamp(1.7rem, 6.5vw, 2.1rem);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.85rem;
        box-sizing: border-box;
    }

    .main-image-viewer {
        height: 260px;
    }

    .thumb-item {
        width: 60px;
        height: 60px;
    }

    .founder-name-title {
        font-size: clamp(1.6rem, 6vw, 2rem);
        letter-spacing: 1px;
    }

    .founder-title-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .quote-card {
        padding: 24px 14px;
    }

    .quote-mark {
        font-size: 3rem;
        margin-bottom: -15px;
    }

    .quote-text {
        font-size: 1rem;
        line-height: 1.5;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    /* Product Card Spacing & Image Sizing */
    .product-card {
        padding: 18px 14px;
    }

    .product-image-container {
        height: 220px;
    }

    .product-title {
        font-size: 1.05rem;
    }

    .product-price-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .current-price {
        font-size: 1.15rem;
    }

    /* OTP Inputs on 320px - 375px screens */
    .otp-boxes {
        gap: 6px;
    }

    .otp-digit {
        width: 40px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* 390px Mobile Viewport Fine-Tuning */
@media (max-width: 390px) {
    .brand-logo {
        gap: 6px;
    }

    .brand-logo > div > div:first-child, .brand-name-text {
        font-size: 0.92rem;
        letter-spacing: 1px;
    }

    .brand-sub {
        font-size: 0.48rem;
        letter-spacing: 1.2px;
    }

    .logo-badge {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 0.9rem;
    }

    .header-actions {
        gap: 5px;
    }

    .icon-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
}

/* ==========================================================================
   Ultra-Narrow Mobile Screen Protection (320px - 360px)
   ========================================================================== */
@media (max-width: 360px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .header-inner {
        padding: 0;
        gap: 4px;
    }

    .brand-logo {
        gap: 5px;
    }

    .brand-logo > div > div:first-child, .brand-name-text {
        font-size: 0.85rem;
        letter-spacing: 0.8px;
    }

    .brand-sub {
        font-size: 0.45rem;
        letter-spacing: 1px;
    }

    .logo-badge {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 0.8rem;
    }

    .header-actions {
        gap: 3px;
    }

    .icon-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .otp-digit {
        width: 34px;
        height: 44px;
        font-size: 1.1rem;
    }

    .btn-admin, .btn-primary, .btn-secondary {
        font-size: 0.8rem;
        padding: 12px 14px;
    }
}
