/**
 * Added-to-Cart Popup (Single Product)
 *
 * @package LustMich
 */

/* Loading spinner: position in upper-right corner of button */
.lm-single-product .single_add_to_cart_button { position: relative !important; }
.lm-single-product .single_add_to_cart_button.loading { opacity: 1 !important; }
.lm-single-product .single_add_to_cart_button.loading::after {
    top: 4px !important;
    right: 6px !important;
    font-size: 12px !important;
}

/* Popup */
.lm-atc-popup { display: none; position: fixed; inset: 0; z-index: 100000; }
.lm-atc-popup.is-open { display: flex; align-items: center; justify-content: center; }
.lm-atc-popup__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.lm-atc-popup__panel {
    position: relative;
    background: #fff;
    border-radius: 6px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    animation: lmAtcSlideIn 0.3s ease;
}
@keyframes lmAtcSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.lm-atc-popup__header {
    background: #A28573;
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.5px;
}
.lm-atc-popup__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background-color: transparent !important;
    border: none !important;
    color: #fff;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.lm-atc-popup__close:hover { opacity: 0.7; }
.lm-atc-popup__body {
    display: flex;
    gap: 20px;
    padding: 24px;
    align-items: center;
}
.lm-atc-popup__img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
}
.lm-atc-popup__details { flex: 1; min-width: 0; }
.lm-atc-popup__name {
    font-size: 15px;
    font-weight: 400;
    color: #201712;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lm-atc-popup__name a { color: inherit; text-decoration: none; }
.lm-atc-popup__name a:hover { color: #A28573; }
.lm-atc-popup__meta { font-size: 13px; color: #777; line-height: 1.6; margin: 0; }
.lm-atc-popup__meta span { color: #201712; font-weight: 500; }
.lm-atc-popup__buttons {
    display: flex;
    gap: 10px;
    padding: 0 24px 24px;
    justify-content: center;
}
.lm-atc-popup__buttons .lm-button {
    flex: 1;
    text-align: center;
    font-size: 13px;
    padding: 10px 16px;
    text-decoration: none;
    display: inline-block;
}
.lm-atc-popup__buttons .lm-button--outline {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
}
.lm-atc-popup__buttons .lm-button--outline:hover {
    border-color: #A28573;
    color: #A28573;
}

@media (max-width: 480px) {
    .lm-atc-popup__body { flex-direction: column; text-align: center; }
    .lm-atc-popup__img { margin: 0 auto; }
}
