/* Fixed Slideshow System CSS - Consistent Styling */

/* Common Styles */
.slideshow-section {
    /* Initially hidden - will be shown when content loads */
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Prevent any content from causing horizontal overflow */
}

/* Prevent hero slideshow from causing page horizontal overflow */
body.hero-slideshow-page {
    overflow-x: hidden;
}

.slideshow-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.slideshow-loading {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 0; /* Remove rounded corners */
    transition: background 0.3s ease;
}

.dark-theme .slideshow-loading {
    background: #343a40;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #dc3545;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.dark-theme .spinner {
    border: 4px solid #495057;
    border-top: 4px solid #dc3545;
}

.dark-theme .slideshow-loading p {
    color: #f1f1f1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Slideshow Styles - Horizontal Scrolling */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 500px; /* Fixed height */
    overflow: hidden;
    border-radius: 0; /* Remove rounded corners */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 100%; /* Prevent horizontal overflow */
    margin: 0 auto; /* Center the slideshow */
}

.hero-slideshow-container {
    display: flex;
    scroll-snap-type: x mandatory;
    max-height: fit-content;
    overflow-x: scroll;
    overflow-y: hidden;
    height: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.hero-slideshow-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.slide {
    position: relative;
    width: 100vw;
    height: 100%;
    flex: 0 0 100vw; /* Don't grow, don't shrink, base width 100vw */
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1; /* Make slides visible for horizontal layout */
    z-index: 1;
}

/* .slide.active removed - no longer needed for horizontal layout */

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Show full width, crop height if needed */
    object-position: center; /* Center the image */
    background-color: #f8f9fa; /* Light background for images that don't fill */
    transition: transform 5s ease-in-out; /* Smooth zoom transition */
    opacity: 1; /* Ensure images are visible */
    z-index: 1; /* Ensure images are above background */
    display: block; /* Ensure images are displayed */
}

/* Slide media styles for slideshow.js generated slides */
.slide-media {
    transition: transform 5s ease-in-out; /* Smooth zoom transition */
}

/* Zoom effect for active slides (images only) */
.slide.active .slide-background:not(video),
.slide.active .slide-media {
    transform: scale(1.1); /* Zoom in by 10% */
}

/* Reset zoom for non-active slides (images only) */
.slide:not(.active) .slide-background:not(video),
.slide:not(.active) .slide-media {
    transform: scale(1);
}

/* Video styles - no zoom effect, just play normally */
.slide-background video,
.slide-media video {
    object-fit: cover;
    transition: none; /* No transition for videos */
}

.slide.active .slide-background video,
.slide.active .slide-media video {
    transform: none; /* No zoom for videos */
}

.slide:not(.active) .slide-background video,
.slide:not(.active) .slide-media video {
    transform: none; /* No zoom for videos */
}

.slide-background-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: transform 5s ease-in-out; /* Smooth zoom transition */
}

/* Zoom effect for active placeholder slides */
.slide.active .slide-background-placeholder {
    transform: scale(1.1); /* Zoom in by 10% */
}

/* Reset zoom for non-active placeholder slides */
.slide:not(.active) .slide-background-placeholder {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 2; /* Above images, below content */
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3; /* Above overlay */
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
}

.slide-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slide-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: none;
}

.slide-btn:hover {
    background: #c82333;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Horizontal Slideshow Navigation Controls */
.slideshow-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    padding: 8px 16px;
    backdrop-filter: blur(10px);
    z-index: 10;
    width: auto;
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
    pointer-events: none; /* Allow clicks to pass through to slides */
}

.slideshow-navigation > * {
    pointer-events: auto; /* Re-enable pointer events for interactive elements */
}

.slideshow-pause-btn {
    background: transparent;
    border: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.slideshow-pause-btn .pause-icon {
    width: 0;
    height: 0;
    border-style: double;
    border-color: transparent transparent transparent #333;
    border-width: 0px 0px 0px 7px;
    height: 9px;
}

.slideshow-pause-btn .play-icon {
    width: 0;
    height: 0;
    border-left: 8px solid #333;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.slideshow-scrollbar-container {
    flex: 1;
    height: 24px;
    position: relative;
    margin-right: 12px;
    min-width: 0; /* Allow flex item to shrink below content size */
    overflow: visible; /* Allow scrubber to be visible */
}

.slideshow-scrollbar-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1px;
    transform: translateY(-50%);
    box-sizing: border-box;
    /* Don't set explicit width - let left:0 and right:0 handle it */
}

