:root {
    --cart-gray-light: #f8fafc;
    --cart-gray: #94a3b8;
    --cart-blue: #3b82f6;
    --cart-blue-light: #eff6ff;
    --cart-text: #1e293b;
    --cart-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

    /* Premium UI Variables */
    --cart-gradient-primary: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --cart-gradient-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --cart-glow-blue: 0 0 20px rgba(59, 130, 246, 0.4);
    --cart-glow-emerald: 0 0 20px rgba(16, 185, 129, 0.4);
    --cart-glass-bg: rgba(255, 255, 255, 0.7);
    --cart-glass-border: rgba(255, 255, 255, 0.3);
}

.cart-page {
    padding: 40px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: calc(100vh - 200px);
    position: relative;
}

.cart-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%);
    pointer-events: none;
    z-index: 0;
}

.cart-page > .container {
    position: relative;
    z-index: 1;
}

/* Home Button & Admin Button */
.cart-home-button-container {
    max-width: 1400px;
    margin: 0 auto 24px;
    padding: 0 32px;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.cart-home-button,
.cart-admin-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--cart-gradient-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.cart-admin-button {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.cart-home-button:hover,
.cart-admin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    color: #fff;
}

.cart-home-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.cart-admin-button:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.cart-home-button:active,
.cart-admin-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.cart-home-button svg,
.cart-admin-button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* Dark Mode: Home Button & Admin Button */
body.dark-mode .cart-home-button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

body.dark-mode .cart-home-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

body.dark-mode .cart-admin-button {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

body.dark-mode .cart-admin-button:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

/* Stepper - Premium Design */
.cart-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 32px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.cart-stepper:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    padding: 0 16px;
}

.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.step-dot::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item.active .step-dot {
    background: var(--cart-gradient-primary);
    box-shadow: var(--cart-glow-blue);
    transform: scale(1.1);
    animation: stepPulse 2s ease-in-out infinite;
}

.step-item.active .step-dot::before {
    background: #fff;
}

@keyframes stepPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }
}

.step-item.active .step-label {
    color: var(--cart-blue);
    font-weight: 600;
}

.step-label {
    font-size: 14px;
    color: var(--cart-gray);
    font-weight: 500;
    transition: all 0.3s ease;
}

.step-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 100%);
    margin: 0 -8px;
    position: relative;
    top: 0;
    z-index: 1;
    border-radius: 2px;
}

/* Main Cart Container */
.cart-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

.cart-main-card {
    background: #fff;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cart-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-has-items .cart-main-card::before {
    opacity: 1;
}

.cart-empty-img {
    width: 280px;
    height: auto;
    margin-bottom: 32px;
}

.cart-empty-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--cart-text);
    margin-bottom: 16px;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-empty-desc {
    font-size: 16px;
    color: var(--cart-gray);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 500px;
}

/* Cart Sidebar */
.cart-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* When cart has items, adjust layout to content mode */
.cart-has-items .cart-main-card {
    padding: 24px;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.cart-has-items .cart-empty-state {
    display: none;
}

.cart-has-items #cartItemsContainer {
    display: block;
}

.sidebar-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: transparent;
    border: none;
    color: var(--cart-text);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.1px;
}

.sidebar-option:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    padding-left: 24px;
}

.sidebar-option span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-option i {
    width: 20px;
    height: 20px;
    color: var(--cart-blue);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.sidebar-option:hover i.chevron-icon {
    opacity: 1;
}

/* Option Icon in span */
.sidebar-option .option-icon {
    width: 20px;
    height: 20px;
    color: var(--cart-blue);
    vertical-align: middle;
    margin-right: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-option:hover .option-icon {
    transform: scale(1.1);
    color: #2563eb;
}

/* Chevron Icon */
.sidebar-option .chevron-icon {
    width: 20px;
    height: 20px;
    color: var(--cart-gray);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
}

.sidebar-option.active .chevron-icon {
    transform: rotate(180deg);
    color: var(--cart-blue);
    opacity: 1;
}

/* Sidebar Option Container - Glassmorphism */
.sidebar-option-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    position: relative;
}

.sidebar-option-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-option-container:hover::before {
    opacity: 0.5;
}

.sidebar-option-container.active::before {
    opacity: 1;
}

.sidebar-option-container:last-of-type {
    margin-bottom: 0;
}

/* Active state for sidebar containers */
.sidebar-option-container.active {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.15), 0 2px 8px rgba(59, 130, 246, 0.1);
}

