/**
 * Ledech Kiosk - Cart Screen Styles (Redesigned)
 * Glassmorphic design with touch-friendly controls
 */

/* ========== Screen Layout ========== */
#cart-screen {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Background decorations */
#cart-screen::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(0, 204, 255, 0.08);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

#cart-screen::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(0, 85, 255, 0.06);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* ========== Header ========== */
/* ========== Cart Header Removed ========== */

/* ========== Cart Actions (New) ========== */
.cart-actions-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 1rem;
    margin-top: 0.7rem;
    /* Spacing from banner */
    margin-bottom: 0.2rem;
    /* Spacing to list */
    width: 100%;
    box-sizing: border-box;
}

.cart-clear-text-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ef4444;
    /* Red */
    font-size: 0.9rem;
    font-weight: 600;
    background: transparent;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-clear-text-btn:active {
    background: #fee2e2;
    transform: scale(0.95);
}

.cart-clear-text-btn .material-symbols-outlined {
    font-size: 1.25rem;
}

.cart-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.clear-cart-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: #ef4444;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 1rem;
    transition: all 0.15s ease;
    background: transparent;
}

.clear-cart-btn:active {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(0.95);
}

/* ========== Cart Content ========== */
.cart-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem;
    padding-bottom: 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
    max-width: 48rem;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ========== Cart Items Section (Scrollable) ========== */
.cart-items-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-height: 0;
    /* Important for flex scroll */
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.cart-items-header {
    display: none;
    /* Hidden in new design */
}

.cart-items-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    padding-bottom: 1rem;
}

/* Hide scrollbar */
.cart-items-list::-webkit-scrollbar {
    display: none;
}

.cart-items-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ========== Multi-Restaurant Warning Banner ========== */
.multi-restaurant-warning {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 1.5rem;
    /* Add spacing from top */
    margin-bottom: 0;
    /* Removed spacing below */
    animation: slideDown 0.3s ease-out;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    overflow: hidden;
    max-height: 200px;
    display: flex;
    align-items: center;
    /* Center content vertically */
}

/* Collapsing state */
.multi-restaurant-warning.collapsing {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    padding: 0 1rem;
    border-color: transparent;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.multi-restaurant-warning-content {
    display: flex;
    align-items: center;
    /* Align center vertically */
    gap: 1rem;
    width: 100%;
}

.multi-restaurant-warning-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-top removed for centering */
}

.multi-restaurant-warning-icon .material-symbols-outlined {
    font-size: 1.75rem;
    /* Larger icon like user image */
    color: #3b82f6;
    /* Blue 500 */
}

.multi-restaurant-warning-text {
    flex: 1;
    min-width: 0;
    color: #1e3a8a;
    /* Blue 900 */
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.multi-restaurant-warning-title {
    display: none;
    /* Hide if empty/unused */
}

.multi-restaurant-warning-desc {
    font-size: 1rem;
    color: #1e3a8a;
    /* Blue 900 */
    line-height: 1.5;
    margin-bottom: 0;
}

.multi-restaurant-warning-restaurants {
    display: none;
    /* Hide old restaurant list if present */
}

/* ========== Cart Item Grouping ========== */
.cart-restaurant-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    margin-bottom: 2rem;
    border: none;
}

.cart-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 0.5rem;
    margin-bottom: 1rem;
    background: transparent;
    border-radius: 0;
}

.cart-promo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cart-promo-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #0f172a;
    min-width: 0;
}

.cart-promo-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cart-promo-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.cart-promo-applied {
    font-size: 0.75rem;
    font-weight: 700;
    color: #059669;
}

.cart-promo-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-promo-select {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 0.75rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    min-width: 12rem;
}

