/* =====================================================
   MINI CART – CLEAN / PREMIUM / SAAS STYLE
===================================================== */

.modern-cart-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    color: #111;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}

/* ================= HEADER ================= */
.modern-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px;
    border-bottom: 1px solid #eee;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.m-title {
    font-size: 18px;
    font-weight: 700;
}

.m-count {
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.m-close-btn {
    border: none;
    background: none;
    font-size: 26px;
    cursor: pointer;
    color: #777;
    transition: .2s;
}
.m-close-btn:hover { color: #000; }

/* ================= BODY ================= */
.modern-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 22px;
}

.woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-cart-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* IMAGE */
.m-item-image {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: #fafafa;
}
.m-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* DETAILS */
.m-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.m-item-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.m-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
}
.m-product-name:hover { text-decoration: underline; }

.m-remove {
    font-size: 16px;
    color: #aaa;
    text-decoration: none;
}
.m-remove:hover { color: #e63946; }

/* META */
.m-item-meta {
    font-size: 12px;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.m-meta-row {
    display: flex;
    gap: 6px;
}
.m-meta-row strong {
    font-weight: 600;
    color: #111;
}

/* BOTTOM */
.m-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.m-qty {
    font-size: 12px;
    color: #666;
}

.m-price {
    font-size: 14px;
    font-weight: 700;
}

/* ================= FOOTER ================= */
.modern-cart-footer {
    padding: 18px 22px 22px;
    border-top: 1px solid #eee;
}

.m-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    margin-bottom: 14px;
}

.m-buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* BUTTONS */
.modern-checkout-btn {
    background: #111;
    color: #fff;
    padding: 14px;
    border-radius: 14px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    transition: .25s;
}
.modern-checkout-btn:hover { background: #000; }

.modern-view-cart-link {
    background: #f4f4f4;
    color: #111;
    padding: 13px;
    border-radius: 14px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
}
.modern-view-cart-link:hover { background: #eaeaea; }

/* ================= EMPTY ================= */
.modern-cart-empty {
    padding: 60px 30px;
    text-align: center;
}
.modern-cart-empty p {
    margin-bottom: 20px;
    color: #666;
}

/* ================= SCROLLBAR ================= */
.modern-cart-body::-webkit-scrollbar {
    width: 6px;
}
.modern-cart-body::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.15);
    border-radius: 10px;
}
