:root {
    --bg: #F5EFE0;
    --ink: #1a1a1a;
    --cream: #EDE8D8;
    --cream-mid: #D9D1BC;
    --mid: #7a7570;
    --white: #FFFFFF;
}

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

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
}

/* ─── SPACING FOR NAV ─── */
body>br {
    display: none;
}

.bd-spacer {
    height: 88px;
}

/* ─── PRODUCT CONTAINER ─── */
.product-container {
    background: var(--white);
    max-width: 1300px;
    margin: 2rem auto;
    padding: 0;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
}

.product-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
}

/* ─── IMAGE GALLERY ─── */
.image-gallery {
    flex: 1;
    min-width: 300px;
    max-width: 580px;
    background: var(--cream);
    padding: 2rem;
}

.main-image-container {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--cream-mid);
    overflow: hidden;
    margin-bottom: 0;
}

.carousel-inner {
    height: 520px;
}

.carousel-item {
    height: 100%;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.carousel-image:hover {
    transform: scale(1.04);
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    opacity: .8;
}

.carousel-control-prev {
    left: 12px;
}

.carousel-control-next {
    right: 12px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

/* ─── PRODUCT INFO ─── */
.product-info {
    flex: 1;
    min-width: 300px;
    padding: 2.5rem 2.5rem 2rem;
    border-left: 1px solid var(--cream);
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 900;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

/* ─── PRICE ─── */
.price-section {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 1.5rem 0;
    padding: 1.2rem 0;
    border-top: 1px solid var(--cream-mid);
    border-bottom: 1px solid var(--cream-mid);
}

.price-label {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--mid);
    font-weight: 500;
}

.price-value {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -1px;
    line-height: 1;
}

/* ─── ORDER BUTTON ─── */
.action-buttons {
    margin: 1.5rem 0;
}

.btn-order-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 24px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-family: 'DM Sans', sans-serif;
    background: var(--ink);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: background .25s;
    text-decoration: none;
    text-align: center;
}

.btn-order-now:hover {
    background: #3a3330;
    color: var(--white);
    text-decoration: none;
}

/* ─── SHIPPING SECTION ─── */
.shipping-section {
    background: var(--cream);
    border: 1px solid var(--cream-mid);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.shipping-section h5 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--ink);
    letter-spacing: -.3px;
}

.form-label {
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--mid);
    font-weight: 500;
    margin-bottom: .4rem;
    display: block;
}

.form-control,
.form-select {
    border: 1px solid var(--cream-mid);
    border-radius: 0;
    padding: 10px 12px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--ink);
    outline: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ink);
    box-shadow: none;
}

.shipping-info-box {
    background: var(--white);
    border-left: 3px solid var(--ink);
    padding: 12px 16px;
    margin: 1rem 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--mid);
}

/* ─── DESCRIPTION ─── */
.product-description {
    margin: 1.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cream);
}

.product-description h5 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: .8rem;
    color: var(--ink);
    letter-spacing: -.3px;
}

.description-text {
    font-size: 13px;
    line-height: 1.9;
    color: var(--mid);
    white-space: pre-line;
    font-weight: 300;
}

/* ─── TRY ON SECTION ─── */
.try-on-section {
    background: var(--bg);
    border: 1px solid var(--cream-mid);
    padding: 2rem;
    margin: 1.5rem 0;
}

.try-on-section h5 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--ink);
    letter-spacing: -.3px;
}

.alert-custom {
    background: var(--cream);
    border-left: 3px solid var(--cream-mid);
    padding: 14px 16px;
    margin-bottom: 1.2rem;
    font-size: 12px;
    line-height: 1.75;
    color: var(--mid);
}

#container {
    position: relative;
    width: 100%;
    height: 420px;
    margin-top: 1.2rem;
    border: 1.5px dashed var(--cream-mid);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--white);
}

#placeholder {
    color: var(--mid);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    position: absolute;
    z-index: 0;
}

#userImage {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#dressImage {
    position: absolute;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    display: none;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: move;
}

.btn-try-on {
    background: var(--ink);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background .25s;
}

.btn-try-on:hover {
    background: #3a3330;
}

.form-control.mb-3 {
    border: 1px solid var(--cream-mid);
    border-radius: 0;
    font-size: 12px;
    padding: 10px 12px;
    background: var(--white);
}

.alert.alert-warning {
    background: var(--cream);
    border: none;
    border-left: 3px solid var(--cream-mid);
    border-radius: 0;
    color: var(--mid);
    font-size: 13px;
    line-height: 1.8;
}

/* ─── RECOMMENDATIONS ─── */
.recommendations-section {
    background: var(--white);
    max-width: 1300px;
    margin: 2rem auto;
    padding: 3rem 2.5rem;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
}

.recommendations-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: 2rem;
}

.recommendations-section h3 em {
    font-style: italic;
    color: var(--mid);
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1px;
    background: var(--cream-mid);
}

.recommendation-card {
    background: var(--bg);
    padding: 1.2rem;
    text-align: center;
    transition: background .25s, transform .3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.recommendation-card:hover {
    background: var(--white);
    transform: translateY(-3px);
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.recommendation-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    margin-bottom: .8rem;
}

.recommendation-card p {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 .3rem;
    line-height: 1.2;
}

.recommendation-card strong {
    font-size: 13px;
    color: var(--mid);
    font-weight: 500;
}

/* ─── FOOTER ─── */
footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 2rem;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    letter-spacing: .5px;
}

footer a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color .2s;
}

footer a:hover {
    color: var(--white);
}

/* ─── ZOOM MODAL ─── */
.modal-content.zoom-modal {
    background: transparent;
    border: none;
}

.modal-body img {
    max-width: 100%;
}

/* ─── REVEAL ─── */
.bd-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .7s ease;
}

.bd-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .product-section {
        flex-direction: column;
    }

    .image-gallery {
        max-width: 100%;
        padding: 1rem;
    }

    .product-info {
        padding: 1.5rem;
        border-left: none;
        border-top: 1px solid var(--cream);
    }

    .carousel-inner {
        height: 340px;
    }

    .recommendations-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .recommendations-section {
        padding: 2rem 1.5rem;
    }
}