html {
    font-size: 14px;
}

@media (min-width: 768px) {
    .scroll-left {
        left: -20px;
    }

    .scroll-right {
        right: -20px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/*custom css*/

.card-buttons {
    opacity: 0;
    transition: ease-in-out opacity 0.2s;
}

    .card-image:hover + .card-buttons,
    .card-buttons:hover {
        opacity: 1;
    }

/*Zoom out and in*/
#overlay {
    border: 1px solid black;
    height: 300px;
    display: inline-block;
    background-repeat: no-repeat;
}

.zoom {
    transition: transform .2s; /* Animation */
    margin: 0 auto;
}

    .zoom:hover {
        transform: scale(1.5); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
    }
/* Mobile menu positioning */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        z-index: 1000;
        border-top: 1px solid #dee2e6;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .nav-item {
        border-bottom: 1px solid #f8f9fa;
    }

    .nav-link {
        padding: 0.75rem 1.5rem !important;
    }

        .nav-link:hover {
            background-color: #f8f9fa;
        }
}

/* Products horizontal scroll styling */
.products-scroll-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.products-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 15px;
    padding: 10px 5px;
    /* Hide scrollbar for all browsers */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

    /* Hide scrollbar for Chrome, Safari and Opera */
    .products-scroll-wrapper::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
        background: transparent;
    }

/* Ensure scrollbar is hidden on both mobile and desktop */
.products-scroll-wrapper {
    -ms-overflow-style: -ms-autohiding-scrollbar; /* IE/Edge auto-hide */
}

.product-scroll-item {
    flex: 0 0 auto;
}

/* Mobile: 2 columns with horizontal scroll */
@media (max-width: 767.98px) {
    .products-scroll-wrapper {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: calc(50% - 8px);
        gap: 12px;
        overflow-x: auto;
        padding: 8px 5px;
    }

    .product-scroll-item {
        width: 100%;
    }

    /* Mobile image sizing */
    .product-scroll-image {
        height: 160px;
        object-fit: cover;
        width: 100%;
    }
}

/* Desktop: Traditional horizontal scroll with hidden scrollbar */
@media (min-width: 768px) {
    .product-scroll-item {
        width: 280px;
    }

    .products-scroll-wrapper {
        display: flex;
        grid-auto-flow: unset;
        grid-auto-columns: unset;
        padding: 15px 10px;
        /* Ensure scrollbar is hidden on desktop */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    /* Desktop image sizing */
    .product-scroll-image {
        height: 220px;
        object-fit: contain;
        width: 100%;
        background-color: #f8f9fa;
        padding: 10px;
    }

    /* Hide any potential scrollbar track */
    .products-scroll-wrapper::-webkit-scrollbar-track {
        background: transparent;
    }

    .products-scroll-wrapper::-webkit-scrollbar-thumb {
        background: transparent;
    }
}

/* Scroll buttons styling - Keep original or update to match */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0.9;
    color: #4a5568;
}

    .scroll-btn:hover {
        background: #f8f9fa;
        color: #661E29; /* Burgundy accent */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        opacity: 1;
        border-color: #661E29;
    }

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* Mobile scroll button adjustments */
@media (max-width: 767.98px) {
    .scroll-btn {
        width: 35px;
        height: 35px;
        background: rgba(255, 255, 255, 0.98);
    }

    .scroll-left {
        left: 5px;
    }

    .scroll-right {
        right: 5px;
    }
}

/* Enhanced scrolling without visible scrollbar */
.products-scroll-wrapper {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    /* Force hide scrollbar */
    scrollbar-color: transparent transparent; /* Firefox */
    scrollbar-width: none; /* Firefox */
}

.product-scroll-item {
    scroll-snap-align: start;
}

/* Additional scrollbar hiding for different browsers */
.products-scroll-wrapper {
    /* For Internet Explorer 10+ */
    -ms-overflow-style: none;
    /* For Firefox */
    scrollbar-width: none;
    /* For Webkit browsers (Chrome, Safari) */
}

    .products-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }

/* Card body adjustments */
.card-body {
    padding: 15px !important;
}

.card-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* Mobile-specific optimizations */
@media (max-width: 767.98px) {
    .card-body {
        padding: 12px !important;
    }

    .card-title {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.25rem 0.4rem;
    }

        .btn i {
            font-size: 0.8rem !important;
        }

    .small {
        font-size: 0.75rem;
    }
}

/* Responsive section headings */
.section-heading {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
}

/* Desktop heading sizes */
@media (min-width: 768px) {
    .section-heading {
        font-size: 2.5rem; /* 40px */
    }

    /* Specific adjustments for longer titles */
    .long-heading {
        font-size: 2.25rem; /* 36px for longer titles */
    }
}

/* Mobile heading sizes */
@media (max-width: 767.98px) {
    .section-heading {
        font-size: 1.75rem; /* 28px */
    }

    /* Smaller size for very long titles on mobile */
    .long-heading {
        font-size: 1.5rem; /* 24px for longer titles on mobile */
    }
}

/* Alternative: Using Bootstrap responsive font sizes */
.responsive-heading {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
}

/* Desktop */
@media (min-width: 768px) {
    .responsive-heading {
        font-size: calc(1.5rem + 1.5vw); /* Responsive scaling */
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .responsive-heading {
        font-size: calc(1.25rem + 1vw); /* Smaller responsive scaling */
    }
}

/* 661E29 BURGUNDY COLOR SCHEME FOR VIEW BUTTONS */
:root {
    --burgundy: #661E29;
    --burgundy-dark: #4D1620;
    --burgundy-darker: #330F16;
    --burgundy-shadow: rgba(102, 30, 41, 0.4);
    --burgundy-light: rgba(102, 30, 41, 0.1);
}

/* Burgundy color utilities */
.text-burgundy {
    color: #661E29 !important;
}

.bg-burgundy {
    background-color: #661E29 !important;
}

.border-burgundy {
    border-color: #661E29 !important;
}

/* View Button Styles - Burgundy Theme */
.view-btn,
.btn-view,
.btn-details,
.btn-details-small,
[class*="view"],
[class*="details"] {
    background: #661E29 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
}

    .view-btn:hover,
    .btn-view:hover,
    .btn-details:hover,
    .btn-details-small:hover,
    [class*="view"]:hover,
    [class*="details"]:hover {
        background: #4D1620 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(102, 30, 41, 0.3) !important;
        color: white !important;
        text-decoration: none !important;
    }

/* Different sizes for View buttons */
.view-btn-sm {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.8rem !important;
}

.view-btn-lg {
    padding: 0.8rem 1.5rem !important;
    font-size: 1rem !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .view-btn,
    .btn-view,
    .btn-details,
    .btn-details-small {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
        width: 100% !important;
    }
}

/* Specific View button classes for different pages */
.btn-details-small {
    background: #661E29 !important;
    color: white !important;
    border: none !important;
}

    .btn-details-small:hover {
        background: #4D1620 !important;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 30, 41, 0.4);
        color: white !important;
    }

.btn-details {
    background: #661E29 !important;
    color: white !important;
    border: none !important;
}

    .btn-details:hover {
        background: #4D1620 !important;
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(102, 30, 41, 0.4);
        color: white !important;
    }

    /* Focus states for accessibility */
    .view-btn:focus,
    .btn-view:focus,
    .btn-details:focus,
    .btn-details-small:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(102, 30, 41, 0.25);
    }

    /* Active state */
    .view-btn:active,
    .btn-view:active,
    .btn-details:active,
    .btn-details-small:active {
        background: #330F16 !important;
        transform: translateY(0);
    }
