/* ========================================
   BRAND PRODUCTS SLIDER
   ======================================== */

.brand-products-section {
    padding: 50px 0;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.brand-products-section:nth-child(even) {
    background: #fafafa;
}

/* Brand Header */
.brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.brand-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    position: relative;
}

.brand-section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #1a5f2a, #2d8a3e);
    border-radius: 2px;
}

.brand-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a5f2a;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid #1a5f2a;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.brand-view-all:hover {
    background: #1a5f2a;
    color: #fff;
}

.brand-view-all i {
    transition: transform 0.3s ease;
}

.brand-view-all:hover i {
    transform: translateX(5px);
}

/* Slider Wrapper */
.brand-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Slider Navigation Buttons */
.brand-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: none;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #1a5f2a;
    font-size: 1.1rem;
}

.brand-slider-btn:hover {
    background: #1a5f2a;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.brand-slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.brand-slider-btn:disabled:hover {
    background: #fff;
    color: #1a5f2a;
    transform: translateY(-50%);
}

.brand-slider-prev {
    left: -20px;
}

.brand-slider-next {
    right: -20px;
}

/* Slider Container */
.brand-slider {
    flex: 1;
    overflow: hidden;
    margin: 0 10px;
}

.brand-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

/* Product Card */
.brand-product-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.brand-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.brand-product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Product Image */
.brand-product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

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

.brand-product-card:hover .brand-product-image img {
    transform: scale(1.08);
}

/* Product Badges */
.brand-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.brand-product-badge.discount {
    background: #e74c3c;
    color: #fff;
}

.brand-product-badge.new {
    background: #3498db;
    color: #fff;
    top: 10px;
    left: auto;
    right: 10px;
}

.brand-product-badge.bestseller {
    background: #f39c12;
    color: #fff;
    top: 40px;
}

/* Favorite Button */
.brand-product-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    z-index: 5;
}

.brand-product-card:hover .brand-product-favorite {
    opacity: 1;
    transform: scale(1);
}

.brand-product-favorite:hover {
    background: #e74c3c;
    color: #fff;
}

.brand-product-favorite.active {
    background: #e74c3c;
    color: #fff;
}

.brand-product-favorite.active i {
    font-weight: 900;
}

/* Product Info */
.brand-product-info {
    padding: 15px;
}

.brand-product-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.brand-product-size {
    display: inline-block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
}

.brand-product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.brand-product-price .current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a5f2a;
}

.brand-product-price .old-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
    .brand-product-card {
        flex: 0 0 calc(33.333% - 14px);
    }
    
    .brand-slider-prev {
        left: -15px;
    }
    
    .brand-slider-next {
        right: -15px;
    }
}

@media (max-width: 992px) {
    .brand-products-section {
        padding: 40px 0;
    }
    
    .brand-section-title {
        font-size: 1.3rem;
    }
    
    .brand-product-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 180px;
    }
    
    .brand-slider-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .brand-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .brand-view-all {
        align-self: flex-end;
    }
    
    .brand-slider-wrapper {
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    .brand-slider-btn {
        display: none;
    }
    
    .brand-slider {
        margin: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .brand-slider::-webkit-scrollbar {
        display: none;
    }
    
    .brand-slider-track {
        padding: 10px 5px;
    }
    
    .brand-product-card {
        flex: 0 0 160px;
        min-width: 160px;
        scroll-snap-align: start;
    }
    
    .brand-product-favorite {
        opacity: 1;
        transform: scale(1);
        width: 32px;
        height: 32px;
    }
    
    .brand-product-info {
        padding: 12px;
    }
    
    .brand-product-title {
        font-size: 0.85rem;
        min-height: auto;
        -webkit-line-clamp: 1;
    }
    
    .brand-product-price .current-price {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .brand-products-section {
        padding: 30px 0;
    }
    
    .brand-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .brand-logo {
        height: 30px;
    }
    
    .brand-section-title {
        font-size: 1.1rem;
    }
    
    .brand-view-all {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .brand-product-card {
        flex: 0 0 140px;
        min-width: 140px;
    }
    
    .brand-product-image {
        aspect-ratio: 1;
    }
    
    .brand-product-info {
        padding: 10px;
    }
    
    .brand-product-title {
        font-size: 0.8rem;
    }
    
    .brand-product-price .current-price {
        font-size: 0.95rem;
    }
    
    .brand-product-price .old-price {
        font-size: 0.8rem;
    }
}

/* Touch Scroll Indicator */
@media (max-width: 768px) {
    .brand-slider-wrapper::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.9));
        pointer-events: none;
        z-index: 5;
    }
    
    .brand-products-section:nth-child(even) .brand-slider-wrapper::after {
        background: linear-gradient(to right, transparent, rgba(250,250,250,0.9));
    }
}
