/* CARD */
.modern-card{
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
    width: 100%;
}

.modern-card:hover{
    transform: translateY(-6px);
}

/* TOP AREA */
.modern-card-top{
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #f5f5f5;
}

/* IMAGE */
.modern-card-img{
    width: 100%;
    height: 100%;
    object-fit: cover;   /* crop + fit */
    object-position: center;
    display: block;
    transform: none;
    transition: 0.4s ease;
    position: relative;
    z-index: 1;
}


.modern-card:hover .modern-card-img{
    transform: scale(1.08);
}

/* HEART */
.wishlist-btn{
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 20; /* higher than image */
    font-size: 18px;
}

.wishlist-btn i{
    font-size: 18px;
}

/* BODY */
.modern-card-body{
    padding: 22px;
    margin-top: -20px;
    position: relative;
    background: #fff;
    border-radius: 28px 28px 24px 24px;
    z-index: 2;
}

.modern-title{
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

/* TAGS */
.tag-wrap{
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.product-tag{
    border: 1px solid #999;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    text-transform: uppercase;
    background: #fff;
}

/* DESCRIPTION */
.modern-desc{
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    min-height: 80px;
}

/* BOTTOM */
.bottom-row{
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.price-label{
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    color: #666;
}

.modern-price{
    font-size: 24px;
    font-weight: 700;
    color: #222;
    line-height: 1;
}

/* BUTTON */
.cart-btn{
    background: #6c5aa8;
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    min-width: 130px;
    text-align: center;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-btn:hover{
    background: #57458f;
    color: white;
    transform: translateY(-2px);
}

/* MOBILE */
@media(max-width:768px){

    .modern-card-top{
        height: 260px;
    }

    .modern-card-img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .modern-card-body{
        margin-top: -16px;
        border-radius: 24px 24px 22px 22px;
        padding: 20px;
    }

    .modern-title{
        font-size: 28px;
    }

    .modern-desc{
        font-size: 15px;
        line-height: 1.7;
    }

    .bottom-row{
        flex-direction: column;
        align-items: stretch;
    }

    .cart-btn{
        width: 100%;
    }

}

/* SECTION VIEW BUTTON */
.section-view-btn{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: 18px;
    background: #6c5aa8;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: .3s ease;
}

.section-view-btn:hover{
    background: #57458f;
    color: #fff;
    transform: translateY(-2px);
}
/* ===============================
   SOLD OUT BADGE
================================= */
.soldout-badge{
    position: absolute;
    inset: 0;
    z-index: 30;
    pointer-events: none;
}

.soldout-badge::after{
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/soldout.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
    opacity: 0.95;
}

/* grayscale sold product */
.modern-card:has(.soldout-badge) .modern-card-img{
    filter: grayscale(100%);
    opacity: 0.65;
}

/* ===============================
   Wishlist
================================= */

.wishlist-btn{
    transition: 0.3s;
    cursor: pointer;
}

.wishlist-btn.active{
    background: #ff4d6d;
    color: white;
}

.wishlist-btn.active i{
    color: white;
}

/* ===============================
   MODERN PRODUCT PAGE
================================= */

.modern-product-gallery{
    position: sticky;
    top: 110px;
}

.main-image-box{
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    padding: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

#mainImage{
    width: 100%;
    height: 650px;
    object-fit: cover;
    border-radius: 22px;
    display: block;
    transition: .4s ease;
}

#mainImage:hover{
    transform: scale(1.02);
}

/* thumbs */
.thumbs-row{
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.thumbs-row img{
    width: 78px;
    height: 78px;
    border-radius: 16px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: .25s ease;
    background: #fff;
    padding: 3px;
}

.thumbs-row img:hover{
    border-color: var(--almond-silk);
    transform: translateY(-2px);
}

/* RIGHT */
.modern-product-info{
    padding: 10px 6px;
}

.product-mini-tag{
    display: inline-flex;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(201,173,167,.18);
    color: var(--dusty-grape);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.modern-product-title{
    font-size: 52px;
    line-height: 1.05;
    font-weight: 800;
    color: var(--space-indigo);
    margin-bottom: 14px;
}

.modern-product-subtitle{
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    max-width: 500px;
}

.modern-product-price{
    font-size: 42px;
    font-weight: 800;
    color: var(--space-indigo);
}

.detail-label{
    font-size: 14px;
    font-weight: 700;
    color: #555;
}

/* INFO GRID */
.product-info-grid{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 16px;
}

.info-card{
    background: rgba(255,255,255,.7);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(0,0,0,.05);
}

.info-card span{
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 6px;
}

.info-card strong{
    font-size: 15px;
    color: #222;
}

/* DESCRIPTION */
.modern-description{
    font-size: 15px;
    line-height: 1.9;
    color: #555;
}

/* BUTTONS */
.modern-action-row{
    display: flex;
    gap: 14px;
}

.modern-cart-btn{
    flex: 1;
    height: 60px;
    border: none;
    border-radius: 18px;
    background: var(--space-indigo);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    transition: .3s ease;
}

.modern-cart-btn:hover{
    background: var(--dusty-grape);
    transform: translateY(-2px);
}

.modern-wishlist-btn{
    width: 60px;
    border: none;
    border-radius: 18px;
    background: #fff;
    color: var(--space-indigo);
    font-size: 20px;
    transition: .3s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

.modern-wishlist-btn:hover{
    background: #ffe8ee;
    color: #ff4d6d;
}

/* MOBILE */
@media(max-width:768px){

    #mainImage{
        height: 420px;
    }

    .modern-product-title{
        font-size: 36px;
    }

    .modern-product-price{
        font-size: 34px;
    }

    .product-info-grid{
        grid-template-columns: 1fr;
    }

}
/* ===============================
   FRAGRANCE NOTES
================================= */

.notes-wrapper{
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.note-box{
    background: rgba(255,255,255,.7);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(0,0,0,.05);
}

.note-box span{
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 700;
}

.note-box p{
    margin: 0;
    color: #444;
    line-height: 1.8;
    font-size: 15px;
}

/* NOTIFY */
.notify-modern-box{
    background: rgba(255,255,255,.75);
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,.05);
}

.modern-input{
    height: 56px;
    border-radius: 16px;
    border: 1px solid #ddd;
    padding: 0 18px;
}

/* SOLD OUT IMAGE */
.main-image-box:has(.soldout-badge) #mainImage{
    filter: grayscale(100%);
    opacity: .7;
}

/* ===============================
   COLOR VARIANTS
================================= */

.color-variant-btn{
    padding: 10px 18px;
    border-radius: 14px;
    background: #f3f3f3;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: .25s ease;
    border: 2px solid transparent;
    min-width: 90px;
    text-align: center;
}

.color-variant-btn:hover{
    background: #ececec;
    color: #111;
}

.color-variant-btn.active-color{
    border-color: #6c5aa8;
    background: #ede9ff;
    color: #6c5aa8;
}

.color-variant-btn small{
    font-size: 11px;
    margin-top: 3px;
}

/* THUMBNAILS */

.thumbs-row{
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.thumb-img{
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 14px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: .25s ease;
}

.thumb-img:hover{
    border-color: #6c5aa8;
    transform: scale(1.05);
}