* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

body {
    font-family: Arial, sans-serif;
    padding: 40px 30px;
    min-height: 100vh;
    background: url("imgs/bg/bg.png") no-repeat center center fixed;
    background-size: cover;
}
body {
    overflow-x: hidden;
}
/* HEADER */
h1 {
    text-align: center;
    font-size: 54px;
    color: #5b4975;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 20px;
}

.title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 35px;
    width: 320px;
    color: #9b7aa8;
}

.title-divider::before,
.title-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #cba8d8);
}

.title-divider::after {
    background: linear-gradient(to left, transparent, #cba8d8);
}

.title-divider span {
    margin: 0 16px;
}

/* NAV */
.nav-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.tab-button {
    border: none;
    border-radius: 999px;
    padding: 12px 26px;
    cursor: pointer;
    font-size: 16px;
    background: #ececec;
}

.tab-button.active {
    background: #7f5a8e;
    color: white;
}

/* PAGE GRID */
.page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.section-header {
    grid-column: 1 / -1;
    text-align: center;
}

.site-disclaimer {
    max-width: 900px;
    margin: 32px auto 0;
    padding: 14px 0 4px;
    border-top: 1px solid rgba(91, 73, 117, 0.24);
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

/* LOOK BOX */
.look-box {
    background: linear-gradient(135deg, #e6d8f0, #d8c2e4);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.combo-line {
    font-size: 26px;
    margin-bottom: 20px;
}

.combo-amount {
    font-weight: bold;
}

/* MODEL + PRODUCTS */
.top-section {
    display: grid;
    grid-template-columns: minmax(240px, 42%) 1fr;
    gap: 20px;
    width: 100%;
    overflow: hidden;
}

/* MODEL */
.model-box {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #efefef;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-width: 0;
}

.model-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.overall-look-toggle {
    display: none;
}

/* PRODUCTS AREA */
.outfit-section {
    display: flex;
    flex-direction: column;
    gap: 22px;
    flex: 1;
}

/* PRODUCT CARD */
.product-card {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: black;
}

.product-card img {
    width: 180px;
    height: 190px;
    object-fit: contain;
    flex-shrink: 0;
}

.product-card h3 {
    font-size: 24px;
    margin: 0;
}

.product-card p {
    font-size: 20px;
}

/* DESKTOP — after 3 products, make horizontal row */
@media (min-width: 901px) {
    .top-section {
        display: block;
        overflow: visible;
    }

    .model-box {
        float: left;
        width: min(42%, 320px);
        margin: 0 28px 22px 0;
    }

    .outfit-section {
        display: block;
    }

    .product-card {
        display: inline-flex;
        width: 220px;
        max-width: 100%;
        margin: 0 16px 22px 0;
        vertical-align: top;
    }

    .look-box::after {
        content: "";
        display: block;
        clear: both;
    }
}

/* TABLET */
@media (max-width: 1200px) {
    .page-grid {
        grid-template-columns: 1fr;
    }
}

/* MOBILE */
@media (max-width: 900px) {
    body {
        padding: 20px 15px;
    }

    h1 {
        font-size: 34px;
    }

    .nav-bar {
        gap: 8px;
        margin-bottom: 28px;
    }

    .tab-button {
        padding: 10px 16px;
        font-size: 15px;
    }

    .look-box {
        width: min(100%, 360px);
        margin-inline: auto;
        padding: 12px;
    }

    .top-section {
        display: block;
    }

    .model-box {
        display: none;
    }

    .look-box.show-overall-look .model-box {
        display: flex;
        width: min(100%, 300px);
        margin: 0 auto 16px;
    }

    .overall-look-toggle {
        display: block;
        margin: 0 auto 16px;
        padding: 10px 16px;
        border: none;
        border-radius: 999px;
        background: #ececec;
        color: #222;
        font: inherit;
        font-size: 15px;
        cursor: pointer;
    }

    .look-box.show-overall-look .overall-look-toggle {
        background: #7f5a8e;
        color: white;
    }

    .overall-look-toggle:focus-visible {
        outline: 2px solid #5b4975;
        outline-offset: 2px;
    }

    .outfit-section {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .product-card {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        gap: 16px;
    }

    .product-card img {
        width: 170px !important;
        height: 180px !important;
    }

    .product-card h3 {
        font-size: 18px;
    }

    .product-card p {
        font-size: 16px;
    }
}
