/* =========================================
   SELFII UNIVERSE — BOUTIQUE
   Premium African-inspired storefront
========================================= */

.boutique-page {
    --boutique-cream: #F7F4EC;
    --boutique-surface: #F0EADF;
    --boutique-white: #FFFEFA;
    --boutique-dark: #17262D;
    --boutique-black: #151515;
    --boutique-muted: #68645F;
    --boutique-terracotta: #BF5B40;
    --boutique-border: #D8D0C4;

    background: var(--boutique-cream);
    color: var(--boutique-dark);
    font-family: "DM Sans", sans-serif;
    overflow-x: clip;
}

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

.boutique-page a {
    color: inherit;
    text-decoration: none;
}

.boutique-page button,
.boutique-page input,
.boutique-page select {
    font: inherit;
}

.boutique-page img {
    display: block;
    max-width: 100%;
}

.boutique-page .announcement-bar {
    min-height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    background: var(--boutique-dark);
    color: var(--boutique-white);
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.12em;
}

.boutique-page .announcement-bar p {
    margin: 0;
}

.boutique-page .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--boutique-cream);
    border-bottom: 1px solid var(--boutique-border);
}

.boutique-page .header-inner {
    width: min(1440px, 100%);
    min-height: 82px;
    margin: auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.boutique-page .brand-logo {
    flex-shrink: 0;
    font-family: "Playfair Display", serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.07em;
}

.boutique-page .brand-logo span {
    color: var(--boutique-terracotta);
}

.boutique-page .desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2vw, 30px);
}

.boutique-page .desktop-nav a {
    position: relative;
    padding: 10px 0;
    color: var(--boutique-muted);
    font-size: 12px;
    transition: color 0.2s ease;
}

.boutique-page .desktop-nav a:hover,
.boutique-page .desktop-nav a.active {
    color: var(--boutique-dark);
}

.boutique-page .desktop-nav a.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 2px;
    background: var(--boutique-terracotta);
}

.boutique-page .header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.boutique-page .icon-button {
    position: relative;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--boutique-dark);
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease;
}

.boutique-page .icon-button:hover {
    background: var(--boutique-surface);
}

.boutique-page .cart-link #cartCount {
    position: absolute;
    top: -2px;
    right: -3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--boutique-terracotta);
    color: white;
    font-size: 10px;
}

.boutique-page .menu-toggle,
.boutique-page .mobile-nav {
    display: none;
}

.boutique-page .header-search {
    display: none;
    width: min(90%, 600px);
    margin: 0 auto;
    padding: 0 0 20px;
}

.boutique-page .header-search.is-open {
    display: block;
}

.boutique-page .header-search label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
}

.boutique-page .search-input-wrap {
    display: flex;
    border: 1px solid var(--boutique-border);
    background: var(--boutique-white);
}

.boutique-page .search-input-wrap input {
    width: 100%;
    min-width: 0;
    padding: 13px 15px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--boutique-dark);
}

.boutique-page .search-input-wrap button {
    width: 48px;
    flex-shrink: 0;
    border: 0;
    background: var(--boutique-dark);
    color: white;
    cursor: pointer;
}

/* HERO */

.boutique-page .boutique-hero {
    width: min(1440px, 100%);
    min-height: 580px;
    margin: auto;
    padding: 48px 5% 68px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: clamp(35px, 7vw, 100px);
}

.boutique-page .boutique-hero-content {
    max-width: 490px;
    padding: 20px 0;
}

.boutique-page .eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--boutique-terracotta);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.boutique-page .boutique-hero h1,
.boutique-page .boutique-intro h2,
.boutique-page .section-heading h2,
.boutique-page .boutique-note h2 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-weight: 500;
    letter-spacing: -0.045em;
}

.boutique-page .boutique-hero h1 {
    max-width: 500px;
    font-size: clamp(46px, 6.2vw, 82px);
    line-height: 1.06;
}

.boutique-page .boutique-hero h1 em,
.boutique-page .boutique-intro h2 em,
.boutique-page .boutique-note h2 em {
    color: var(--boutique-terracotta);
    font-weight: 400;
}

.boutique-page .boutique-hero-content > p {
    max-width: 390px;
    margin: 25px 0 30px;
    color: var(--boutique-muted);
    font-size: 14px;
    line-height: 1.9;
}

