/* ===========================
   WRAPPER DUA TOMBOL
=========================== */
.containerBtn {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* diperpendek jaraknya untuk mobile juga */
    margin: 1.25rem 0 1.5rem;
    justify-content: flex-start;
}

/* Blok tombol */
.containerBtn .button-container {
    display: flex;
}

/* ===========================
   TOMBOL UTAMA
=========================== */

.add-to-cart-btn,
.chat-via-btn {
    height: 48px;
    line-height: 48px;
    padding: 0 1.2rem !important;
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;

    border-radius: 999px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;

    cursor: pointer;
    text-decoration: none;

    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

/* Add to Cart */
.add-to-cart-btn {
    background: #0f172a;
    color: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}
.add-to-cart-btn:hover { transform: translateY(-1px); }

/* WhatsApp */
.chat-via-btn {
    display: flex;
    align-items: center;
    line-height: normal;

    background: #22c55e;
    color: #fff;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.35);
}
.chat-via-btn:hover { transform: translateY(-1px); }

/* Ikon */
.chat-via-btn .icon {
    width: 18px;
    height: 18px;
    display: block;
}

/* ===========================
   DESKTOP STYLE (Button Tidak Full Width)
=========================== */
@media (min-width: 768px) {
    .containerBtn {
        gap: 0.75rem;
    }

    .containerBtn .button-container {
        flex: 0 0 auto;
    }

    .add-to-cart-btn,
    .chat-via-btn {
        width: auto;         /* tidak full-width */
        min-width: 180px;    /* biar proporsional */
    }
}

/* ===========================
   MOBILE STYLE (Button Full Width & Jarak Diperpendek)
=========================== */
@media (max-width: 767px) {

    .containerBtn {
        flex-direction: column;
        gap: 0.4rem; /* jarak diperkecil di mobile */
    }

    .containerBtn .button-container {
        width: 100%;
    }

    .add-to-cart-btn,
    .chat-via-btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }
}

/* ===========================
   MODAL & NOTIFICATION (unchanged)
=========================== */

.cart-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 9999;
}
.cart-modal.show { display: flex; }

.cart-modal-content {
    background: #ffffff;
    max-width: 420px;
    width: 100%;
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
    position: relative;
    animation: slideUp 0.2s ease-out;
}

.cart-modal .close {
    position: absolute;
    top: 0.85rem;
    right: 0.95rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
}

.notification {
    position: fixed;
    left: 50%;
    bottom: 1.8rem;
    transform: translateX(-50%);
    background: #111827;
    color: #f9fafb;
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    font-size: 0.9rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    z-index: 10000;
}
.notification.show {
    opacity: 1;
    animation: toastFade 2.6s ease forwards;
}
