:root {
    --purple: #7d4bb3;
    --purple-dark: #5f2d91;
    --purple-soft: #faf7fd;
    --gold: #d8b64b;
    --ink: #2c2c2c;
    --muted: #746a7d;
    --line: #e7d8f4;
    --white: #ffffff;
    --shadow: 0 10px 24px rgba(95,45,145,.10);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 10px clamp(16px, 4vw, 54px);
    background: var(--purple);
    border-bottom: 3px solid var(--gold);
}
.brand {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(32px, 4vw, 54px);
    font-style: italic;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--white);
    font-weight: 800;
    font-size: 13px;
}
.cart-link span {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    margin-left: 4px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--purple-dark);
}
.nav-toggle { display: none; }

.hero-frame {
    border-left: 3px solid var(--purple);
    border-right: 3px solid var(--purple);
    border-bottom: 18px solid var(--purple);
    background: var(--purple-soft);
}
.hero-slider {
    position: relative;
    width: min(100%, 1600px);
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.hero-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .7s ease;
}
.hero-slider img.active { opacity: 1; }

.section {
    padding: clamp(30px, 5vw, 70px) clamp(14px, 4vw, 54px);
}
.section-soft { background: var(--purple-soft); }
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    max-width: 1240px;
    margin: 0 auto 22px;
}
.section-head h1,
.section-head h2,
.page-title h1 {
    margin: 0;
    color: var(--purple-dark);
    font-size: clamp(28px, 4vw, 46px);
}
.section-head a,
.section-head span,
.page-title p { color: var(--muted); font-weight: 700; }
.page-title {
    padding: 48px 20px 28px;
    text-align: center;
    background: var(--purple-soft);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    max-width: 1240px;
    margin: 0 auto;
}
.product-card{
    background:#fff;
    border:1px solid #dcc8ef;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 3px 10px rgba(0,0,0,.06);
    transition:.25s;
}

.product-card:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 18px rgba(0,0,0,.10);
}


.product-image{
    padding:0;
    overflow:hidden;
    border-bottom:1px solid #e8d8f4;
}

.product-image img{
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:auto;
    object-fit:unset;
    border-radius:0;
}


.product-body { padding: 10px; }

.product-body h3{
    min-height:50px;
    margin:0 0 8px;
    font-size:19px;
    font-weight:700;
    line-height:1.4;
    color:#333;
    letter-spacing:.2px;
}
/*
.product-body h3 {
    min-height: 38px;
    margin: 0 0 3px;
    font-size: 13px;
    font-weight: 800;
}
*/


.product-body{
    padding:10px;
}

.product-body h3{
    margin:0 0 4px;
    font-size:18px;
    font-weight:700;
    line-height:1.2;
    min-height:auto;
}

.product-code{
    margin:0 0 6px;
    font-size:18px;
    line-height:1.2;
    color:#666;
}

.out-stock{
    display:block;
    margin:0 0 6px;
    font-size:18px;
    font-weight:700;
    line-height:1.2;
	color: #b00020; font-weight: 800; 
}

.price-row{
    display:flex;
    align-items:center;
    gap:5px;
    margin:0 0 8px;
}

.price-row strong{
    font-size:18px;
}

.price-row del{
    font-size:13px;
}


/*

.product-body h3{
    min-height:50px;
    margin:0 0 8px;
    font-size:19px;
    font-weight:700;
    line-height:1.4;
    color:#333;
    letter-spacing:.2px;
}


.product-code{
    margin:0 0 4px;
    font-size:15px;
    line-height:1.2;
}








.out-stock { color: #b00020; font-weight: 800; }
.price-row{
    display:flex;
    align-items:center;
    gap:6px;
    margin:8px 0;
}

.price-row strong{
    color:#5f2d91;
    font-size:15px;
}

.price-row del{
    color:#999;
    font-size:12px;

}

*/	




.sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 34px;
    margin: 8px 0;
}
.size-chip{
    width:28px;
    height:28px;
    border-radius:50%;
    background:#BA86F4;
    color:#fff;
    font-size:10px;
    font-weight:700;
}
.size-chip.active { outline: 3px solid var(--gold); }



.price-row strong { color: var(--purple-dark); font-size: 16px; }
.price-row del { color: #a8a0ad; font-size: 13px; }

.card-actions{
    display:flex;
    align-items:stretch;
    gap:6px;
}

.card-actions > a,
.card-actions > form{
    flex:1;
    margin:0;
}

.card-actions form{
    display:flex;
}

.card-actions form .btn{
    width:100%;
}

.card-actions .btn{

    width:100%;

    padding:8px 10px;

    font-size:14px;

    font-weight:700;

    white-space:nowrap;

}



.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: 100%;
    border: 0;
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
}

.btn-whatsapp{
    background:#28a745;
}

.btn-secondary{
    background:#BA86F4;
}

.btn-primary{
    background:#8d58c3;
}

.btn:hover{
    filter:brightness(.95);
}


.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 28px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 18px;
}


