/* Editorial Hero Section with Background Image */
.rings-hero-section {
    position: relative;
    background: url('/Image/CoverPage/RING-01.jpg') no-repeat center center / cover;
    height: 480px;
    min-height: 480px;
    width: 100%;
    overflow: hidden;
}

@media (max-width: 991px) {
    .rings-hero-section {
        height: 350px;
        min-height: 350px;
    }
}

@media (max-width: 576px) {
    .rings-hero-section {
        height: 220px;
        min-height: 220px;
    }
}

.breadcrumb-wrapper {
    background: linear-gradient(to bottom, #f8f8f8, #ffffff);
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.breadcrumb {
    background: transparent;
    font-size: 1rem;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #aaa;
    content: ">";
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s;
}

    .breadcrumb-item a:hover {
        color: #b8860b;
    }

.breadcrumb-item.active {
    color: #800000;
    font-weight: 600;
}

@media (max-width: 768px) {
    .breadcrumb-wrapper {
        padding: 8px 10px;
    }

    .breadcrumb {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .breadcrumb {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 5px;
    }
}

.view-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ekaiva-view .btn {
    border: 1px solid #ccc;
    background: #fff;
    color: #555;
    width: 36px;
    height: 36px;
    padding: 0;
}

    .ekaiva-view .btn.active {
        border-color: #000;
        color: #000;
    }

.ekaiva-card {
    /*     border: 1px solid #eee;
            border-radius: 8px;
            background: #fff; */
    transition: all 0.3s ease;
}

/* .ekaiva-card:hover {
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            } */

.ekaiva-card-img {
    overflow: hidden;
}

    .ekaiva-card-img img {
        width: 100%;
        height: auto;
   /*     transition: opacity 0.4s ease-in-out;*/
        display: block;
    }

    .ekaiva-card-img .hover-img {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
    }

    .ekaiva-card-img:hover .hover-img {
        opacity: 1;
    }

    .ekaiva-card-img:hover .main-img {
        opacity: 0;
    }

.ekaiva-product-title {
    font-size: 18px;
    font-weight: 700;
    margin-top: 10px;
}

.ekaiva-product-price {
    color: #d4a017;
    font-weight: bold;
}

.list-view .ekaiva-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.list-view .ekaiva-card-img {
    width: 30%;
    height: 320px;
    aspect-ratio: auto;
    flex-shrink: 0;
}

.list-view .ekaiva-card-body {
    text-align: left;
    width: 70%;
}

.filter-section h6 {
    font-weight: 600;
    font-size: 14px;
    margin-top: 15px;
}

.filter-section label {
    display: block;
    font-size: 14px;
    margin: 5px 0;
}
/* Container for both buttons */
.ekaiva-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

/* Add to Cart button */
.add-to-cart-btn {
    position: relative;
    background: linear-gradient(135deg, #5A0717, #7c1b2c);
    color: #fff;
    border: none;
    padding: 10px 70px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(90,7,23,0.3);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .add-to-cart-btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(255, 215, 0, 0.25); /* gold shimmer */
        transition: all 0.5s ease;
    }

    .add-to-cart-btn:hover::before {
        left: 100%;
    }

    .add-to-cart-btn:hover {
        background: linear-gradient(135deg, #7c1b2c, #5A0717);
        transform: translateY(-3px);
        box-shadow: 0 6px 14px rgba(90,7,23,0.4);
    }

    .add-to-cart-btn i {
        color: #ffd700; /* gold cart icon */
        transition: transform 0.3s ease;
    }

    .add-to-cart-btn:hover i {
        transform: translateX(4px);
    }

/* Wishlist (heart) button */
.wishlist-btn {
    background: #fff;
    border: 2px solid #5A0717;
    color: #5A0717;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .wishlist-btn:hover {
        background: #5A0717;
        color: #fff;
        transform: scale(1.1);
        box-shadow: 0 0 10px rgba(90,7,23,0.3);
    }


.ekaiva-price-row {
    display: flex;
    align-items: center;
    justify-content: center; /* center horizontally */
    gap: 10px; /* space between prices */
}

.ekaiva-old-price {
    color: #888;
    text-decoration: line-through;
    font-size: 18px;
    margin: 0;
}

.ekaiva-new-price {
    color: #7a0c2e; /* maroon theme color */
    font-weight: bold;
    font-size: 18px;
    margin: 0;
}
body.modal-open {
    overflow: hidden !important;
}

.modal.show {
    display: flex !important;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100%;
    height: 100%;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

    .modal-backdrop.show {
        opacity: 1;
    }

/* Modal Box */
.add-cart-modal {
    border-radius: 22px;
    padding: 0;
    background: #ffffff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.45s ease-out;
    overflow: hidden;
    border: none;
}

/* Slide up animation */
@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #5A0717 0%, #8B1538 100%);
    border: none !important;
    position: relative;
    overflow: hidden;
}

    .modal-header::before {
        content: "";
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
        background-size: 40px 40px;
        animation: bgShift 20s linear infinite;
        pointer-events: none;
    }

@keyframes bgShift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(40px, 40px);
    }
}

.modal-title {
    color: #fff !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.modal-header .btn-close {
    background-color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1 !important;
    position: absolute !important;
    right: 20px !important;
    top: 20px !important;
    z-index: 10;
    transition: all 0.3s ease;
}

    .modal-header .btn-close:hover {
        background-color: #fff !important;
        transform: rotate(90deg);
    }

/* Body */
.modal-body {
    padding: 40px 30px !important;
    text-align: center;
}

.success-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #5A0717 0%, #8B1538 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    color: #fff;
    box-shadow: 0 8px 30px rgba(90, 7, 23, 0.3);
    position: relative;
    z-index: 2;
}

.start-animation {
    animation: pulseZoom 1.3s ease-in-out forwards, continuousBreathe 2s ease-in-out 1.3s infinite;
}

@keyframes pulseZoom {
    0% {
        transform: scale(0.2);
        opacity: 0;
    }

    40% {
        transform: scale(1.3);
        opacity: 1;
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes continuousBreathe {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.success-circle.start-animation::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid rgba(90, 7, 23, 0.4);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glowRing 1.4s ease-out forwards;
    opacity: 0;
}

@keyframes glowRing {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.15;
    }

    70% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

.modal-body h6 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.modal-body p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

    .modal-body p.text-muted {
        color: #999 !important;
        font-size: 0.85rem;
    }

.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-outline-dark {
    border: 2px solid #5A0717 !important;
    color: #5A0717 !important;
    font-weight: 600;
    padding: 10px 30px !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
    text-decoration: none;
    display: inline-block;
}

    .btn-outline-dark:hover {
        background-color: #5A0717 !important;
        color: #fff !important;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(90, 7, 23, 0.2);
    }

.btn-wine {
    background: linear-gradient(135deg, #5A0717 0%, #8B1538 100%) !important;
    color: #fff !important;
    font-weight: 600;
    padding: 10px 30px !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
    text-decoration: none;
    display: inline-block;
    border: none !important;
}

    .btn-wine:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(90, 7, 23, 0.3);
        color: #fff !important;
    }

    .btn-wine:active {
        transform: translateY(0);
    }

.modal-dialog-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

@media (max-width: 576px) {
    .modal-body {
        padding: 30px 20px !important;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn-outline-dark,
    .btn-wine {
        width: 100%;
    }

    .success-circle {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }

    .modal-title {
        font-size: 1.25rem !important;
    }
}

/* Extracted from Rings.cshtml */
.lux-catalog-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: none !important;
    box-shadow: none !important;
    transition: var(--transition-lux);
}
.lux-catalog-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
}

.card-img-wrap {
    position: relative;
    height: 320px;
    overflow: hidden;
    background-color: var(--light-beige);
}
@media (max-width: 991px) {
    .card-img-wrap {
        height: 280px;
    }
}
@media (max-width: 576px) {
    .card-img-wrap {
        height: 240px;
    }
    .card-actions-overlay {
        opacity: 1;
        transform: translate(-50%, 0);
        bottom: 10px;
    }
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-lux);
}
.card-img-wrap .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
.lux-catalog-card:hover .card-img-wrap img.main-img.has-hover {
    opacity: 0;
}
.lux-catalog-card:hover .card-img-wrap img.main-img:not(.has-hover) {
    transform: scale(1.05);
}
.lux-catalog-card:hover .card-img-wrap img.hover-img {
    opacity: 1;
    transform: scale(1.05);
}

/* Wishlist/Add Cart buttons overlay */
.card-actions-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 20px);
    opacity: 0;
    display: flex;
    gap: 10px;
    width: 85%;
    transition: var(--transition-lux);
    z-index: 3;
}
.lux-catalog-card:hover .card-actions-overlay {
    opacity: 1;
    transform: translate(-50%, 0);
}

.round-action-btn {
    background-color: var(--bg-white);
    border: 1px solid var(--gold-accent);
    color: var(--text-charcoal);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}
.round-action-btn:hover {
    background-color: var(--gold-accent);
    color: var(--bg-white);
}
.round-action-btn.active {
    background-color: var(--gold-accent);
    color: var(--bg-white);
}