.boutique-page .button {
    min-height: 49px;
    padding: 14px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.boutique-page .button:hover {
    transform: translateY(-2px);
}

.boutique-page .button-primary {
    background: var(--boutique-dark);
    color: var(--boutique-white);
}

.boutique-page .button-primary:hover {
    background: var(--boutique-terracotta);
    color: white;
}

.boutique-page .button-secondary {
    border-color: var(--boutique-dark);
    background: transparent;
    color: var(--boutique-dark);
}

.boutique-page .button-secondary:hover {
    background: var(--boutique-dark);
    color: white;
}

.boutique-page .boutique-hero-image {
    position: relative;
    min-width: 0;
    height: clamp(360px, 44vw, 560px);
    overflow: hidden;
    background: var(--boutique-surface);
}

.boutique-page .boutique-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.boutique-page .hero-image-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 38px 24px 22px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(transparent, rgb(0 0 0 / 65%));
    color: white;
    font-size: 10px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

/* INTRODUCTION */

.boutique-page .boutique-intro {
    padding: 100px 24px;
    text-align: center;
    background: var(--boutique-white);
}

.boutique-page .boutique-intro h2,
.boutique-page .boutique-note h2 {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.15;
}

.boutique-page .boutique-intro > p,
.boutique-page .boutique-note > p {
    max-width: 560px;
    margin: 22px auto 0;
    color: var(--boutique-muted);
    font-size: 13px;
    line-height: 1.9;
}

/* PRODUCT SECTION */

.boutique-page .boutique-products-section {
    width: min(1440px, 100%);
    margin: auto;
    padding: 90px 5% 100px;
    scroll-margin-top: 100px;
}

.boutique-page .section-heading {
    margin-bottom: 35px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
}

.boutique-page .section-heading .eyebrow {
    margin-bottom: 12px;
}

.boutique-page .section-heading h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
}

.boutique-page .section-heading > div > p {
    margin: 12px 0 0;
    color: var(--boutique-muted);
    font-size: 13px;
}

.boutique-page .product-sort {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--boutique-muted);
    font-size: 11px;
}

.boutique-page .product-sort select {
    max-width: 190px;
    padding: 11px 28px 11px 12px;
    border: 1px solid var(--boutique-border);
    border-radius: 0;
    background: var(--boutique-white);
    color: var(--boutique-dark);
    cursor: pointer;
}

.boutique-page .boutique-status {
    margin-bottom: 22px;
    color: var(--boutique-muted);
    font-size: 12px;
}

.boutique-page .boutique-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px 22px;
}

.boutique-page .boutique-product-grid:empty {
    display: none;
}

/* Product cards created by boutique.js */

.boutique-page .boutique-product-card {
    min-width: 0;
}

.boutique-page .boutique-product-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--boutique-surface);
}

.boutique-page .boutique-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.boutique-page .boutique-product-card:hover .boutique-product-image img {
    transform: scale(1.045);
}

.boutique-page .boutique-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    background: var(--boutique-white);
    color: var(--boutique-dark);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.boutique-page .boutique-product-info {
    padding: 17px 0 0;
}

