/* ==================================================
   METARTIFY ECOMMERCE MASTER STYLESHEET
   Clean Production Version
   ================================================== */

/* ---------- RESET ---------- */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#f5f6f7;
    color:#222;
    line-height:1.5;
}

a{
    text-decoration:none;
    color:inherit;
}

.container{
    max-width:1200px;
    margin:auto;
    padding:0 15px;
}

/* ---------- HEADER ---------- */

.main-header{
    background:#fff;
    border-bottom:1px solid #e5e5e5;
    position:sticky;
    top:0;
    z-index:1000;
}

.header-flex{
    display:flex;
    align-items:center;
    gap:20px;
    padding:12px 0;
}

.logo img{
    height:48px;
}

/* search */

.search-box{
    flex:1;
    position:relative;
}

.search-box input{
    width:100%;
    height:44px;
    padding:0 45px 0 16px;
    border:1px solid #ddd;
    border-radius:10px;
    background:#fafafa;
}

.search-box button{
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    border:none;
    background:none;
    cursor:pointer;
}

/* actions */

.header-actions{
    display:flex;
    gap:10px;
}

.action-box{
    padding:9px 14px;
    border:1px solid #e0e0e0;
    border-radius:8px;
    background:#fff;
    font-size:14px;
    transition:.2s;
}

.action-box:hover{
    border-color:#0f766e;
    color:#0f766e;
}

/* ---------- CATEGORY BAR ---------- */

.category-bar{
    background:#f3f5f6;
    border-bottom:1px solid #e6e6e6;
}

.category-center{
    display:flex;
    justify-content:center;
    gap:14px;
    padding:14px 0;
    flex-wrap:wrap;
}

.category-center a{
    padding:8px 16px;
    background:#fff;
    border:1px solid #ddd;
    border-radius:30px;
    font-size:14px;
    transition:.2s;
}

.category-center a:hover{
    background:#0f766e;
    color:#fff;
}

/* ---------- PRODUCT LIST (HOME + CATEGORY) ---------- */

.luxury-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:28px;
    margin-top:30px;
}

.luxury-card{
    background:#fff;
    border-radius:14px;
    padding:14px;
    display:flex;
    flex-direction:column;
    box-shadow:0 6px 18px rgba(0,0,0,.06);
    transition:.25s;
}

.luxury-card:hover{
    transform:translateY(-6px);
    box-shadow:0 14px 32px rgba(0,0,0,.12);
}

.product-img img{
    width:100%;
    height:240px;
    object-fit:cover;
    border-radius:12px;
}

.product-title{
    margin-top:12px;
    font-size:15px;
    font-weight:600;
    height:44px;
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}

.luxury-price{
    margin-top:10px;
    font-size:18px;
    font-weight:700;
    color:#0f766e;
}

.card-buttons{
    margin-top:auto;
    display:flex;
    gap:10px;
    padding-top:14px;
}

.btn-view{
    flex:1;
    text-align:center;
    padding:10px;
    border:1px solid #0f766e;
    color:#0f766e;
    border-radius:8px;
    transition:.2s;
}

.btn-view:hover{
    background:#0f766e;
    color:#fff;
}

.btn-cart{
    flex:1;
    background:#111;
    color:#fff;
    border:none;
    border-radius:8px;
    padding:10px;
    cursor:pointer;
}

/* ---------- PRODUCT PAGE ---------- */

.product-page{
    margin:40px auto;
}

.product-grid{
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:50px;
    align-items:start;
}

/* prevent stretching */
.product-gallery{
    align-self:start;
}
/* gallery */

.product-gallery .main-image{
    background:#fff;
    border-radius:14px;
    padding:10px;
}


