/**
 * Category Filterable Carousel Styles
 */

 .mb-category-filterable-carousel {
    margin-bottom: 2rem;
}

.mb-category-filterable-carousel .category-carousel-heading {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

/* Filter Section */
.mb-filter-section {
    margin-bottom: 2rem;
    text-align: center;
}

.mb-filter-section .filter-label {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #666;
    font-weight: 600;
}

.mb-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.mb-filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #0073aa;
    background: white;
    color: #0073aa;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 100px;
}

.mb-filter-btn:hover {
    background: #0073aa;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

.mb-filter-btn.mb-filter-btn-active {
    background: #0073aa;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3);
}

/* Products Grid */

#feat-shop-build .mb-filter-btn.mb-filter-btn-active {
    background-color: #1A1B1D;
    border-color: #1A1B1D;
    color: #F7F5F2;
    font-family: 'Sora';
    font-weight: 400;
   
}
#feat-shop-build .mb-filter-btn:hover {
    transform: none;
    background-color: #1A1B1D;
    color: #F7F5F2;
    box-shadow: none;
}
#feat-shop-build .mb-filter-btn {
    background-color: #F7F5F2;
    border-color: #ECE8E0;
    color: var(--color-primary-text);
    font-family: 'Sora';
    font-weight: 400;
    box-shadow: none;
}

.mb-products-carousel {
    margin-top: 2rem;
}

.mb-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mb-product-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.mb-product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mb-product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.mb-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mb-product-item:hover .mb-product-image img {
    transform: scale(1.05);
}

.mb-product-info {
    padding: 1rem;
}

.mb-product-name {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    line-height: 1.4;
}

.mb-product-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mb-product-name a:hover {
    color: #0073aa;
}

.mb-product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0073aa;
}

/* Pagination */
.mb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.mb-pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #0073aa;
    background: white;
    color: #0073aa;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.mb-pagination button:hover:not(:disabled) {
    background: #0073aa;
    color: white;
}

.mb-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mb-page-info {
    font-size: 0.9rem;
    color: #666;
    min-width: 80px;
    text-align: center;
}

/* No Products Message */
.mb-no-products {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-style: italic;
    font-size: 1.1rem;
}

/* Carousel Bottom Section Wrapper */
.mb-carousel-bottom-section {
    position: relative;
    width: 88%;
    margin: 3em auto 0;
    display: flex;
    justify-content: center;
    align-items:center;
}

/* Dots positioning - center */
.mb-carousel-dots {
    justify-content: flex-end;
    right:0;
    width:44%;
}
.mb-see-all-button-wrapper a {
    display: inline-block;
}