.cart-promo-remove {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.cart-promo-message {
    margin: -0.35rem 0 0.75rem;
    padding: 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ef4444;
}

.cart-group-header:first-child {
    margin-top: 0;
}

.cart-group-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.cart-group-icon {
    font-size: 1.25rem;
    color: #f97316;
    /* Brand Orange */
    background: #ffffff;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.cart-group-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111418;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-group-queue-prefix {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    color: #0055ff;
    background: rgba(0, 85, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cart-group-subtotal {
    display: none;
    /* Hide subtotal in header for V2 style */
}

.cart-group-subtotal-label,
.cart-group-subtotal-value {
    display: none;
}

/* Multi-restaurant group styling */
.cart-group-header.multi-restaurant-group {
    background: #ffffff;
    border: none;
    box-shadow: none;
}

.cart-group-divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.2);
    flex: 1;
}

/* ========== Cart Item (Card Style V2) ========== */
/* ========== Cart Item (Card Style V2) ========== */
.cart-item {
    display: flex;
    gap: 1.25rem;
    padding: 1rem;
    border-radius: 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    transition: none;
    align-items: stretch;
}

.cart-item:first-of-type {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Removed hover shadow */

.cart-item:active {
    background: #ffffff;
    transform: scale(0.995);
}

.cart-item-image {
    width: 7rem;
    min-width: 7rem;
    max-width: 7rem;
    height: 7rem;
    min-height: 7rem;
    max-height: 7rem;
    border-radius: 1rem;
    background: #f3f4f6;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    mix-blend-mode: normal;
    opacity: 1;
    display: block;
}

.cart-item-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.cart-item-image-placeholder .material-icons-round,
.cart-item-image-placeholder .material-symbols-outlined {
    font-size: 2rem;
    color: #94a3b8;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.cart-item-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.cart-item-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111418;
    line-height: 1.25;
    margin-bottom: 0;
    display: block;
    line-clamp: unset;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.cart-item-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111418;
    white-space: nowrap;
}

.cart-item-desc {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin-top: 0.25rem;
    display: block;
}

.cart-item-addons {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
    margin-top: 0;
}

.cart-item-price {
    display: none;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
}

.edit-item-btn {
    font-size: 0.75rem;
    font-weight: 700;
    color: #258cf4;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.edit-item-btn:hover {
    text-decoration: none;
}

/* Compact quantity control V2 */
.quantity-control {
    display: flex;
    align-items: center;
    margin-left: auto;
    background: #f9fafb;
    border-radius: 9999px;
    padding: 0.25rem 0.5rem;
    box-shadow: none;
    border: 1px solid #e5e7eb;
    height: auto;
    gap: 0.75rem;
}

.quantity-btn {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    background: #ffffff;
    color: #4b5563;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.quantity-btn:active {
    transform: scale(0.9);
}

.quantity-btn.increase-btn {
    background: #258cf4;
    color: white;
}

.quantity-btn .material-icons-round,
.quantity-btn .material-symbols-outlined {
    font-size: 0.875rem;
    font-weight: 700;
}

.quantity-value {
    width: 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: #111418;
}

/* Remove button - hidden in compact design */
.remove-item-btn {
    display: none;
}

/* ========== Promo Section (Legacy - kept for compatibility) ========== */
.promo-card {
    display: none; /* Promo is now inside summary card */
}

.promo-apply-btn {
    position: absolute;
    right: 0;
    bottom: 0.5rem;
    padding: 0.375rem 1rem;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.15s ease;
}

.promo-apply-btn:active {
    background: #0055ff;
    color: white;
}

.change-order-btn {
    padding: 0.375rem 1rem;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.15s ease;
}

.change-order-btn:active {
    background: #0055ff;
    color: white;
}

.promo-message {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.promo-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.promo-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.applied-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 1rem;
    margin-top: 1rem;
}

.applied-promo-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #16a34a;
    font-weight: 600;
    font-size: 0.875rem;
}

.remove-promo-btn {
    color: #64748b;
    padding: 0.25rem;
}



/* ========== Summary Card (Collapsible) ========== */
.cart-summary-section {
    width: 100%;
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex-shrink: 0;
    padding-bottom: 1.5rem;
    z-index: 20;
    padding-top: 0;
}

.summary-card {
    background: #ffffff;
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    border: none;
    box-shadow: none; /* JS controls shadow based on collapsible state */
    position: relative;
    overflow: hidden;
    margin-bottom: -2.5rem;
    z-index: 20;
    transition: box-shadow 0.2s ease;
}

/* Collapsible Details Section - Progressive reveal via JS */
.summary-details-collapsible {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
    /* No CSS transition - JS handles smooth scroll-based reveal */
    padding-top: 0;
    padding-bottom: 0;
    /* Hide completely when closed to prevent ghost borders/shadows */
    visibility: hidden;
}

.summary-details-collapsible.expanded {
    padding-bottom: 0.5rem;
    visibility: visible;
}

/* Always Visible Section */
.summary-always-visible {
    position: relative;
    z-index: 1;
}

/* Promo section inside collapsible */
.promo-section-inline {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.3);
}

