.distributor-section {
    padding: 50px 15px 50px 48px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.distributor-title {
    font-size: 36px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 30px;
}

/* Categories */
.distributor-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.distributor-category-btn {
    padding: 8px 24px;
    border-radius: 20px;
    border: 1px solid var(--ssbond-blue);
    background: transparent;
    color: var(--ssbond-blue);
    font-size: var(--ssbond-d-desc2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.distributor-category-btn.active {
    background: var(--ssbond-blue);
    color: var(--ssbond-white);
}

/* Container for the scrollable area */
/* .distributor-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
} */
.distributor-card-description {
    display: flex;
    align-items: center; /* Aligns the icon and text vertically in the center */
    text-align: left;
    font-size: var(--ssbond-d-desc4);
    color: #86868b;
    line-height: 1.3;
    /* margin: 0 auto; */
    max-width: 100%;
    margin-bottom: var(--ssbond-space-t12);
}

.distributor-card-description i {
    margin-right: 5px; /* Adds some space between the icon and the text */
    color: var(--ssbond-blue);
}
.distributor-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    padding: 20px 0;
    width: 100%;
}

.distributor-grid:active {
    cursor: grabbing;
}



/* Adjust card for scroll snap */
.distributor-card {
    flex: 0 0 calc(25% - 19px);
    scroll-snap-align: start;
    min-width: 260px;
    transform: translateZ(0);
}

/* Update Dots Navigation to match typical banner style */
.distributor-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 0;
}

.distributor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.distributor-dot.active {
    background: #06c;  /* Apple's blue color */
    transform: scale(1);
}

.distributor-dot:not(.active) {
    transform: scale(0.75);
}

/* Optional: Hover effect */
.distributor-dot:hover:not(.active) {
    background: rgba(0, 0, 0, 0.3);
}

/* Make dots smaller on mobile */
@media (max-width: 768px) {
    .distributor-dot {
        width: 6px;
        height: 6px;
    }
    
    .distributor-dots {
        gap: 6px;
    }
    .distributor-title{
        font-size: var(--ssbond-m-h2);
        margin-bottom: 10px;
        margin-top: var(--ssbond-space-t1);
    }
}

/* Product Card */
.distributor-card {
    background: var(--ssbond-whiteGray);
    border-radius: 20px;
    padding: 20px;
    display: grid;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: auto;
    min-height: 380px;
}
.distributor-card img {
    width: calc(100% + 40px); /* Adjusts for the card's 20px padding on both sides */
    margin: 0 -20px 5%; /* Negative margin to align with the card's edges */
    max-height: 250px;
    object-fit: fill;
    border-radius: 0px 0px; /* Match card's border radius for a seamless look */

}
.distributor-card:hover {
    
}
.distributor-card-title {
    display: flex;
    justify-content: space-between; /* Space out the title and button */
    align-items: center; /* Vertically center the content */
}

.distributor-card-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    /* margin: 0;  */
    line-height: 1.2;
    max-width: 90%;
    margin-bottom: var(--ssbond-d-b1);
    margin-top: 3%;
    text-align: left;
}

.distributor-card-title button {
    background: transparent;
    border: 1px solid var(--ssbond-blue);
    color: var(--ssbond-blue);
    font-size: var(--ssbond-d-btn-card);
    padding: 4px 16px;
    border-radius: 20px;
    cursor: pointer;
    margin: 0; /* Remove auto margins */
    width: auto; /* Auto width based on content */
    white-space: nowrap; /* Prevent text from wrapping to the next line */
    transition: all 0.2s ease;
    font-weight: 500;
    height: 32px;
    min-width: 70px;
    display: inline-flex; /* Adjust size based on content */
    align-items: center; /* Vertically align text */
    justify-content: center; /* Center text horizontally */
}




.distributor-card-dealar, .distributor-card-shop {
    background: var(--ssbond-white);
    border: 1px solid var(--ssbond-blue);
    color: var(--ssbond-black);
    font-size: var(--ssbond-d-btn);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin: 0 auto;
    width: fit-content;
    transition: all 0.2s ease;
    font-weight: 500;
    height: 32px;
    min-width: 100px;
}

.distributor-card-learn:hover {
    background: var(--ssbond-primaryLinear);
    text-decoration: none;
    color:var(--ssbond-white)
}

.distributor-card-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    margin: 5px auto;
    flex-grow: 1;
    width: 100%; /* Ensure the container takes up the full available width */
    margin-top: -10%;
    margin-bottom: -10%;
}

.distributor-card-image img {
    width: 90%; /* Increase the width of the image (adjust this percentage as needed) */
    height: auto; /* Keep the height proportional to the width */
    object-fit: contain; /* Ensure the image scales while maintaining its aspect ratio */
    max-height: 180px; /* Optional: limit the height if needed */
}


/* .distributor-card-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5%;
    width: 100%;
} */

.distributor-btn-dealer,
.distributor-btn-shop {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 0 1 auto;
    min-width: 125px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
}

.distributor-btn-dealer {
    background: var(--ssbond-blue);
    color: var(--ssbond-white);
}

.distributor-btn-shop {
    background: #e60012;
    color: var(--ssbond-white);
}

