@media (max-width: 768px) {
    body:has(#cartModal[aria-hidden="false"]) .cart-bar,
    body:has(#modal[aria-hidden="false"]) .cart-bar {
        display: none;
    }

    .theme-switcher {
        width: min(100% - 100px, 220px);
        margin-top: -8px;
        margin-left: 12px;
        margin-right: auto;
    }

    .theme-option {
        min-height: 28px;
        padding: 5px 4px;
        font-size: 10px;
    }

    .logo {
        height: 120px;
    }

    .search-wrapper {
        width: 100%;
    }

    .search-suggestions {
        max-height: 200px;
    }

    .filters {
        margin: 14px 12px 18px;
        padding: 8px;
        border: 1px solid rgba(255,215,0,0.1);
        border-radius: 16px;
        background: rgba(0,0,0,0.22);
        box-shadow: 0 14px 34px rgba(0,0,0,0.16);
    }

    body.theme-day .filters {
        border-color: rgba(126,91,37,0.12);
        background: rgba(255,255,255,0.54);
        box-shadow: 0 14px 34px rgba(126,91,37,0.1);
    }

    .trust-section {
        grid-template-columns: 1fr;
        padding: 0 12px 8px;
    }

    .info-section {
        grid-template-columns: 1fr;
        padding: 12px 12px 18px;
    }

    .purchase-section {
        padding: 8px 12px 18px;
    }

    .seo-section,
    .faq-section {
        padding: 8px 12px 18px;
    }

    .policy-section {
        padding: 8px 12px 20px;
    }

    .purchase-grid,
    .policy-grid,
    .compare-grid {
        grid-template-columns: 1fr;
    }

    .compare-tray {
        width: min(100% - 24px, 1180px);
        padding: 14px;
    }

    .compare-head {
        align-items: stretch;
        flex-direction: column;
    }

    .compare-head button {
        width: 100%;
    }

    .seo-section .section-head {
        padding: 16px 4px;
    }

    .faq-list summary {
        padding: 14px 12px;
    }

    .faq-list p {
        padding: 0 12px 14px 28px;
    }

    .cart-bar {
        top: 12px;
        right: 12px;
        padding: 0;
    }

    .cart-open-btn {
        width: 52px;
        min-width: 52px;
        height: 52px;
    }

    .cart-icon {
        width: 26px;
        height: 26px;
    }

    .filters-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        min-width: 132px;
        min-height: 38px;
        margin: 0 auto 8px;
        padding: 8px 16px;
        border-radius: 999px;
        font-size: 13px;
    }

    .mobile-filter-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        align-items: stretch;
        margin-bottom: 8px;
    }

    .mobile-filter-row .chip {
        width: 100%;
        margin: 0;
    }

    .mobile-favorites-chip {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
    }

    .filters-panel {
        display: none;
    }

    .filters-panel.open {
        display: grid;
        gap: 9px;
        padding: 10px;
        border: 1px solid rgba(255,215,0,0.14);
        border-radius: 14px;
        background: rgba(0,0,0,0.42);
        box-shadow: 0 14px 32px rgba(0,0,0,0.18) inset;
    }

    body.theme-day .filters-panel.open {
        border-color: rgba(126, 91, 37, 0.14);
        background: rgba(255,255,255,0.62);
        box-shadow: 0 14px 32px rgba(126,91,37,0.08) inset;
    }

    input,
    .chip-select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .filter-selects {
        flex-direction: column;
        gap: 7px;
    }

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

    .clear-filters-btn {
        width: 100%;
        min-height: 44px;
    }

    .lux-chips {
        flex-wrap: wrap;
        gap: 7px;
    }

    .chip {
        width: calc(50% - 5px);
        min-height: 36px;
        padding: 7px 9px;
        font-size: 12px;
        box-sizing: border-box;
    }

    .favorites-chip {
        width: 100%;
    }

    .lux-chips .favorites-chip {
        display: none;
    }

    .chip-select {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .results-count {
        margin-top: 8px;
        font-size: 12px;
    }

    #products.container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card {
        min-width: 0;
        border-radius: var(--radius-card);
    }

    .price-wrap p {
        font-size: 20px;
    }

    .section-head {
        padding: 0 4px 12px;
    }

    .section-head h2 {
        font-size: 28px;
    }

    .load-more-wrap {
        padding: 10px 12px 18px;
    }

    #loadMoreBtn {
        width: 100%;
        max-width: 100%;
        font-size: 16px;
        padding: 15px 18px;
    }

    #modal {
        align-items: flex-start;
        overflow-x: hidden;
        overflow-y: auto;
    }

    #modal .product-detail-shell,
    #modal.has-single-image .product-detail-shell,
    #modal .product-detail-shell.has-single-image {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
        animation: none;
    }

    #productDetailBack {
        position: fixed;
        top: 14px;
        left: 16px;
        min-height: 40px;
        padding: 7px 0;
        background: rgba(248, 245, 238, 0.88);
        backdrop-filter: blur(8px);
    }

    #modal .product-detail-secondary {
        display: none;
    }

    #modal .product-detail-primary {
        height: 68vh;
        height: 68dvh;
        min-height: 500px;
        max-height: 680px;
        padding: 112px 22px 26px;
        border-right: 0;
        border-bottom: 1px solid rgba(36, 34, 29, 0.12);
    }

    #modal .product-detail-logo {
        top: 62px;
        width: 104px;
        height: 38px;
    }

    #modal .product-detail-badge {
        margin-bottom: 8px;
    }

    #modal .product-detail-gallery-stage.swiper {
        touch-action: pan-y;
    }

    #modalExpandImage {
        right: 2px;
        bottom: 2px;
        width: 40px;
        height: 40px;
        min-height: 40px;
    }

    #modal .product-detail-gallery-dots {
        margin-top: 13px;
    }

    #modal .product-detail-info {
        height: auto;
        padding: 48px 24px 42px;
        overflow: visible;
    }

    #modalTitle {
        max-width: 16ch;
        font-size: clamp(34px, 10vw, 48px);
    }

    #modal .modal-meta {
        margin-bottom: 20px;
    }

    #modal .product-detail-summary {
        margin-top: 18px;
    }

    #modal .modal-price,
    #modal .product-detail-description {
        margin-top: 24px;
    }

    #modal .product-detail-specs,
    #modal .modal-insights,
    #modal .modal-actions {
        margin-top: 30px;
    }

    #modal .modal-insights {
        grid-template-columns: 1fr;
    }

    #modal .related-products {
        margin-top: 34px;
    }

    #modal .related-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    #modal .related-product-card {
        padding: 8px;
    }

    #modal .related-product-card__image {
        height: 112px;
    }

    #modal .related-product-card__content {
        padding-top: 10px;
    }

    #modal .related-product-card__name {
        font-size: 14px;
    }

    .cart-panel {
        width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        padding: 14px;
        border-width: 0;
        border-radius: 0;
        box-sizing: border-box;
    }

    .cart-head {
        gap: 10px;
        padding: 6px 0 12px;
        border-bottom: 1px solid rgba(255,215,0,0.12);
    }

    .cart-head h2 {
        font-size: 21px;
        line-height: 1.2;
    }

    .cart-head p {
        font-size: 13px;
    }

    .icon-close {
        flex-shrink: 0;
        width: 48px;
        height: 48px;
        font-size: 28px;
        margin-top: 0;
    }

    .continue-shopping-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .cart-item {
        grid-template-columns: 64px 1fr;
        align-items: start;
        padding: 10px;
        gap: 10px;
        border-radius: var(--radius-card);
    }

    .cart-item img {
        width: 64px;
        height: 64px;
    }

    .qty-control,
    .remove-cart {
        grid-column: 2;
    }

    .qty-control {
        width: 122px;
        grid-template-columns: 34px 54px 34px;
    }

    .remove-cart {
        justify-self: start;
        padding: 8px 12px;
    }

    .cart-summary {
        position: sticky;
        bottom: -1px;
        z-index: 8;
        margin: 12px -2px;
        padding: 13px;
        border: 1px solid var(--border-subtle);
        background: var(--brand-charcoal);
        box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.22);
    }

    body.theme-day .cart-summary {
        background: #ece6dc;
        box-shadow: 0 -12px 28px rgba(36, 35, 33, 0.1);
    }

    .checkout-box {
        padding: 12px;
        gap: 11px;
    }

    .checkout-steps {
        gap: 6px;
    }

    .checkout-step {
        min-height: 32px;
        padding: 6px 5px;
        font-size: 11px;
    }

    .checkout-step-panel {
        padding: 10px;
    }

    .checkout-step-panel:not(.current) {
        display: none;
    }

    .checkout-next-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 42px;
    }

    .checkout-fields,
    .payment-methods {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .payment-methods label {
        padding: 11px 12px;
    }

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

    .payment-copy-row button {
        width: 100%;
    }

    .cart-toast {
        right: 12px;
        bottom: 78px;
        width: calc(100vw - 24px);
    }


    .social-float {
        bottom: 10px;
        right: 8px;
        gap: 10px;
        z-index: 50;
    }

    .float-btn {
        width: 54px;
        height: 54px;
    }

    .social-float a.float-btn {
        width: 40px;
        height: 40px;
    }

    .top-btn {
        min-width: 104px;
        height: 50px;
        padding: 0 14px 0 8px;
        border-radius: var(--radius-control);
        gap: 10px;
        justify-content: flex-start;
        box-shadow: none;
    }

    .top-btn-icon {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }

    .top-btn-svg {
        width: 15px;
        height: 15px;
    }

    .top-btn-text {
        font-size: 11px;
        letter-spacing: 0.12em;
    }
}

