/* ============================================================
   WC Cart Popup — Styles
   ============================================================ */

/* Overlay */
.wc-cart-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Popup container */
.wc-cart-popup {
    position: relative;
    background: #fff;
    border-radius: 4px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 32px 28px;
    box-sizing: border-box;
    font-family: inherit;
}

/* Close button */
.wc-cart-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    padding: 4px 8px;
    transition: opacity .15s;
}
.wc-cart-popup-close:hover { opacity: .6; }

/* ── Row 1 ── */
.wc-cart-popup-row1 {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}

/* Added notice banner */
.wc-cart-popup-added-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0faf4;
    border: 1px solid #a8e6be;
    border-radius: 24px;
    padding: 6px 16px;
    font-size: 13px;
    color: #1a1a1a;
    margin-bottom: 14px;
}
.wc-cart-popup-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #2ecc71;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    flex-shrink: 0;
}

/* Product left side */
.wc-cart-popup-product {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1 1 320px;
}

.wc-cart-popup-product-image img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

.wc-cart-popup-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wc-cart-popup-price-qty,
.wc-cart-popup-totals {
    font-size: 14px;
    color: #444;
}

.wc-cart-popup-totals {
    margin-top: 6px;
    font-size: 14px;
    color: #222;
}

/* Actions (right side) */
.wc-cart-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    min-width: 200px;
}

/* Buttons */
.wc-cart-popup-btn {
    display: block;
    text-align: center;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    letter-spacing: .01em;
}

.wc-cart-popup-btn--outline {
    border: 1.5px solid #222;
    color: #222;
    background: #fff;
}
.wc-cart-popup-btn--outline:hover {
    background: #f5f5f5;
    color: #000;
    text-decoration: none;
}

.wc-cart-popup-btn--solid {
    border: 1.5px solid #1a1a1a;
    color: #fff;
    background: #1a1a1a;
}
.wc-cart-popup-btn--solid:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
}

/* ── Divider ── */
.wc-cart-popup-divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 24px 0 20px;
}

/* ── Row 2: Related products ── */
.wc-cart-popup-related-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    letter-spacing: .01em;
}

.wc-cart-popup-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.wc-cart-popup-related-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wc-cart-popup-related-img-wrap img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

.wc-cart-popup-related-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wc-cart-popup-related-name {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.35;
}
.wc-cart-popup-related-name:hover {
    text-decoration: underline;
}

.wc-cart-popup-related-price {
    font-size: 13px;
    color: #444;
}
.wc-cart-popup-related-price .woocommerce-Price-amount {
    color: inherit;
}

/* Prevent body scroll when popup is open */
body.wc-cart-popup-open {
    overflow: hidden;
}

/* ── Responsive ── */
@media (max-width: 680px) {
    .wc-cart-popup {
        padding: 28px 20px 24px;
    }

    .wc-cart-popup-row1 {
        flex-direction: column;
        gap: 20px;
    }

    .wc-cart-popup-actions {
        min-width: 0;
        width: 100%;
    }

    .wc-cart-popup-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
