/* ========================================
   TOP SELLERS & TOP BRANDS PROFESSIONAL STYLING
   Enhanced, modern design for these sections
   ======================================== */

/* ========================================
   SECTION TITLES
   ======================================== */

/* Top Sellers & Top Brands Section Titles */
.section-title-professional {
    position: relative;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.section-title-professional::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary-base) 100%);
    border-radius: 2px;
}

/* View All Links Enhancement */
.view-all-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.view-all-link:hover {
    color: var(--hov-primary);
}

.view-all-link:hover::after {
    transform: translateX(5px);
}

/* ========================================
   TOP SELLERS CARDS
   ======================================== */

/* Seller Card Container */
.seller-card-professional {
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.seller-card-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary-base) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.seller-card-professional:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.seller-card-professional:hover::before {
    transform: scaleX(1);
}

/* Seller Logo */
.seller-logo-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
}

.seller-logo-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0f0f0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.seller-card-professional:hover .seller-logo-wrapper {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: scale(1.05);
}

.seller-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.seller-card-professional:hover .seller-logo-wrapper img {
    transform: scale(1.1);
}

/* Verification Badge */
.verification-badge-professional {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.verification-badge-professional svg {
    width: 24px;
    height: 24px;
}

/* Seller Name */
.seller-name-professional {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.seller-card-professional:hover .seller-name-professional {
    color: var(--primary);
}

/* Seller Rating */
.seller-rating-professional {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.seller-rating-professional .stars {
    color: #f39c12;
    display: flex;
    gap: 2px;
}

/* Visit Shop Button */
.visit-shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    background: var(--soft-primary);
    color: var(--primary);
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.visit-shop-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   TOP BRANDS CARDS
   ======================================== */

/* Brand Card Container */
.brand-card-professional {
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.brand-card-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--soft-primary) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-card-professional:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.brand-card-professional:hover::before {
    opacity: 1;
}

/* Brand Logo Container */
.brand-logo-container {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.brand-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: grayscale(20%);
}

.brand-card-professional:hover .brand-logo-container img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Brand Name */
.brand-name-professional {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.brand-card-professional:hover .brand-name-professional {
    color: var(--primary);
}

/* ========================================
   GRID LAYOUTS
   ======================================== */

/* Sellers Grid */
.sellers-grid-professional {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Brands Grid */
.brands-grid-professional {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

/* ========================================
   CAROUSEL ENHANCEMENTS
   ======================================== */

/* Carousel Navigation Arrows */
.slick-prev,
.slick-next {
    width: 40px;
    height: 40px;
    background: #fff !important;
    border: 1px solid #e8ecef;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.slick-prev:hover,
.slick-next:hover {
    background: var(--primary) !important;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slick-prev:before,
.slick-next:before {
    color: #666;
    font-size: 18px;
    transition: color 0.3s ease;
}

.slick-prev:hover:before,
.slick-next:hover:before {
    color: #fff;
}

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

@media (max-width: 1200px) {
    .sellers-grid-professional {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .brands-grid-professional {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-title-professional {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .sellers-grid-professional {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .brands-grid-professional {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .seller-logo-container {
        width: 80px;
        height: 80px;
    }

    .seller-card-professional {
        padding: 1rem 0.75rem;
    }

    .brand-card-professional {
        padding: 1rem;
    }

    .brand-logo-container {
        height: 80px;
    }

    .seller-card-professional:hover,
    .brand-card-professional:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 576px) {
    .sellers-grid-professional {
        grid-template-columns: repeat(2, 1fr);
    }

    .brands-grid-professional {
        grid-template-columns: repeat(2, 1fr);
    }

    .view-all-link {
        font-size: 0.8125rem;
    }
}

/* ========================================
   LOADING STATES
   ======================================== */

.skeleton-seller-card,
.skeleton-brand-card {
    background: #f0f0f0;
    border-radius: 10px;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.seller-card-professional:focus-within,
.brand-card-professional:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .seller-card-professional,
    .brand-card-professional {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
