/* ==========================================================================
   ANZEN JAPAN - UTILITY & INTERACTIVE COMPONENTS
   ========================================================================== */

/* Quick Size Selection Modal / Drawer */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.65);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    display: grid;
    place-items: center;
    padding: 20px;
}

.modal-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.size-modal {
    background: #ffffff;
    max-width: 440px;
    width: 100%;
    padding: 32px;
    border-radius: 2px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.modal-overlay.is-active .size-modal {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 20px;
    color: #888888;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #111111;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   CART TOAST / POPUP MODAL (Berhasil Ditambahkan ala E-commerce Modern)
   ========================================================================== */
.cart-toast-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.cart-toast-modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

.cart-toast-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.cart-toast-content {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border: 1px solid var(--color-sumi);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
    padding: 24px;
    border-radius: 2px;
    transform: translateY(-20px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-toast-modal.is-active .cart-toast-content {
    transform: translateY(0);
}

.toast-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 16px;
}

.toast-head-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2e7d32;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.toast-check {
    background: #2e7d32;
    color: #ffffff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
}

.toast-close-btn {
    font-size: 16px;
    color: #888888;
    line-height: 1;
    padding: 4px;
}

.toast-close-btn:hover {
    color: #111111;
}

.toast-body {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.toast-item-thumb {
    width: 80px;
    height: 80px;
    background: #fbfbfb;
    border: 1px solid var(--color-border);
    display: grid;
    place-items: center;
    padding: 6px;
    flex-shrink: 0;
}

.toast-item-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.toast-item-info {
    flex: 1;
    min-width: 0;
}

.toast-brand {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-vermilion);
}

.toast-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-sumi);
    margin: 2px 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-meta {
    font-size: 11px;
    color: var(--color-muted);
    margin-bottom: 6px;
}

.toast-price {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-sumi);
}

.toast-actions {
    display: flex;
    gap: 10px;
}

.toast-actions .btn {
    flex: 1;
    height: 44px;
    padding: 0 10px;
    font-size: 11px;
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    .cart-toast-modal {
        padding: 12px;
        align-items: flex-end;
    }
    .cart-toast-content {
        max-width: 100%;
    }
}
