/* =========================================
   Elysian Product Grid Styles (Refined)
   ========================================= */

.elysian-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.elysian-product-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    background: #fff;
    transition: transform 0.3s ease;
    overflow: visible;
}

/* â”€â”€â”€ Image Wrapper â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   STRATEGY:
   - overflow:hidden by default â†’ clips the hover bar below (hidden state)
   - overflow:visible on card hover â†’ hover bar slides into view
   - The <a class="elysian-product-link"> clips the zoomed image independently
   This gives us: image zoom effect + hover bar slide-up, with no conflicts.
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.elysian-product-image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f7f7f7;
    aspect-ratio: 3 / 4;
    margin-bottom: 20px;
}

/* On card hover: open up overflow so the hover bar can slide out */
.elysian-product-card:hover .elysian-product-image-wrapper {
    overflow: visible;
}

/* The anchor around the product image â€” keeps zoom effect clipped */
.elysian-product-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    inset: 0;
}

.elysian-product-thumb {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.elysian-product-card:hover .elysian-product-thumb {
    transform: scale(1.05);
}

/* Badges (Flat Bar Style) */
.elysian-product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    z-index: 5;
}

.elysian-badge {
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 700;
    padding: 6px 12px;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
}

.elysian-badge-new {
    background: #fff;
    color: #1a1a1a;
}

.elysian-badge-bestseller {
    background: #ce982b;
    color: #fff;
}

/* Wishlist Icon (Top Right) */
.elysian-wishlist-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff !important;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    z-index: 5;
    transition: all 0.3s ease;
    color: #1a1a1a;
    padding: 0;
}

.elysian-wishlist-toggle:hover {
    transform: scale(1.1);
    color: #ce982b;
}

.elysian-wishlist-toggle.active {
    color: #ce982b;
}

/* â”€â”€â”€ Hover Interface (White Bar at Bottom) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Positioned INSIDE .elysian-product-image-wrapper.
   Hidden below by default (bottom: -65px), slides to bottom:0 on card hover.
   Works because image-wrapper switches to overflow:visible on hover.
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.elysian-product-hover {
    position: absolute;
    bottom: -65px;
    left: 0;
    width: 100%;
    height: 65px;
    min-height: 65px;
    background: transparent;
    display: flex;
    transition: bottom 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 20;
    padding: 10px;
    box-sizing: border-box;
}

.elysian-product-card:hover .elysian-product-hover {
    bottom: 0;
}


.elysian-hover-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.elysian-add-to-cart-simple-btn {
    flex-grow: 1;
    background: #1a1a1a !important;
    color: #fff !important;
    border: none !important;
    padding: 0 15px;
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.elysian-add-to-cart-simple-btn:hover {
    background: #000 !important;
}

.elysian-quick-view-btn {
    background: #fff !important;
    color: #1a1a1a !important;
    border: none !important;
    border-left: 1px solid #f0f0f0 !important;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.elysian-quick-view-btn:hover {
    background: #f9f9f9 !important;
}

/* Product Info */
.elysian-product-info {
    margin-top: 10px;
    padding: 0 10px;
}

.elysian-product-brand {
    font-size: 9px;
    letter-spacing: 2px;
    color: #ce982b;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.elysian-product-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin: 0 0 6px 0;
    font-weight: 400;
    line-height: 1.3;
}

.elysian-product-title a {
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.elysian-product-title a:hover {
    color: #ce982b;
}

.elysian-product-short-desc {
    font-size: 12px;
    color: #888;
    margin: 0 0 10px 0;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

.elysian-product-price {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 600;
}

.elysian-product-price .price {
    font-size: 14px !important;
    color: #1a1a1a !important;
    font-weight: 600;
}

/* Quick View Modal (Fixed & Refined) */
.elysian-quickview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        visibility 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
}

.elysian-quickview-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.elysian-qv-container {
    background: #fdfbf7;
    width: 100%;
    max-width: 56rem;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(40px);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow-y: auto;
    display: block;
}

.elysian-quickview-modal.active .elysian-qv-container {
    transform: translateY(0);
}

.elysian-qv-close:hover {
    color: #ce982b;
}

.elysian-qv-body {
    width: 100%;
}

.elysian-quickview-content {
    display: flex !important;
    width: 100% !important;
}

.elysian-qv-left {
    background: #f6f3eb !important;
    display: block !important;
    width: 100% !important;
    aspect-ratio: 1 / 1;
    padding: 0 !important;
    line-height: 0;
}

.elysian-qv-image-wrapper {
    width: 100%;
    height: 100%;
}

.elysian-qv-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    max-height: none !important;
}

.elysian-qv-right {
    padding: 2.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
    position: relative;
}

.elysian-qv-brand {
    font-size: 10px;
    letter-spacing: 0.15em;
    color: #ce982b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    display: block;
}

.elysian-qv-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.875rem;
    margin: 0 0 0.75rem 0;
    font-weight: 400;
    line-height: 1.2;
    color: #1a1a1a;
}

