/* ─── Products Showcase Section ──────────────────────────────── */
.elixira-products-section {
    width: 100%;
    max-width: 1440px;
    margin: 40px auto 60px;
    padding: 0 48px;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

/* Header styling */
.elixira-products-header {
    margin-bottom: 32px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 16px;
}

.elixira-products-title {
    font-size: 28px;
    font-weight: 700;
    color: #111111;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin: 0;
}

.elixira-products-subtitle {
    font-size: 15px;
    font-weight: 400;
    color: #666666;
    border-left: 1px solid #cccccc;
    padding-left: 16px;
    margin-left: 0;
}

/* ─── Grid Layout ────────────────────────────────────────────── */
.elixira-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

/* ─── Product Card ───────────────────────────────────────────── */
.elixira-product-card {
    background: #f6f6f6;
    border-radius: 16px;
    padding: 30px 24px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s ease;
    box-sizing: border-box;
}

.elixira-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Image link reset */
.elixira-product-image-link {
    text-decoration: none !important;
    display: block;
}

/* Title link reset */
.elixira-product-title-link {
    text-decoration: none !important;
    color: inherit !important;
}

.elixira-product-title-link:hover .elixira-product-title-text {
    color: #333;
}

/* Badges (Bestseller, New, Sale) */
.elixira-product-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.elixira-badge {
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    background: #111111;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Image wrapper */
.elixira-product-image-wrapper {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    overflow: hidden;
}

.elixira-product-image-wrapper img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}

.elixira-product-card:hover .elixira-product-image-wrapper img {
    transform: scale(1.05);
}

/* Details block */
.elixira-product-details {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.elixira-product-category {
    font-size: 11px;
    font-weight: 600;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 6px 0;
}

.elixira-product-title-text {
    font-size: 18px;
    font-weight: 600;
    color: #111111;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

/* Prices */
.elixira-product-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    margin-bottom: 16px;
}

.elixira-price-regular {
    color: #888888;
    text-decoration: line-through;
}

.elixira-price-current {
    font-weight: 600;
    color: #111111;
}

/* ─── Add to Cart button on grid card ───────────────────────── */
.elixira-grid-add-to-cart {
    display: block;
    width: 100%;
    padding: 11px 16px;
    background: #111;
    color: #fff !important;
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    border-radius: 10px;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
    margin-top: auto;
    letter-spacing: 0.01em;
}

.elixira-grid-add-to-cart:hover {
    background: #333;
    transform: translateY(-1px);
    color: #fff !important;
}

/* Loading state when AJAX is in progress */
.elixira-grid-add-to-cart.loading {
    opacity: 0.7;
    pointer-events: none;
}

.elixira-grid-add-to-cart.added {
    background: #2d6a4f;
    color: #fff !important;
}

.elixira-read-more {
    background: transparent;
    color: #111 !important;
    border: 1.5px solid #111;
}

.elixira-read-more:hover {
    background: #f5f5f5;
    color: #111 !important;
}

/* ─── Global WooCommerce button style override ───────────────── */
/* Make all WooCommerce add to cart buttons match the site design */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
    background-color: #111 !important;
    color: #fff !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    padding: 12px 24px !important;
    border: none !important;
    transition: background 0.2s ease !important;
    text-decoration: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background-color: #333 !important;
    color: #fff !important;
}

/* Checkout button — keep blue or make prominent */
.woocommerce a.checkout-button,
.woocommerce .checkout-button,
.woocommerce .wc-proceed-to-checkout a.checkout-button {
    background-color: #111 !important;
    color: #fff !important;
}

/* View cart after add-to-cart notice */
.woocommerce-message a.button,
.woocommerce-info a.button {
    background-color: #111 !important;
    color: #fff !important;
    font-size: 13px !important;
    padding: 8px 18px !important;
}

/* ─── Mobile responsive grid ─────────────────────────────────── */
@media (max-width: 991px) {
    .elixira-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .elixira-products-section {
        padding: 0 16px;
        margin: 30px auto 40px;
    }

    .elixira-products-header {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .elixira-products-title {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .elixira-products-subtitle {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        font-size: 13.5px;
    }

    .elixira-products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .elixira-product-card {
        padding: 24px 20px 20px;
    }

    .elixira-product-image-wrapper {
        height: 180px;
    }
}
