*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video {
    max-width: 100%;
}

.container {
    width: min(100%, var(--container-max, 1180px));
}

.products-order-modal,
.booking-error-popup,
.public-announcement {
    max-height: 100dvh;
    overflow: hidden;
}

.products-order-panel,
.booking-error-popup-card,
.public-announcement-panel,
.products-cart-panel {
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.products-order-panel footer,
.public-announcement-actions,
.booking-success-buttons,
.cart-summary-card {
    min-width: 0;
}

.products-payment-box a[hidden],
.products-payment-box button[hidden],
.cart-payment-box a[hidden],
.cart-payment-box button[hidden] {
    display: none !important;
}

@media (max-width: 1180px) {
    .hero-wrapper,
    .about-wrapper,
    .footer-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-wrapper,
    .about-wrapper {
        gap: 54px;
    }

    .hero-content {
        width: 100%;
        max-width: var(--container-width);
        padding-left: clamp(18px, 4vw, 40px);
        padding-right: clamp(18px, 4vw, 40px);
    }

    .hero-wrapper {
        width: 100%;
        min-height: auto;
    }

    .hero-left {
        width: 100%;
        max-width: 760px;
    }

    .hero-logo {
        width: min(460px, 78vw);
    }

    .hero-image-wrapper {
        position: relative;
        inset: auto;
        width: 100%;
        justify-content: center;
        min-height: auto;
        z-index: 2;
    }

    .hero-image-card {
        width: min(560px, 100%);
        height: min(620px, 78vw);
        border-radius: 30px;
    }

    .about-image-card {
        height: min(620px, 68vw);
    }

    .footer-wrapper {
        gap: 34px;
    }
}

@media (max-width: 900px) {
    .hero-section,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding-top: 156px;
        padding-bottom: 108px;
    }

    .hero-wrapper {
        gap: 42px;
    }

    .hero-description,
    .about-description,
    .cta-description {
        font-size: 15px;
        line-height: 1.8;
    }

    .hero-image-shape {
        width: min(420px, 82vw);
        height: min(420px, 82vw);
    }

    .hero-image-card {
        width: min(420px, 88vw);
        height: min(540px, 112vw);
        border-radius: 26px;
    }

    .about-section,
    .cta-section {
        padding-top: 92px;
        padding-bottom: 92px;
    }

    .about-title,
    .cta-title {
        font-size: clamp(42px, 10vw, 58px);
    }

    .cta-card {
        padding: 58px 34px;
        border-radius: 28px;
    }

    .footer {
        padding-top: 82px;
    }

    .footer-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 56px;
    }
}

