@media (max-width: 768px) {
    .floating-call-button {
        left: 16px;
        bottom: 16px;

        width: 58px;
        height: 58px;
    }

    .floating-call-button svg {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 900px) {
    .product-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-info {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .product-top {
        padding-top: 28px;
    }

    .product-main {
        padding: 16px;
        border-radius: var(--radius);
    }

    .product-main-image img {
        padding: 12px;
    }

    .product-breadcrumb {
        margin-bottom: 18px;
    }

    .product-info .md-title {
        font-size: 1.35rem;
    }

    .product-info .md-price-box .now {
        font-size: 1.25rem;
    }

    .product-info .md-actions {
        display: /* grid */ flex;
        grid-template-columns: auto 1fr auto;
    }

    .product-info .md-actions .btn-primary {
        min-width: 0;
    }

    .product-details-card {
        border-radius: var(--radius);
    }

    .tab-btns {
        padding-inline: 14px;
    }

    .tab-pane {
        padding: 22px 18px;
    }
}

@media (max-width: 480px) {
    .product-info .md-actions {
        grid-template-columns: 1fr auto;
    }
    .product-info .md-actions .qty {
        order: 2;
    }
    .product-info .md-actions .btn-primary {
        order: 1;
    }
    .product-info .md-actions #product-wishlist {
        order: 3;
    }
}


@media (max-width:1180px) {
    .cats {
        grid-template-columns: repeat(4, 1fr)
    }

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

    .benefits {
        grid-template-columns: repeat(3, 1fr)
    }

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

    .vehicle-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width:1024px) {
    .nav-desktop {
        display: none
    }

    .header-search {
        display: none
    }

    .hamburger {
        display: inline-flex
    }

    /* Text spans the full width here, so the overlay darkens the whole photo evenly. */
    .hero::before {
        background:
            linear-gradient(to left, rgba(8, 20, 48, .9), rgba(8, 20, 48, .6)),
            linear-gradient(to top, rgba(8, 20, 48, .7), transparent 40%)
    }

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

    .filters {
        display: none
    }

    .filter-toggle {
        display: inline-flex
    }

    .offer {
        grid-template-columns: 1fr;
        padding: 36px 26px
    }

    .offer-visual {
        display: none
    }

    .modal-grid {
        grid-template-columns: 1fr;
        padding: 22px
    }
}

@media (max-width:720px) {
    .section {
        padding-block: 44px
    }

    .hero {
        min-height: 0;
        padding: 48px 0 104px
    }

    .hero-cta .btn {
        flex: 1;
        justify-content: center;
        padding-inline: 14px;
        white-space: nowrap
    }

    .hero-stats {
        gap: 22px
    }

    .section-band {
        margin-block: 8px 44px
    }

    .cats {
        grid-template-columns: repeat(3, 1fr)
    }

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

    .benefits {
        grid-template-columns: 1fr 1fr
    }

    .brands-strip {
        grid-template-columns: 1fr 1fr
    }

    .vehicle {
        padding: 22px 18px
    }

    .vehicle-grid {
        grid-template-columns: 1fr 1fr
    }

    .vehicle-grid .btn {
        grid-column: 1/-1
    }

    .news-form {
        flex-direction: column
    }

    .news-form .btn {
        height: 48px
    }

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

    .countdown .cell {
        min-width: 60px;
        padding: 10px 4px
    }

    .countdown .v {
        font-size: 1.25rem
    }

    .header-actions .hide-m {
        display: none
    }

    .p-body {
        padding: 12px
    }

    .newsletter {
        padding: 32px 20px
    }
}

@media (max-width:420px) {
    .products-grid {
        grid-template-columns: 1fr
    }

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

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

    .vehicle-grid {
        grid-template-columns: 1fr
    }
}

@media (prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important
    }

    html {
        scroll-behavior: auto
    }

    .reveal {
        opacity: 1;
        transform: none
    }

    /* No slideshow: keep the first photo still. */
    .hero-slide {
        animation: none
    }

    .hero-slide:first-child {
        opacity: 1
    }
}