.elysian-qv-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    color: #ce982b;
}

.elysian-qv-rating .star-rating {
    font-size: 14px;
}

.elysian-qv-rating-count {
    color: #666;
    font-size: 0.75rem;
    letter-spacing: normal;
}

.elysian-qv-description {
    font-size: 0.875rem;
    line-height: 1.625;
    color: #666;
    margin-bottom: 1.5rem;
}

.elysian-qv-description p {
    margin-bottom: 0;
}

.elysian-qv-variations {
    margin-bottom: 1.5rem;
}

.elysian-qv-label {
    font-size: 10px;
    letter-spacing: 0.15em;
    font-weight: 400;
    text-transform: uppercase;
    color: #1a1a1a;
    display: block;
    margin-bottom: 0.75rem;
}

.elysian-qv-variation-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.elysian-quickview-modal .elysian-qv-container .elysian-qv-variation-btn {
    padding: 0.5rem 1rem !important;
    border: 1px solid #e5e7eb !important;
    background: transparent !important;
    color: #1a1a1a !important;
    font-size: 0.75rem !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

.elysian-quickview-modal .elysian-qv-container .elysian-qv-variation-btn:hover {
    border-color: #1a1a1a !important;
}

.elysian-quickview-modal .elysian-qv-container .elysian-qv-variation-btn.active {
    border-color: #1a1a1a !important;
    background: #1a1a1a !important;
    color: #fdfbf7 !important;
}

.elysian-qv-footer {
    margin-top: auto;
}

.elysian-qv-add-to-cart-btn {
    width: 100%;
    padding: 1rem;
    font-size: 11px;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    border: none;
    cursor: pointer;
    background: #1a1a1a;
    color: #fdfbf7;
    font-weight: 400;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
}

.elysian-qv-add-to-cart-btn:hover {
    background: #ce982b;
    color: #1a1a1a;
}

.elysian-qv-view-details {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #1a1a1a;
    text-decoration: none;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    font-weight: 400;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.elysian-qv-view-details:hover {
    border-color: #1a1a1a;
    background: transparent;
}

/* QV Price display */
.elysian-qv-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 1.25rem;
}

.elysian-qv-price .woocommerce-Price-amount {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #1a1a1a;
}

/* QV Quantity + Add row */
.elysian-qv-actions {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 12px;
    margin-top: auto;
}

.elysian-qv-qty {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    background: #fff;
    height: 50px;
    min-width: 110px;
}

.elysian-qv-qty-btn {
    background: transparent;
    border: none;
    width: 36px;
    height: 100%;
    font-size: 18px;
    cursor: pointer;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elysian-qv-qty-input {
    width: 38px;
    height: 100%;
    border: none;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    -moz-appearance: textfield;
    padding: 0;
}

.elysian-qv-qty-input::-webkit-outer-spin-button,
.elysian-qv-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.elysian-qv-add-to-cart-btn {
    flex: 1;
    height: 50px;
    padding: 0 20px;
    font-size: 11px;
    letter-spacing: 0.15em;
    margin-bottom: 0;
    border: none;
    cursor: pointer;
    background: #1a1a1a;
    color: #fdfbf7;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}


.elysian-view-all-wrapper {
    text-align: center;
}

.elysian-view-all-btn {
    letter-spacing: .25em;
    border-bottom: 1px solid #c89b41;
    padding-bottom: 5px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s;
    text-transform: uppercase;
    font-size: 11px;
    color: #000;
    display: inline-block;
}

.elysian-view-all-btn:hover {
    color: #c89b41;
}

/* Responsive Grid */
@media screen and (max-width: 1024px) {
    .elysian-product-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-bottom: 30px;
    }
}

@media screen and (max-width: 768px) {
    .elysian-quickview-content {
        flex-direction: column;
    }

    .elysian-qv-left {
        aspect-ratio: auto;
        height: 300px;
    }

    .elysian-qv-right {
        padding: 2rem !important;
    }

    .elysian-wishlist-toggle {
        width: 24px;
        height: 24px;
    }

    .elysian-wishlist-toggle svg {
        height: 14px;
        width: 14px;
    }

    .elysian-product-title {
        font-size: 18px;
    }
}

@media screen and (max-width: 576px) {
    .elysian-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .elysian-add-to-cart-simple-btn span {
        display: none;
    }

    .elysian-add-to-cart-simple-btn {
        flex: 1;
    }

    button.elysian-quick-view-btn {
        flex: 1;
    }
}

/* =========================================
   Hide WooCommerce injected 'View cart' link
   WC injects an .added_to_cart link after AJAX
   ========================================= */
.elysian-product-card a.added_to_cart,
.elysian-product-card .added_to_cart,
.elysian-hover-actions a.added_to_cart,
.elysian-product-hover a.added_to_cart,
.elysian-product-hover .added_to_cart,
.woocommerce-notices-wrapper {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}