.promo-section-inline .promo-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.promo-section-inline .promo-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid #cbd5e1;
    padding: 0.75rem 0;
    padding-left: 2rem;
    padding-right: 6rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: border-color 0.15s ease;
    border-radius: 0;
}

.promo-section-inline .promo-input-group input::placeholder {
    color: #94a3b8;
}

.promo-section-inline .promo-input-group input:focus {
    outline: none;
    border-color: #0055ff;
}

.promo-section-inline .promo-input-group::before {
    content: 'confirmation_number';
    font-family: 'Material Symbols Outlined';
    position: absolute;
    left: 0;
    bottom: 1rem;
    font-size: 1.25rem;
    color: #94a3b8;
}

/* Sentinel for IntersectionObserver */
.cart-list-sentinel {
    height: 1px;
    width: 100%;
    pointer-events: none;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10rem;
    height: 10rem;
    background: rgba(0, 85, 255, 0.05);
    border-radius: 50%;
    filter: blur(40px);
    transform: translate(2rem, -2rem);
    opacity: 0; /* Hidden by default, shown when collapsible opens */
    transition: opacity 0.2s ease;
}

.summary-card.has-details::before {
    opacity: 1;
    pointer-events: none;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.summary-row.discount {
    color: #16a34a;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.25s ease, padding 0.25s ease;
}

.summary-row.discount.is-visible {
    max-height: 2rem;
    opacity: 1;
    transform: translateY(0);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.summary-divider {
    height: 0;
    background: rgba(148, 163, 184, 0.2);
    margin: 0;
    opacity: 0; /* Hidden by default, shown when collapsible opens */
    transition: opacity 0.15s ease, height 0.15s ease, margin 0.15s ease;
}

.summary-divider.visible {
    height: 1px;
    margin: 0.5rem 0;
    opacity: 1;
}

.summary-row.total {
    border-top: none;
    margin-top: 0;
    padding-top: 0.25rem;
    font-weight: 700;
}

.summary-row.total .label {
    font-size: 1.125rem;
    color: var(--text-dark);
}

.summary-row.total .amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

/* ========== Invoice Checkbox Row ========== */
.invoice-checkbox-row {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(0, 85, 255, 0.06), rgba(0, 204, 255, 0.06));
    border: 1px solid rgba(0, 85, 255, 0.2);
    border-radius: 1rem;
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
}

.invoice-checkbox-row:has(.invoice-checkbox:checked) {
    background: linear-gradient(135deg, rgba(0, 85, 255, 0.12), rgba(0, 204, 255, 0.1));
    border-color: rgba(0, 85, 255, 0.4);
}

.invoice-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    width: 100%;
}

.invoice-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.invoice-checkbox-custom {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #cbd5e1;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: #ffffff;
    flex-shrink: 0;
}

.invoice-checkbox-custom::after {
    content: 'check';
    font-family: 'Material Symbols Outlined';
    font-size: 1rem;
    color: transparent;
    transition: color 0.15s ease;
}

.invoice-icon {
    color: #0055ff;
    font-size: 1.25rem !important;
}

.invoice-checkbox:checked + .invoice-checkbox-custom {
    background: #0055ff;
    border-color: #0055ff;
}

.invoice-checkbox:checked + .invoice-checkbox-custom::after {
    color: #ffffff;
}

.invoice-checkbox-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    flex: 1;
}

.invoice-checkbox:checked ~ .invoice-checkbox-text {
    color: #0055ff;
}