.boutique-page .boutique-product-category {
    margin: 0 0 8px;
    color: var(--boutique-muted);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.boutique-page .boutique-product-name {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.35;
}

.boutique-page .boutique-product-description {
    margin: 9px 0 0;
    color: var(--boutique-muted);
    font-size: 12px;
    line-height: 1.7;
}

.boutique-page .boutique-product-bottom {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.boutique-page .boutique-product-price {
    color: var(--boutique-dark);
    font-size: 14px;
    font-weight: 700;
}

.boutique-page .boutique-add-button {
    min-height: 39px;
    padding: 10px 13px;
    border: 1px solid var(--boutique-dark);
    background: transparent;
    color: var(--boutique-dark);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.boutique-page .boutique-add-button:hover {
    background: var(--boutique-dark);
    color: white;
}

.boutique-page .boutique-add-button:disabled {
    border-color: var(--boutique-border);
    background: var(--boutique-surface);
    color: var(--boutique-muted);
    cursor: not-allowed;
}

.boutique-page .boutique-empty {
    padding: 75px 20px;
    text-align: center;
    background: var(--boutique-white);
}

.boutique-page .boutique-empty[hidden] {
    display: none;
}

.boutique-page .boutique-empty > i {
    margin-bottom: 20px;
    color: var(--boutique-terracotta);
    font-size: 32px;
}

.boutique-page .boutique-empty h3 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 500;
}

.boutique-page .boutique-empty p {
    margin: 12px 0 25px;
    color: var(--boutique-muted);
    font-size: 13px;
    line-height: 1.7;
}

/* CLOSING BRAND SECTION */

.boutique-page .boutique-note {
    padding: 95px 24px;
    background: var(--boutique-surface);
    text-align: center;
}

.boutique-page .boutique-note .button {
    margin-top: 28px;
}

/* FOOTER */

.boutique-page .site-footer {
    padding: 55px 5% 25px;
    background: var(--boutique-dark);
    color: var(--boutique-white);
}

.boutique-page .footer-inner {
    width: min(1200px, 100%);
    margin: auto;
    text-align: center;
}

.boutique-page .footer-inner > p {
    color: rgb(255 254 250 / 70%);
    font-size: 12px;
    line-height: 1.8;
}

.boutique-page .footer-links {
    margin: 25px 0 35px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 25px;
}

.boutique-page .footer-links a {
    color: rgb(255 254 250 / 80%);
    font-size: 11px;
}

.boutique-page .footer-links a:hover {
    color: white;
}

.boutique-page .footer-copyright {
    padding-top: 22px;
    border-top: 1px solid rgb(255 254 250 / 15%);
    font-size: 10px !important;
}

/* RESPONSIVE */

@media (min-width: 1500px) {
    .boutique-page .boutique-hero,
    .boutique-page .boutique-products-section {
        padding-right: 70px;
        padding-left: 70px;
    }
}

@media (max-width: 1050px) {
    .boutique-page .header-inner {
        padding-right: 4%;
        padding-left: 4%;
        gap: 18px;
    }

    .boutique-page .desktop-nav {
        gap: 16px;
    }

    .boutique-page .desktop-nav a {
        font-size: 11px;
    }

    .boutique-page .header-actions {
        gap: 8px;
    }

    .boutique-page .boutique-hero {
        gap: 35px;
    }

    .boutique-page .boutique-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .boutique-page .header-inner {
        min-height: 70px;
        padding: 0 5%;
    }

    .boutique-page .brand-logo {
        font-size: 27px;
    }

    .boutique-page .desktop-nav {
        display: none;
    }

    .boutique-page .header-actions {
        gap: 5px;
    }

    .boutique-page .menu-toggle {
        display: inline-flex;
    }

    .boutique-page .mobile-nav.is-open {
        display: flex;
        flex-direction: column;
        padding: 8px 5% 20px;
        border-top: 1px solid var(--boutique-border);
        background: var(--boutique-cream);
    }

    .boutique-page .mobile-nav a {
        padding: 13px 0;
        border-bottom: 1px solid var(--boutique-border);
        color: var(--boutique-dark);
        font-size: 13px;
    }

    .boutique-page .mobile-nav a[aria-current="page"] {
        color: var(--boutique-terracotta);
    }

    .boutique-page .boutique-hero {
        padding: 45px 5% 55px;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .boutique-page .boutique-hero-content {
        max-width: 560px;
    }

    .boutique-page .boutique-hero h1 {
        max-width: 500px;
        font-size: clamp(45px, 11vw, 68px);
    }

    .boutique-page .boutique-hero-content > p {
        margin-top: 18px;
    }

    .boutique-page .boutique-hero-image {
        height: min(112vw, 500px);
    }

    .boutique-page .boutique-intro {
        padding: 75px 6%;
    }

    .boutique-page .boutique-products-section {
        padding: 65px 5% 75px;
    }

    .boutique-page .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 22px;
    }

    .boutique-page .product-sort {
        width: 100%;
        justify-content: space-between;
    }

    .boutique-page .product-sort select {
        max-width: 65%;
    }

    .boutique-page .boutique-product-grid {
        gap: 30px 14px;
    }

    .boutique-page .boutique-product-name {
        font-size: 17px;
    }

    .boutique-page .boutique-product-bottom {
        align-items: start;
        flex-direction: column;
    }

    .boutique-page .boutique-add-button {
        width: 100%;
    }

    .boutique-page .boutique-note {
        padding: 75px 6%;
    }
}

@media (max-width: 420px) {
    .boutique-page .announcement-bar {
        font-size: 9px;
    }

    .boutique-page .header-actions {
        gap: 0;
    }

    .boutique-page .icon-button {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .boutique-page .boutique-product-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .boutique-page .boutique-product-bottom {
        align-items: center;
        flex-direction: row;
    }

    .boutique-page .boutique-add-button {
        width: auto;
    }

    .boutique-page .boutique-hero-image {
        height: 115vw;
    }

    .boutique-page .hero-image-caption {
        padding: 30px 14px 16px;
        font-size: 8px;
    }
}

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