/**
 * Shared Best Sellers Component Styles
 * Can be used on main site without loading full jewelry CSS
 */

/* Import Nunito Sans font */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600;700;800&display=swap');

/* Best Sellers Section */
.jewelry-best-sellers.shared-jewelry-component {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--jewelry-bg-light) 0%, #fff 100%);
    --jewelry-primary: #86614a;
    --jewelry-text: #614535;
    --jewelry-text-light: #666666;
    --jewelry-bg-light: #fcf7f1;
    --jewelry-accent: #C9A96E;
    --jewelry-font-primary: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-family: var(--jewelry-font-primary);
}

.jewelry-best-sellers.shared-jewelry-component .jewelry-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Background Orbs */
.shared-jewelry-component .jewelry-bestseller-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shared-jewelry-component .jewelry-bestseller-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.4;
}

.shared-jewelry-component .jewelry-bestseller-orb-1 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.2), transparent 70%);
    top: -100px;
    right: -60px;
}

.shared-jewelry-component .jewelry-bestseller-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(134, 97, 74, 0.12), transparent 70%);
    bottom: -80px;
    left: -80px;
}

/* Header */
.shared-jewelry-component .jewelry-bestseller-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.shared-jewelry-component .jewelry-section-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--jewelry-primary);
    margin-bottom: 12px;
}

.shared-jewelry-component .jewelry-section-eyebrow-line {
    width: 40px;
    height: 2px;
    background: var(--jewelry-accent);
}

.shared-jewelry-component .jewelry-section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--jewelry-text);
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.shared-jewelry-component .jewelry-section-title em {
    font-style: italic;
    font-weight: 700;
    color: var(--jewelry-primary);
}

.shared-jewelry-component .jewelry-section-desc {
    font-size: 18px;
    color: var(--jewelry-text-light);
    margin: 0;
    line-height: 1.6;
}

.shared-jewelry-component .jewelry-section-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--jewelry-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.shared-jewelry-component .jewelry-section-view-all:hover {
    gap: 12px;
}

.shared-jewelry-component .jewelry-section-view-all svg {
    transition: transform 0.3s ease;
}

.shared-jewelry-component .jewelry-section-view-all:hover svg {
    transform: translateX(4px);
}

/* Carousel Wrapper */
.shared-jewelry-component .jewelry-bestseller-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Carousel */
.shared-jewelry-component .jewelry-bestseller-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 8px 4px;
    scroll-snap-type: x mandatory;
    flex: 1;
}

.shared-jewelry-component .jewelry-bestseller-carousel::-webkit-scrollbar {
    display: none;
}

/* Carousel Arrows */
.shared-jewelry-component .jewelry-bestseller-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(134, 97, 74, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--jewelry-text);
}

.shared-jewelry-component .jewelry-bestseller-arrow:hover {
    background: white;
    box-shadow: 0 4px 16px rgba(134, 97, 74, 0.15);
    border-color: rgba(134, 97, 74, 0.2);
}

/* Product Cards in Carousel */
.shared-jewelry-component .jewelry-bestseller-carousel .jewelry-product-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    min-width: 0;
}

/* Product Card */
.shared-jewelry-component .jewelry-product-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(134, 97, 74, 0.06);
    box-shadow: 0 2px 8px rgba(134, 97, 74, 0.04);
    text-decoration: none;
    display: block;
}

@media (hover: hover) and (pointer: fine) {
    .shared-jewelry-component .jewelry-product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 36px rgba(134, 97, 74, 0.12);
        border-color: rgba(201, 169, 110, 0.2);
    }
}

/* Product Image */
.shared-jewelry-component .jewelry-product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--jewelry-bg-light);
    overflow: hidden;
}

.shared-jewelry-component .jewelry-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Product Info */
.shared-jewelry-component .jewelry-product-info {
    padding: 16px 18px 18px;
}

.shared-jewelry-component .jewelry-product-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--jewelry-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Specs */
.shared-jewelry-component .jewelry-product-specs {
    font-size: 12px;
    color: var(--jewelry-text-light);
    margin-bottom: 8px;
}

.shared-jewelry-component .jewelry-product-spec:not(:last-child)::after {
    content: ' · ';
}

/* Product Price */
.shared-jewelry-component .jewelry-product-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--jewelry-primary);
}

/* Wishlist Button */
.shared-jewelry-component .jewelry-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

@media (hover: hover) and (pointer: fine) {
    .shared-jewelry-component .jewelry-product-card:hover .jewelry-wishlist-btn {
        opacity: 1;
    }
}

.shared-jewelry-component .jewelry-wishlist-btn.active svg {
    fill: #e53935;
    stroke: #e53935;
}

/* Skeleton Loading */
.shared-jewelry-component .jewelry-skeleton-card {
    pointer-events: none;
}

.shared-jewelry-component .jewelry-skeleton-image {
    background: rgba(134, 97, 74, 0.04);
    height: 220px;
    position: relative;
    overflow: hidden;
}

.shared-jewelry-component .jewelry-skeleton-title,
.shared-jewelry-component .jewelry-skeleton-specs,
.shared-jewelry-component .jewelry-skeleton-price {
    background: rgba(134, 97, 74, 0.04);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.shared-jewelry-component .jewelry-skeleton-title {
    height: 20px;
    margin-bottom: 12px;
}

.shared-jewelry-component .jewelry-skeleton-specs {
    height: 16px;
    width: 70%;
    margin-bottom: 12px;
}

.shared-jewelry-component .jewelry-skeleton-price {
    height: 24px;
    width: 50%;
}

.shared-jewelry-component .jewelry-skeleton-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: jewelry-bestseller-shimmer 1.5s infinite;
}

@keyframes jewelry-bestseller-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Error/No Products */
.shared-jewelry-component .jewelry-no-products,
.shared-jewelry-component .jewelry-error {
    text-align: center;
    color: var(--jewelry-text-light);
    padding: 40px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .jewelry-best-sellers.shared-jewelry-component {
        padding: 56px 0;
    }

    .shared-jewelry-component .jewelry-bestseller-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 28px;
    }

    .shared-jewelry-component .jewelry-section-title {
        font-size: 28px;
    }

    .shared-jewelry-component .jewelry-section-desc {
        font-size: 15px;
    }

    .shared-jewelry-component .jewelry-bestseller-arrow {
        display: none;
    }

    .shared-jewelry-component .jewelry-bestseller-carousel .jewelry-product-card {
        flex: 0 0 calc(50% - 8px);
        min-width: 150px;
    }

    .shared-jewelry-component .jewelry-product-info {
        padding: 12px 14px 14px;
    }

    .shared-jewelry-component .jewelry-product-title {
        font-size: 12px;
    }

    .shared-jewelry-component .jewelry-product-price {
        font-size: 14px;
    }

    .shared-jewelry-component .jewelry-product-specs {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .shared-jewelry-component .jewelry-wishlist-btn {
        opacity: 1;
    }
}