/* main product image frame */
.product-gallery .main-image{
    width:100%;
    aspect-ratio: 16 / 9;
/* perfect for wall art */
    background:#fff;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

/* image behavior */
.product-gallery .main-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.thumbs{
    display:flex;
    gap:12px;
    margin-top:14px;
    flex-wrap:wrap;
}

.thumbs img{
    width:85px;
    height:85px;
    border-radius:10px;
    border:2px solid #eee;
    cursor:pointer;
    object-fit:cover;
}

.thumbs img:hover{
    border-color:#0f766e;
}

/* details */

.product-details{
    background:#fff;
    padding:25px;
    border-radius:14px;
    border:1px solid #e8e8e8;
}

.product-details h1{
    font-size:30px;
    margin-bottom:10px;
}

.price-box{
    margin:15px 0 10px;
    font-size:24px;
    font-weight:700;
    color:#0f766e;
}

.price-label{
    font-size:14px;
    color:#777;
    margin-right:8px;
}

.short-desc{
    margin:15px 0 20px;
    color:#555;
}

.size-select{
    width:100%;
    padding:12px;
    border-radius:10px;
    border:1px solid #ddd;
    margin:12px 0 20px;
}

.add-cart-btn{
    width:100%;
    padding:14px;
    background:#c9a96e;
    color:#fff;
    border:none;
    border-radius:10px;
    font-size:16px;
    cursor:pointer;
}

.add-cart-btn:hover{
    background:#b89658;
}

/* description */

.product-description{
    margin-top:50px;
    background:#fff;
    padding:25px;
    border-radius:14px;
    border:1px solid #e8e8e8;
}

/* features */

.product-features{
    margin-top:40px;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:22px;
}

.feature{
    background:#fff;
    padding:20px;
    border-radius:12px;
    border:1px solid #e8e8e8;
}

/* tabs */

.product-tabs{
    margin-top:40px;
    background:#fff;
    padding:25px;
    border-radius:12px;
    border:1px solid #e8e8e8;
}

.tab-buttons{
    display:flex;
    border-bottom:2px solid #eee;
    margin-bottom:20px;
}

.tab-btn{
    padding:14px 22px;
    border:none;
    background:none;
    cursor:pointer;
    border-bottom:3px solid transparent;
}

.tab-btn.active{
    border-color:#0f766e;
    color:#0f766e;
    font-weight:600;
}

.tab-content{
    display:none;
}

.tab-content.active{
    display:block;
}

/* ---------- FOOTER ---------- */

.site-footer{
    background:#111;
    color:#ddd;
    margin-top:60px;
    padding-top:50px;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:40px;
}

.footer-bottom{
    text-align:center;
    margin-top:40px;
    padding:18px 0;
    border-top:1px solid #222;
}

/* ---------- MOBILE ---------- */

@media(max-width:900px){

.luxury-grid{grid-template-columns:repeat(2,1fr);}

.product-grid{grid-template-columns:1fr;}

.product-gallery .main-image img{height:320px;}

.product-features{grid-template-columns:1fr;}

.footer-grid{grid-template-columns:1fr;text-align:center;}

}
/* ensure tab buttons align */
.tab-buttons{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.tab-btn{
    padding:10px 18px;
    background:#f3f3f3;
    border-radius:8px;
    cursor:pointer;
}

.tab-btn.active{
    background:#0f766e;
    color:#fff;
}










/* ==========================
   RELATED PRODUCTS
========================== */

.related-products{
    margin:60px auto;
}

.section-title{
    font-size:26px;
    margin-bottom:25px;
    font-weight:600;
}

.related-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
}

.related-card{
    background:#fff;
    border-radius:12px;
    border:1px solid #e8e8e8;
    padding:12px;
    transition:.25s;
}

.related-card:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 24px rgba(0,0,0,.12);
}

/* product image frame */
.related-img{
    width:100%;
    height:220px;
    background:#fff;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

/* image behavior */
.related-img img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}


.related-name{
    margin-top:10px;
    font-size:15px;
    font-weight:600;
    min-height:42px;
}

/* mobile */
@media(max-width:900px){
    .related-grid{
        grid-template-columns:repeat(2,1fr);
    }
}



