/**
 * Optimized Jewellery Collections V2 Styles
 * Combines slider functionality with the premium original card design.
 */

:root {
    --cj-v2-regular-price: #A6A6A6;
    --cj-v2-sale-price: #D51817;
    --cj-v2-font-main: Montserrat, sans-serif;
    --cj-v2-font-accent: Montserrat, serif;
}

/* Section Wrapper */
.jewellery-collections-v2 {
    padding: 40px 0;
    max-width: 1599px;
    margin: 0 auto;
    background: #fff;
    overflow: hidden;
}

.jewellery-collections-v2 .container-fluid {
    padding: 0 20px;
}

/* Header */
.collections-v2-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.collections-v2-header h2 {
    font-family: Montserrat, serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 36px;
    color: #000;
    margin: 0;
    font-style: italic;
}

/* View All Button */
.view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    gap: 8px;
    min-width: 146px;
    height: 45px;
    border: 1px solid #000;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.view-all-btn::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: #000;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.view-all-btn span {
    font-family: var(--cj-v2-font-main);
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    color: #000;
    position: relative;
    z-index: 10;
    white-space: nowrap;
}

.view-all-btn svg {
    position: relative;
    z-index: 10;
    color: #000;
}

.view-all-btn:hover::after {
    width: 100%;
}

.view-all-btn:hover span,
.view-all-btn:hover svg {
    color: #fff;
}

/* Slider Wrapper & Arrows */
.collections-v2-slider-wrapper {
    position: relative;
    padding: 0px;
}

.collections-v2-slider-wrapper .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px !important;
    height: 32px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    z-index: 100 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border-radius: 0;
    padding: 0;
}

.collections-v2-slider-wrapper .slick-arrow:hover {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.collections-v2-slider-wrapper .prev-arrow {
    left: 50px !important;
}

.collections-v2-slider-wrapper .next-arrow {
    right: 50px !important;
}

.collections-v2-slider-wrapper .slick-arrow::before {
    content: '' !important;
    width: 8px !important;
    height: 8px !important;
    border-top: 1.5px solid #000 !important;
    border-left: 1.5px solid #000 !important;
    display: block !important;
    opacity: 1 !important;
}

.collections-v2-slider-wrapper .prev-arrow::before {
    transform: rotate(-45deg);
    margin-left: 3px;
}

.collections-v2-slider-wrapper .next-arrow::before {
    transform: rotate(135deg);
    margin-right: 3px;
}

/* Card Styling */
.image-slider-item {
    padding: 0px;
    outline: none;
    padding-right: 12px !important;
}

.collection-v2-card {
    background: #fff;
    border: 1px solid #f2f2f2;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 500px;
    display: flex;
    flex-direction: column;
}

.collection-v2-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.collection-v2-card .card-link {
    text-decoration: none;
    height: 100%;
    padding: 27px;
}

.card-image {
    width: 100%;
    height: 334px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    overflow: hidden;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.collection-v2-card:hover .card-image img {
    transform: scale(1.08);
}

.card-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
}

.card-info h3 {
    font-family: var(--cj-v2-font-main);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #000;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-wrapper del {
    font-family: var(--cj-v2-font-main);
    font-size: 14px;
    color: #A6A6A6 !important;
    /* Regular price: Grey */
    text-decoration: line-through !important;
    text-decoration-color: #A6A6A6 !important;
    opacity: 1;
}

.price-wrapper ins,
.price-wrapper .sale-price {
    font-family: var(--cj-v2-font-main);
    font-size: 15px;
    font-weight: 500;
    color: #D51817 !important;
    /* Selling price: Red */
    text-decoration: none !important;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .jewellery-collections-v2 {
        padding: 0px 0 40px;
    }

    .collections-v2-header {
        margin-bottom: 30px;
    }

    .collections-v2-header h2 {
        font-size: 24px;
    }

    .collection-v2-card {
        height: 420px;
    }

    .card-image {
        height: 260px;
    }

    .collections-v2-slider-wrapper .prev-arrow {
        left: 10px !important;
    }

    .collections-v2-slider-wrapper .next-arrow {
        right: 10px !important;
    }
}

@media (max-width: 600px) {
    .collections-v2-header {
        display: block;
    }

    .collections-v2-header {
        margin-bottom: 25px;
        gap: 10px;
    }

    .collections-v2-header h2 {
        font-size: 18px;
        line-height: 24px;
    }

    .view-all-btn {
        min-width: 100px;
        height: 38px;
        padding: 0 16px;
        width: 40%;
        margin: auto;
        margin-top: 20px;
    }

    .view-all-btn span {
        font-size: 13px;
    }

    .view-all-btn svg {
        width: 12px;
        height: 12px;
    }

    .collection-v2-card {
        height: 350px;
    }

    .collection-v2-card .card-link {
        padding: 15px;
    }

    .card-image {
        height: 226px;
        margin-bottom: 10px;
    }

    .card-info {
        gap: 8px;
    }

    .card-info h3 {
        font-size: 13px;
        line-height: 18px;
    }

    .price-wrapper {
        flex-wrap: wrap;
        gap: 2px 8px;
    }

    .price-wrapper del {
        font-size: 12px;
    }

    .price-wrapper ins,
    .price-wrapper .sale-price {
        font-size: 13px;
        font-weight: 600;
    }

}