/* Hot Deal Page Specific Styles */
/* Scoped under body.theme-modern.page-hotdeal */

/* ================= Product Grid Layout ================= */
/* Change from 6 products per row to 5 on desktop, responsive down to 2 on mobile */
body.theme-modern.page-hotdeal .category-product {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 16px;
    padding: 0;
}

/* Tablet: 3 columns */
@media (min-width: 768px) {
    body.theme-modern.page-hotdeal .category-product {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop: 5 columns */
@media (min-width: 1024px) {
    body.theme-modern.page-hotdeal .category-product {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ================= Product Image Section ================= */
/* Light blue background, rounded corners, centered image, hover zoom */
body.theme-modern.page-hotdeal .pro_img {
    background: #EEF4FF;
    border-radius: 12px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
}

body.theme-modern.page-hotdeal .pro_img img {
    object-fit: contain;
    max-height: 100%;
    max-width: 100%;
    transition: transform 0.3s ease;
}

body.theme-modern.page-hotdeal .product_item.wist_item:hover .pro_img img {
    transform: scale(1.1);
}

/* ================= Order Button Styling ================= */
/* Blue to cyan gradient, rounded corners, bold font, hover effect */
body.theme-modern.page-hotdeal .addcartbutton,
body.theme-modern.page-hotdeal .pro_btn button {
    background: linear-gradient(90deg, #1b6be6, #00C2FF);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    padding: 12px 16px;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(27, 107, 230, 0.2);
}

body.theme-modern.page-hotdeal .addcartbutton:hover,
body.theme-modern.page-hotdeal .pro_btn button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(27, 107, 230, 0.3);
    filter: brightness(1.05);
}

/* ================= Discount Badge ================= */
/* Small round pill shape, top-left corner, red background, white bold text */
body.theme-modern.page-hotdeal .sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

body.theme-modern.page-hotdeal .sale-badge-box {
    background: #EF4444;
    border-radius: 12px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    height: auto;
}

body.theme-modern.page-hotdeal .sale-badge-text {
    color: white;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

body.theme-modern.page-hotdeal .sale-badge-text p {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
}

/* ================= Product Card Enhancements ================= */
/* Ensure consistent card styling */
body.theme-modern.page-hotdeal .product_item.wist_item {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.theme-modern.page-hotdeal .product_item.wist_item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Product content spacing */
body.theme-modern.page-hotdeal .product_item_inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

body.theme-modern.page-hotdeal .pro_des {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

body.theme-modern.page-hotdeal .pro_name {
    margin-bottom: 8px;
    height: auto;
}

body.theme-modern.page-hotdeal .pro_name a {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

body.theme-modern.page-hotdeal .pro_price {
    margin-top: auto;
    margin-bottom: 0;
    padding: 0;
}

body.theme-modern.page-hotdeal .pro_price p {
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
    text-align: left;
}

body.theme-modern.page-hotdeal .pro_price del {
    color: #9CA3AF;
    font-size: 14px;
    font-weight: 400;
    margin-right: 8px;
}

body.theme-modern.page-hotdeal .pro_btn {
    padding: 12px;
    margin-top: 0;
}

/* ================= Responsive Adjustments ================= */
@media (max-width: 767px) {
    body.theme-modern.page-hotdeal .pro_img {
        padding: 12px;
    }
    
    body.theme-modern.page-hotdeal .pro_des {
        padding: 8px;
    }
    
    body.theme-modern.page-hotdeal .pro_btn {
        padding: 8px;
    }
    
    body.theme-modern.page-hotdeal .addcartbutton,
    body.theme-modern.page-hotdeal .pro_btn button {
        padding: 10px 12px;
        font-size: 14px;
    }
}