.sidebar-option-container:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12), 0 2px 8px rgba(59, 130, 246, 0.08);
    transform: translateY(-2px);
}


.sidebar-option-container .sidebar-option {
    width: 100%;
    border-radius: 0;
}

.sidebar-option-container .sidebar-option.active {
    background: rgba(59, 130, 246, 0.05);
}

.sidebar-option-container .sidebar-option.active i {
    color: var(--cart-blue);
    transform: rotate(180deg);
}

/* Collapsible Content */
.sidebar-option-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        margin-top 0.25s ease;
    padding: 0 20px;
    opacity: 0;
    pointer-events: none;
    margin-top: 0;
}

.sidebar-option-content.show {
    max-height: 500px;
    padding: 20px;
    opacity: 1;
    pointer-events: auto;
    margin-top: 4px;
}

/* Option Input Group - Row Layout */
.option-input-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
}

.option-input-group:last-child {
    margin-bottom: 0;
}

/* Full width group for textarea and single inputs */
.option-input-group.full-width {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.option-input-group.full-width .option-input,
.option-input-group.full-width .option-textarea {
    width: 100%;
    flex: none;
    margin-bottom: 16px;
}

.option-input-group.full-width .option-input:last-child,
.option-input-group.full-width .option-textarea:last-child {
    margin-bottom: 0;
}

/* Input Field */
.option-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    font-family: inherit;
}

.option-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
    opacity: 0.8;
}

.option-input:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.option-input:focus {
    outline: none;
    border-color: var(--cart-blue);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 2px 8px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

/* Textarea */
.option-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    line-height: 1.5;
}

.option-textarea::placeholder {
    color: #94a3b8;
    font-weight: 400;
    opacity: 0.8;
}

.option-textarea:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.option-textarea:focus {
    outline: none;
    border-color: var(--cart-blue);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 2px 8px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

/* Apply Button */
.option-apply-btn {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 20px;
    min-width: 100px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3), 0 2px 4px rgba(59, 130, 246, 0.2);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
}

.option-apply-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.option-apply-btn:hover::before {
    left: 100%;
}

/* Full width button for gift section */
.option-apply-btn.full-width {
    width: 100%;
    margin-top: 16px;
    min-width: auto;
    padding: 14px 20px;
    height: 48px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4), 0 2px 8px rgba(16, 185, 129, 0.2);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.option-apply-btn.full-width:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5), 0 4px 12px rgba(16, 185, 129, 0.3);
}

.option-apply-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4), 0 4px 12px rgba(59, 130, 246, 0.3);
}

.option-apply-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.option-apply-btn.full-width:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Option Messages */
.option-message {
    font-size: 13px;
    padding: 10px 0;
    margin-top: 4px;
    display: none;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.option-message.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

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

.option-message.success {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid #10b981;
}

.option-message.error {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid #ef4444;
}

/* Applied Code Badge */
.applied-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #10b981;
    border-radius: 10px;
    margin-top: 12px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
    transition: all 0.3s ease;
    animation: fadeInUp 0.3s ease;
}

.applied-code:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
}

.applied-code-text {
    font-size: 13px;
    font-weight: 500;
    color: #047857;
}