/* product page gallery thumbnails */
.thumbs img{
    width:80px;
    height:80px;
    object-fit:contain;
    background:#fff;
    padding:6px;
}





.product-gallery{
    background:transparent;
    padding:0;
}



.product-gallery .main-image{
    padding:12px;
}



/* STOP LEFT IMAGE COLUMN STRETCHING */
.product-grid > div{
    align-self:start;
}

/* make gallery card hug image */
.product-gallery{
    height:auto;
    display:inline-block;
}







/* ==================================================
   CART PAGE DESIGN (NO LOGIC CHANGED)
   ================================================== */

.cart-page{
    margin:40px auto;
}

/* title */
.cart-title{
    font-size:30px;
    margin-bottom:25px;
    font-weight:700;
}

/* main layout */
.cart-flex{
    display:grid;
    grid-template-columns: 1fr 340px;
    gap:30px;
    align-items:start;
}

/* left product list */
.cart-products{
    display:flex;
    flex-direction:column;
    gap:18px;
}

/* each product card */
.cart-card{
    display:flex;
    gap:20px;
    background:#fff;
    padding:18px;
    border-radius:14px;
    border:1px solid #e8e8e8;
}

/* image box */
.cart-img{
    width:130px;
    height:110px;
    background:#fafafa;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.cart-img img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

/* details */
.cart-details{
    flex:1;
}

.cart-name{
    font-size:18px;
    font-weight:600;
    margin-bottom:6px;
}

.cart-size,
.cart-price{
    color:#555;
    font-size:14px;
    margin-bottom:6px;
}

/* quantity form */
.qty-form{
    margin-top:8px;
}

.qty-form input{
    width:60px;
    padding:6px;
    border:1px solid #ddd;
    border-radius:6px;
    text-align:center;
}

.qty-form button{
    padding:6px 10px;
    margin-left:6px;
    border:none;
    background:#0f766e;
    color:#fff;
    border-radius:6px;
    cursor:pointer;
}

/* line total */
.line-total{
    margin-top:10px;
    font-weight:600;
}

/* remove link */
.remove-link{
    display:inline-block;
    margin-top:6px;
    color:#dc2626;
    font-size:14px;
}

/* summary card (right side) */
.cart-summary{
    background:#fff;
    padding:20px;
    border-radius:14px;
    border:1px solid #e8e8e8;
    position:sticky;
    top:100px;
}

.cart-summary h3{
    margin-bottom:18px;
    font-size:22px;
}

.summary-row{
    display:flex;
    justify-content:space-between;
    margin-bottom:12px;
    font-size:16px;
}

/* checkout button */
.checkout-btn{
    display:block;
    text-align:center;
    margin-top:20px;
    padding:14px;
    background:#c9a96e;
    color:#fff;
    border-radius:10px;
    font-weight:600;
    transition:.25s;
}

.checkout-btn:hover{
    background:#b89658;
}

/* empty cart */
.empty-cart{
    text-align:center;
    padding:60px 0;
}

.continue-btn{
    display:inline-block;
    margin-top:15px;
    padding:12px 20px;
    background:#0f766e;
    color:#fff;
    border-radius:8px;
}

/* mobile */
@media(max-width:900px){

    .cart-flex{
        grid-template-columns:1fr;
    }

    .cart-summary{
        position:relative;
        top:0;
    }

    .cart-card{
        flex-direction:column;
        align-items:center;
        text-align:center;
    }

    .cart-img{
        width:100%;
        height:180px;
    }
}







/* ==================================================
   CHECKOUT PAGE DESIGN
   ================================================== */

.checkout-page{
    margin:40px auto;
}

.checkout-title{
    font-size:30px;
    margin-bottom:25px;
    font-weight:700;
}

/* main layout */
.checkout-flex{
    display:grid;
    grid-template-columns: 1fr 380px;
    gap:35px;
    align-items:start;
}

/* ================= LEFT FORM ================= */

.checkout-form{
    background:#fff;
    padding:25px;
    border-radius:14px;
    border:1px solid #e8e8e8;
}

.checkout-form h2{
    margin-bottom:18px;
}

/* form rows */
.form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
    margin-bottom:15px;
}

