:root {
    --bp-mobile: 640px;
    --bp-tablet: 900px;
    --bp-desktop: 1180px;
    --page-max: 1320px;
    --space-xs: 0.5rem;
    --space-sm: 0.875rem;
    --space-md: 1.125rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 18px 40px rgba(20, 16, 10, 0.08);
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
video,
canvas,
svg,
iframe {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-header,
.site-footer,
.product-detail-wrapper,
.cart-layout,
.checkout-layout,
.reviews-section,
.suggested-section,
.list-container {
    max-width: 100%;
}

.container,
.footer-wrap,
.footer-bottom {
    width: min(100%, var(--page-max));
    margin-left: auto;
    margin-right: auto;
}

.site-header {
    overflow-x: clip;
}

.header-inner {
    gap: 16px;
    max-width: 100%;
}

.center-stack,
.main-nav,
.auth-links {
    min-width: 0;
    max-width: 100%;
}

.center-stack,
.main-nav {
    width: 100%;
}

.main-nav a,
.mobile-nav a,
.footer-links a,
.user-dropdown a {
    word-break: break-word;
}

.icon-link,
.user-btn,
.hamburger,
.btn,
.quick-add-btn,
.checkout-btn,
.place-btn,
.auth-btn,
.btn-add,
.btn-secondary,
.btn-review,
.scroll-arrow,
.qty-btn,
.slider-btn {
    min-height: 44px;
}

.hero-carousel,
.carousel-slide {
    width: 100%;
    overflow: hidden;
}

.carousel-slide {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.product-scroller,
.suggested-slider,
.product-thumbs {
    scrollbar-width: thin;
}

.card,
.product-card,
.suggested-card,
.order-summary,
.cart-item,
.auth-card,
.review-card,
.category-card,
.feature-item {
    overflow: hidden;
}

.card-image-wrapper,
.product-img-wrapper,
.item-image,
.suggested-card img,
.category-card img,
.product-thumb,
.review-card img {
    background: linear-gradient(180deg, #faf7f0, #f0e7da);
}

.card-img,
.product-img-wrapper img,
.item-image img,
.suggested-card img,
.category-card img,
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.review-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 1180px) {
    .container,
    .footer-wrap,
    .footer-bottom {
        width: min(100%, calc(100% - 36px));
    }

    .product-detail-wrapper,
    .cart-layout,
    .checkout-layout,
    .reviews-section,
    .suggested-section {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .product-detail-wrapper {
        gap: 36px !important;
    }

    .product-image-col,
    .product-details-col {
        min-width: 0 !important;
    }
}

@media (max-width: 900px) {
    body {
        overflow-x: hidden;
    }

    .site-header {
        position: fixed !important;
        inset: 0 0 auto 0;
        width: 100% !important;
    }

    .header-inner {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: 72px;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        position: relative;
    }

    .center-stack {
        position: static !important;
        justify-self: auto !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        min-width: 0;
    }

    .logo {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: max-content !important;
        font-size: clamp(1.15rem, 4vw, 1.45rem) !important;
        letter-spacing: 0.08em !important;
    }

    .main-nav,
    .auth-links {
        display: none !important;
    }

    .hamburger {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(0, 0, 0, 0.12);
        border-radius: 50%;
        background: #fff;
    }

    .mobile-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: min(88vw, 360px) !important;
        height: 100vh;
        padding: 86px 18px 24px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border-right: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 16px 0 32px rgba(0, 0, 0, 0.12);
        text-align: left !important;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        display: block !important;
        z-index: 1100;
    }

    .mobile-nav.active {
        transform: translateX(0);
    }

    .mobile-nav a {
        display: block;
        margin: 0 !important;
        padding: 14px 8px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        font-size: 0.98rem !important;
    }

    .mobile-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
        z-index: 1050;
    }

    .mobile-backdrop.show {
        opacity: 1;
        pointer-events: auto;
    }

    body.nav-open {
        overflow: hidden;
    }

    .hero-carousel {
        min-height: min(70vh, 520px) !important;
        height: clamp(340px, 58vh, 520px) !important;
    }

    .scroll-section {
        padding: 42px 0 !important;
    }

    .container,
    .footer-wrap,
    .footer-bottom {
        width: min(100%, calc(100% - 24px));
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 14px !important;
    }

    .product-scroller {
        gap: 16px !important;
        padding: 8px 6px 18px 6px !important;
    }

    .card {
        flex-basis: min(76vw, 290px) !important;
    }

    .gender-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

    .scent-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

    .scent-tile {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
    }

    .product-detail-wrapper {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 26px !important;
        margin-top: 20px !important;
    }

    .product-thumbs {
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .product-thumb {
        flex: 0 0 72px;
    }

    .detail-title,
    .title,
    .cart-header,
    .reviews-title,
    .suggested-title,
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2.25rem) !important;
        line-height: 1.1 !important;
    }

    .description {
        max-width: 100% !important;
    }

    .btn-group,
    .actions {
        gap: 14px !important;
    }

    .btn-add,
    .btn-secondary,
    .btn-whatsapp,
    .checkout-btn,
    .place-btn {
        width: 100%;
        justify-content: center;
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    .order-summary {
        position: static !important;
        top: auto !important;
    }

    .cart-item {
        flex-direction: column !important;
        padding: 18px !important;
    }

    .item-image {
        width: 100% !important;
        max-width: none !important;
        height: min(62vw, 300px) !important;
    }

    .item-actions {
        width: 100%;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 14px !important;
    }

    .field-row,
    .review-form .row {
        grid-template-columns: 1fr !important;
    }

    .reviews-section,
    .suggested-section {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .review-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .suggested-slider {
        gap: 14px !important;
    }

    .footer-wrap {
        grid-template-columns: 1fr !important;
        padding-top: 42px !important;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start !important;
    }
}

@media (max-width: 640px) {
    body {
        overflow-x: hidden;
    }

    .container,
    .footer-wrap,
    .footer-bottom {
        width: min(100%, calc(100% - 18px));
    }

    .hero-carousel {
        height: clamp(280px, 52vh, 420px) !important;
        min-height: 280px !important;
    }

    .card {
        flex-basis: min(82vw, 280px) !important;
    }

    .card-image-wrapper {
        aspect-ratio: 4 / 5 !important;
    }

    .card-details,
    .suggested-body {
        padding: 16px 14px 18px !important;
    }

    .gender-grid,
    .review-list {
        grid-template-columns: 1fr !important;
    }

    .scent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .product-detail-wrapper,
    .cart-layout,
    .checkout-layout,
    .reviews-section,
    .suggested-section {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .qty-wrapper {
        width: 100%;
        justify-content: space-between;
    }

    .qty-input {
        flex: 1;
    }

    .price,
    .sale,
    .old {
        font-size: 1.4rem !important;
    }

    .detail-price-area {
        flex-wrap: wrap;
    }

    .review-card img,
    .suggested-card img {
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .whatsapp-float {
        right: 14px !important;
        bottom: 14px !important;
        width: 52px !important;
        height: 52px !important;
    }

    .auth-shell {
        grid-template-columns: 1fr !important;
    }

    .auth-brand,
    .auth-form,
    .auth-body {
        padding: 20px !important;
    }

    .auth-wrapper {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}
