body {
    font-family: Arial, sans-serif;
    background-color: white;
    margin: 0;
    padding: 0;
}
h1 {
    color: #333;
}
.btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}
.btn:hover {
    background-color: #0056b3;
}

#header {
    background-color: #FFD7E0;
    margin: 0;
    padding: 10px;
}
#slot_list {
    padding: 10px;
}

.product-card {
    background-color: #F4F4F4;
    border-radius: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0;
    height: 100%; /* Ensure all cards take full height */
    min-height: 300px; /* Set minimum height for consistency */
}

.product-card:hover {
    transform: scale(1.02);
    cursor: pointer;
}

.slot-label {
    background: linear-gradient(180deg, #0469BC, #332C5A); /* Gradient effect */
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 15px 0 15px 0;
    display: inline-block;
    white-space: nowrap;
    align-self: flex-start; /* Aligns it to the left */
    margin-bottom: 5px; /* Spacing between label & product image */
}
.product-image-container {
    width: 120px; /* Fixed width */
    height: 120px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5F5F5; /* Light gray background */
    border-radius: 10px; /* Optional for rounded corners */
    overflow: hidden; /* Prevents overflow */
    margin: 10px auto;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps aspect ratio & fits inside */
    background-color: #FFFFFF; /* Fallback background */
}

.product-info {
    text-align: left;
    width: 100%;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1; /* Allow it to expand to fill remaining space */
}

.product-description {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    min-height: 45px; /* Reserve space for 3 lines even if empty */
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    margin: 0;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #D71A5D;
    margin-top: 5px;
}

.currency {
    font-size: 14px;
}

.product-card-link {
    text-decoration: none !important; /* Remove underline */
    color: inherit !important; /* Inherit text color */
}

.offline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    z-index: 1000;
}
.offline-message {
    background: white;
    color: black;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
}
.offline-message i {
    font-size: 40px;
    color: #ffcc00;
}

/* Mobile responsive adjustments for product cards */
@media (max-width: 768px) {
    .product-card {
        min-height: 280px; /* Slightly smaller for mobile */
    }
    
    .product-image-container {
        width: 100px; /* Smaller on mobile */
        height: 100px;
    }
    
    .product-info {
        padding: 8px 15px; /* Tighter padding on mobile */
    }
    
    .product-name {
        font-size: 14px; /* Smaller font on mobile */
    }
    
    .product-description {
        font-size: 12px; /* Smaller description text */
        min-height: 36px; /* Adjust for smaller font */
    }
    
    .product-price {
        font-size: 16px; /* Smaller price text */
    }
}

/* Ensure consistent column heights */
.row-cols-2 > *, .row-cols-md-3 > *, .row-cols-lg-4 > * {
    display: flex;
    align-items: stretch;
}

/* Sale badge styling */
.sale-badge {
    background: linear-gradient(45deg, #ff4757, #ff3742);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
    white-space: nowrap;
    display: inline-block;
}

/* Price container to ensure consistent spacing */
.price-container {
    margin-top: auto; /* Push prices to bottom */
}

.original-price {
    font-size: 12px !important;
}