.slideshow-scrollbar-scrubber {
    position: absolute;
    top: 50%;
    left: 0;
    height: 6px;
    min-width: 20px;
    background: #dc3545;
    border-radius: 3px;
    transform: translateY(-50%);
    transition: left 0.3s ease, width 0.3s ease;
    cursor: pointer;
    touch-action: none;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.slideshow-scrollbar-scrubber::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.slideshow-scrollbar-scrubber::after {
    content: 'Current slide';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #666;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slideshow-scrollbar-scrubber:hover::after {
    opacity: 1;
}

/* Navigation buttons positioned relative to hero-slideshow container - match navigation bar style */
/* HIDDEN: Hero slideshow should not have navigation controls */
.hero-slideshow .slideshow-nav-btn {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.hero-slideshow .slideshow-nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.hero-slideshow .slideshow-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.hero-slideshow .slideshow-nav-btn.prev {
    left: 20px;
}

.hero-slideshow .slideshow-nav-btn.next {
    right: 20px;
}

.hero-slideshow .slideshow-nav-btn i {
    font-size: 14px;
    color: #333;
    pointer-events: none;
    line-height: 1;
}

.hero-slideshow .slideshow-nav-btn:hover i {
    color: #000;
}

.hero-slideshow .slideshow-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.slideshow-nav-btn i {
    font-size: 12px;
    color: #333;
    pointer-events: none;
    line-height: 1;
}

.slideshow-nav-btn:hover i {
    color: #000;
}

.slideshow-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Review Slideshow Styles - Fixed */
.review-slideshow {
    background: white;
    border-radius: 0; /* Remove rounded corners */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
    height: 300px; /* Fixed height */
}



.review-slideshow-content {
    padding: 20px;
    height: 100%; /* Full height since no header */
    overflow: hidden;
}

/* Auto-scroll animation for reviews */
@keyframes scrollReviewsVertical {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

.review-slideshow-content.auto-scroll {
    animation: scrollReviewsVertical 20s linear infinite;
}

.review-slideshow-content.auto-scroll:hover {
    animation-play-state: paused;
}

.review-slide {
    display: none;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.review-slide.active {
    display: block;
    opacity: 1;
}

.review-content {
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.review-author {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.review-author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid #dc3545;
}

.review-author-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc3545, #c41e3a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 10px;
    border: 2px solid #dc3545;
}

.review-author-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.review-author-info small {
    color: #666;
    font-size: 0.8rem;
}

.review-rating {
    margin-left: auto;
}

.review-body {
    flex: 1;
    overflow-y: auto;
}

.review-body h5 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.review-body p {
    margin: 0;
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

.review-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.review-footer small {
    color: #999;
    font-size: 0.8rem;
}

.review-footer .badge {
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
}

.review-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(220, 53, 69, 0.9);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-arrow:hover {
    background: #dc3545;
    transform: translateY(-50%) scale(1.1);
}

.review-prev {
    left: 10px;
}

.review-next {
    right: 10px;
}

.review-nav {
    position: sticky;
}

.review-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-dot:hover,
.review-dot.active {
    background: #dc3545;
    transform: scale(1.2);
}

/* Featured Hero Slideshow Styles */
.featured-hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    background: white;
}

.featured-hero-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.featured-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.featured-hero-slide.is-active {
    opacity: 1;
}

.featured-hero-copy {
    flex: 1;
    padding: 2rem;
    z-index: 2;
}

.featured-hero-copy h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.featured-hero-copy p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.featured-hero-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 1.5rem;
}

.featured-hero-actions {
    display: flex;
    gap: 1rem;
}

.featured-hero-actions .btn {
    padding: 10px 20px;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.featured-hero-image {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.featured-hero-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.featured-hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.featured-hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 0;
    background: rgba(220, 53, 69, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.featured-hero-dot:hover,
.featured-hero-dot.active {
    background: #dc3545;
    transform: scale(1.2);
    border-color: rgba(220, 53, 69, 0.8);
}

/* Featured Items Section */
.featured-items-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0; /* Remove rounded corners */
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.featured-items-header {
    text-align: center;
    margin-bottom: 25px;
}

.featured-items-header h3 {
    color: #333;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.featured-items-header p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.featured-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.featured-item-card {
    background: white;
    border-radius: 0; /* Remove rounded corners */
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.featured-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #dc3545;
}

.featured-item-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #dc3545, #c41e3a);
}

.featured-item-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 0; /* Remove rounded corners */
}

.featured-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-item-card:hover .featured-item-image {
    transform: scale(1.05);
}

.featured-item-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.featured-item-content {
    flex: 1;
}

.featured-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.featured-item-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 10px;
}

.featured-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #666;
}

.featured-item-packaging,
.featured-item-availability {
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-item-category {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-item-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.featured-item-btn {
    flex: 1;
    padding: 8px 15px;
    border: none;
    border-radius: 0; /* Remove rounded corners */
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-item-btn.primary {
    background: #dc3545;
    color: white;
}

.featured-item-btn.primary:hover {
    background: #c82333;
}

.featured-item-btn.secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.featured-item-btn.secondary:hover {
    background: #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slideshow {
        height: auto; /* Let height adjust to image aspect ratio */
        overflow: visible; /* Allow content to determine height */
    }
    
    .hero-slideshow-container {
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        height: auto; /* Allow container to adjust to content */
        overflow-x: scroll;
        overflow-y: visible; /* Don't clip content vertically */
    }
    
    .slide {
        width: 100%; /* Use container width instead of viewport width */
        height: auto; /* Let height adjust to image */
        display: flex;
        align-items: flex-start; /* Align to top instead of center */
        justify-content: center;
    }
    
    .slide-background {
        width: 100%;
        height: auto; /* Let image maintain its natural aspect ratio */
        object-fit: contain; /* Show full image without cropping */
        object-position: center;
        display: block; /* Ensure proper display */
        position: relative; /* Change from absolute to relative for natural flow */
        transform: scale(1.2); /* Zoom in by 20% on mobile */
    }
    
    .slideshow-navigation {
        bottom: 15px;
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .slideshow-scrollbar-container {
        height: 20px;
    }
    
    .slideshow-scrollbar-scrubber {
        height: 3px;
    }
    
    .slideshow-scrollbar-scrubber::before {
        height: 10px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slide-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slide-prev {
        left: 10px;
    }
    
    .slide-next {
        right: 10px;
    }
    
    .slide-nav {
        bottom: 15px;
    }
    
    /* Medium screens - Show reviews and offers side by side */
    .review-slideshow {
        height: auto;
        max-width: 100%;
        margin: 0;
    }
    

    

    
    .review-slideshow-content {
        padding: 15px;
        height: auto;
        overflow: visible;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    /* Consistent review slideshow behavior across all screen sizes */
    @media (max-width: 768px) and (min-width: 481px) {
        .review-slideshow-content {
            padding: 15px;
            height: 100%;
            overflow: hidden;
        }
        
        .review-slide {
            display: none;
            opacity: 0;
            height: 100%;
            margin-bottom: 0;
        }
        
        .review-slide.active {
            display: block;
            opacity: 1;
        }
        
        .review-arrow,
        .review-nav {
            display: flex;
        }
    }
    
    .review-slide {
        display: none;
        opacity: 0;
        height: 100%;
        padding: 15px;
        margin-bottom: 0;
        transition: opacity 0.5s ease-in-out;
    }
    
    .review-slide.active {
        display: block;
        opacity: 1;
    }
    
    /* Show navigation consistently */
    .review-arrow,
    .review-nav {
        display: flex;
    }
    
    /* Improve review content layout on medium screens */
    .review-content {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .review-header {
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .review-author {
        flex: 1;
        min-width: 150px;
    }
    
    .review-rating {
        margin-left: 10px;
        flex-shrink: 0;
    }
    
    .review-body {
        flex: 1;
    }
    
    .review-body h5 {
        font-size: 1.1rem;
        margin-bottom: 8px;
        color: #333;
    }
    
    .review-body p {
        font-size: 0.95rem;
        line-height: 1.5;
        color: #666;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .review-footer {
        margin-top: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* Create two-column layout for reviews and offers on medium screens */
    .slideshow-section {
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    }
    
    .slideshow-section.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Medium screen layout container styles */
    .medium-screen-layout {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .medium-screen-layout .slideshow-section {
        flex: 1;
        min-width: 300px;
        margin-bottom: 0;
    }
    
    /* Reviews and Offers in home-info-card structure */
    .home-info-card .review-slideshow-container,
    .home-info-card .special-offers-container {
        height: auto;
        max-height: 300px;
        overflow-y: auto;
    }
    
    /* Ensure consistent styling for reviews and offers within cards */
    .home-info-card .review-slideshow-container .review-slide,
    .home-info-card .special-offers-container .offer-slide {
        margin-bottom: 15px;
        padding: 10px;
        border: 1px solid #e9ecef;
        border-radius: 6px;
        background: #f8f9fa;
    }
    
    .home-info-card .review-slideshow-container .review-slide:last-child,
    .home-info-card .special-offers-container .offer-slide:last-child {
        margin-bottom: 0;
    }
    
    /* Show navigation consistently in all contexts */
    .home-info-card .review-nav,
    .home-info-card .offers-navigation {
        display: flex;
    }
    
    /* Medium screens - Customer sidebar layout */
    @media (max-width: 768px) and (min-width: 481px) {
        .medium-screen-layout .home-sidebar-card {
            flex: 1;
            min-width: 300px;
            margin-bottom: 0;
        }
        
        .medium-screen-layout .home-sidebar {
            display: flex;
            flex-direction: row;
            gap: 15px;
            flex-wrap: wrap;
        }
        
        .medium-screen-layout .review-slideshow-section,
        .medium-screen-layout .special-offers-section {
            flex: 1;
            min-width: 280px;
            margin-bottom: 0;
        }
        
        /* Make reviews and offers display side by side */
        .medium-screen-layout .review-slideshow-container {
            height: auto;
            max-height: 200px;
            overflow-y: auto;
        }
        
        .medium-screen-layout .special-offers-container {
            height: auto;
            max-height: 200px;
            overflow-y: auto;
        }
    }
    
    .featured-items-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .featured-item-image-container {
        height: 150px;
    }
}

/* Larger medium screens - Show 3 tiles per row */
@media (min-width: 600px) and (max-width: 768px) {
    .review-slide {
        width: calc(33.333% - 10px); /* Show 3 tiles per row */
        max-width: 250px;
    }
    
    .review-slideshow-content {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-slideshow {
        height: auto; /* Let height adjust to image aspect ratio */
        overflow: visible; /* Allow content to determine height */
    }
    
    .hero-slideshow-container {
        height: auto; /* Allow container to adjust to content */
        overflow-x: scroll;
        overflow-y: visible; /* Don't clip content vertically */
    }
    
    .slide {
        width: 100%; /* Use container width instead of viewport width */
        height: auto; /* Let height adjust to image */
        display: flex;
        align-items: flex-start; /* Align to top instead of center */
        justify-content: center;
    }
    
    .slide-background {
        width: 100%;
        height: auto; /* Let image maintain its natural aspect ratio */
        object-fit: contain; /* Show full image without cropping */
        object-position: center;
        display: block; /* Ensure proper display */
        position: relative; /* Change from absolute to relative for natural flow */
        transform: scale(1.2); /* Zoom in by 20% on mobile */
    }
    
    .slideshow-navigation {
        bottom: 10px;
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .slideshow-scrollbar-container {
        height: 18px;
    }
    
    .slideshow-scrollbar-scrubber {
        height: 2px;
    }
    
    .slideshow-pause-btn {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
    
    .slideshow-pause-btn .pause-icon {
        border-width: 0px 0px 0px 6px;
        height: 8px;
    }
    
    .slideshow-pause-btn .play-icon {
        border-left: 6px solid #333;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
    }
    
    .slide-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 3;
        text-align: center;
        color: white;
        padding: 1rem;
        max-width: 90%;
        width: 100%;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .slide-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .slide-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .slide-prev {
        left: 5px;
    }
    
    .slide-next {
        right: 5px;
    }
    
    .slide-nav {
        bottom: 10px;
    }
    
    .slide-dot {
        width: 10px;
        height: 10px;
    }
    
    /* Consistent review slideshow behavior across all screen sizes */
    .review-slideshow {
        height: 250px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .review-slideshow-content {
        padding: 10px;
        height: calc(100% - 80px);
        overflow: hidden;
    }
    
    .review-slide {
        display: none;
        opacity: 0;
        height: 100%;
        padding: 5px;
        margin-bottom: 0;
        border: none;
        border-radius: 0;
        background: transparent;
    }
    
    .review-slide.active {
        display: block;
        opacity: 1;
    }
    
    /* Show navigation consistently */
    .review-arrow,
    .review-nav {
        display: flex;
    }
    
    .featured-items-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .featured-item-image-container {
        height: 120px;
    }
} 