/* MOUSOU_PRODUCT_CARD_QUICK_CART_V1_20260904 */

.product-card {
    position: relative !important;
}

.product-card-cart-overlay {
    position: absolute;
    top: 11px;
    left: 10px;
    z-index: 20;
    direction: rtl;
}

.product-card-cart-form {
    margin: 0;
}

.product-card-cart-button {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    border: 1px solid rgba(15,23,42,.14);
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    color: #111827;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 15px rgba(15,23,42,.16);
    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.product-card-cart-button svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.product-card-cart-button:hover,
.product-card-cart-button:focus-visible {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(15,23,42,.22);
}

.product-card-cart-button:active {
    transform: scale(.94);
}

.product-card-cart-button.is-disabled,
.product-card-cart-button:disabled {
    opacity: .48;
    cursor: not-allowed;
}

.product-card-cart-button.mousou-cart-loading,
.product-card-cart-button.mousou-cart-success,
.product-card-cart-button.mousou-cart-error {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    overflow: hidden;
}

.product-card-cart-button.mousou-cart-success {
    background: #111827;
    color: #fff;
}

/* ---------- Variant quick picker ---------- */

.mousou-quick-variant-modal[hidden] {
    display: none !important;
}

.mousou-quick-variant-modal {
    position: fixed;
    inset: 0;
    z-index: 25000;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    direction: rtl;
}

.mousou-quick-variant-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.48);
    opacity: 0;
    transition: opacity .18s ease;
}

.mousou-quick-variant-panel {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 520px;
    max-height: min(72vh, 620px);
    overflow: auto;

    padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 0 0;

    background: #fff;
    box-shadow: 0 -12px 45px rgba(15,23,42,.22);

    transform: translateY(105%);
    transition: transform .2s ease;
}

.mousou-quick-variant-modal.is-open .mousou-quick-variant-backdrop {
    opacity: 1;
}

.mousou-quick-variant-modal.is-open .mousou-quick-variant-panel {
    transform: translateY(0);
}

.mousou-quick-variant-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.mousou-quick-variant-title {
    margin: 0;
    color: #10213f;
    font-size: 17px;
    font-weight: 900;
}

.mousou-quick-variant-subtitle {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.mousou-quick-variant-close {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
    color: #111827;
    font-size: 24px;
    line-height: 1;
}

.mousou-quick-variant-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.mousou-quick-variant-form {
    margin: 0;
}

.mousou-quick-variant-choice {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;

    border: 1px solid #e1e5eb;
    border-radius: 13px;

    background: #fff;
    color: #111827;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    font-size: 14px;
    font-weight: 800;
    text-align: right;
}

.mousou-quick-variant-choice:hover,
.mousou-quick-variant-choice:focus-visible {
    border-color: #10213f;
    background: #f8fafc;
}

.mousou-quick-variant-choice svg {
    width: 21px;
    height: 21px;
    min-width: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mousou-quick-variant-empty {
    padding: 18px;
    border-radius: 13px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

body.mousou-quick-variant-open {
    overflow: hidden !important;
}

@media (min-width: 768px) {
    .product-card-cart-button {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .mousou-quick-variant-modal {
        align-items: center;
        padding: 20px;
    }

    .mousou-quick-variant-panel {
        border-radius: 20px;
        transform: translateY(20px) scale(.98);
        opacity: 0;
        transition: transform .18s ease, opacity .18s ease;
    }

    .mousou-quick-variant-modal.is-open .mousou-quick-variant-panel {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .product-card-cart-overlay {
        top: 9px;
        left: 8px;
    }

    .product-card-cart-button {
        width: 39px;
        height: 39px;
        min-width: 39px;
    }

    .product-card-cart-button svg {
        width: 21px;
        height: 21px;
    }
}

/* /MOUSOU_PRODUCT_CARD_QUICK_CART_V1_20260904 */

/* MOUSOU_QUICK_CART_UNIFORM_V2_20260905 */
.product-card .product-card-cart-overlay .product-card-cart-button,
.product-card .product-card-cart-overlay button[data-quick-variant-open],
.product-card .product-card-cart-overlay button[data-cart-icon-only] {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 1px solid rgba(15,23,42,.14) !important;
    border-radius: 50% !important;

    background: rgba(255,255,255,.96) !important;
    color: #111827 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-shadow: 0 4px 15px rgba(15,23,42,.16) !important;
}

.product-card .product-card-cart-overlay .product-card-cart-button svg {
    display: block !important;
    width: 23px !important;
    height: 23px !important;
    min-width: 23px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
}

@media (max-width:480px) {
    .product-card .product-card-cart-overlay .product-card-cart-button,
    .product-card .product-card-cart-overlay button[data-quick-variant-open],
    .product-card .product-card-cart-overlay button[data-cart-icon-only] {
        width: 39px !important;
        height: 39px !important;
        min-width: 39px !important;
        max-width: 39px !important;
    }

    .product-card .product-card-cart-overlay .product-card-cart-button svg {
        width: 21px !important;
        height: 21px !important;
        min-width: 21px !important;
    }
}
/* /MOUSOU_QUICK_CART_UNIFORM_V2_20260905 */