.gallery-main {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none !important;

    object-fit: contain !important;
    object-position: top center;

    border: 2px solid var(--line);
    border-radius: 8px;

    background: #fff;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.gallery-thumbs button {
    padding: 0;
    border: 2px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    cursor: pointer;
}
.gallery-thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.detail-copy { padding: 22px; }
.detail-copy h1 { color: var(--purple-dark); }

.contact-panel,
.cart-panel,
.checkout-layout {
    max-width: 1080px;
    margin: 32px auto;
    padding: 0 18px;
}
.contact-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.contact-card,
.cart-row,
.checkout-form {
    border: 2px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
}
.contact-card { display: grid; gap: 6px; }
.cart-row {
    display: grid;
    grid-template-columns: 74px 1fr auto auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.cart-row img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 6px;
}
.cart-row span { display: block; color: var(--muted); font-size: 13px; }
.icon-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f4e9fb;
    color: var(--purple-dark);
    font-size: 20px;
    cursor: pointer;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 2px solid var(--line);
    color: var(--purple-dark);
    font-size: 18px;
}
.cart-buy { max-width: 280px; margin-left: auto; }
.checkout-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 22px;
}
.checkout-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.checkout-form label { display: grid; gap: 6px; font-weight: 800; }
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 11px;
    font: inherit;
}
.checkout-form textarea { min-height: 86px; }
.checkout-form button,
.checkout-form label:nth-child(5),
.checkout-form label:nth-child(10) { grid-column: 1 / -1; }
.hp-field {
    position: absolute;
    left: -10000px;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.2fr .8fr 1fr;
    gap: 24px;
    padding: 34px clamp(16px, 4vw, 54px);
    color: var(--white);
    background: var(--purple-dark);
}
.footer-brand { font-size: 36px; }
.footer-links,
.footer-social { display: grid; gap: 10px; }

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 6px;
        background: var(--gold);
        color: var(--purple-dark);
        font-size: 22px;
    }
    .main-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        display: none;
        grid-template-columns: 1fr;
        padding: 16px;
        background: var(--purple-dark);
    }
    .main-nav.open { display: grid; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-detail,
    .checkout-layout,
    .contact-panel,
    .site-footer { grid-template-columns: 1fr; }
    .hero-slider { aspect-ratio: 4 / 3; }
    .cart-row { grid-template-columns: 64px 1fr; }
    .cart-row > strong,
    .cart-row > form { grid-column: 2; }
    .checkout-form { grid-template-columns: 1fr; }
}

.cart-actions{
    display:flex;
    justify-content:center;
    gap:15px;
    margin-top:20px;
    flex-wrap:wrap;
}

.cart-actions .btn{
    width:220px;
    text-align:center;
}

@media (max-width:768px){

    .cart-actions{
        flex-direction:column;
        align-items:center;
    }

    .cart-actions .btn{
        width:100%;
        max-width:300px;
    }

}


.cart-actions{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
}

.cart-actions a.btn{
    width:220px !important;
    flex:none !important;
    display:inline-flex !important;
    justify-content:center;
    align-items:center;
}




/* ==========================================
   WhatsApp Button (Official Icon)
========================================== */

.btn-whatsapp{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
}

.btn-whatsapp .wa-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    line-height:1;
}

.btn-whatsapp .wa-text{
    display:inline-block;
}

@media (max-width:768px){

    .card-actions .btn-whatsapp{

        width:42px !important;
        min-width:42px !important;
        max-width:42px !important;

        flex:0 0 42px !important;

        padding:0 !important;
    }

    .btn-whatsapp .wa-text{
        display:none;
    }

    .btn-whatsapp .wa-icon{
        font-size:20px;
    }

}

.cart-info{
    display:flex;
    flex-direction:column;
    gap:4px;
}


/* ===== Product Detail WhatsApp ===== */

.detail-actions .btn-whatsapp{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    flex:1 1 0;
    min-width:160px;
}

.detail-actions .btn-whatsapp .wa-icon{
    display:flex;
    align-items:center;
    justify-content:center;
}

@media (max-width:768px){

    .detail-actions .btn-whatsapp{

        width:42px !important;
        min-width:42px !important;
        max-width:42px !important;

        flex:0 0 42px !important;

        padding:0 !important;

    }

    .detail-actions .btn-whatsapp .wa-text{
        display:none;
    }

    .detail-actions .btn-whatsapp .wa-icon{
        font-size:20px;
    }

}


/* ===========================================================
   BELLA PURPLE HOME CARD V2
===========================================================*/

.product-card{
    position:relative;
    background:#fff;
    border:1px solid #e7d8f4;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(0,0,0,.06);
    transition:.30s ease;
}

.product-card:hover{
    transform:translateY(-4px);
    box-shadow:0 14px 30px rgba(0,0,0,.12);
}

.product-image{
    position:relative;
    display:block;
    overflow:hidden;
}

.product-image img{
    width:100%;
    display:block;
    transition:transform .35s ease;
}

