
/* =========================================
   SHOP STAR GLOW — QUICK ADD
========================================= */

/* Product card action buttons */

.ssg-product-card__quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.ssg-product-card [data-quick-add],
.ssg-product-card [data-quick-view-open] {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid #000000;
    border-radius: 3px;
    background: #000000;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.ssg-product-card [data-quick-add]:hover,
.ssg-product-card [data-quick-view-open]:hover {
    background: #fff;
    color: #000000;
}

.ssg-product-card [data-quick-add]:disabled,
.ssg-product-card [data-quick-view-open]:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.ssg-product-card [data-quick-add].is-loading,
.ssg-product-card [data-quick-view-open].is-loading {
    opacity: 0.7;
    cursor: wait;
}

.ssg-product-card [data-quick-add].is-added {
    background: #0f6939;
    border-color: #0f6939;
    color: #fff;
}

/* =========================================
   QUICK VIEW MODAL
========================================= */

.ssg-quick-view[hidden] {
    display: none !important;
}

.ssg-quick-view {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 15, 18, 0.58);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.ssg-quick-view.is-open {
    opacity: 1;
    visibility: visible;
}

body.ssg-quick-view-open {
    overflow: hidden;
}

/* Modal panel */

.ssg-quick-view__panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: min(85vh, 760px);
    overflow-y: auto;
    padding: 36px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
    transform: translateY(15px);
    transition: transform 0.25s ease;
}

.ssg-quick-view.is-open .ssg-quick-view__panel {
    transform: translateY(0);
}

/* Close button */

.ssg-quick-view [data-quick-view-close] {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 5;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f7f3f5;
    color: #222;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ssg-quick-view [data-quick-view-close]:hover {
    background: #f1e3eb;
}

/* =========================================
   WOOCOMMERCE VARIATION FORM
========================================= */

.ssg-quick-view .variations_form {
    width: 100%;
}

.ssg-quick-view .variations {
    width: 100%;
    margin: 20px 0;
    border: 0;
    border-collapse: collapse;
}

.ssg-quick-view .variations tr {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.ssg-quick-view .variations td,
.ssg-quick-view .variations th {
    display: block;
    padding: 0;
    border: 0;
    text-align: left;
}

.ssg-quick-view .variations label {
    display: block;
    margin-bottom: 5px;
    color: #222;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ssg-quick-view .variations select {
    width: 100%;
    min-height: 44px;
    padding: 10px 38px 10px 12px;
    border: 1px solid #ded8dc;
    border-radius: 3px;
    background-color: #fff;
    color: #222;
    font-family: inherit;
    font-size: 13px;
}

.ssg-quick-view .variations select:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(193, 0, 115, 0.1);
}

/* Reset variations link */

.ssg-quick-view .reset_variations {
    display: inline-block;
    margin-top: 8px;
    color: #000000;
    font-size: 11px;
    text-decoration: underline;
}

/* Variation availability and price */

.ssg-quick-view .woocommerce-variation {
    margin: 14px 0;
}

.ssg-quick-view .woocommerce-variation-price {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
}

.ssg-quick-view .woocommerce-variation-availability {
    font-size: 12px;
}

/* Quantity */

.ssg-quick-view .quantity {
    margin: 0 0 14px;
}

.ssg-quick-view .quantity input.qty {
    width: 76px;
    min-height: 42px;
    padding: 8px;
    border: 1px solid #ded8dc;
    border-radius: 3px;
    font-size: 13px;
}

/* Add to cart button */

.ssg-quick-view .single_add_to_cart_button {
    width: 100%;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid #000000;
    border-radius: 3px;
    background: #000000;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ssg-quick-view .single_add_to_cart_button:hover {
    background: #a90064;
    border-color: #a90064;
}

.ssg-quick-view .single_add_to_cart_button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ssg-quick-view .single_add_to_cart_button.is-loading {
    opacity: 0.7;
    cursor: wait;
}

.ssg-quick-view .single_add_to_cart_button.is-added {
    background: #0f6939;
    border-color: #0f6939;
}

/* Product link */

.ssg-quick-view__product-link {
    display: inline-block;
    margin-top: 20px;
    color: #000000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: underline;
}

/* =========================================
   ERROR MESSAGES
========================================= */

.ssg-quick-add__notice {
    margin: 10px 0;
    padding: 10px 12px;
    border-left: 3px solid #000000;
    background: #fff4f8;
    color: #8d004f;
    font-size: 12px;
    line-height: 1.5;
}

/* =========================================
   BACK-IN-STOCK FORM PRESENTATION
   (Markup styling only; backend still needed)
========================================= */

.ssg-back-in-stock {
    margin-top: 12px;
}

.ssg-back-in-stock [data-bis-toggle] {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid #000000;
    border-radius: 3px;
    background: #fff;
    color: #000000;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
}

.ssg-back-in-stock [data-bis-form] {
    margin-top: 10px;
}

.ssg-back-in-stock input[type="email"] {
    width: 100%;
    min-height: 42px;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid #ded8dc;
    border-radius: 3px;
    font-family: inherit;
    font-size: 13px;
}

.ssg-back-in-stock [data-bis-submit] {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 3px;
    background: #000000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {
    .ssg-quick-view {
        align-items: flex-end;
        padding: 10px;
    }

    .ssg-quick-view__panel {
        max-width: 100%;
        max-height: 88vh;
        padding: 32px 20px 24px;
        border-radius: 10px 10px 4px 4px;
    }

    .ssg-product-card [data-quick-add],
    .ssg-product-card [data-quick-view-open] {
        min-height: 40px;
        font-size: 10px;
    }
}