/* Active/hover state */
.invoice-checkbox-label:active .invoice-checkbox-custom {
    transform: scale(0.9);
}

/* ========== Checkout Button (Inline after Summary) ========== */
.checkout-btn-wrapper {
    width: 100%;
    max-width: 100%;
    /* Match summary card width */
    margin: 0;
    /* Remove margin */
    padding: 0;
}

.checkout-btn {
    width: 100%;
    height: 8.5rem;
    /* Taller to account for overlap */
    background: #1e293b;
    /* Dark background */
    color: white;
    border-radius: 0 0 2rem 2rem;
    /* Only bottom corners rounded, TOP IS SHARP */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    padding-top: 2.5rem;
    /* Push content down due to overlap */
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
    transition: all 0.2s ease;
    border: none;
    position: relative;
    z-index: 10;
    /* Sit behind */
}

.checkout-btn:active {
    transform: scale(0.98);
}

.checkout-btn-text {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.checkout-btn-icon {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}



.checkout-btn-icon .material-icons-round,
.checkout-btn-icon .material-symbols-outlined {
    font-size: 1.75rem;
    color: #ffffff;
    transition: all 0.2s ease;
}



.checkout-btn:disabled {
    opacity: 0.5;
    transform: none;
    cursor: not-allowed;
}

/* ========== Footer ========== */
.cart-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 50;
}

.cart-back-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    transition: all 0.15s ease;
    background: transparent;
}

.cart-back-btn:hover {
    background: #f1f5f9;
    color: var(--text-dark);
}

.cart-back-btn:active {
    transform: scale(0.95);
}

.cart-back-btn .material-icons-round,
.cart-back-btn .material-symbols-outlined {
    font-size: 1.25rem;
    transition: transform 0.15s ease;
}

.cart-back-btn:hover .material-icons-round,
.cart-back-btn:hover .material-symbols-outlined {
    transform: translateX(-0.25rem);
}

.cart-back-btn span:not(.material-icons-round):not(.material-symbols-outlined) {
    font-size: 1.125rem;
    font-weight: 700;
}

.cart-footer-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.cart-lang-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 8.75rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.cart-lang-btn:hover {
    border-color: rgba(0, 85, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cart-lang-btn:active {
    transform: scale(0.95);
}

.cart-lang-btn .material-icons-round,
.cart-lang-btn .material-symbols-outlined {
    font-size: 1.25rem;
    color: #64748b;
}

.cart-search-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: #f1f5f9;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.cart-search-btn:hover {
    background: #0055ff;
    color: white;
}

.cart-search-btn:active {
    transform: scale(0.95);
}

.cart-search-btn .material-icons-round,
.cart-search-btn .material-symbols-outlined {
    font-size: 1.5rem;
    transition: transform 0.15s ease;
}

.cart-search-btn:hover .material-icons-round,
.cart-search-btn:hover .material-symbols-outlined {
    transform: scale(1.1);
}

/* ========== Empty Cart ========== */
.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    position: relative;
    z-index: 10;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-empty-icon {
    font-size: 7rem;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease-out forwards;
}

.cart-empty h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    opacity: 0;
    /* Start hidden for stagger */
    animation: fadeInUp 0.5s ease-out 0.1s forwards;
}

.cart-empty p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.2s forwards;
    animation: fadeInUp 0.5s ease-out 0.2s forwards;
}

.cart-redirect-timer {
    font-size: 0.9rem;
    color: #94a3b8;
    /* Faded slate */
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.5s forwards;
    font-weight: 500;
}

.cart-empty-icon-img {
    width: 180px;
    /* Adjust size as needed */
    height: auto;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease-out forwards;

    /* Color Correction Filters */
    filter: grayscale(100%) opacity(0.8);
    /* Neutralize colors */
}

