/**
 * WooCommerce AJAX Wishlist - Minimal CSS
 */

/* Heart Button */
.wishlist-heart {
    background: none;
    border: none;
    padding: 0px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    position: relative;
}

.wishlist-heart:hover {
    transform: scale(1.1);
}

/* SVG Hearts (default) */
.wishlist-heart svg {
    stroke: #999;
    fill: none;
    transition: all 0.3s ease;
}

.wishlist-heart.in-wishlist svg {
    fill: #e74c3c;
    stroke: #e74c3c;
}

.wishlist-heart:hover svg {
    stroke: #e74c3c;
}

/* Custom Image Hearts */
.wishlist-heart img {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease;
    object-fit: unset !important;
}

.wishlist-heart .heart-active {
    position: absolute;
    opacity: 0;
}

.wishlist-heart.in-wishlist .heart-default {
    opacity: 0;
}

.wishlist-heart.in-wishlist .heart-active {
    opacity: 1;
}

.wishlist-heart.loading {
    opacity: 0.8;
    /* Subtle hint that sync is pending, but not blocking */
}

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

.wishlist-title {
    font-family: var(--font-main-regular);
    font-size: var(--type-48);
    color: #1E1104;
    margin: 0;
    display: none;
}

.wishlist-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top:60px;
}

.wishlist-share-btn,
.wishlist-rfq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 30px;
    background: #7D806D;
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: var(--type-20);
    font-family: var(--font-main-regular);
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
}

.wishlist-share-btn:hover,
.wishlist-rfq-btn:hover {
    background: #000;
    color: #fff;
}

.wishlist-share-btn svg {
    stroke: currentColor;
    width: 18px;
    height: 18px;
}

/* Wishlist Products Grid */
.wishlist-products {
    display: grid;
    gap: 30px;
    margin: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.wishlist-products.columns-2 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.wishlist-products.columns-3 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.wishlist-products.columns-4 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Product Item */
.wishlist-product-item {
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.wishlist-product-item:hover {
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.1); */
}

.wishlist-product-image {
    position: relative;
    overflow: hidden;
    max-height: 300px;
    width: 100%;
    height: 300px;
}

.wishlist-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* background-color: green; */
}

.wishlist-product-image a {
    width: 100%;
    height: 100%;
    display: block;
}

.wishlist-product-image .wishlist-heart {
    position: absolute;
    bottom: 10px;
    right: 10px;
    /* background: rgba(255,255,255,0.9); */
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

.wishlist-product-details {
    padding: 15px 0;
}

.wishlist-product-title {
    margin: 0 0 10px;
    font-family: var(--font-main-regular);
    font-size: var(--type-22);
    line-height: var(--line-21);
    /* font-size: 16px; */

    /* line-height: 1.4; */
}

.wishlist-product-title a {
    color: #000;
    text-decoration: none;

}

.wishlist-product-title a:hover {
    color: #000;
}

.wishlist-product-price {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #0000;
    margin-bottom: 12px;
    display: none;
}

.wishlist-add-to-cart {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.wishlist-add-to-cart:hover {
    background: #005a87;
    color: #fff;
}

/* Empty State */
.wishlist-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.wishlist-empty p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Notification */
/* Notification: semi-transparent so background shows through, with black “essence” */
.wishlist-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateY(100px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-main-regular);
}

.wishlist-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.wishlist-notification.success {
    border-left: 4px solid #4CAF50;
}

.wishlist-notification.error {
    border-left: 4px solid #F44336;
}


.wishlist-product-quantity label {
    font-family: var(--font-main-regular);
    font-size: var(--type-14);
}

.wishlist-product-quantity input {
    width: 90px;
    background-color: #eee;
    border-radius: 20px;
    text-align: center;
    font-family: var(--font-main-regular);
    padding-left: 11px;
}

/* ================================== */
/* THEME MATCHED MODAL STYLES */
/* ================================== */

.omprela-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    /* Ensure center alignment if needed */
    align-items: center;
    justify-content: center;
}

.omprela-modal__overlay {
    position: absolute;
    inset: 0;
    background: #2e2e2edc;
    opacity: 0;
    transition: opacity .25s ease;
}

.omprela-modal__dialog {
    position: relative;
    background: #F1F1F1;
    width: calc(100% - 40px);
    max-width: 1000px;
    margin: 80px auto;
    border-radius: 74px;
    padding: 4rem;
    opacity: 0;
    transform: translateY(10px) scale(.98);
    transition: opacity .25s ease, transform .25s ease;
    z-index: 1;
    overflow-y: auto;
    max-height: 90vh;
}

.omprela-modal .wpcf7-response-output,
.omprela-modal .rfq-message {
    border-color: #1a7723;
    background: #1a7723;
    color: #fff;
    padding: 10px 20px;
    border-radius: 23px;
    width: fit-content;
    font-family: var(--font-main-regular);
    font-size: var(--type-20);
    transition: all .3s ease;
    border: none !important;
    margin: 20px auto 0;
}
.rfq-message .success{
  padding: 10px 20px;
}
.omprela-modal .rfq-message.error {
    background: #e74c3c;
    border-color: #e74c3c;
}

.omprela-modal__close {
    cursor: pointer;
    background: #000;
    border: 0;
    border-radius: 60px;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 26px;
    display: flex;
    position: absolute;
    top: 27px;
    right: 30px;
    transition: all .3s ease;
    padding: 0;
}

.omprela-modal__close:hover {
    background-color: #333333;
    color: #fff;
    transition: all .3s ease;
}

/* OPEN STATE */
.omprela-modal.is-open {
    pointer-events: auto;
}

.omprela-modal.is-open .omprela-modal__overlay {
    opacity: 1;
}

.omprela-modal.is-open .omprela-modal__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Form Styles */
.cf7-quote {
    margin: 0 auto;
    background: #F1F1F1;
}

.cf7-quote__title {
    font-family: var(--font-main-regular);
    font-size: var(--type-48);
    margin: 0 0 32px 0;
    color: #1f1f1f;
    text-align: center;
}

.cf7-quote__fields .wpcf7-form-control-wrap {
    display: block;
    margin: 15px 0;
}

.cf7-quote input[type="text"],
.cf7-quote input[type="email"],
.cf7-quote input[type="tel"],
.cf7-quote textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #2a2a2a;
    border-radius: 0;
    background: transparent;
    padding: 8px 0 8px 0;
    font-family: var(--font-main-regular);
    font-size: var(--type-24);
    outline: none;
    box-shadow: none;
}

.cf7-quote ::placeholder {
    color: #B49E88;
}

.cf7-quote__actions {
    margin-top: 28px;
    text-align: center;
}

.cf7-quote__submit {
    border: 0;
    background: #7D806D;
    color: #fff;
    padding: 10px 34px;
    border-radius: 999px;
    font-size: var(--type-24);
    font-family: var(--font-main-regular);
    cursor: pointer;
    transition: all .3s ease;
}

.cf7-quote__submit:hover {
    filter: brightness(0.95);
    background: #000;
}

/* Actions Button on Wishlist Page */
.wishlist-actions {
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .omprela-modal__dialog {
        padding: 40px;
        border-radius: 40px;
    }
}

@media (max-width: 768px) {
    .cf7-quote__title {
        font-size: var(--type-36);
    }

    .omprela-modal__dialog {
        padding: 30px 20px;
        margin: 40px auto;
    }

    .omprela-modal__close {
        top: 15px;
        right: 15px;
    }
}