/* General styles */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #f8f9fa; /* Soft background to ensure content stands out */
    margin: 0;
    padding: 0;
}

/* Typography enhancements */
h1, h2 {
    font-weight: 300; /* Lighter font-weight for headers */
    color: #007bff; /* Using Bootstrap primary color for brand consistency */
    margin-bottom: 0.5em;
    text-align: center;
}

/* Logo styles */
.logo {
    display: block;
    max-width: 150px;
    margin: 20px auto;
}


/* Card styles */
.card {
    border-radius: 10px; /* Slightly larger border radius for a modern look */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); /* Softer shadow for depth */
    background: #fff; /* White background to lift cards off the page */
    margin-bottom: 2rem; /* More space between cards */
    transition: transform 0.3s ease-in-out; /* Smooth transition for scale */
}


/* Category Header */
.card-header.category-title {
    font-size: 1.5em;
    font-weight: bold;
    background: none; /* Remove any background */
    color: inherit; /* Use the parent color */
    border-bottom: 2px solid #dee2e6; /* Consistent with Bootstrap's styling */
    line-height: 1.5;
    text-align: center;
    padding: 0.75em 0; /* Vertical padding only */
}

/* Scroll Container */
.category-container {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* Thinner scrollbar for a cleaner look */
    scrollbar-color: #007bff #e0e0e0; /* Consistent with brand colors */
    scroll-padding: 0 20px;
    position: relative;
    margin: 0 30px;
    overflow-y: hidden;
}

.scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    opacity: 0.5; /* Make the arrows slightly transparent */
    user-select: none; /* Prevent text selection */
}

.left-arrow {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Disables clicking functionality */
}

.right-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Disables clicking functionality */
}


/* Scrollbar styles for WebKit browsers (Chrome, Safari) */
.category-container::-webkit-scrollbar {
    height: 12px; /* Increase the height for better visibility */
}

.category-container::-webkit-scrollbar-thumb {
    background-color: #007bff; /* Brighter color for visibility */
    border-radius: 6px;
}

.category-container::-webkit-scrollbar-track {
    background-color: #e0e0e0; /* Light background for the scrollbar track */
}
/* Deal Card Styles */
.deal-card {
    text-align: center;
    padding: 20px;
    flex: 0 0 auto;
    margin: 5px;
    position: relative;
    background: #f7f7f7; /* Slightly different background for deal cards */
    border: 1px solid #e7e7e7; /* Soft border */
}

.deal-card:hover {
    transform: scale(1.03); /* Slightly scale up cards on hover */
}
/* Image styles within Cards */
.deal-img {
    max-width: 90%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Text Styles within Cards */
.deal-header, .deal-price, .deal-original-price, .deal-discount {
    font-size: 16px;
}
.deal-header {
    font-weight: bold;
}
.deal-price {
    color: #28a745;
}
.deal-original-price {
    text-decoration: line-through;
}
.deal-discount {
    color: #dc3545;
    font-weight: bold;
}

/* Checkbox and Checkmark Styles */
.form-check-input {
    position: absolute;
    display: none;
}

.form-check-label {
    cursor: pointer;
    display: block;
    transition: opacity 0.3s ease;
}

.form-check-input:checked + .form-check-label::before {
    content: "✔"; /* Using a different checkmark symbol */
    font-size: 2em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #007bff; /* Vibrant color for visibility */
    z-index: 2;
}

.form-check-input:checked + .form-check-label {
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1.text-center {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
