/* Body background */
body {
    background: #E6F2FF; /* very light blue derived from #007BFF */
}

/* Image Box */
.image-box {
    width: 150px;       /* bigger width */
    height: 130px;      /* bigger height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
}

/* Category Image */
.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* keeps image proportional */
    border-radius: 12px;
}

/* Hover card effect */
.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Carousel Banner */
.carousel-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 5;  /* keeps consistent height across devices */
    object-fit: cover;
    display: block;        /* prevents CLS from inline images */
}

/* =============================
   Product Card
============================= */
.product-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #fff;
    border-radius: 6px;
    padding: 10px;
    border: 1px solid #e5e5e5;
    height: 100%;
}

/* Image fix */
#new_arrival img {
    width: 100%;
    height: 220px !important;
    object-fit: contain;
}

/* Title center */
.product-item h3 {
    text-align: center;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* =============================
   Price Table
============================= */
.table-scroll table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}
.table-scroll th,
.table-scroll td {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: center;
    font-size: 14px;
}
.table-scroll th {
    background-color: #f9f9f9;
    font-weight: 600;
}

/* =============================
   Button + Qty + Heart Inline
============================= */
.button-area {
    display: flex !important;
    align-items: center;
    justify-content: space-between; /* qty left, cart center, heart right */
    gap: 10px; /* spacing between elements */
    flex-wrap: nowrap;
    margin-top: 5px;
}

/* Number input (Qty) */
.number-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    min-width: 110px;
    max-width: 120px;
    height: 36px;
    flex-shrink: 0;
    margin-left: 10px;
    margin-bottom: 7px !important;
}
.number-input input {
    width: 40px;
    border: none;
    text-align: center;
    font-size: 15px;
    height: 100%;
    outline: none;
}
.number-input button {
    width: 30px;
    height: 100%;
    border: none;
    background-color: #D3D3D3;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}
.number-input button.minus::after { content: "-"; }
.number-input button.plus::after { content: "+"; }

/* Add to Cart button */
.btn-cart {
    flex: 1; /* take available space */
    max-width: 100px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    margin: 0 13px;
    background-color: #007BFF !important;
    padding: 10px 20px !important;
}

/* Heart button */
#heartWrapper a {
    height: 36px !important;
    width: 36px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 !important;
    margin-left: auto; /* push heart to far right */
}

/* Vertical alignment inside button area */
.button-area > * {
    display: flex;
    align-items: center;
}

/* Product slide spacing */
.product-slide {
    padding: 5px;
}

/* Table scroll container */
.table-scroll {
    max-height: none; /* allow full table */
    overflow: hidden;
    position: relative;
}
.table-scroll tbody tr:nth-child(n+3) {
    display: none; /* show only first 2 rows */
}
.table-scroll:hover tbody tr {
    display: table-row;
}
.table-scroll:hover {
    overflow-y: auto;
    max-height: 200px;
}

/* Badge */
.badge {
    background-color: #808080 !important;
    color: #FFFF00 !important;
}

/* Heart icon styling */
.heart-icon {
    margin-left: 7px !important;
    margin-bottom: 5px !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.heart-icon:hover,
.heart-icon:focus,
.heart-icon:active {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}
.heart-icon i {
    color: #D3D3D3;
    font-size: 24px;
    width: 36px;
    height: 36px;
    display: inline-block;
    line-height: 36px;
    text-align: center;
    transition: color 0.3s;
}
.heart-icon:hover i { color: red; }

/* Description fixed height */
.description-text { min-height: 48px; display: block; }

/* WhatsApp button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 9999;
}
.whatsapp-button i { font-size: 20px; margin-right: 8px; }
.whatsapp-button:hover { background-color: #1ebe57; transform: scale(1.05); }
.whatsapp-text { font-size: 16px; white-space: nowrap; }

/* =============================
   Mobile Responsive (max-width:480px)
============================= */
@media (max-width: 480px) {
    .products-wrapper {
        display: flex;
        flex-wrap: wrap !important;
        gap: 10px;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        justify-content: center;
        box-sizing: border-box;
    }
    .row.flex-nowrap {
        flex-wrap: wrap !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important;
    }
    .product-slide { flex: 0 0 48% !important; max-width: 48% !important; padding: 6px !important; box-sizing: border-box; }
    .product-item { width: 100% !important; box-sizing: border-box; }
    .product-item #new_arrival img { width: 100% !important; height: auto !important; max-height: 90px; object-fit: contain; }
    .button-area { flex-direction: column !important; align-items: center; gap: 5px; margin-top: 5px; }
    .number-input { width: 80% !important; height: 36px !important; margin: 0 !important; }
    .btn-cart { width: 300px; max-width: 800px; display: block; padding: 10px 90px 30px 0px !important; margin: 10px 0 10px -25px; text-align: center; background-color: #007bff; color: white; border-radius: 4px; cursor: pointer; transition: all 0.3s ease; }
    .d-flex { display: flex; flex-direction: column; align-items: center; gap: 5px; }
    .d-flex del, .d-flex span { display: block; text-align: center; }
    [id*="heartWrapper"], [id*="heartWrapper"] * { display: none !important; }
    .category-img { width: 90px; height: 80px; margin-right: 85px; }
    #myCarousel { display: none; }
    .description-text { min-height: 17px; display: block; }
    .button-area del, .button-area .cp-wrapper, .button-area span { display: inline-block !important; margin: 0 !important; padding: 0 !important; line-height: 1 !important; }
    .card-title { font-size: 12px !important; line-height: 1.2 !important; text-align: center !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 32px !important; padding: 0 4px; word-break: break-word; }
    .product-min-price { display: inline-block; width: 100px; text-align: center; white-space: nowrap; }
}