@media (max-width: 760px) {
    body {
        min-width: 320px;
    }

    .primary-button,
    .secondary-button {
        min-height: 52px;
        height: auto;
        padding: 0 24px;
        text-align: center;
    }

    .hero-content {
        padding-top: 190px;
        padding-bottom: 112px;
    }

    .hero-logo {
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 28px;
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons a,
    .service-actions a,
    .booking-success-buttons a,
    .booking-success-buttons button {
        width: 100%;
    }

    .hero-line,
    .hero-background-shape,
    .about-image-shape {
        display: none;
    }

    .about-image-card {
        height: 420px;
        border-radius: 24px;
    }

    .about-details {
        gap: 18px;
    }

    .services-page-hero,
    .products-page-hero {
        min-height: 52vh;
        padding-top: 150px;
        padding-bottom: 58px;
    }

    .services-page-hero {
        min-height: clamp(520px, 78svh, 680px);
        align-items: flex-end;
        background-position: center, center top;
    }

    .services-page-content h1,
    .products-page-content h1,
    .services-results-top h2,
    .products-results-top h2 {
        font-size: clamp(40px, 12vw, 52px);
    }

    .services-catalog-section,
    .products-catalog-section {
        padding-top: 54px;
        padding-bottom: 82px;
    }

    .services-family-panel,
    .services-results-panel,
    .products-category-panel,
    .products-results-panel,
    .cart-items-column,
    .cart-summary-card,
    .booking-shell {
        min-width: 0;
        border-radius: 18px;
    }

    .services-explorer,
    .products-catalog-layout,
    .booking-service-picker,
    .cart-layout {
        min-width: 0;
    }

    .services-family-panel,
    .products-category-panel {
        overflow: hidden;
    }

    .services-results-panel,
    .products-results-panel {
        padding: 18px;
    }

    .services-subcategory-toggle,
    .booking-subcategory-toggle {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .services-subcategory-toggle strong,
    .booking-subcategory-toggle strong {
        width: 100%;
        margin-left: 0;
    }

    .services-list,
    .booking-service-section-list {
        padding-left: 10px;
        padding-right: 10px;
    }

    .services-list-item,
    .booking-service-card {
        padding: 16px;
    }

    .services-reserve-link {
        width: 100%;
    }

    .products-public-image {
        height: 210px;
    }

    .products-public-content h3,
    .products-cart-item h3,
    .cart-section-head h2,
    .cart-summary-card h2 {
        font-size: 22px;
    }

    .products-cart-toggle {
        position: relative;
        min-width: 60px;
        width: 60px;
        height: 60px;
        min-height: 60px;
        justify-content: center;
        padding: 0;
        gap: 0;
    }

    .products-cart-toggle-icon {
        width: 42px;
        height: 42px;
        display: inline-flex !important;
    }

    .products-cart-toggle strong {
        position: absolute;
        top: -5px;
        right: -5px;
        min-width: 24px;
        height: 24px;
        padding: 0 7px;
        border: 2px solid #fffaf8;
        font-size: 11px;
        box-shadow: 0 8px 18px rgba(112, 62, 56, .16);
    }

    .products-cart-panel {
        width: calc(100vw - 28px);
        right: -2px;
        max-height: calc(100dvh - 112px);
    }

    .products-order-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .products-order-panel {
        width: 100%;
        max-height: calc(100dvh - 24px);
        border-radius: 22px;
    }

    .cart-page {
        padding-top: 152px;
    }

    .cart-hero {
        margin-bottom: 24px;
    }

    .cart-item-card {
        margin: 12px;
        gap: 14px;
        padding: 14px;
        grid-template-columns: 82px minmax(0, 1fr);
        grid-template-areas:
            "image info"
            "image price"
            "quantity quantity"
            "remove remove";
    }

    .cart-quantity-control {
        width: min(180px, 100%);
    }

    .cart-remove-button {
        width: fit-content;
    }

    .booking-page {
        padding-top: 146px;
        padding-bottom: 70px;
    }

    .booking-shell {
        padding: 18px;
    }

    .booking-top {
        margin-bottom: 34px;
    }

    .booking-header {
        margin-bottom: 34px;
    }

    .booking-category-panel,
    .services-family-list,
    .products-category-list {
        margin-left: -2px;
        margin-right: -2px;
        max-width: 100%;
        scroll-snap-type: x proximity;
    }

    .booking-category-panel button,
    .services-family-list button,
    .products-category-list button {
        scroll-snap-align: start;
    }

    .booking-days-grid,
    .booking-hours-grid {
        gap: 10px;
    }

    .booking-day-card {
        height: 82px;
        border-radius: 16px;
    }

    .booking-footer {
        display: grid;
        gap: 12px;
    }

    .booking-footer button,
    .booking-footer a {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-content {
        padding-top: 176px;
    }

    .hero-description {
        margin-bottom: 30px;
    }

    .hero-image-card {
        width: 100%;
        height: 410px;
        border-radius: 28px;
    }

    .about-section,
    .cta-section {
        padding-top: 76px;
        padding-bottom: 76px;
    }

    .about-image-card {
        height: 340px;
    }

    .cta-card {
        padding: 42px 22px;
        border-radius: 22px;
    }

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

    .services-page-hero,
    .products-page-hero {
        min-height: auto;
        padding-top: 142px;
    }

    .services-page-hero {
        min-height: 520px;
        padding-bottom: 46px;
        background-position: center, 58% top;
    }

    .services-family-panel,
    .products-category-panel {
        padding: 18px;
    }

    .services-family-list button,
    .products-category-list button,
    .booking-category-panel button {
        min-width: 168px;
        padding: 14px;
    }

    .services-group-heading {
        display: grid;
        gap: 8px;
    }

    .services-group-heading h3 {
        font-size: 28px;
    }

    .services-list-item,
    .products-public-card,
    .cart-item-card,
    .booking-service-card {
        border-radius: 16px;
    }

    .products-public-content,
    .products-order-panel {
        padding: 20px;
    }

    .products-order-panel header {
        align-items: flex-start;
    }

    .products-order-panel header h2 {
        font-size: 28px;
    }

    .cart-section-head {
        padding: 18px;
    }

    .cart-empty-state {
        margin: 14px;
        padding: 24px 18px;
    }

    .cart-item-card {
        grid-template-columns: 74px 1fr;
        grid-template-areas:
            "image info"
            "image price"
            "quantity quantity"
            "remove remove";
    }

    .cart-item-card img {
        width: 74px;
        height: 74px;
        border-radius: 14px;
    }

    .cart-item-main h2 {
        font-size: 18px;
    }

    .cart-item-card > strong {
        font-size: 24px;
    }

    .cart-summary-card {
        padding: 18px;
    }

    .booking-shell {
        padding: 16px;
    }

    .booking-title,
    .booking-success-title {
        font-size: 36px;
    }

    .booking-days-grid,
    .booking-hours-grid {
        grid-template-columns: 1fr 1fr;
    }

    .booking-receipt-service,
    .booking-receipt-price {
        padding: 20px;
    }

    .booking-payment-box {
        padding: 20px;
    }

    .booking-payment-box a,
    .booking-payment-box button,
    .cart-payment-box a,
    .cart-payment-box button {
        width: 100%;
    }
}

@media (max-height: 680px) {
    .products-order-modal,
    .booking-error-popup,
    .public-announcement {
        align-items: flex-start;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .products-order-panel,
    .booking-error-popup-card,
    .public-announcement-panel,
    .products-cart-panel {
        max-height: calc(100dvh - 24px);
    }

    .public-announcement-media {
        min-height: 180px;
    }

    .public-announcement-content,
    .booking-error-popup-card {
        padding-top: 26px;
        padding-bottom: 24px;
    }
}
