/* Banner Block Styles */
.block-banner {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.block-banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0; /* Remove border radius for full width appearance */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.block-banner-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 0; /* Remove border radius for full width appearance */
}

.block-banner-slide {
    display: none;
    width: 100%;
    transition: opacity 0.5s ease;
}

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

.block-banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Navigation Controls */
.block-banner-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.block-banner-control:hover {
    background: rgba(255, 255, 255, 0.9);
}

.block-banner-prev {
    left: 15px;
}

.block-banner-next {
    right: 15px;
}

.block-banner-arrow {
    font-size: 18px;
    line-height: 1;
}

/* Indicators */
.block-banner-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.block-banner-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.block-banner-indicator.active {
    background: #fff;
}

/* Block Titles */
.block-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.block-subtitle {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* Products Block Styles */
.block-products {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.block-products-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.block-products-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: #6c757d;
}

/* Grid Layouts */
.block-products-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .block-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .block-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.block-products-compact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 576px) {
    .block-products-compact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .block-products-compact-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.block-products-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Carousel Layout */
.block-products-carousel-wrapper {
    position: relative;
    margin-bottom: 2rem;
    width: 100vw;
    max-width: 100%;
    margin-left: calc(-50vw + 50%);
    overflow: visible; /* Changed from hidden to allow items to expand outside container */
    padding: 2.5rem 0; /* Increased padding for more vertical space */
}

.block-products-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 0;
}

.block-products-carousel-container {
    display: flex;
    transition: transform 0.8s ease;
    width: 100%;
    padding: 2rem 0; /* Increased vertical padding */
    margin-left: 0;
    margin-right: 0;
    will-change: transform;
}

.block-products-carousel-item {
    flex: 0 0 300px;
    max-width: 300px;
    padding: 0 1.5rem; /* Increased padding for more space */
    margin: 1.5rem 0; /* Add vertical margin to prevent cutoff */
    transition: all 0.5s ease;
    position: relative;
    will-change: transform;
    transform-origin: center center;
    opacity: 0.85; /* Slightly dim non-active items */
    filter: blur(0.5px); /* Subtle blur for non-active items */
}

.block-products-carousel-item.active {
    transform: scale(1.15); /* Increase scale for more prominence */
    z-index: 1;
    opacity: 1; /* Full opacity for active item */
    filter: blur(0); /* No blur for active item */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

@media (max-width: 767px) {
    .block-products-carousel-item {
        flex: 0 0 280px;
        max-width: 280px;
    }
}

@media (max-width: 576px) {
    .block-products-carousel-item {
        flex: 0 0 260px;
        max-width: 260px;
    }
}

/* Products Navigation Controls */
.block-products-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    color: white;
    font-size: 24px;
}

.block-products-control:hover {
    background: rgba(0, 0, 0, 0.4);
}

.block-products-prev {
    left: 20px;
}

.block-products-next {
    right: 20px;
}

.block-products-arrow {
    font-size: 24px;
    line-height: 1;
}

/* Products Indicators */
.block-products-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.block-products-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.block-products-indicator.active {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.2);
}

/* Category Showcase Block Styles */
.category-showcase-block {
    padding: 3rem 0;
}

.category-showcase-block .section-title {
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-showcase-block .section-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
}

/* Grid Layout */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* List Layout */
.category-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Carousel Layout */
.category-carousel-wrapper {
    position: relative;
    margin-bottom: 2rem;
    width: 100vw;
    max-width: 100%;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    padding: 1.5rem 0;
}

.category-carousel-container {
    display: flex;
    transition: transform 0.8s ease;
    width: 100%;
    padding: 1rem 0;
    margin-left: 0;
    margin-right: 0;
    will-change: transform;
}

.category-carousel-item {
    flex: 0 0 300px;
    max-width: 300px;
    padding: 0 1rem;
    transition: all 0.5s ease;
    position: relative;
    will-change: transform;
    transform-origin: center center;
}

.category-carousel-item.active {
    z-index: 1;
}

.category-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.category-prev {
    left: 10px;
}

.category-next {
    right: 10px;
}

.category-arrow {
    font-size: 1.5rem;
    line-height: 1;
}

.category-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.category-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.category-indicator.active {
    background-color: rgba(0, 0, 0, 0.6);
    transform: scale(1.2);
}

@media (max-width: 767px) {
    .category-carousel-item {
        flex: 0 0 280px;
        max-width: 280px;
    }
}

@media (max-width: 576px) {
    .category-carousel-item {
        flex: 0 0 260px;
        max-width: 260px;
    }
}

.category-list .category-card {
    flex: 0 0 250px;
}

.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 250px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #aaa;
    font-size: 3rem;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.1), transparent);
    padding: 1.5rem 1rem 1rem;
    color: white;
    transition: background 0.3s ease;
}

.category-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.category-subtitle {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.category-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    transition: border-color 0.3s ease;
}

.category-link:hover {
    border-color: white;
}
