/* ===========================
   AG MINICART SIDEBAR
   =========================== */

#shoppingCart {
    width: 420px;
    max-width: 100vw;
    padding: 0;
    border: none;
}

.ag-minicart-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px 24px 0;
    box-sizing: border-box;
}

/* Header */
.ag-mc-header {
    flex-shrink: 0;
}

.ag-mc-close {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Body — scrollable */
.ag-mc-body {
    flex: 1;
    overflow-y: auto;
    margin-top: 43px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ag-mc-body::-webkit-scrollbar {
    display: none;
}

/* Sections */
.ag-mc-section + .ag-mc-section {
    margin-top: 34px;
}

.ag-mc-section-title {
    margin-bottom: 14px;
}

/* Products */
.ag-mc-products {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Product row */
.ag-mc-product {
    gap: 16px;
}

.ag-mc-product-img {
    display: block;
    flex-shrink: 0;
}

.ag-mc-product-img img,
.ag-mc-product-img-placeholder {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.ag-mc-product-img-placeholder {
    background: #f0f0f0;
}

.ag-mc-product-info {
    min-width: 0;
}

.ag-mc-product-info .p {
    line-height: 1.3;
    margin-bottom: 4px;
}

/* Quantity control */
.ag-mc-qty {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 6px 10px;
    gap: 10px;
    color: #000;
}

.ag-mc-qty button {
    background: none;
    border: none;
    color: #000;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ag-mc-qty .ag-h5 {
    color: #000;
    min-width: 22px;
    text-align: center;
    line-height: 1;
}

.ag-mc-qty-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    border: none;
}

/* Remove button */
.ag-mc-remove {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.15s;
    margin-top: 2px;
}

.ag-mc-remove:hover {
    opacity: 1;
}

/* Empty state */
.ag-mc-empty {
    padding-top: 40px;
    color: #aaa;
}

/* Footer */
.ag-mc-footer {
    flex-shrink: 0;
    padding: 25px 0 28px;
}

.ag-mc-footer .ag-note {
    margin-bottom: 25px;
    color: #888;
    display: block;
}

.ag-mc-footer .btn-gradient {
    width: 100%;
    justify-content: center;
}

@media (max-width: 480px) {
    #shoppingCart {
        width: 100vw;
    }

    .ag-minicart-wrapper {
        padding: 20px 16px 0;
    }
}