.mb-see-all-button {
    background: #272727;
    color: #fff;
    padding: 0.6em 2em;
    border-radius: 0.8em;
    font-size: 1.1em;
    font-family: Sora, Arial, sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #272727;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mb-see-all-button:hover {
    background-color: var(--color-orange, #ff6b35);
    border-color: var(--color-orange, #ff6b35);
    color: #fff;
    text-decoration: none;
}

.mb-see-all-button-outline {
    background: transparent;
    color: #272727;
    border-color: #D9CCBF;
}

.mb-see-all-button-outline:hover {
    background-color: #D9CCBF;
    color: #272727;
    border-color: #D9CCBF;
}

.mb-see-all-button-minimal {
    background: transparent;
    color: #272727;
    border-color: transparent;
    text-decoration: underline;
    padding: 0.6em 1em;
}

.mb-see-all-button-minimal:hover {
    background-color: transparent;
    color: var(--color-orange, #ff6b35);
    border-color: transparent;
    text-decoration: none;
}

/* Carousel Items Responsive */
.mb-carousel-item {
    transition: all 0.3s ease;
}

.mb-carousel-content {
    padding: 0;
    padding-bottom: 1em;
}

.mb-carousel-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.mb-carousel-brand {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.mb-carousel-price {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.mb-carousel-buttons {
    display: flex;
}

.mb-carousel-info-button,
.mb-carousel-add-to-cart-button,
.mb-carousel-read-more-button,
.mb-carousel-watch-video {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    min-width: 80px;
}

.mb-carousel-info-button {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.mb-carousel-info-button:hover {
    background: #e9ecef;
    color: #333;
}

.mb-carousel-add-to-cart-button {
    background: #0073aa;
    color: white;
    border: 1px solid #0073aa;
}

.mb-carousel-add-to-cart-button:hover {
    background: #005a87;
    color: white;
}

.mb-carousel-read-more-button {
    background: #28a745;
    color: white;
    border: 1px solid #28a745;
}

.mb-carousel-read-more-button:hover {
    background: #218838;
    color: white;
}

.mb-carousel-watch-video {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.mb-carousel-watch-video:hover {
    background: #c82333;
    color: white;
}

/* Carousel Navigation Arrows */
.mb-carousel-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.3em;
    height: 2.3em;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.25em;
}

.mb-carousel-icon:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}



.carousels-go-left {
    left: 0.7em;
}

.carousels-go-right {
    right: 0.7em;
}

/* Carousel Wrapper Responsive */
.mb-wrap-for-nav {
    position: relative;
    overflow: hidden;
    margin: 0 1em; /* Add margin to make room for arrows */
    width: calc(100% - 12em);
}

/* Ensure arrows are positioned relative to the main carousel container */
.mb-the-carousel {
    position: relative;
}

.mb-wrap-the-carousel {
    position: relative;
    transition: left 0.5s ease;
}

.mb-carousel-item {
    float: left;
    box-sizing: border-box;
    margin-right: 20px;
}

.mb-carousel-item:last-child {
    margin-right: 0;
}
.mb-photo-carousel .mb-carousel-inner {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    
    .mb-carousel-dots {
        width: 43%;
    }
    
    .mb-wrap-for-nav {
        width: calc(100% - 10em);
        margin: 0 50px;
    }
}

@media (max-width: 1000px) {
    .mb-carousel-bottom-section {
        width: 95%;
    }
    
    .mb-carousel-dots {
        width: 35%;
    }
    
    .mb-see-all-button {
        font-size: 1em;
        padding: 0.5em 1.5em;
    }
    
    .mb-carousel-title {
        font-size: 1rem;
    }
    
    .mb-carousel-buttons {
        gap: 0.4rem;
    }
    
    .mb-carousel-info-button,
    .mb-carousel-add-to-cart-button,
    .mb-carousel-read-more-button,
    .mb-carousel-watch-video {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        min-width: 70px;
    }
    .mb-wrap-for-nav {
        width: calc(100% - 8em);
    }
    .mb-carousel-buttons {
        flex-wrap: nowrap;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .mb-filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mb-filter-btn {
        min-width: auto;
        width: 100%;
    }
    
    .mb-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .mb-category-filterable-carousel .category-carousel-heading {
        font-size: 1.5rem;
    }
    
    .mb-see-all-button {
        font-size: 1.8em;
        padding: 0.8em 3em;
    }
    
    .mb-carousel-bottom-section {
        width: 98%;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .mb-carousel-dots {
        width: 100%;
        justify-content: center;
        order: 1;
        position: relative;
        margin-bottom: 1em;
    }
    
    .mb-see-all-button-wrapper {
        order: 2;
    }
    
    .mb-carousel-title {
        font-size: 0.95rem;
        line-height: 1.2;
    }
    a.mb-carousel-add-to-cart-button, a.mb-carousel-read-more-button {
        background-color: #f97432;
        border-color: #f97432;
        text-align: center;
        justify-content: center;
        white-space:nowrap;
    }
    
    body a.mb-carousel-info-button {
        width: fit-content;
        min-width: 0;
        padding: 0.4em 1em 0.4em 1.4em;
        font-size:1em;
    }
    
    .mb-carousel-info-button, .mb-carousel-add-to-cart-button, .mb-carousel-read-more-button, .mb-carousel-watch-video {
        min-width: 0;
    }
    .mb-carousel-info-button,
    .mb-carousel-add-to-cart-button,
    .mb-carousel-read-more-button,
    .mb-carousel-watch-video {
        text-align: center;
    }
    
    .mb-carousel-icon {
        width: 4.165em;
        height: 4em;
        font-size: 1.1em;
    }
    
    .mb-wrap-for-nav {
        width: calc(100% - 6em);
        margin: 0 30px;
    }
}
@media (max-width: 600px) {
    .mb-carousel-icon {
        width: 4.165em;
        height: 4em;
        font-size: 1.1em;
    }

}
@media (max-width: 480px) {
    .mb-products-grid {
        grid-template-columns: 1fr;
    }
    
    .mb-filter-section .filter-label {
        font-size: 1rem;
    }
    
    .mb-pagination {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mb-carousel-bottom-section {
        width: 100%;
        padding: 0 1rem;
    }
    
    .mb-carousel-content {
        padding: 0.6rem;
    }
    
    .mb-carousel-title {
        font-size: 0.9rem;
        line-height: 1.1;
    }
    
    .mb-carousel-brand {
        font-size: 0.75rem;
    }
    
    .mb-carousel-price {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .mb-carousel-buttons {
        gap: 0.25rem;
    }
    
    .mb-carousel-info-button,
    .mb-carousel-add-to-cart-button,
    .mb-carousel-read-more-button,
    .mb-carousel-watch-video {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        min-width: 100%;
    }
    
    .mb-carousel-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .mb-wrap-for-nav {
        width: calc(100% - 4em);
        margin: 0 25px;
    }
}