@media (max-width: 430px) {
    .catalog-intro {
        padding-top: 28px;
    }

    .catalog-intro__eyebrow {
        font-size: 11px;
    }

    .catalog-intro h1 {
        font-size: clamp(36px, 12vw, 48px);
    }

    header {
        padding: 20px 10px 12px;
    }

    .logo {
        height: 124px;
    }

    .card-brand {
        font-size: 10px;
    }

    .card-meta-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .card-content button {
        min-height: 42px;
        padding-inline: 10px;
        font-size: 12px;
    }

    #modal .product-detail-primary {
        height: 64vh;
        height: 64dvh;
        min-height: 440px;
        padding: 106px 16px 22px;
    }

    #modal .product-detail-logo {
        top: 58px;
        width: 94px;
    }

    #modal .product-detail-info {
        padding: 40px 18px 34px;
    }

    #modal .product-detail-spec {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 14px;
    }

    #modal .modal-actions button {
        min-height: 52px;
    }

    .seo-keywords span {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after,
    .top-btn,
    .top-btn-icon,
    .top-btn.visible::after,
    .card,
    .cart-item,
    .modal-content,
    #modal .product-detail-shell,
    #modal .product-detail-gallery-track,
    .cart-panel,
    .filters-panel.open,
    img.skeleton,
    img.loaded,
    .loader-spinner {
        animation: none !important;
        transition: none;
    }
}

