/* ======================================
🔥 IMAGE MODULE CSS
🔥 FINAL CATEGORY + PRODUCT UI
🔥 MODULE SYSTEM SAFE
====================================== */

/* ======================================
🔥 CATEGORY WRAPPER
====================================== */

.category-wrapper{

    position:relative;

    display:flex;

    align-items:center;

    background:#fff;

    border-bottom:1px solid #eee;

    padding:8px 42px;

    overflow:hidden;
}

/* ======================================
🔥 CATEGORY BAR
====================================== */

#categoryBar{

    display:flex;

    align-items:center;

    gap:8px;

    overflow-x:auto;

    scroll-behavior:smooth;

    width:100%;

    scrollbar-width:none;

    -ms-overflow-style:none;
}

#categoryBar::-webkit-scrollbar{

    display:none;
}

/* ======================================
🔥 CATEGORY BUTTON
====================================== */

.cat-link{

    display:flex;

    align-items:center;

    gap:6px;

    background:#f7f7f7;

    border-radius:999px;

    padding:5px 10px;

    cursor:pointer;

    flex-shrink:0;

    transition:0.2s ease;

    border:1px solid #ededed;

    user-select:none;

    white-space:nowrap;
}

/* ======================================
🔥 CATEGORY HOVER
====================================== */

.cat-link:hover{

    background:#fff3df;

    border-color:#ff9900;

    transform:translateY(-1px);
}

/* ======================================
🔥 CATEGORY ICON
====================================== */

.cat-link img{

    width:20px;

    height:20px;

    border-radius:50%;

    object-fit:cover;

    display:block;

    background:#fff;

    flex-shrink:0;
}

/* ======================================
🔥 CATEGORY TEXT
====================================== */

.cat-link span{

    font-size:12px;

    font-weight:600;

    color:#222;

    white-space:nowrap;

    line-height:1;
}

/* ======================================
🔥 SCROLL BUTTONS
====================================== */

.cat-scroll-btn{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:28px;

    height:28px;

    border:none;

    border-radius:50%;

    background:#fff;

    box-shadow:0 2px 6px rgba(0,0,0,0.15);

    cursor:pointer;

    z-index:20;

    font-size:12px;

    font-weight:bold;

    transition:0.2s ease;

    display:flex;

    align-items:center;

    justify-content:center;
}

/* ======================================
🔥 LEFT BUTTON
====================================== */

.cat-scroll-btn.left{

    left:8px;
}

/* ======================================
🔥 RIGHT BUTTON
====================================== */

.cat-scroll-btn.right{

    right:8px;
}

/* ======================================
🔥 BUTTON HOVER
====================================== */

.cat-scroll-btn:hover{

    background:#ff9900;

    color:#fff;
}

/* ======================================
🔥 PRODUCT IMAGE BOX
====================================== */

.image-box{

    width:100%;

    height:220px;

    display:flex;

    align-items:center;

    justify-content:center;

    overflow:hidden;

    background:#fff;

    border-radius:12px;

    position:relative;
}

/* ======================================
🔥 PRODUCT IMAGE
====================================== */

.image-box img{

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

    transition:0.3s ease;
}

/* ======================================
🔥 PRODUCT HOVER
====================================== */

.product-card:hover .image-box img{

    transform:scale(1.03);
}

/* ======================================
🔥 PRODUCT CARD
====================================== */

.product-card{

    background:#fff;

    border-radius:12px;

    overflow:hidden;

    border:1px solid #f0f0f0;

    transition:0.2s ease;
}

/* ======================================
🔥 PRODUCT CARD HOVER
====================================== */

.product-card:hover{

    transform:translateY(-2px);

    box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

/* ======================================
🔥 PRODUCT CONTENT
====================================== */

.box-inner{

    padding:12px;
}

/* ======================================
🔥 PRODUCT NAME
====================================== */

.product-name{

    font-size:14px;

    font-weight:600;

    color:#111;

    line-height:20px;

    margin-bottom:6px;

    overflow:hidden;

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    min-height:40px;
}

/* ======================================
🔥 PRODUCT DESC
====================================== */

.product-desc{

    font-size:12px;

    color:#666;

    line-height:18px;

    margin-bottom:8px;

    min-height:34px;
}

/* ======================================
🔥 PRICE
====================================== */

.price{

    font-size:20px;

    font-weight:700;

    color:#111;

    margin-top:6px;
}

/* ======================================
🔥 STOCK
====================================== */

.stock{

    font-size:12px;

    font-weight:600;

    margin-top:8px;
}

.stock.in{

    color:green;
}

.stock.out{

    color:red;
}

/* ======================================
🔥 BUTTON
====================================== */

.cart-btn,
.add-btn{

    width:100%;

    border:none;

    background:#ff9900;

    color:#fff;

    padding:10px;

    border-radius:8px;

    cursor:pointer;

    font-size:13px;

    font-weight:600;

    margin-top:10px;

    transition:0.2s ease;
}

/* ======================================
🔥 BUTTON HOVER
====================================== */

.cart-btn:hover,
.add-btn:hover{

    background:#e68a00;
}

/* ======================================
🔥 MOBILE
====================================== */

@media(max-width:768px){

    .category-wrapper{

        padding:8px 36px;
    }

    #categoryBar{

        gap:6px;
    }

    .cat-link{

        padding:5px 9px;

        gap:5px;
    }

    .cat-link img{

        width:18px;

        height:18px;
    }

    .cat-link span{

        font-size:11px;
    }

    .cat-scroll-btn{

        width:24px;

        height:24px;

        font-size:10px;
    }

    .image-box{

        height:170px;
    }

    .product-name{

        font-size:13px;
    }

    .price{

        font-size:18px;
    }
}