/* STAYEXOTIC shared responsive finishing layer */

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

html {
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

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

button,
input,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
input {
    font: inherit;
}

@media (max-width: 760px) {
    :is(
        .home-navbar,
        .shop-navbar,
        .drop-navbar,
        .about-navbar,
        .search-navbar,
        .cart-navbar,
        .product-navbar
    ) {
        width: 100%;
        height: auto;
        min-height: 112px;
        padding: 14px 16px 12px;
        display: flex;
        flex-wrap: wrap;
        align-content: center;
        align-items: center;
        gap: 10px 14px;
    }

    :is(
        .home-nav-logo,
        .shop-logo,
        .drop-logo,
        .about-logo,
        .search-logo,
        .cart-logo,
        .product-logo
    ) {
        display: flex;
        align-items: center;
        min-height: 44px;
        margin-right: auto;
    }

    :is(
        .home-nav-logo,
        .shop-logo,
        .drop-logo,
        .about-logo,
        .search-logo,
        .cart-logo,
        .product-logo
    ) img {
        width: 108px;
        max-height: 38px;
        object-fit: contain;
    }

    :is(
        .home-nav-right,
        .shop-nav-right,
        .drop-nav-right,
        .about-nav-right,
        .search-nav-right,
        .cart-nav-right,
        .product-nav-right
    ) {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        min-width: 0;
    }

    :is(
        .home-nav-links,
        .shop-nav-links,
        .drop-nav-links,
        .about-nav-links,
        .search-nav-links,
        .cart-nav-links,
        .product-nav-links
    ) {
        order: 3;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        padding-top: 8px;
    }

    :is(
        .home-nav-links,
        .home-nav-right,
        .shop-nav-links,
        .shop-nav-right,
        .drop-nav-links,
        .drop-nav-right,
        .about-nav-links,
        .about-nav-right,
        .search-nav-links,
        .search-nav-right,
        .cart-nav-links,
        .cart-nav-right,
        .product-nav-links,
        .product-nav-right
    ) a {
        min-height: 44px;
        padding: 0 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 9px;
        line-height: 1.2;
        letter-spacing: 1.35px;
        white-space: nowrap;
    }

    :is(
        .home-nav-links,
        .shop-nav-links,
        .drop-nav-links,
        .about-nav-links,
        .search-nav-links,
        .cart-nav-links,
        .product-nav-links
    ) a:first-child {
        justify-content: flex-start;
        padding-left: 0;
    }

    :is(
        .home-nav-links,
        .shop-nav-links,
        .drop-nav-links,
        .about-nav-links,
        .search-nav-links,
        .cart-nav-links,
        .product-nav-links
    ) a:last-child {
        justify-content: flex-end;
        padding-right: 0;
    }

    .home-hero {
        min-height: 100svh;
        padding: 150px 16px 88px;
    }

    .home-main-logo {
        width: min(96vw, 620px);
    }

    .home-eyebrow,
    .home-tagline {
        max-width: 100%;
        line-height: 1.7;
        text-align: center;
    }

    .home-shop-button {
        width: min(100%, 340px);
        min-height: 52px;
    }

    .home-bottom-text {
        width: calc(100% - 32px);
        left: 16px;
    }

    .luxury-shop,
    .drop-main,
    .about-main,
    .search-main,
    .cart-main,
    .product-main {
        min-width: 0;
    }

    .luxury-shop {
        padding: 44px 16px 0;
    }

    .shop-hero h1,
    .drop-title-wrap h1,
    .about-title-wrap h1,
    .search-hero h1,
    .cart-hero h1 {
        max-width: 100%;
        overflow-wrap: anywhere;
        font-size: clamp(58px, 19vw, 92px);
        line-height: .88;
        letter-spacing: -.065em;
    }

    .shop-subheader,
    .drop-info,
    .about-intro {
        gap: 14px;
    }

    .collection-bar {
        width: calc(100% + 16px);
        margin-right: -16px;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
    }

    .collection-bar::-webkit-scrollbar {
        display: none;
    }

    .shop-filter {
        min-height: 48px;
        padding: 0;
    }

    .shop-products,
    .search-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 10px;
    }

    .shop-product,
    .product-result {
        min-width: 0;
    }

    .shop-product h2,
    .product-result h2 {
        overflow-wrap: anywhere;
        line-height: 1.3;
    }

    .drop-preview,
    .about-story,
    .about-values,
    .about-statement,
    .product-layout,
    .cart-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .preview-box {
        min-height: 360px;
    }

    .search-hero,
    .cart-hero {
        padding: 44px 16px 36px;
    }

    .search-area,
    .results-section,
    .cart-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .search-box {
        grid-template-columns: minmax(0, 1fr);
    }

    .search-box input {
        width: 100%;
        min-width: 0;
        font-size: clamp(24px, 8vw, 34px);
    }

    .search-box button,
    .checkout-button,
    .add-cart-button {
        min-height: 52px;
    }

    .cart-summary {
        position: static;
        width: 100%;
    }

    .cart-item {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 16px;
    }

    .cart-item img {
        width: 96px;
        height: 124px;
        object-fit: cover;
    }

    .cart-item h2 {
        overflow-wrap: anywhere;
        line-height: 1.3;
    }

    .quantity-controls button,
    .size-options button {
        min-width: 44px;
        min-height: 44px;
    }

    .product-visual,
    .product-details {
        min-width: 0;
        padding-left: 16px;
        padding-right: 16px;
    }

    .product-image-box {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 5;
    }

    .product-details h1 {
        max-width: 100%;
        font-size: clamp(38px, 12vw, 54px);
        line-height: .96;
        overflow-wrap: anywhere;
    }

    .size-options {
        grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
        gap: 7px;
    }

    .product-notes {
        gap: 12px;
    }
}

@media (max-width: 390px) {
    :is(
        .home-navbar,
        .shop-navbar,
        .drop-navbar,
        .about-navbar,
        .search-navbar,
        .cart-navbar,
        .product-navbar
    ) {
        padding-left: 12px;
        padding-right: 12px;
    }

    :is(
        .home-nav-logo,
        .shop-logo,
        .drop-logo,
        .about-logo,
        .search-logo,
        .cart-logo,
        .product-logo
    ) img {
        width: 96px;
    }

    :is(
        .home-nav-links,
        .home-nav-right,
        .shop-nav-links,
        .shop-nav-right,
        .drop-nav-links,
        .drop-nav-right,
        .about-nav-links,
        .about-nav-right,
        .search-nav-links,
        .search-nav-right,
        .cart-nav-links,
        .cart-nav-right,
        .product-nav-links,
        .product-nav-right
    ) a {
        padding-left: 5px;
        padding-right: 5px;
        font-size: 8px;
        letter-spacing: 1px;
    }

    .shop-products,
    .search-results {
        gap: 30px 8px;
    }

    .cart-item {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px;
    }

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

@media (hover: none) {
    a:hover,
    button:hover,
    img:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
