/* === NEW BANNER STYLES FOR CATEGORY PAGES === */
.category-banner-slider {
    position: relative;
    overflow: hidden;
    height: 70vh; /* A bit taller than your last request for more impact */
    background-color: #f8f9fa; /* Fallback */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}

.category-banner-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45); /* A dark overlay for text readability */
    z-index: 1;
}

.category-banner-slider h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    z-index: 2;
    position: relative;
}

/* Slider CSS is the same as before, as it's separate from the banner design */
.category-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.category-slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Slower transition for a smoother fade */
}

.category-slider-image.active {
    opacity: 1;
}

    /* Hero Section with Background Image - Customized for dynamic content */
    .about-hero {
        background-color: #f8f9fa; /* Default if no image */
        padding: 60px 0;
        text-align: center;
        margin-bottom: 30px;
        color: #333; /* Default text color */
        /* Background image will be set dynamically via JS or inline style if available in category data */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .about-hero h1 {
        font-size: 2.8rem;
        font-weight: 700;
        color: inherit; /* Inherit color from parent (white if background is dark) */
        margin-bottom: 10px;
    }

    /* Main Category Title (section-title) */
    .section-title {
        font-size: 2.5rem; /* Reverted to larger size for main title */
        font-weight: 700;
        color: #333;
        margin-bottom: 40px; /* Space below title */
    }

    /* Subcategory Navigation - Updated Styles */
    .subcategory-navbar {
        background-color: #f8f9fa; /* Light background */
        padding: 10px 0;
        margin-bottom: 30px;
        border-bottom: 1px solid #ddd; /* Subtle bottom border */
    }
    .subcategory-navbar .nav {
        display: flex;
        justify-content: flex-start; /* Align links to the left */
        padding: 0 15px; /* Add some horizontal padding */
        overflow-x: auto; /* Enable horizontal scrolling for many tabs */
    }
    .subcategory-navbar .nav-link {
        background-color: #fff; /* White background for tabs */
        color: #333;
        padding: 8px 15px;
        border: 1px solid #ddd;
        border-radius: 20px; /* Rounded corners */
        margin-right: 10px;
        font-size: 0.95rem;
        text-decoration: none;
        white-space: nowrap; /* Prevent wrapping */
        transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out;
    }
    .subcategory-navbar .nav-link:hover {
        background-color: #eee;
        border-color: #ccc;
    }
    .subcategory-navbar .nav-link.active {
        background-color: #DBA63B; /* Active tab color */
        color: white;
        border-color: #DBA63B;
    }

    /* Subcategory Heading (product-section h2) - Adjusted Style */
    .product-section h2 {
        font-size: 1.8rem; /* Slightly smaller */
        font-weight: 600;
        color: #333;
        margin-bottom: 20px; /* Less margin below */
        padding-bottom: 8px;
        display: block; /* Ensure it takes full width */
        border-left: 5px solid #C4A038;
        padding-left: 14px;
    }

    /* Product Grid and Card Styles - Heavily Modified */
    .product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive grid */
        gap: 5px;
    }
    .product-card {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Stronger shadow */
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
        position: relative;
        height: 350px; /* Adjusted height for content */
        background-color: #f8f8f8; /* Light background for card */
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Push bottom content down */
    }
    .product-card:hover {
        transform: translateY(-8px); /* More pronounced lift */
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

    .product-image-wrapper {
        position: relative;
        width: 100%;
        height: 70%; /* Image takes 70% of card height */
        overflow: hidden;
        background-color: #eee; /* Placeholder background */
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer; /* Indicate clickable image */
    }
    .product-image-wrapper img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain; /* Ensure image fits without cropping */
        transition: transform 0.3s ease-in-out;
    }
    .product-card:hover .product-image-wrapper img {
        transform: scale(1.05); /* Slight zoom on hover */
    }

    .card-base-info {
        position: absolute; /* Absolute position over image */
        top: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%); /* Transparent gradient from top */
        color: white;
        padding: 15px;
        text-align: left; /* Align text to left */
        transition: opacity 0.3s ease-in-out;
        opacity: 1; /* Always visible */
        pointer-events: none; /* Allow clicks to pass through to image */
    }
    .card-base-info h4 {
        font-size: 1.2rem;
        margin-bottom: 5px;
        font-weight: 600;
        color: #ddd;
    }
    .card-base-info .sub-title {
        font-size: 0.85rem;
        color: #ddd;
        margin-bottom: 0;
    }

    .product-details-bottom {
        padding: 15px;
        background-color: #fff; /* White background for bottom text */
        text-align: center;
        font-size: 0.9rem;
        color: #555;
        border-top: 1px solid #f0f0f0;
    }

    .product-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.9); /* Orange overlay from example */
        color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        padding: 20px;
        text-align: center;
    }
    .product-card:hover .product-overlay {
        opacity: 1;
    }
    .product-card:hover .card-base-info {
        opacity: 0; /* Hide base info on hover */
    }

    .overlay-content h4 {
        font-size: 1.5rem;
        margin-bottom: 5px;
        font-weight: 700;
    }
    .overlay-content .sub-title {
        font-size: 0.9rem;
        color: #ffe0b2; /* Lighter orange for sub-title */
        margin-bottom: 15px;
    }
    .overlay-content .description {
        font-size: 0.85rem;
        margin-bottom: 25px;
        line-height: 1.4;
        max-height: 80px; /* Limit description height */
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .overlay-actions {
        display: flex;
        gap: 15px; /* Space between icons */
    }
    .overlay-actions .action-btn {
        background-color: #fff;
        color: #ff8c00; /* Orange color for icons */
        border: none;
        padding: 12px;
        border-radius: 50%; /* Circular buttons */
        cursor: pointer;
        font-size: 1.5rem; /* Icon size */
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    .overlay-actions .action-btn:hover {
        background-color: #f0f0f0;
        transform: scale(1.1);
    }

    /* Image Modal Styles (from admin panel, reused) */
    .modal-body img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: auto;
    }

    /* Alert Styles */
    .alert {
        padding: 15px;
        margin-bottom: 20px;
        border: 1px solid transparent;
        border-radius: 4px;
    }
    .alert-info {
        color: #0c5460;
        background-color: #d1ecf1;
        border-color: #bee5eb;
    }
    .alert-warning {
        color: #856404;
        background-color: #fff3cd;
        border-color: #ffeeba;
    }
    /* NEW BREADCRUMB STYLES */
    .custom-breadcrumb-container {
        background-color: #fff;
        border-radius: 25px; /* Pill shape */
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        padding: 10px 20px;
        display: inline-flex; /* Use inline-flex to wrap content */
        align-items: center;
        font-size: 1.1rem;
        font-weight: 500;
        margin-bottom: 40px; /* Space below breadcrumb */
    }

    .custom-breadcrumb-item {
        display: flex;
        align-items: center;
        color: #6c757d; /* Default text color */
        text-decoration: none;
        white-space: nowrap; /* Prevent wrapping */
    }

    .custom-breadcrumb-item a {
        color: #DBA63B; /* Link color */
        text-decoration: none;
        transition: color 0.2s ease-in-out;
    }

    .custom-breadcrumb-item a:hover {
        color: hsl(43, 75%, 42%);
    }

    .custom-breadcrumb-separator {
        margin: 0 8px;
        color: #adb5bd; /* Separator color */
        font-weight: normal;
    }

    /* Dropdown specific styles within breadcrumb */
    .breadcrumb-dropdown {
        position: relative;
        display: inline-block;
    }

    .breadcrumb-dropdown-toggle {
        background-color: transparent;
        border: none;
        color: inherit;
        font-size: inherit;
        font-weight: inherit;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .breadcrumb-dropdown-menu {
        position: absolute;
        top: 140%; /* Position below the toggle */
        left: 0;
        background-color: #fff;
        border: 1px solid #ddd;
        /* border-radius: 5px; */
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 1px 0;
        z-index: 1000;
        min-width: 160px;
        list-style: none; /* Remove bullet points */
        margin: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out, visibility 0.2s;
    }

    .breadcrumb-dropdown.show .breadcrumb-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .breadcrumb-dropdown-menu li a {
        display: block;
        padding: 8px 15px;
        color: #333;
        text-decoration: none;
        transition: background-color 0.2s ease-in-out;
    }

    .breadcrumb-dropdown-menu li a:hover {
        background-color: #f8f9fa;
    }

    .breadcrumb-dropdown-menu li a.active {
        background-color: #DBA63B;
        color: white;
    }
