/* =========================================================
   CARD ACTIONS: ADD TO BAG + QUICK VIEW
========================================================= */

.jt-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    display: flex;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.product-image-wrap:hover .jt-actions,
.necklace-image:hover .jt-actions,
.bangle-image:hover .jt-actions,
.bracelet-image:hover .jt-actions,
.bridal-image:hover .jt-actions,
.ring-image:hover .jt-actions,
.watche-image:hover .jt-actions,
.new-arrival-image:hover .jt-actions {
    transform: translateY(0);
}

/* Pazhaya hover labels hide */
.necklace-hover,
.bangle-hover,
.bracelet-hover,
.bridal-hover,
.ring-hover,
.watche-hover,
.quick-view {
    display: none !important;
}

.jt-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 6px;
    border: 0;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background 0.25s ease, color 0.25s ease;
}

.jt-add {
    background: #023020;
    color: #fff;
}

.jt-add:hover {
    background: #b08a45;
}

.jt-view {
    background: #f0e3cd;
    color: #023020;
}

.jt-view:hover {
    background: #b08a45;
    color: #fff;
}

/* Pazhaya Add to Bag button-a bar-kulla pakkathula set pannum */
.jt-actions .add-to-cart-btn,
.jt-actions .new-arrival-add-cart {
    position: static !important;
    flex: 1;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 13px 6px !important;
    border: 0 !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    gap: 6px;
    background: #023020 !important;
    color: #fff !important;
    font-size: 11px !important;
    letter-spacing: 1px !important;
}

.jt-actions .add-to-cart-btn:hover,
.jt-actions .new-arrival-add-cart:hover {
    background: #b08a45 !important;
}

/* Mobile: hover illa, so eppavum theriyum */
@media (hover: none), (max-width: 768px) {
    .jt-actions {
        transform: translateY(0);
    }

    .jt-btn,
    .jt-actions .add-to-cart-btn,
    .jt-actions .new-arrival-add-cart {
        padding: 10px 4px !important;
        font-size: 9px !important;
        letter-spacing: 0.5px !important;
    }
}

/* ===== Quick view popup ===== */

.jt-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.jt-overlay.show {
    opacity: 1;
    visibility: visible;
}

.jt-modal {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 800px;
    background: #f0e3cd;
    border: 1px solid #cdb58b;
}

.jt-modal-img {
    flex: 1;
}

.jt-modal-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jt-modal-info {
    flex: 1;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.jt-modal-info h3 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    color: #023020;
}

.jt-modal-price {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #98702c;
}

.jt-modal-add {
    flex: none;
    padding: 15px;
}

.jt-modal-link {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #023020;
}

.jt-close {
    position: absolute;
    top: 8px;
    right: 14px;
    z-index: 2;
    border: 0;
    background: transparent;
    font-size: 28px;
    color: #023020;
    cursor: pointer;
}

@media (max-width: 640px) {
    .jt-modal {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }

    .jt-modal-info {
        padding: 22px 18px;
    }
}


.jt-has-actions {
    position: relative;
    overflow: hidden;
}

.jt-has-actions:hover .jt-actions {
    transform: translateY(0);
}


.jt-overlay.quick-only .jt-modal-add {
    display: none;
}

.watch-hover {
    display: none !important;
}