/**
 * Shared Shop by Budget 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');

/* Scoped Variables for shared component */
.shared-jewelry-component {
    --jewelry-primary: #86614a;
    --jewelry-secondary: #8B7355;
    --jewelry-accent: #C9A96E;
    --jewelry-text: #614535;
    --jewelry-dark: #614535;
    --jewelry-text-light: #666666;
    --jewelry-border: #E5E5E5;
    --jewelry-bg-light: #fcf7f1;
    --jewelry-white: #ffffff;
    --jewelry-font-primary: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --jewelry-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --jewelry-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --jewelry-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    font-family: var(--jewelry-font-primary);
}

/* Container */
.shared-jewelry-component .jewelry-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Header */
.shared-jewelry-component .jewelry-budget-header {
    margin-bottom: 32px;
}

.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-dark);
    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;
}

/* Shop by Budget Section */
.jewelry-shop-by-budget {
    padding: 80px 0;
    background: linear-gradient(180deg, #fff 0%, var(--jewelry-bg-light) 100%);
}

/* Budget Tabs */
.shared-jewelry-component .jewelry-budget-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
}

.shared-jewelry-component .jewelry-budget-tab {
    padding: 10px 28px;
    border-radius: 30px;
    border: 1.5px solid rgba(134, 97, 74, 0.15);
    background: rgba(255, 255, 255, 0.8);
    color: var(--jewelry-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--jewelry-font-primary);
    letter-spacing: 0.2px;
}

.shared-jewelry-component .jewelry-budget-tab:hover {
    border-color: rgba(201, 169, 110, 0.4);
    background: rgba(252, 247, 241, 0.6);
    transform: translateY(-1px);
}

.shared-jewelry-component .jewelry-budget-tab.active {
    background: var(--jewelry-primary);
    color: white;
    border-color: var(--jewelry-primary);
    box-shadow: 0 4px 16px rgba(134, 97, 74, 0.25);
}

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

/* Budget Carousel */
.shared-jewelry-component .jewelry-budget-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-budget-carousel::-webkit-scrollbar {
    display: none;
}

/* Carousel Arrows */
.shared-jewelry-component .jewelry-budget-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-budget-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 Budget Carousel */
.shared-jewelry-component .jewelry-budget-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;
}

/* Card hover effect - DESKTOP ONLY */
@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;
    letter-spacing: 0.1px;
}

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

.shared-jewelry-component .jewelry-product-spec {
    display: inline-block;
}

.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);
    letter-spacing: -0.3px;
}

/* 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:hover {
    background: white;
    transform: scale(1.1);
}

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

/* Budget Footer */
.shared-jewelry-component .jewelry-budget-footer {
    margin-top: 28px;
    text-align: center;
}

.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;
}

.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);
}

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

.shared-jewelry-component .jewelry-skeleton-card:hover {
    transform: none;
    box-shadow: 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%;
}

/* Shimmer animation */
.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-budget-shimmer 1.5s infinite;
}

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

/* Error and 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 STYLES
   ============================================ */
@media (max-width: 768px) {
    .jewelry-shop-by-budget {
        padding: 48px 0;
    }

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

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

    .shared-jewelry-component .jewelry-budget-tabs {
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .shared-jewelry-component .jewelry-budget-tabs::-webkit-scrollbar {
        display: none;
    }

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

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

    .shared-jewelry-component .jewelry-budget-header {
        margin-bottom: 16px;
    }

    .shared-jewelry-component .jewelry-budget-tabs {
        gap: 8px;
        margin-bottom: 20px;
    }

    .shared-jewelry-component .jewelry-budget-tab {
        padding: 8px 18px;
        font-size: 13px;
        white-space: nowrap;
    }

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

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

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

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

    /* Always show wishlist button on mobile */
    .shared-jewelry-component .jewelry-wishlist-btn {
        opacity: 1;
    }
}