/* .continue-shopping-btn styles removed to allow Tailwind styling for new circular button */
/* Restored and modified for circular design */
.continue-shopping-btn {
    display: flex;
    flex-direction: column;
    /* Stack icon and text */
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 12rem;
    /* Large fixed size */
    height: 12rem;
    /* Matches width for circle */
    padding: 0;
    /* 3D Effect Styles */
    color: #ffffff;
    background: linear-gradient(to bottom, #171717, #242424);
    border: 1px solid #292929;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 1), 0 10px 20px rgba(0, 0, 0, 0.4);

    font-size: 1rem;
    font-weight: 700;
    border-radius: 50%;
    /* Perfect circle */
    transition: all 0.2s ease;

    /* Animation Override */
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.3s forwards;
    position: relative;
    /* Context for pseudo-element */
    z-index: 10;
}

/* 3D Depth Pseudo-element */
.continue-shopping-btn::before {
    content: "";
    position: absolute;
    top: -2px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    background: linear-gradient(to bottom, #292929, #000000);
    z-index: -1;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 1;
}

.continue-shopping-btn .material-symbols-outlined {
    font-size: 3rem;
    /* Larger icon inside circle */
    z-index: 20;
    /* Ensure icon is above ripple */
    position: relative;

    /* Icon Gradient (Metallic) */
    background: linear-gradient(to bottom, #FFFFFF, #AAAAAA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.continue-shopping-btn span[data-i18n] {
    z-index: 20;
    /* Ensure text is above ripple */
    /* Ensure text is above ripple */
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.continue-shopping-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 1), 0 5px 10px rgba(0, 0, 0, 0.4);
}

/* Dark Ripple Animation */
@keyframes dark-ripple {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
        box-shadow: 0 0 0 0 rgba(30, 41, 59, 0.3);
        /* Dark slate color */
    }

    70% {
        transform: scale(1.3);
        opacity: 0;
        box-shadow: 0 0 0 20px rgba(30, 41, 59, 0);
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(30, 41, 59, 0);
    }
}

.animate-dark-ripple {
    position: absolute;
    inset: -5px;
    /* Slightly larger than button */
    border-radius: 50%;
    animation: dark-ripple 2s infinite;
    z-index: 0;
    /* Behind content */
    border: 2px solid rgba(30, 41, 59, 0.1);
    /* Subtle border ring */
}

.continue-shopping-btn:active {
    transform: scale(0.95);
}

/* ========== Responsive ========== */
@media screen and (max-width: 768px) {
    .cart-header {
        height: 5rem;
        padding: 0 1rem;
    }

    .cart-header-brand {
        display: none;
    }

    .cart-content {
        padding: 0 1rem;
    }

    .cart-item {
        gap: 1rem;
        padding: 0.875rem;
    }

    .cart-item-image {
        width: 4rem;
        height: 4rem;
    }

    .summary-card {
        padding: 1.5rem;
    }

    .summary-row.total .amount {
        font-size: 2rem;
    }
}

/* ========== Eco-Friendly Receipt Styles ========== */
.eco-receipt-checkbox-row {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 1rem;
    transition: all 0.2s ease;
}

.eco-receipt-checkbox-row:has(.eco-receipt-checkbox:checked) {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.1));
    border-color: rgba(34, 197, 94, 0.4);
}

.eco-receipt-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    width: 100%;
}

.eco-receipt-checkbox {
    display: none;
}

.eco-receipt-checkbox-custom {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid rgba(34, 197, 94, 0.5);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: white;
    flex-shrink: 0;
}

.eco-receipt-checkbox:checked + .eco-receipt-checkbox-custom {
    background: linear-gradient(135deg, #22c55e, #10b981);
    border-color: #22c55e;
}

.eco-receipt-checkbox:checked + .eco-receipt-checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
}

.eco-icon {
    color: #22c55e;
    font-size: 1.25rem !important;
}

.eco-receipt-checkbox-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

/* Eco Email Row */
.eco-email-row {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(34, 197, 94, 0.05);
    border-radius: 0.75rem;
    animation: slideDown 0.3s ease;
}

.eco-email-row.hidden {
    display: none;
}

.eco-contact-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eco-email-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.eco-email-input-wrapper:focus-within {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.eco-email-icon {
    color: #22c55e;
    font-size: 1.25rem !important;
}

.eco-email-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #1f2937;
    background: transparent;
}