.applied-code-remove {
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.applied-code-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Payment Logos */
.cart-payment-footer {
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    opacity: 0.8;
}

.payment-logos {
    display: flex;
    align-items: center;
    gap: 16px;
}

.payment-logos img {
    height: 24px;
    width: auto;
    filter: grayscale(0.2);
    transition: filter 0.2s;
}

.payment-logos img:hover {
    filter: grayscale(0);
}

.payment-more-text {
    font-size: 13px;
    color: var(--cart-gray);
}

@media (max-width: 1024px) {
    .cart-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .cart-main-card {
        padding: 40px 20px;
    }
}

@media (max-width: 640px) {
    .cart-stepper {
        padding: 0 16px;
    }

    .step-label {
        display: none;
    }

    .step-item.active .step-label {
        display: block;
        position: absolute;
        top: 32px;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }
}

/* ===== DARK MODE STYLES ===== */

/* Page Background - override light gradient */
body.dark-mode .cart-page {
    background: #0f172a !important;
}

body.dark-mode .cart-page::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, rgba(16, 185, 129, 0.03) 100%) !important;
}

/* Stepper */
body.dark-mode .cart-stepper {
    background: rgba(30, 41, 59, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-color: rgba(71, 85, 105, 0.5) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode .step-item {
    background: transparent !important;
}

body.dark-mode .step-dot {
    background: #475569 !important;
}

body.dark-mode .step-dot::before {
    background: #64748b !important;
}

body.dark-mode .step-item.active .step-dot {
    background: var(--cart-gradient-primary) !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5) !important;
}

body.dark-mode .step-item.active .step-dot::before {
    background: #fff !important;
}

body.dark-mode .step-item.active .step-label {
    color: #60a5fa !important;
}

body.dark-mode .step-label {
    color: #94a3b8 !important;
}

body.dark-mode .step-line {
    background: linear-gradient(90deg, #334155 0%, #475569 100%) !important;
}

/* Main Card */
body.dark-mode .cart-main-card {
    background: rgba(30, 41, 59, 0.9) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(71, 85, 105, 0.4) !important;
}

/* Empty State - fix gradient text */
body.dark-mode .cart-empty-title {
    color: #f1f5f9 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    background-clip: unset !important;
}

body.dark-mode .cart-empty-desc {
    color: #94a3b8 !important;
}

/* Cart Items Header */
body.dark-mode .cart-items-header {
    border-bottom-color: rgba(71, 85, 105, 0.5) !important;
}

body.dark-mode .cart-items-title {
    color: #f1f5f9 !important;
}

/* Fix gradient text on item count */
body.dark-mode .cart-item-count {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Cart Item Card */
body.dark-mode .cart-item {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(71, 85, 105, 0.4) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode .cart-item:hover {
    border-color: rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(59, 130, 246, 0.15) !important;
}

/* Cart Item Image */
body.dark-mode .cart-item-image {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.6) 0%, rgba(30, 41, 59, 0.8) 100%) !important;
    border-color: rgba(71, 85, 105, 0.4) !important;
}

/* Cart Item Text */
body.dark-mode .cart-item-name {
    color: #f1f5f9 !important;
}

body.dark-mode .cart-item-duration {
    color: #94a3b8 !important;
}

/* Fix gradient text on item price */
body.dark-mode .cart-item-price {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Quantity Controls */
body.dark-mode .quantity-control {
    background: rgba(51, 65, 85, 0.5) !important;
    border-color: rgba(71, 85, 105, 0.4) !important;
}

body.dark-mode .quantity-control:hover {
    border-color: rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15) !important;
}

body.dark-mode .quantity-btn {
    background: rgba(71, 85, 105, 0.6) !important;
    color: #f1f5f9 !important;
    border-color: rgba(71, 85, 105, 0.4) !important;
}

body.dark-mode .quantity-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

body.dark-mode .quantity-value {
    color: #f1f5f9 !important;
}

/* Remove Button */
body.dark-mode .btn-remove {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.8) 0%, rgba(220, 38, 38, 0.8) 100%) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25) !important;
}

body.dark-mode .btn-remove:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4) !important;
}

/* Clear Cart Button */
body.dark-mode .btn-clear-cart {
    color: #f87171 !important;
    border-color: rgba(248, 113, 113, 0.4) !important;
}

body.dark-mode .btn-clear-cart:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: #f87171 !important;
    color: #fca5a5 !important;
}

/* Sidebar */
body.dark-mode .cart-sidebar {
    background: transparent !important;
}

body.dark-mode .sidebar-option {
    color: #f1f5f9 !important;
}

