/**
 * DazzleDiva Widgets Styles
 *
 * @author DazzleDiva
 * @package DazzleDiva_Widgets
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400;500;600;700&display=swap');

/* Reset and base styles to avoid conflicts with Magento 2 */
.jewelry-widget-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.jewelry-widget-container * {
    box-sizing: border-box;
}

/* Main container */
.jewelry-featured-categories {
    background: linear-gradient(135deg, #ffffff 0%, #f8f6f4 50%, #ffffff 100%);
    text-align: center;
    width: 100%;
    margin: 0;
    position: relative;
}


/* Header section */
.jewelry-header {
    margin-bottom: 50px;
    padding: 0 20px;
}

.jewelry-explore-text {
    font-size: 13px;
    font-weight: 500;
    color: #e0b960;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 15px 0;
    position: relative;
}

.jewelry-explore-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background: #e0b960;
}

.jewelry-main-title {
    font-size: 52px;
    font-weight: 300;
    color: #800020;
    margin: 0 0 25px 0;
    line-height: 1.1;
    letter-spacing: -1px;
    font-family: 'Playfair Display', serif;
}

.jewelry-description {
    font-size: 17px;
    color: #666666;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Scroller container */
.jewelry-scroller-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 20px 0;
    width: 100%;
}

.jewelry-categories-scroll {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 25px;
    padding: 0 20px;
    justify-content: flex-start;
    will-change: transform;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.jewelry-category-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    overflow: visible;
    padding: 10px;
}

.jewelry-category-item:hover {
    text-decoration: none;
    transform: translateY(-5px);
}

.jewelry-category-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.jewelry-category-item:hover .jewelry-category-image {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: scale(1.08);
    border-color: #e0b960;
}

.jewelry-category-label {
    font-size: 14px;
    font-weight: 400;
    color: #444444;
    text-align: center;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.jewelry-category-item:hover .jewelry-category-label {
    color: #800020;
    text-decoration: none;
}

/* Navigation arrows */
.jewelry-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #800020 0%, #600018 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.3);
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.jewelry-nav-arrow:hover {
    background: linear-gradient(135deg, #600018 0%, #400010 100%);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.4);
}

.jewelry-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.jewelry-nav-arrow.jewelry-nav-left {
    left: 15px;
}

.jewelry-nav-arrow.jewelry-nav-right {
    right: 15px;
}

.jewelry-nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.jewelry-nav-arrow:disabled:hover {
    transform: translateY(-50%);
    background: #999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Scroll indicators */
.jewelry-scroll-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.jewelry-scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    transition: background 0.3s ease;
    cursor: pointer;
}

.jewelry-scroll-dot.active {
    background: #800020;
}

/* No categories message */
.jewelry-no-categories {
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Desktop styles */
@media (min-width: 769px) {
    .jewelry-scroller-wrapper {
        padding: 20px 40px;
    }

    .jewelry-categories-scroll {
        gap: 30px;
        padding: 0 40px;
    }

    .jewelry-category-item {
        width: 290px;
        padding: 15px;
    }

    .jewelry-category-image {
        width: 250px;
        height: 250px;
    }

    .jewelry-category-label {
        font-size: 15px;
    }

    .jewelry-nav-arrow.jewelry-nav-left {
        left: 60px;
    }

    .jewelry-nav-arrow.jewelry-nav-right {
        right: 60px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {

    .jewelry-header {
        padding: 0 15px;
    }

    .jewelry-main-title {
        font-size: 32px;
    }

    .jewelry-description {
        font-size: 14px;
    }

    .jewelry-scroller-wrapper {
        overflow: hidden;
        padding: 15px 0;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .jewelry-categories-scroll {
        gap: 20px;
        padding: 0 15px;
    }

    .jewelry-category-item {
        width: 90px;
        padding: 8px;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .jewelry-category-image {
        width: 75px;
        height: 75px;
        margin-bottom: 10px;
    }

    .jewelry-category-label {
        font-size: 11px;
        font-weight: 500;
    }

    .jewelry-category-item:hover .jewelry-category-image {
        transform: scale(1.05);
    }

    .jewelry-nav-arrow {
        display: none;
    }

    .jewelry-scroll-indicators {
        display: none;
    }
}