/* =====================================================
   PRODUCT ACTIONS – SINGLE ROW BAR (FIXED)
===================================================== */

.lx-pdp .lx-product-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

/* ================= QUANTITY BAR ================= */

.lx-pdp .lx-qty-bar {
    display: inline-grid;
    grid-template-columns: 40px 52px 40px;
    height: 44px;

    border: 1px solid #e5e7eb;
    background: #fff;
    flex-shrink: 0;
}

.lx-pdp .lx-qty-btn {
    border: none;
    background: transparent;

    font-size: 18px;
    font-weight: 400;
    line-height: 1;

    color: #111;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.lx-pdp .lx-qty-input {
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;

    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #111;

    outline: none;
}


/* =====================================================
   VARIANT ERROR STATE – PREMIUM
===================================================== */

.lx-variant-row {
    position: relative;
}

.lx-variant-row.lx-variant-error {
    animation: lxVariantShake .35s ease-in-out 2;
}

.lx-variant-row.lx-variant-error .lx-variant-label {
    color: #b91c1c;
    font-weight: 600;
}

.lx-variant-row.lx-variant-error::after {
    content: "Vui lòng chọn";
    position: absolute;
    top: -6px;
    right: 0;

    font-size: 11px;
    font-weight: 500;
    letter-spacing: .04em;

    color: #b91c1c;
    opacity: .85;
    pointer-events: none;
}

@keyframes lxVariantShake {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-5px); }
    40%  { transform: translateX(5px); }
    60%  { transform: translateX(-3px); }
    80%  { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

/* =====================================================
   TOAST CONTAINER – FIXED BOTTOM RIGHT
===================================================== */

.lx-toast-container {
    position: fixed;
    right: 16px;
    bottom: 88px;
    z-index: 9999;

    display: flex;
    flex-direction: column;
    gap: 12px;

    pointer-events: none !important;
}

/* =====================================================
   TOAST BASE – LUXURY (AUTO WIDTH)
===================================================== */

.lx-toast-product {
    min-width: 240px;
    max-width: 360px;
    width: fit-content;

    padding: 14px 16px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f9fafb 55%,
            #f0fdf4 100%
        );

    border-radius: 18px;
    border: 1px solid rgba(22,163,74,.18);

    box-shadow:
        0 30px 60px rgba(0,0,0,.18),
        0 10px 18px rgba(0,0,0,.10);

    opacity: 0;
    transform: translateY(24px) scale(.92);
    filter: blur(6px);

    transition:
        opacity .45s cubic-bezier(.16,1,.3,1),
        transform .45s cubic-bezier(.16,1,.3,1),
        filter .45s ease;

    pointer-events: auto;
}

.lx-toast-product.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* ================= HEADER + CLOSE ================= */

.lx-toast-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.lx-toast-head-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lx-toast-icon {
    font-size: 16px;
    font-weight: 700;
    color: #15803d;
    position: relative;
}

.lx-toast-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(22,163,74,.35),
        transparent 60%
    );
    z-index: -1;
}

.lx-toast-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #111;
}

.lx-toast-close {
    appearance: none;
    border: none;
    background: transparent;

    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    color: #9ca3af;
    cursor: pointer;

    padding: 4px 6px;
    border-radius: 6px;

    transition: all .2s ease;
}

.lx-toast-close:hover {
    background: rgba(0,0,0,.06);
    color: #111;
}

/* ================= BODY ================= */

.lx-toast-body {
    display: flex;
    gap: 12px;
}

.lx-toast-thumb img {
    width: 56px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    background: #f3f4f6;
}

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

.lx-toast-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #111;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lx-toast-variant {
    font-size: 12.5px;
    color: #6b7280;
    margin: 4px 0;
}

.lx-toast-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    font-size: 13px;
    white-space: nowrap;
}

.lx-toast-meta strong {
    font-weight: 700;
    color: #111;
}

/* ================= ERROR TOAST – PROMINENT & CLEAR ================= */

.lx-toast-product.lx-toast-error {
    /* nền đỏ rượu vang nhạt – dễ nhìn */
    background:
        linear-gradient(
            135deg,
            #fffafa 0%,
            #fef2f2 55%,
            #fff1f1 100%
        );

    border-left: 6px solid #b91c1c;
    border-top: 1px solid rgba(185,28,28,.25);
    border-right: 1px solid rgba(185,28,28,.18);
    border-bottom: 1px solid rgba(185,28,28,.18);

    padding: 16px 18px;          /* 🔑 TO HƠN */
}

/* icon lỗi – to và nổi hơn */
.lx-toast-product.lx-toast-error .lx-toast-icon {
    font-size: 18px;             /* 🔑 tăng size icon */
    font-weight: 800;
    color: #b91c1c;
}

/* halo mạnh hơn một chút */
.lx-toast-product.lx-toast-error .lx-toast-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(185,28,28,.45),
        transparent 65%
    );
    z-index: -1;
}

/* tiêu đề lỗi – rõ ràng hơn */
.lx-toast-product.lx-toast-error .lx-toast-title {
    font-size: 15.5px;           /* 🔑 to hơn */
    font-weight: 800;
    color: #7f1d1d;
    letter-spacing: .01em;
}

/* nội dung lỗi (nếu có body text) */
.lx-toast-product.lx-toast-error .lx-toast-body {
    margin-top: 6px;
}

/* text bên trong error */
.lx-toast-product.lx-toast-error .lx-toast-name,
.lx-toast-product.lx-toast-error .lx-toast-variant,
.lx-toast-product.lx-toast-error .lx-toast-meta {
    color: #7f1d1d;
}

/* =====================================================
   ERROR TOAST – ALIGN LEFT & CLEAR
===================================================== */

.lx-toast-head-error {
    justify-content: flex-start;   /* 🔥 không space-between */
}

.lx-toast-head-error .lx-toast-title {
    text-align: left;
    text-transform: uppercase;     /* phòng khi JS không uppercase */
    letter-spacing: .06em;

    font-size: 15.5px;
    font-weight: 800;
    color: #7f1d1d;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
    .lx-toast-container {
        left: 12px;
        right: 12px;
        bottom: 76px;
    }

    .lx-toast-product {
        max-width: calc(100vw - 32px);
        width: 100%;
    }
}
.lx-toast-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.lx-toast-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.lx-toast-btn-primary {
    background: #111;
    color: #fff;
    text-align: center;
}

.lx-toast-btn-ghost {
    background: #f3f4f6;
    color: #111;
    border: none;
}
.lx-toast-btn-primary {
    background: linear-gradient(135deg, #f3e7d3, #e7d3a3);
    color: #3b2f1e;
    border: 1px solid #e0cfa0;
    font-weight: 500;
}

.lx-toast-btn-primary:hover {
    background: linear-gradient(135deg, #ecd9b8, #d8bf8a);
    color: #2a2015;
}
/* ================= ADD TO CART – LUXURY GREEN ================= */

.lx-btn-addtocart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    padding: 14px 16px;

    border-radius: 14px;
    border: 1px solid #6E8B3D;

    background: linear-gradient(
        to bottom,
        #8AAE5D,
        #6E8B3D
    );

    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .3px;

    cursor: pointer;
    transition: all .2s ease;
}

.lx-btn-addtocart:hover {
    background: linear-gradient(
        to bottom,
        #7FA552,
        #5E7A33
    );
    border-color: #5E7A33;
}

.lx-btn-addtocart:active {
    transform: translateY(1px);
}