.product-card:hover .product-image img{
    transform:scale(1.05);
}

/* Eye Icon */

.view-icon{

    position:absolute;

    top:12px;
    right:12px;

    width:40px;
    height:40px;

    border-radius:50%;

    background:#ffffff;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#7d4bb3;

    box-shadow:0 4px 10px rgba(0,0,0,.15);

    opacity:0;

    transform:translateY(-8px);

    transition:.25s;

    z-index:5;
}

.product-card:hover .view-icon{

    opacity:1;

    transform:translateY(0);

}

.view-icon i{

    font-size:18px;

}

.view-icon:hover{

    background:#7d4bb3;
    color:#fff;

}

/* Product Body */

.product-body{

    padding:14px;

}

.product-body h3{

    margin:0 0 10px;

    font-size:18px;

    line-height:1.35;

    font-weight:700;

    min-height:48px;

}

.product-body h3 a{

    color:#333;
    text-decoration:none;

}

.product-body h3 a:hover{

    color:#7d4bb3;

}

/* Hide Old Elements */

.product-code,
/* Hide only on Home Page */

.product-grid .product-code,
.product-grid .sizes,
.product-grid .card-actions{
    display:none !important;
}

.product-detail .sizes{
    display:flex !important;
    flex-wrap:wrap;
    gap:8px;
}

.product-detail .card-actions{
    display:flex !important;
}

.sizes,

/* Home page cards only */
.product-grid .card-actions{
    display:none !important;
}

/*==================================*/
/* Product Details buttons */
.product-detail .detail-actions{
    display:flex !important;
    align-items:stretch;
    gap:8px;
}

.product-detail .detail-actions form{
    flex:1;
    display:flex;
}


/* Desktop */
.detail-actions .btn-whatsapp{
    flex:1;
    min-width:170px;
}

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

    .detail-actions .btn-whatsapp{

        flex:0 0 42px !important;
        width:42px !important;
        min-width:42px !important;
        max-width:42px !important;
        padding:0 !important;

    }

    .detail-actions .btn-whatsapp .wa-text{
        display:none;
    }

}




@media (max-width:768px){

    .product-detail .detail-actions{
        display:flex !important;
        gap:6px;
    }

    .product-detail .detail-actions form{
        flex:1;
    }

}








/* Price */

.price-row{

    display:flex;

    align-items:center;

    gap:6px;

    margin:0;

}

.price-row strong{

    color:#5f2d91;

    font-size:19px;

    font-weight:800;

}

.price-row del{

    color:#999;

    font-size:13px;

}

/* Mobile */

@media(max-width:768px){

.product-grid{

    grid-template-columns:repeat(2,1fr);
    gap:12px;

}

.product-body{

    padding:10px;

}

.product-body h3{

    font-size:15px;

    min-height:40px;

}

.price-row strong{

    font-size:16px;

}

.view-icon{

    position:absolute;

    top:10px;
    right:10px;

    width:38px;
    height:38px;

    border-radius:50%;

    background:rgba(255,255,255,.95);

    display:flex;
    align-items:center;
    justify-content:center;

    color:#7d4bb3;

    box-shadow:0 3px 10px rgba(0,0,0,.15);

    z-index:20;

    opacity:0;
    transform:translateY(-8px);

    transition:.25s;
}

.product-card:hover .view-icon{

    opacity:1;
    transform:translateY(0);

}

/* Mobile devices - always show eye icon */
@media (hover:none){

    .view-icon{
        opacity:1;
        transform:none;
    }

}



.view-icon i{

    font-size:15px;

}

}


.product-image{

    position:relative;

    display:block;

    overflow:hidden;

}

.out-stock{
    display:inline-block;
    padding:8px 14px;
    background:#ffeaea;
    color:#b00020;
    border:1px solid #ffb3b3;
    border-radius:6px;
    font-weight:700;
}

.out-stock{

    display:inline-block;

    padding:8px 16px;

    background:#ffe8e8;

    color:#c40022;

    border:1px solid #ffb5b5;

    border-radius:6px;

    font-weight:700;

    font-size:14px;

    margin-top:6px;

}

button:disabled{

    opacity:.45;

    cursor:not-allowed;

}

.product-detail .detail-actions{
    display:grid !important;
    grid-template-columns:1fr 1fr 1fr;
    gap:10px;
}

.product-detail .detail-actions > *{
    width:100%;
}

.product-detail .detail-actions .btn{
    width:100%;
}




/* Mobile Product Card Typography */
@media (max-width:768px){
	
	

    .product-card .product-body h3{
        font-size:14px !important;
        font-weight:500 !important;
        line-height:1.3;
        margin:0 0 6px;
    }

    .product-card .product-body h3 a{
        font-size:inherit;
        font-weight:inherit;
    }

    .product-card .price-row strong{
        font-size:15px !important;
    }

    .product-card .price-row del{
        font-size:12px !important;
    }
	
	.product-title{
        font-size:14px;
        font-weight:500;
        line-height:1.3;
    }

}