/* ==================== GOOGLE FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600;700&family=Jost:wght@300;400;500;600&display=swap');

/* ==================== JEWELLERY SLIDER WIDGET STYLES ==================== */
.jw-slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.95);
    animation: fadeInScale 0.8s ease forwards;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.jw-slider-wrapper {
    display: flex;
    transition: transform 0.8s ease-in-out;
}

.jw-slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16/9;
}

.jw-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jw-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), transparent);
}

.jw-slide-content {
    position: absolute;
    bottom: 60px;
    left: 60px;
    z-index: 10;
    max-width: 500px;
}

.jw-slide-category {
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    font-weight: 500;
}

.jw-slide-title {
    font-family: 'EB Garamond', serif;
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.jw-slide-description {
    font-family: 'Jost', sans-serif;
    font-size: 1.2rem;
    color: #e8d4b0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
}

/* Slider Controls */
.jw-slider-controls {
    position: absolute;
    bottom: 30px;
    right: 60px;
    z-index: 20;
    display: flex;
    gap: 15px;
}

.jw-slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    border: 2px solid #d4af37;
    color: #d4af37;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    outline: none;
}

.jw-slider-btn:hover {
    background: #d4af37;
    color: #1a1a1a;
    transform: scale(1.1);
}

.jw-slider-btn:active {
    transform: scale(0.95);
}

/* Slider Dots */
.jw-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.jw-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.jw-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.jw-dot.active {
    background: #d4af37;
    width: 40px;
    border-radius: 6px;
}

/* ==================== JEWELLERY IMAGE CARDS WIDGET STYLES ==================== */
.jw-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.jw-image-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(50px);
    animation: cardSlideUp 0.6s ease forwards;
    aspect-ratio: 3/4;
}

@keyframes cardSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jw-image-card:nth-child(1) { animation-delay: 0.1s; }
.jw-image-card:nth-child(2) { animation-delay: 0.2s; }
.jw-image-card:nth-child(3) { animation-delay: 0.3s; }
.jw-image-card:nth-child(4) { animation-delay: 0.4s; }
.jw-image-card:nth-child(5) { animation-delay: 0.5s; }
.jw-image-card:nth-child(6) { animation-delay: 0.6s; }

.jw-image-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(212, 175, 55, 0.3);
}

/* Card Image - Full Card Height */
.jw-card-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.jw-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.jw-image-card:hover .jw-card-image {
    transform: scale(1.1);
}

/* Badge on Image */
.jw-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #d4af37;
    color: #1a1a1a;
    padding: 8px 20px;
    border-radius: 25px;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Bottom Gradient Overlay - Always Visible */
.jw-card-bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 80px 25px 25px 25px;
    z-index: 5;
    transition: opacity 0.4s ease;
}

.jw-image-card:hover .jw-card-bottom-overlay {
    opacity: 0;
}

/* Category and Title - Always Visible at Bottom */
.jw-card-content {
    position: relative;
    z-index: 6;
}

.jw-card-category {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
    font-weight: 500;
}

.jw-card-title {
    font-family: 'EB Garamond', serif;
    font-size: 2rem;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

/* Hover Overlay with Description - Only Visible on Hover */
.jw-card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 50%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 8;
}

.jw-image-card:hover .jw-card-hover-overlay {
    opacity: 1;
}

/* Description Text - Only on Hover */
.jw-card-hover-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.jw-image-card:hover .jw-card-hover-content {
    transform: translateY(0);
}

.jw-card-hover-category {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 15px;
    font-weight: 500;
}

.jw-card-hover-title {
    font-family: 'EB Garamond', serif;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.jw-card-description {
    font-family: 'Jost', sans-serif;
    font-size: 1.1rem;
    color: #e8d4b0;
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Tablet */
@media (max-width: 1024px) {
    .jw-slide-content {
        left: 40px;
        bottom: 40px;
        max-width: 400px;
    }

    .jw-slide-title {
        font-size: 2.8rem;
    }

    .jw-slide-description {
        font-size: 1rem;
    }

    .jw-slider-controls {
        right: 40px;
    }

    .jw-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .jw-card-title {
        font-size: 1.7rem;
    }

    .jw-card-hover-title {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .jw-slider-container {
        border-radius: 15px;
    }

    .jw-slide {
        aspect-ratio: 4/3;
    }

    .jw-slide-content {
        left: 30px;
        bottom: 30px;
        max-width: calc(100% - 60px);
    }

    .jw-slide-category {
        font-size: 0.75rem;
    }

    .jw-slide-title {
        font-size: 2rem;
    }

    .jw-slide-description {
        font-size: 0.9rem;
    }

    .jw-slider-controls {
        right: 30px;
        bottom: 20px;
        gap: 10px;
    }

    .jw-slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .jw-slider-dots {
        bottom: 20px;
        gap: 8px;
    }

    .jw-dot {
        width: 10px;
        height: 10px;
    }

    .jw-dot.active {
        width: 30px;
    }

    .jw-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .jw-card-bottom-overlay {
        padding: 60px 20px 20px 20px;
    }

    .jw-card-title {
        font-size: 1.5rem;
    }

    .jw-card-hover-title {
        font-size: 1.8rem;
    }

    .jw-card-description {
        font-size: 1rem;
    }

    .jw-card-badge {
        padding: 6px 15px;
        font-size: 0.75rem;
        top: 15px;
        right: 15px;
    }

    .jw-card-hover-overlay {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .jw-slide-title {
        font-size: 1.5rem;
    }

    .jw-slide-description {
        font-size: 0.85rem;
    }

    .jw-card-title {
        font-size: 1.3rem;
    }

    .jw-card-hover-title {
        font-size: 1.5rem;
    }

    .jw-card-description {
        font-size: 0.95rem;
    }
}

/* ==================== ACCESSIBILITY ==================== */
.jw-slider-btn:focus,
.jw-dot:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

.jw-image-card:focus-within {
    outline: 2px solid #d4af37;
    outline-offset: 4px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .jw-slider-wrapper,
    .jw-card-image,
    .jw-slider-btn,
    .jw-dot,
    .jw-card-hover-overlay,
    .jw-card-hover-content,
    .jw-image-card {
        transition: none;
        animation: none;
    }
    
    .jw-image-card {
        opacity: 1;
        transform: none;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .jw-slider-controls,
    .jw-slider-dots {
        display: none;
    }

    .jw-slider-wrapper {
        transform: none !important;
    }

    .jw-slide {
        page-break-inside: avoid;
    }

    .jw-card-hover-overlay {
        display: none;
    }

    .jw-card-bottom-overlay {
        opacity: 1 !important;
    }
}