/* =========================
   SELLER SPOTLIGHT SECTION
========================= */

#section_seller_spotlight {
    padding: 60px 0;
}

.section-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.desktop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mobile-carousel {
    display: none;
    width: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.dots-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 20px;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    width: 30px;
    background: #1b1b28;
}


.seller-card {
    background: #ffffff;
    padding: 28px 26px;

    border: 1px solid #e5e7eb;   /* light gray border */
    border-radius: 8px;          /* optional soft corners */

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);  /* light soft shadow */

    display: flex;
    flex-direction: column;
}



.seller-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.logo-circle {
    width: 90px;
    height: 90px;
    flex: 0 0 90px;   /* 🔥 prevents shrinking inside flex */

    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #bababe;
    background: #f0eae4;

    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-fallback {
    font-size: 2rem;
    font-weight: bold;
    color: #292933;
}

.seller-name {
    font-size: 1.5rem;
    font-weight: 500;
    color: #292933;
    font-family: 'Times New Roman', serif;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    line-height: 1.2;
}

.story-text {
    color: #484852;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ff4500;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;

    min-height: calc(1.6em * 4);
}

.category-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.category-name {
    background: #ffece5;
    padding: 4px 14px;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-count span {
    font-weight: 600;
}

.location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.product-card-outer {
    aspect-ratio: 1/1;
    border: 1px solid #e5e7eb;   /* light gray default */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.product-card-outer:hover {
    border: 2px solid #1b1b28;   /* your previous border color */
}

.product-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-card-inner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;  /* Changed from cover */
    object-position: center;

}

.shop-link {
    color: #1b1b28;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid #ff4500;
    padding-top: 20px;
    margin-top: auto;
}

@media (max-width: 900px) {
    .desktop-grid { display: none; }
    .mobile-carousel { display: block; }
}