/* Premium Brands Section - Exact Figma Design CSS with Unique Classes */

/* Scrollable Container */
.brands-premium-brands-parent {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 48px;
    text-align: right;
    font-size: 45px;
    color: #000;
    font-family: Tajawal, sans-serif;
    direction: rtl;
}

.brands-premium-brands {
    position: relative;
    letter-spacing: -0.41px;
    line-height: 70.5px;
    text-transform: capitalize;
    margin-bottom: 2rem;
    text-align: right;
    width: 100%;
}

.brands-a-global-leader {
    width: 125px;
    position: relative;
    letter-spacing: -0.41px;
    line-height: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    height: 33px;
    flex-shrink: 0;
}

.brands-frame-child {
    width: 60px;
    border-radius: 4px;
    height: 44px;
    object-fit: cover;
}

.brands-a-global-leader-in-bathrooms-parent {
    position: absolute;
    top: 18px;
    left: 20px;
    width: 195px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.brands-frame-wrapper {
    width: 235px;
    position: relative;
    border-radius: 7px;
    height: 289px;
    overflow: hidden;
    flex-shrink: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
}

.brands-mashreqy-1-600x600-1 {
    position: absolute;
    top: 0px;
    left: -6px;
    width: 176px;
    height: 207px;
}

.brands-concetto-hero-1 {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 170px;
    height: 203px;
}

.brands-a-leader-in {
    width: 138px;
    position: relative;
    letter-spacing: -0.41px;
    line-height: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brands-frame-item {
    width: 61px;
    border-radius: 4px;
    height: 44px;
    object-fit: cover;
}

.brands-a-leader-in-design-of-sanitary-parent {
    position: absolute;
    top: 18px;
    left: 13px;
    width: 209px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.brands-mashreqy-1-600x600-1-parent {
    width: 235px;
    position: relative;
    border-radius: 7px;
    height: 289px;
    overflow: hidden;
    flex-shrink: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
}

.brands-elevate-your-daily {
    width: 147px;
    position: relative;
    letter-spacing: -0.41px;
    line-height: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brands-elevate-your-daily-bathroom-ri-parent {
    position: absolute;
    top: 18px;
    left: 3px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.brands-mashreqy-1-600x600-1-group {
    width: 234px;
    position: relative;
    border-radius: 7px;
    height: 289px;
    overflow: hidden;
    flex-shrink: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
}

.brands-a-leader-in1 {
    width: 145px;
    position: relative;
    letter-spacing: -0.41px;
    line-height: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    height: 48px;
    flex-shrink: 0;
}

.brands-a-leader-in-products-and-servi-parent {
    position: absolute;
    top: 14px;
    left: 10px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
}

.brands-frame-container {
    width: 235px;
    position: relative;
    border-radius: 7px;
    height: 289px;
    overflow: hidden;
    flex-shrink: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
}

.brands-unsplashi72dfjrft3k-icon {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 235px;
    height: 289px;
    object-fit: cover;
}

.brands-a-global-leader-in-bathrooms-group {
    position: absolute;
    top: 18px;
    left: 26px;
    width: 195px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.brands-component-71 {
    width: 235px;
    position: relative;
    border-radius: 7px;
    background: linear-gradient(180.16deg, rgba(0, 0, 0, 0.35) 0.71%, rgba(0, 0, 0, 0.27) 22.67%, rgba(0, 0, 0, 0.22) 38.99%, rgba(0, 0, 0, 0)), #fff;
    height: 289px;
    overflow: hidden;
    flex-shrink: 0;
}

.brands-enjoy-your-favorite {
    position: absolute;
    top: 2px;
    left: 50px;
    letter-spacing: -0.41px;
    line-height: 46px;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    width: 181px;
}

.brands-component-65-child {
    width: 35.5px;
    position: relative;
    max-height: 100%;
    object-fit: contain;
}

.brands-b {
    position: relative;
    letter-spacing: -0.01em;
    line-height: 150%;
}

.brands-component-65 {
    position: absolute;
    top: 225px;
    left: 65px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 17px;
    font-size: 25px;
    text-decoration: none;
    color: inherit;
}

.brands-component-65:hover {
    text-decoration: none;
    color: inherit;
}

.brands-frame-parent {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 45px;
    font-size: 14px;
    color: #fff;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 20px;
    width: 100%;
    /* Ensure content is wider than container to enable scroll */
    min-width: 100%;
}

.brands-frame-parent::-webkit-scrollbar {
    display: none;
}

/* Force scrollable content */
.brands-frame-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    flex-shrink: 0;
    min-width: max-content;
    /* Ensure the group is always wider than its container */
    width: max-content;
}

/* Ensure CTA section appears first (rightmost in RTL) */
.brands-enjoy-your-favorite-brands-parent {
    width: 273px;
    position: relative;
    border-radius: 5px;
    background-color: #0057b7;
    height: 289px;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 35px;
    order: -1;
    margin-left: 20px; /* Add space after CTA in RTL */
}

/* Dragging states */
.brands-frame-parent.is-dragging {
    cursor: grabbing !important;
    user-select: none;
}

.brands-frame-parent.has-moved a {
    pointer-events: none;
}

/* Custom Scrollbar */
.brands-custom-scrollbar {
    width: 100%;
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
    margin-top: 16px;
    position: relative;
    cursor: pointer;
}

.brands-custom-scrollbar-track {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.brands-custom-scrollbar-thumb {
    height: 100%;
    background-color: #6b7280;
    border-radius: 3px;
    position: absolute;
    top: 0;
    cursor: grab;
    transition: background-color 0.2s ease;
}

.brands-custom-scrollbar-thumb:hover {
    background-color: #4b5563;
}

.brands-custom-scrollbar-thumb:active {
    cursor: grabbing;
    background-color: #374151;
}

/* Link styling to remove text decoration */
.brands-premium-brands-parent a {
    text-decoration: none;
    color: inherit;
}

.brands-premium-brands-parent a:hover {
    text-decoration: none;
    color: inherit;
}

/* Responsive design */
@media (max-width: 1199px) {
    .brands-frame-group {
        gap: 20px;
    }
    
    .brands-frame-wrapper,
    .brands-mashreqy-1-600x600-1-parent,
    .brands-mashreqy-1-600x600-1-group,
    .brands-frame-container,
    .brands-component-71 {
        width: 200px;
        height: 250px;
    }
    
    .brands-enjoy-your-favorite-brands-parent {
        width: 240px;
        height: 250px;
    }
}

@media (max-width: 991px) {
    .brands-frame-group {
        gap: 15px;
    }
    
    .brands-frame-wrapper,
    .brands-mashreqy-1-600x600-1-parent,
    .brands-mashreqy-1-600x600-1-group,
    .brands-frame-container,
    .brands-component-71 {
        width: 180px;
        height: 220px;
    }
    
    .brands-enjoy-your-favorite-brands-parent {
        width: 200px;
        height: 220px;
        margin-left: 15px;
    }
    
    .brands-premium-brands {
        font-size: 35px;
    }
}

@media (max-width: 767px) {
    .brands-frame-parent {
        padding: 0 15px;
    }
    
    .brands-frame-group {
        gap: 12px;
    }
    
    .brands-frame-wrapper,
    .brands-mashreqy-1-600x600-1-parent,
    .brands-mashreqy-1-600x600-1-group,
    .brands-frame-container,
    .brands-component-71 {
        width: 160px;
        height: 200px;
    }
    
    .brands-enjoy-your-favorite-brands-parent {
        width: 180px;
        height: 200px;
        margin-left: 12px;
    }
    
    .brands-premium-brands {
        font-size: 28px;
        line-height: 50px;
    }
    
    .brands-enjoy-your-favorite {
        font-size: 20px;
        line-height: 30px;
        width: auto;
        left: 20px;
        right: 20px;
    }
    
    .brands-component-65 {
        font-size: 18px;
        left: 30px;
        top: 150px;
    }
}

@media (max-width: 575px) {
    .brands-frame-parent {
        padding: 0 10px;
    }
    
    .brands-frame-group {
        gap: 10px;
    }
    
    .brands-frame-wrapper,
    .brands-mashreqy-1-600x600-1-parent,
    .brands-mashreqy-1-600x600-1-group,
    .brands-frame-container,
    .brands-component-71 {
        width: 140px;
        height: 180px;
    }
    
    .brands-enjoy-your-favorite-brands-parent {
        width: 160px;
        height: 180px;
        margin-left: 10px;
    }
    
    .brands-premium-brands {
        font-size: 24px;
        line-height: 40px;
    }
    
    .brands-enjoy-your-favorite {
        font-size: 18px;
        line-height: 25px;
        left: 15px;
        right: 15px;
    }
    
    .brands-component-65 {
        font-size: 16px;
        left: 25px;
        top: 130px;
    }
}

@media (max-width: 479px) {
    .brands-frame-group {
        gap: 8px;
    }
    
    .brands-frame-wrapper,
    .brands-mashreqy-1-600x600-1-parent,
    .brands-mashreqy-1-600x600-1-group,
    .brands-frame-container,
    .brands-component-71 {
        width: 120px;
        height: 160px;
    }
    
    .brands-enjoy-your-favorite-brands-parent {
        width: 140px;
        height: 160px;
        margin-left: 8px;
    }
} 