/* inputs */
.checkout-form input,
.checkout-form textarea{
    width:100%;
    padding:13px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:14px;
    background:#fafafa;
    transition:.2s;
}

.checkout-form input:focus,
.checkout-form textarea:focus{
    border-color:#0f766e;
    outline:none;
    background:#fff;
}

.checkout-form textarea{
    margin-top:12px;
    min-height:90px;
    resize:vertical;
}

/* ================= RIGHT SUMMARY ================= */

.checkout-summary{
    background:#fff;
    padding:22px;
    border-radius:14px;
    border:1px solid #e8e8e8;
    position:sticky;
    top:100px;
}

.checkout-summary h2{
    margin-bottom:18px;
}

/* product row */
.summary-item{
    display:grid;
    grid-template-columns:60px 1fr auto;
    gap:12px;
    align-items:center;
    margin-bottom:14px;
}

.summary-item img{
    width:60px;
    height:60px;
    object-fit:contain;
    background:#fafafa;
    border-radius:8px;
}

.sum-name{
    font-size:14px;
    font-weight:600;
}

.sum-qty{
    font-size:13px;
    color:#555;
}

.sum-price{
    font-weight:600;
}

/* totals */
.summary-total,
.summary-line{
    display:flex;
    justify-content:space-between;
    margin-top:10px;
    font-size:15px;
}

.summary-total.final{
    margin-top:16px;
    padding-top:12px;
    border-top:2px solid #eee;
    font-size:18px;
    font-weight:700;
}

/* coupon box */
.coupon-box{
    display:flex;
    gap:8px;
    margin-bottom:16px;
}

.coupon-box input{
    flex:1;
    padding:10px;
    border:1px solid #ddd;
    border-radius:8px;
}

.coupon-box button{
    padding:10px 14px;
    border:none;
    background:#0f766e;
    color:#fff;
    border-radius:8px;
    cursor:pointer;
}

/* pay button */
.pay-btn{
    width:100%;
    margin-top:18px;
    padding:16px;
    background:#c9a96e;
    color:#fff;
    font-size:17px;
    border:none;
    border-radius:12px;
    font-weight:600;
    cursor:pointer;
    transition:.25s;
}

.pay-btn:hover{
    background:#b89658;
}

/* mobile */
@media(max-width:900px){

    .checkout-flex{
        grid-template-columns:1fr;
    }

    .checkout-summary{
        position:relative;
        top:0;
    }

    .form-row{
        grid-template-columns:1fr;
    }
}












/* New CSS Add 27.2.2026 */










/* ================= PRODUCT CARD FIX ================= */

/* make every card equal height */
.luxury-grid{
    align-items:stretch;
}

/* force card structure */
.luxury-card{
    height:100%;
    display:flex;
    flex-direction:column;
}

/* lock image frame */
.product-img{
    height:240px;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* consistent image behavior */
.product-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* FIX TITLE HEIGHT (VERY IMPORTANT) */
.product-title{
    height:44px;
    overflow:hidden;
}

/* price spacing */
.luxury-price{
    margin-top:8px;
}

/* button section always bottom */
.card-buttons{
    margin-top:auto;
}

/* buttons equal size */
.card-buttons a,
.card-buttons button{
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
}




/* pagination spacing fix */
.pagination{
    margin-top:40px;
    text-align:center;
    clear:both;
    width:100%;
}


.whatsapp-float{
position:fixed;
bottom:22px;
right:22px;
width:60px;
height:60px;
background:#25D366;
color:#fff;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:28px;
box-shadow:0 8px 18px rgba(0,0,0,.25);
z-index:9999;
transition:.25s;
}

.whatsapp-float:hover{
transform:scale(1.08);
}