/* ============================================
   TILDA PARFUMS BAMENDA — Responsive Breakpoints
   ============================================ */

/* === Large Desktop (1400px+) === */
@media (max-width: 1440px) {
    :root {
        --container-max: 1200px;
    }

    .hero-float {
        width: 380px;
        right: 5%;
    }
}

/* === Desktop (1200px) === */
@media (max-width: 1200px) {
    :root {
        --container-max: 960px;
    }

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

    .footer-grid .footer-col:last-child {
        grid-column: 1 / -1;
    }

    .hero-float {
        width: 340px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-values {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tilda-floating-socials-wrap {
        bottom: 1.1rem;
        left: 0.75rem;
        right: 0.75rem;
        align-items: stretch;
    }

    .tilda-floating-label {
        align-self: center;
        font-size: 0.58rem;
    }

    .tilda-floating-socials {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.55rem 0.65rem;
    }

    .tilda-floating-socials .tilda-social-btn {
        width: 42px;
        height: 42px;
    }

    .tilda-floating-socials .tilda-social-btn svg {
        width: 20px;
        height: 20px;
    }

    .tilda-social-panel--hero {
        max-width: 100%;
    }

    .tilda-social-links--hero .tilda-social-btn {
        width: 46px;
        height: 46px;
    }
}

/* === Tablet Landscape (1024px) === */
@media (max-width: 1024px) {
    .nav-main {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Mobile Navigation */
    .mobile-nav {
        position: fixed;
        inset: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        z-index: 999;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-xl);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .mobile-nav.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav a {
        font-family: var(--font-heading);
        font-size: 2rem;
        color: var(--text-secondary);
        transition: color var(--transition-fast);
    }

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

    .hero-float {
        display: none;
    }

    .hero--tilda .hero-bg img {
        object-position: center 20%;
    }

    .hero--tilda .hero-bg::after {
        background: linear-gradient(
            180deg,
            rgba(10, 10, 10, 0.55) 0%,
            rgba(10, 10, 10, 0.82) 45%,
            rgba(10, 10, 10, 0.92) 100%
        );
    }

    .hero-inner {
        padding: calc(var(--header-height) + 1.5rem) 0 3rem;
        align-items: flex-end;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-label {
        justify-content: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

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

    .features-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-lg);
    }

    .filter-group {
        flex: 1;
        min-width: 200px;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .product-gallery {
        position: static;
    }

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

    .about-story {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .newsletter-inner {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        max-width: 100%;
        width: 100%;
    }

    /* Admin responsive */
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === Tablet Portrait (768px) === */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 var(--space-lg);
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .section-header {
        margin-bottom: var(--space-2xl);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .gift-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quiz-options {
        grid-template-columns: 1fr;
    }

    .quiz-match-card {
        grid-template-columns: 1fr;
    }

    .notes-pyramid {
        grid-template-columns: 1fr;
    }

    .checkout-steps {
        gap: var(--space-lg);
    }

    .checkout-step-label {
        display: none;
    }

    .gift-wrapping-options {
        grid-template-columns: 1fr 1fr;
    }

    .breadcrumbs {
        font-size: 0.75rem;
    }

    .tabs {
        gap: var(--space-md);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .pagination a,
    .pagination span {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .collection-card {
        aspect-ratio: 3/4;
    }

    .features-strip {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .feature-item {
        flex-direction: column;
    }

    .marquee-item {
        font-size: 0.95rem;
    }

    .ai-chat-panel {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 80px;
        height: 60vh;
    }

    .search-overlay input {
        font-size: 1.5rem;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
    }

    .cart-item > *:last-child {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .admin-table-wrapper {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 700px;
    }
}

/* === Mobile Large (576px) === */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .hero {
        min-height: 90vh;
    }

    .hero--tilda {
        min-height: 100svh;
    }

    .about-stats-row {
        justify-content: center;
        text-align: center;
    }

    .about-stat-divider {
        border-left: none;
        padding-left: 0;
    }

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

    .hero-desc {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        padding: 0.85rem 1.8rem;
    }

    .btn-lg {
        padding: 1rem 2rem;
    }

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

    .product-card-info {
        padding: var(--space-md);
    }

    .product-card-name {
        font-size: 1rem;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

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

    .gift-wrapping-options {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .section-label::before,
    .section-label::after {
        width: 25px;
    }

    .page-hero {
        padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
    }

    .quick-view {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .social-auth {
        flex-direction: column;
    }

    .promo-code {
        flex-direction: column;
    }

    .header-actions {
        gap: var(--space-sm);
    }

    .header-action-btn {
        width: 36px;
        height: 36px;
    }

    .modal {
        width: 95%;
        padding: var(--space-xl);
    }

    .toast {
        min-width: auto;
        margin: 0 10px;
    }

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

    .stat-value {
        font-size: 1.6rem;
    }

    .checkout-steps {
        gap: var(--space-md);
    }

    .product-thumbnails {
        gap: var(--space-xs);
    }

    .product-thumb {
        width: 60px;
        height: 75px;
    }

    .product-info .product-name {
        font-size: 1.8rem;
    }

    .product-price-large {
        font-size: 1.5rem;
    }

    .size-options {
        flex-wrap: wrap;
    }

    .product-actions {
        flex-direction: column;
    }

    .collection-card-title {
        font-size: 1.4rem;
    }

    .testimonial-quote {
        font-size: 1rem;
    }
}

/* === Mobile Small (400px) === */
@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

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

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

    .header-inner {
        padding: 0 var(--space-md);
    }
}

/* === Very Tall Screens === */
@media (min-height: 900px) {
    .hero {
        min-height: 100vh;
    }
}

/* === Landscape Mobile === */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-4xl) 0;
    }

    .scroll-indicator {
        display: none;
    }
}

/* === Dark mode is default, but light mode override === */
@media (prefers-color-scheme: light) {
    /* Stays dark - our luxury brand aesthetic is dark themed */
}

/* === High DPI / Retina === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Use higher quality assets on retina */
    .hero-bg img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* === Print Styles === */
@media print {
    .header,
    .footer,
    .ai-assistant-btn,
    .scroll-progress,
    .page-loader,
    .search-overlay,
    .toast-container,
    .mobile-nav {
        display: none !important;
    }

    body {
        background: white;
        color: #333;
    }

    .section {
        padding: 20px 0;
    }

    .product-card {
        break-inside: avoid;
    }
}
