/* Custom text selection color */
::selection {
    background: #007bff; /* highlight background */
    color: #fff;         /* selected text color */
}

/* For Firefox */
::-moz-selection {
    background: #007bff;
    color: #fff;
}


/* Card */
.card {
    display: flex;
    flex-direction: column;
    height: 380px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    background: #fff;
}

/* Large desktops (≥1200px) */
@media (min-width: 1200px) {
    .card {
        height: 400px;
    }
}

/* Tablets (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .card {
        height: 350px;
    }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
    .card {
        height: 320px; /* auto height for long content */
    }
}

/* Product Box - ensure image section same height */
.product-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

/* Product Image Box */
.product-imgbox {
    flex: 0 0 55%; /* image section fixed 55% of card height */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Product Details Card */
.product-details-card {
    flex: 1; /* take remaining space */
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    overflow: hidden;
}

/*.product-details-card h6 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin: 0;
    white-space: nowrap;
    !*overflow: hidden;
    text-overflow: ellipsis;*! !* truncate long text *!
}*/

/* Price */
.product-details-card p {
    font-size: 14px;
    margin: 0;
    /*display: flex;*/
    gap: 6px;
}

/* Footer */
.footer-wrapper {
    flex: 0 0 36px; /* footer fixed height */
    width: 100%;
    margin-top: auto; /* push footer to bottom */
}
/* Cart Actions */
.cart-actions {
    width: 100%;
    text-align: center;
}

/* Add to Cart Button */
.cart-add-btn {
    width: 100%;
    height: 36px;
    background: #1c3481;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 0;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.cart-add-btn:hover {
    background: linear-gradient(45deg, #ff5f6d, #ff7e5f);
}

/* Qty Box */
.cart-qty-box {
    width: 100%;
    height: 36px;
    background: #f8f9fa;
    display: grid;
    grid-template-columns: 40px 1fr 40px; /* - | input | + */
    align-items: center;
    border-radius: 0 0 6px 6px;
}

/* Minus & Plus buttons */
.cart-minus-btn,
.cart-plus-btn {
    background: #ff5f6d;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: 0.2s;
}

.cart-minus-btn:hover,
.cart-plus-btn:hover {
    background: #ff7e5f;
}

/* Qty Input */
.cart-qty-input {
    border: none;
    background: transparent;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure all cards have same font & spacing */
.card, .product-details-card, .cart-actions {
    font-family: 'Poppins', sans-serif; /* uniform font */
}
/* Base font size - Desktop */
.product-details-card h6 {
    font-size: 16px; /* desktop default */
    font-weight: 600;
    margin: 0;
}

.product-details-card p {
    font-size: 14px; /* desktop default */
    margin: 0;
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .product-details-card h6 {
        font-size: 13px;
    }
    .product-details-card p {
        font-size: 11px;
    }
}

/* Small Tablets / Large Mobile (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .product-details-card h6 {
        font-size: 12px;
    }
    .product-details-card p {
        font-size: 11px;
    }
}

/* Mobile (<576px) */
@media (max-width: 575px) {
    .product-details-card h6 {
        font-size: 12px;
    }
    .product-details-card p {
        font-size: 10px;
    }
}
