/**
 * Pixel Gallery - Image Cart Styles (cart.css)
 * ระบบตะกร้าเลือกภาพถ่าย รองรับการทำงานทั้ง Light Mode และ Dark Mode
 * ปรับปรุง UX/UI ระดับโปร: จัดปุ่มล้างตะกร้าสมดุล, ปุ่มดาวน์โหลดทั้งอัลบั้ม, และจัดวางชื่อโครงการยาวให้สมดุล
 */

/* ==========================================================================
   1. Cart Badge (ป้ายบอกจำนวนรูปภาพในตะกร้า)
   ========================================================================== */
.cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9999px;
    background-color: #ef4444;
    color: #ffffff;
    font-family: var(--font-sans, 'Kanit', sans-serif);
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    pointer-events: none;
    transform: scale(1);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.cart-badge.hidden,
.cart-badge:empty,
.cart-badge[data-count="0"] {
    transform: scale(0);
    opacity: 0;
}

/* แอนิเมชันเด้งเมื่อจำนวนรูปมีการเปลี่ยนแปลง */
@keyframes cartBadgeBounce {
    0% { transform: scale(0.6); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.cart-badge.bump {
    animation: cartBadgeBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   2. Add to Cart Button on Gallery Items (ปุ่มเพิ่มรูปลงตะกร้าบนการ์ดรูปภาพ)
   ========================================================================== */
.gallery-item {
    position: relative !important;
}

.cart-add-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(17, 17, 17, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 0;
    outline: none;
    user-select: none;
}

.cart-add-btn .cart-icon-plus,
.cart-add-btn .cart-icon-check {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-add-btn .cart-icon-plus {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.cart-add-btn .cart-icon-check {
    opacity: 0;
    transform: scale(0.5) rotate(-20deg);
    font-size: 16px;
    font-weight: 700;
}

.cart-add-btn.selected {
    background-color: #22c55e !important;
    border-color: #22c55e !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.45);
}

.cart-add-btn.selected .cart-icon-plus {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}

.cart-add-btn.selected .cart-icon-check {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

@media (hover: hover) and (pointer: fine) {
    .cart-add-btn {
        opacity: 0;
        transform: translateY(6px) scale(0.92);
        pointer-events: none;
    }

    .gallery-item:hover .cart-add-btn {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .cart-add-btn.selected {
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
        pointer-events: auto !important;
    }

    .cart-add-btn:hover {
        transform: scale(1.1) !important;
        background: rgba(17, 17, 17, 0.85);
    }

    .cart-add-btn.selected:hover {
        background-color: #16a34a !important;
    }
}

@media (hover: none), (pointer: coarse), (max-width: 768px) {
    .cart-add-btn {
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
        pointer-events: auto !important;
    }
}

/* ==========================================================================
   3. Cart Overlay & Drawer Layout
   ========================================================================== */
.cart-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 440px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-color, #ffffff);
    color: var(--text-dark, #222222);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.18);
    font-family: var(--font-sans, 'Kanit', sans-serif);
    box-sizing: border-box;
}

.cart-drawer.open {
    transform: translateX(0);
}

/* ==========================================================================
   4. Cart Drawer Header (ปรับปรุง UX/UI ให้สวยงามสมดุลตามข้อกำหนดหน้า 7)
   ========================================================================== */
.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background-color: var(--bg-color, #ffffff);
    position: sticky;
    top: 0;
    z-index: 5;
}

.cart-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-drawer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
    color: var(--text-dark, #222222);
}

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

/* ปุ่มล้างตะกร้าดีไซน์ใหม่ สมดุล ไม่เบียดกับปุ่มปิด */
.cart-clear-all-btn {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 9999px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cart-clear-all-btn:hover {
    background-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.cart-clear-all-btn svg {
    width: 14px;
    height: 14px;
}

.cart-close-btn {
    background: transparent;
    border: none;
    color: var(--text-dark, #222222);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.cart-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.06);
    transform: rotate(90deg);
}

.cart-close-btn svg {
    width: 20px;
    height: 20px;
}

/* Drawer Body */
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Drawer Footer */
.cart-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background-color: var(--bg-color, #ffffff);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-footer-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-gray, #888888);
}

.cart-footer-total-num {
    font-weight: 600;
    color: var(--text-dark, #222222);
    font-size: 1.15rem;
}

/* ปุ่มดาวน์โหลดทั้งหมด ทำงานได้จริง 100% ผ่าน ZIP Streaming */
.cart-download-all-btn {
    width: 100%;
    padding: 14px 20px;
    background-color: #111111;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.25s, transform 0.15s, box-shadow 0.25s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.cart-download-all-btn:hover {
    background-color: #2a2a2a;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.cart-download-all-btn:active {
    transform: translateY(1px);
}

.cart-download-all-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cart-download-all-btn svg {
    width: 20px;
    height: 20px;
}

.cart-spin-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   5. Cart Items & Groups (จัดกลุ่มตามอัลบั้ม & แก้ไขชื่องานยาวตามหน้า 9)
   ========================================================================== */
.cart-album-group {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-album-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ส่วนหัวอัลบั้ม จัดแบบ 2 แถว เพื่อให้ชื่องานยาวจัดตรงกลางกรอบ ไม่เบ้ซ้าย (หน้า 9) */
.cart-album-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.025);
    border-radius: 10px;
    margin-bottom: 14px;
}

.cart-album-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.cart-album-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark, #222222);
    line-height: 1.45;
    word-break: break-word;
    flex: 1;
    margin: 0;
}

.cart-album-count-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-gray, #888888);
    background: rgba(0, 0, 0, 0.06);
    padding: 3px 9px;
    border-radius: 9999px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* แถวปุ่มคำสั่งของอัลบั้ม: ดาวน์โหลดทั้งอัลบั้ม + ลบทั้งอัลบั้ม (หน้า 7) */
.cart-album-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px dashed rgba(0, 0, 0, 0.07);
}

.cart-download-album-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.14);
    color: #111111;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    padding: 5px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.cart-download-album-btn:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.cart-download-album-btn:disabled,
.cart-download-album-btn.is-downloading {
    opacity: 0.75;
    cursor: wait;
    pointer-events: none;
    background-color: #f3f4f6;
    color: #6b7280;
    border-color: #d1d5db;
}

.cart-download-album-btn svg {
    width: 14px;
    height: 14px;
}

.cart-remove-album-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-gray, #888888);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.cart-remove-album-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.cart-remove-album-btn svg {
    width: 16px;
    height: 16px;
}

/* รายการรูปภาพ */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.02);
    transition: background 0.2s ease;
}

.cart-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.cart-item-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    background-color: #f0f0f0;
    flex-shrink: 0;
}

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

.cart-item-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark, #222222);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.cart-item-meta {
    font-size: 0.75rem;
    color: var(--text-gray, #888888);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.cart-item-download-btn,
.cart-item-remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-gray, #888888);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cart-item-download-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #22c55e;
}

.cart-item-remove-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.cart-item-download-btn svg,
.cart-item-remove-btn svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   6. Empty State (สถานะไม่มีรูปภาพในตะกร้า)
   ========================================================================== */
.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 70px 20px;
    text-align: center;
    color: var(--text-gray, #888888);
}

.cart-empty-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    stroke: currentColor;
    opacity: 0.4;
}

.cart-empty-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark, #222222);
    margin: 0 0 8px 0;
}

.cart-empty-subtitle {
    font-size: 0.85rem;
    color: var(--text-gray, #888888);
    max-width: 240px;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   7. Dark Mode Support (รองรับโหมดมืด)
   ========================================================================== */
body.dark-mode .cart-drawer {
    background-color: #161618;
    color: #ffffff;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
}

body.dark-mode .cart-drawer-header,
body.dark-mode .cart-drawer-footer {
    background-color: #161618;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .cart-drawer-title,
body.dark-mode .cart-album-name,
body.dark-mode .cart-item-name,
body.dark-mode .cart-footer-total-num,
body.dark-mode .cart-empty-title {
    color: #ffffff;
}

body.dark-mode .cart-close-btn {
    color: #ffffff;
}

body.dark-mode .cart-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .cart-album-group {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .cart-album-header {
    background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .cart-album-actions-row {
    border-top-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .cart-album-count-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #aaaaaa;
}

body.dark-mode .cart-download-album-btn {
    background: #25252d;
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

body.dark-mode .cart-download-album-btn:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

body.dark-mode .cart-item {
    background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .cart-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

body.dark-mode .cart-item-thumb {
    background-color: #262626;
}

body.dark-mode .cart-item-download-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #22c55e;
}

body.dark-mode .cart-item-remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

body.dark-mode .cart-download-all-btn {
    background-color: #ffffff;
    color: #111111;
}

body.dark-mode .cart-download-all-btn:hover {
    background-color: #e5e5e5;
}

body.dark-mode .cart-download-all-btn:disabled {
    background-color: #444444;
    color: #888888;
}

.cart-download-all-btn.is-downloading {
    cursor: wait !important;
    opacity: 0.9 !important;
    background-color: #2563eb !important;
    color: #ffffff !important;
    pointer-events: none;
}

/* ==========================================================================
   6. Floating Download Status Toast (แจ้งเตือนสถานะการเตรียมไฟล์ ZIP แบบเรียลไทม์)
   ========================================================================== */
.cart-download-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100001;
    max-width: 380px;
    width: calc(100% - 32px);
    background: #ffffff;
    color: #111111;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18), 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    font-family: var(--font-sans, 'Kanit', sans-serif);
    overflow: hidden;
}

.cart-download-toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cart-toast-body {
    padding: 15px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

.cart-toast-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.cart-download-toast.success .cart-toast-icon-wrap {
    background: rgba(34, 197, 94, 0.14);
    color: #16a34a;
}

.cart-toast-content {
    flex: 1;
    min-width: 0;
}

.cart-toast-title {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: #111111;
    line-height: 1.3;
}

.cart-toast-desc {
    font-size: 0.78rem;
    color: #666666;
    line-height: 1.4;
    margin-bottom: 9px;
    word-break: break-word;
}

.cart-toast-bar-wrap {
    width: 100%;
    height: 5px;
    background: rgba(0, 0, 0, 0.07);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.cart-toast-bar {
    height: 100%;
    width: 35%;
    background: #2563eb;
    border-radius: 9999px;
    position: relative;
    animation: toastProgressIndeterminate 1.8s infinite ease-in-out;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.cart-download-toast.success .cart-toast-bar {
    width: 100% !important;
    background: #16a34a !important;
    animation: none;
}

@keyframes toastProgressIndeterminate {
    0% { left: -30%; width: 30%; }
    50% { left: 40%; width: 50%; }
    100% { left: 100%; width: 30%; }
}

.cart-toast-close {
    background: none;
    border: none;
    color: #999999;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
    margin-left: -4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.cart-toast-close:hover {
    color: #222222;
}

/* Dark mode for Toast */
body.dark-mode .cart-download-toast {
    background: #1e1e1e;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

body.dark-mode .cart-toast-title {
    color: #ffffff;
}

body.dark-mode .cart-toast-desc {
    color: #aaaaaa;
}

body.dark-mode .cart-toast-bar-wrap {
    background: rgba(255, 255, 255, 0.12);
}

body.dark-mode .cart-toast-close {
    color: #777777;
}

body.dark-mode .cart-toast-close:hover {
    color: #ffffff;
}

@media (max-width: 480px) {
    .cart-download-toast {
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: auto;
    }
    .cart-drawer {
        width: 100%;
    }
    .cart-drawer-header,
    .cart-drawer-footer,
    .cart-drawer-body {
        padding: 16px 18px;
    }
}


/* ==========================================================================
   8. Custom Confirmation Modal (แทนที่ browser confirm/alert เริ่มต้น)
   ========================================================================== */
.cart-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 100005;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
    font-family: var(--font-sans, 'Plus Jakarta Sans', 'Prompt', 'Kanit', sans-serif);
}

.cart-confirm-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-confirm-dialog {
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    color: #111111;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06);
    text-align: center;
    transform: scale(0.92) translateY(10px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-confirm-overlay.open .cart-confirm-dialog {
    transform: scale(1) translateY(0);
}

.cart-confirm-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.cart-confirm-icon svg {
    width: 24px;
    height: 24px;
}

.cart-confirm-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #111111;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.cart-confirm-desc {
    font-size: 0.86rem;
    color: #6b7280;
    margin: 0 0 22px 0;
    line-height: 1.55;
    word-break: break-word;
}

.cart-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cart-confirm-btn {
    padding: 11px 16px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cart-confirm-btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.cart-confirm-btn-cancel:hover {
    background: #e5e7eb;
    color: #111111;
}

.cart-confirm-btn-danger {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.28);
}

.cart-confirm-btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.36);
}

body.dark-mode .cart-confirm-dialog {
    background: #1c1c21;
    color: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.dark-mode .cart-confirm-title {
    color: #ffffff;
}

body.dark-mode .cart-confirm-desc {
    color: #9ca3af;
}

body.dark-mode .cart-confirm-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}

body.dark-mode .cart-confirm-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}