.distributor-btn-dealer:hover,
.distributor-btn-shop:hover {
    background: var(--ssbond-primaryLinear);
    text-decoration: none;
    color:var(--ssbond-white)
}
.distributor-card-dealar:hover,
.distributor-card-shop:hover {
    background: var(--ssbond-primaryLinear);
    text-decoration: none;
    color:var(--ssbond-white)
}
.distributor-grid {
    grid-template-columns: repeat(4, 1fr);
    width: calc(100% + (-30px));
}
/* Responsive Design */
@media (max-width: 1200px) {
    .distributor-grid {
        grid-template-columns: repeat(3, 1fr);
        width: calc(100% + (-25px));
    }

    .distributor-card {
        flex: 0 0 calc(33.333% - 17px);
        min-width: 240px;
    }
    .distributor-card-buttons {
        padding: 0 8px;
    }

    .distributor-card-shop {
        padding: 6px 10px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .distributor-grid {
        grid-template-columns: repeat(2, 1fr);
        width: calc(100% - 15px);
    }

    .distributor-card {
        flex: 0 0 calc(50% - 13px);
        min-width: 220px;
    }
    .distributor-card-buttons {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .distributor-section {
        padding: 40px 15px;
        max-width: 100%;
    }

    .distributor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 100%;
    }

    .distributor-card {
        flex: 0 0 calc(65% - 20px);
        min-width: 200px;
    }

    .distributor-card-image {
        padding: 10px 0;
    }

    .distributor-card-image img {
        max-height: 160px;
    }

    .distributor-card-learn,
    .distributor-btn-dealer,
    .distributor-btn-shop {
        height: 30px;
        min-width: 100px;
        font-size: var(--ssbond-d-btn-card);
    }
    .distributor-card-buttons {
        padding: 0 6px;
    }

    .distributor-card-shop {
        padding: 6px 8px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .distributor-grid {
        grid-template-columns: 1fr;
        width: calc(50% +(165px));
    }

    .distributor-card {
        flex: 0 0 calc(85% - (-45px));
        min-width: 180px;
    }

    .distributor-card-image img {
        max-height: 150px;
    }
    .distributor-container{
        width: 100%;
    }
    .distributor-card-buttons {
        flex-direction: row; /* Keep buttons in row */
        gap: 6px;
    }
    .distributor-card-shop {
        padding: 5px 8px;
        font-size: 12px;
    }
}
.distributor-tabs-wrapper {
    border: 1px solid; /* Border wrapping all buttons */
    border-radius: 10px; /* Optional: Rounded border */
    padding: 5px 10px; /* Add spacing between border and buttons */
    display: inline-block; /* Adjust size to fit content */
    overflow-x: auto; /* Ensure horizontal scrolling remains intact */
    scrollbar-width: none; /* Hide scrollbar */
    max-height: 45px;
    border-radius: 30px;
    max-width: 88%;
    overflow-y: hidden;
}

.distributor-tabs-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar in WebKit browsers */
}

/* Add Product Tabs Styling */
.distributor-tabs {
    display: flex;
    justify-content: flex-start; /* Align buttons to the left */
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: nowrap; /* Prevent buttons from wrapping to the next line */
    overflow-x: auto; /* Enable horizontal scrolling */
    -ms-overflow-style: none; /* Hide scrollbar for Internet Explorer and Edge */
    scrollbar-width: none; /* Completely hide scrollbar for modern browsers like Firefox */
    overflow-y: hidden;
}

.distributor-tabs::-webkit-scrollbar {
    display: none; /* Hide scrollbar for WebKit-based browsers (Chrome, Safari, etc.) */
}

.distributor-tab {
    flex: 0 0 auto; /* Prevent buttons from stretching */
    padding: 8px 24px;
    border-radius: 20px;
    border: 1px solid var(--ssbond-blue);
    background: transparent;
    color: var(--ssbond-black);
    font-size: var(--ssbond-m-btn) !important;
    cursor: pointer;
    transition: all 0.3s ease;
}



.distributor-tab.active {
    background: var(--ssbond-blue);
    color: var(--ssbond-white);
}

.distributor-tab:hover:not(.active) {
    background: rgba(0, 113, 227, 0.1);
}

/* Update dots styling to match banner */
.distributor-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
}

.distributor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D9D9D9;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0 3px;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .distributor-tabs {
        gap: 10px;
        margin-bottom: 30px;
    }

    .distributor-tab {
        padding: 6px 20px;
        font-size: var(--ssbond-d-btn-card) !important;
    }
    .distributor-tabs-wrapper{
        padding: 7px 10px;
        max-width: 100%;
    }
}


/* Navigation buttons styling */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prev-btn {
    left: -5px;
}

.next-btn {
    right: -5px;
}

.distributor-container:hover .nav-btn {
    opacity: 1;
}

@media (max-width: 768px) {
    .nav-btn {
        display: none;
    }
    
    .distributor-container {
        width: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .distributor-section {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .distributor-section {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .distributor-section {
        padding: 40px 15px;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .distributor-section {
        width: calc(100% - 0px);
    }
    .distributor-card-title button {
        /* Even smaller button adjustments */
        padding: 0px 0px; /* Further reduce padding */
        font-size: var(--sf-text-sm); /* Smaller font size */
        height: 30px; /* Smaller button height */
        min-width: 80px; /* Smaller minimum width */
    }
}

.distributor-card-buttons {
    display: flex;
    justify-content: space-between; /* Changed from center to space-between */
    align-items: center;
    gap: 5px; /* Reduced gap */
    width: 100%;
    padding: 0 2px; /* Add padding for spacing from edges */
    box-sizing: border-box;
    margin-top: -15px;
}

.distributor-card-shop {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--ssbond-blue);
    background: var(--ssbond-white);
    color: var(--ssbond-black);
    font-size: var(--sf-text-base);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.distributor-card-shop i {
    margin-right: 5px;
}

/* Responsive adjustments for small screens */
@media (max-width: 768px) {
    .distributor-card-shop {
        font-size: var(--sf-text-sm);
        padding: 6px 12px;
        justify-content: center;
    }

    .distributor-card-shop i {
        font-size: 0.8em;
        margin-right: 3px;
    }
}

/* Optional: Hover effect */
.distributor-card-shop:hover {
    background: var(--ssbond-primaryLinear);
    text-decoration: none;
    color:var(--ssbond-white)
}