.eco-email-input::placeholder {
    color: #9ca3af;
}

.eco-email-hint {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    padding-left: 0.25rem;
}

/* ---- SMS Sipariş Durumu Bildirimi (Doğa Dostu Fiş'ten AYRI, bkz. cart.js) ---- */
.sms-notify-checkbox-row {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 1rem;
    transition: all 0.2s ease;
}

.sms-notify-checkbox-row:has(.sms-notify-checkbox:checked) {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(168, 85, 247, 0.1));
    border-color: rgba(124, 58, 237, 0.4);
}

.sms-notify-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    width: 100%;
}

.sms-notify-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sms-notify-checkbox-custom {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid rgba(124, 58, 237, 0.5);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: white;
    flex-shrink: 0;
}

.sms-notify-checkbox:checked + .sms-notify-checkbox-custom {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-color: #7c3aed;
}

.sms-notify-checkbox:checked + .sms-notify-checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
}

.sms-notify-icon {
    color: #7c3aed;
    font-size: 1.25rem !important;
}

.sms-notify-checkbox-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

.sms-notify-detail-row {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(124, 58, 237, 0.05);
    border-radius: 0.75rem;
    animation: slideDown 0.3s ease;
}

.sms-notify-detail-row.hidden {
    display: none;
}

.sms-phone-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.sms-phone-input-wrapper:focus-within {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.sms-phone-prefix {
    font-weight: 700;
    color: #7c3aed;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.sms-phone-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #1f2937;
    background: transparent;
}

.sms-phone-input::placeholder {
    color: #9ca3af;
}

.sms-phone-error {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #dc2626;
    padding-left: 0.25rem;
}

.sms-phone-error.hidden {
    display: none;
}

.sms-notify-member-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #7c3aed;
    margin: 0 0 0.5rem;
}

.sms-notify-member-info .material-symbols-outlined {
    font-size: 1.1rem;
}

.sms-consent-text {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    padding-left: 0.25rem;
    cursor: pointer;
}

.sms-consent-link-text {
    color: #7c3aed;
    font-weight: 600;
    text-decoration: underline;
}

/* ---- Ödül kart şeritleri (Hazır Ödülleriniz / Puan Ödülleri / Kampanya İndirimleri) ---- */

.reward-strip {
    margin: 0.75rem 1rem 0;
}

.reward-strip-label {
    margin: 0;
    padding: 0.15rem 0.25rem 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.reward-strip-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.reward-strip-arrow {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.15s ease;
}

.reward-strip-arrow:active {
    transform: scale(0.92);
    background: #f1f5f9;
}

.reward-strip-arrow .material-symbols-outlined {
    font-size: 1.1rem;
}

.reward-strip-scroll {
    flex: 1;
    display: flex;
    gap: 0.6rem;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0.15rem 0.1rem 0.35rem;
}

.reward-strip-scroll::-webkit-scrollbar {
    display: none;
}

.reward-card {
    flex: 0 0 auto;
    width: 9rem;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1rem;
    padding: 0.65rem 0.65rem 0.7rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    text-align: left;
    display: block;
}

.reward-card--locked {
    opacity: 0.65;
}

.reward-card-icon {
    font-size: 1.2rem;
}

.reward-card-icon--amber {
    color: #d97706;
}

.reward-card-icon--blue {
    color: var(--brand-blue, #0055ff);
}

.reward-card-icon--locked {
    color: #94a3b8;
}

.reward-card-title {
    margin: 0.4rem 0 0.2rem;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reward-card-title--locked {
    color: #64748b;
}

.reward-card-subtitle {
    margin: 0 0 0.55rem;
    font-size: 0.66rem;
    color: #94a3b8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reward-card-badge {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
}

.reward-card-badge--amber {
    background: #fef3c7;
    color: #b45309;
}

.reward-card-badge--blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.reward-card-badge--locked {
    background: #f1f5f9;
    color: #94a3b8;
}

.reward-card-chevron {
    font-size: 1.1rem;
    color: #cbd5e1;
    display: block;
}