body.dark-mode .sidebar-option:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%) !important;
}

body.dark-mode .sidebar-option i {
    color: #60a5fa !important;
}

/* Dark Mode: Sidebar Option Container - Glassmorphism */
body.dark-mode .sidebar-option-container {
    background: rgba(30, 41, 59, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-color: rgba(71, 85, 105, 0.5) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 1px 4px rgba(0, 0, 0, 0.15) !important;
}

body.dark-mode .sidebar-option-container:hover {
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode .sidebar-option-container.active {
    border-color: rgba(59, 130, 246, 0.6) !important;
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.2), 0 2px 8px rgba(59, 130, 246, 0.15) !important;
}

body.dark-mode .sidebar-option-container .sidebar-option.active {
    background: rgba(59, 130, 246, 0.1) !important;
}

body.dark-mode .sidebar-option-container .sidebar-option {
    border: none !important;
}

/* Dark Mode: Inputs */
body.dark-mode .option-input,
body.dark-mode .option-textarea {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(71, 85, 105, 0.5) !important;
    color: #f1f5f9 !important;
    border-radius: 8px !important;
}

body.dark-mode .option-input:hover,
body.dark-mode .option-textarea:hover {
    border-color: rgba(59, 130, 246, 0.5) !important;
    background: rgba(15, 23, 42, 0.8) !important;
}

body.dark-mode .option-input::placeholder,
body.dark-mode .option-textarea::placeholder {
    color: #64748b !important;
    opacity: 0.8 !important;
}

body.dark-mode .option-input:focus,
body.dark-mode .option-textarea:focus {
    background: rgba(15, 23, 42, 0.9) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 2px 8px rgba(59, 130, 246, 0.15) !important;
}

/* Dark Mode: Apply Button */
body.dark-mode .option-apply-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

body.dark-mode .option-apply-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-2px);
}

body.dark-mode .option-apply-btn.full-width {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3) !important;
}

body.dark-mode .option-apply-btn.full-width:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

/* Dark Mode: Applied Code Badge */
body.dark-mode .applied-code {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.15) 100%) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1) !important;
}

body.dark-mode .applied-code-text {
    color: #34d399 !important;
}

body.dark-mode .applied-code-remove {
    color: #94a3b8 !important;
}

body.dark-mode .applied-code-remove:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
}

/* Cart Summary */
body.dark-mode .cart-summary {
    background: rgba(30, 41, 59, 0.9) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-color: rgba(71, 85, 105, 0.5) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode .cart-summary-row {
    border-bottom-color: rgba(71, 85, 105, 0.4) !important;
}

body.dark-mode .cart-summary-label {
    color: #94a3b8 !important;
}

body.dark-mode .cart-summary-value {
    color: #f1f5f9 !important;
}

body.dark-mode .cart-total-row {
    border-top-color: rgba(59, 130, 246, 0.3) !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(16, 185, 129, 0.06) 100%) !important;
}

body.dark-mode .cart-total-label {
    color: #f1f5f9 !important;
}

/* Fix gradient text on total value */
body.dark-mode .cart-total-value {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Checkout Button */
body.dark-mode .btn-checkout {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3), 0 2px 8px rgba(16, 185, 129, 0.15) !important;
}

body.dark-mode .btn-checkout:hover {
    box-shadow: 0 10px 32px rgba(16, 185, 129, 0.4), 0 4px 12px rgba(16, 185, 129, 0.25) !important;
}

/* Payment Footer */
body.dark-mode .cart-payment-footer {
    color: #94a3b8 !important;
}

body.dark-mode .payment-more-text {
    color: #64748b !important;
}

body.dark-mode .payment-logos img {
    filter: grayscale(0.3) brightness(0.85);
}

body.dark-mode .payment-logos img:hover {
    filter: grayscale(0) brightness(1);
}

/* Option Messages in dark mode */
body.dark-mode .option-message.success {
    color: #34d399 !important;
    background: rgba(16, 185, 129, 0.1) !important;
    border-left-color: #10b981 !important;
}

body.dark-mode .option-message.error {
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border-left-color: #ef4444 !important;
}