/* --- Global Styles --- */
:root {
    --petfare-red: #e61227;
    --petfare-dark: #343a40;
}

.text-brand {
    color: var(--petfare-red) !important;
}

.btn-brand {
    background-color: var(--petfare-red);
    color: white;
    border: none;
}

.btn-brand:hover {
    background-color: #c40f21;
    color: white;
}

/* --- Slab & Row Styling --- */
.bg-flash-sale {
    background-color: var(--petfare-red) !important;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.bg-white.shadow-sm {
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

/* --- Carousel / Slider Logic --- */
.product-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    gap: 15px;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
}

/* Hide scrollbar for Chrome/Safari */
.product-slider::-webkit-scrollbar {
    display: none;
}

/* Fixed Width for Carousel Items */
.product-card-col {
    flex: 0 0 auto; /* Prevents shrinking */
    width: 200px;  /* Desktop width */
}

@media (max-width: 768px) {
    .product-card-col {
        width: 160px; /* Mobile width */
    }
    
    .bg-flash-sale, .bg-white.shadow-sm {
        padding: 15px;
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 0; /* Full width on mobile */
    }
}

/* --- Product Card Enhancements --- */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* --- Featured Progress Bar (Items Left) --- */
.progress {
    background-color: rgba(0,0,0,0.05);
}

.bg-warning {
    background-color: #ffc107 !important; /* Brighter orange for stock bar */
}