/* Cart Page Styles */

/* Base wrapper */
.cart-wrapper {
    position: relative;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 80px;
    overflow: hidden;
}

/* Enhanced background effects */
.cart-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, 
        rgba(15, 23, 42, 0.9), 
        rgba(88, 28, 135, 0.5), 
        rgba(15, 23, 42, 0.9));
    z-index: 0;
}

.cart-bg-radial-1 {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(120, 119, 198, 0.15), transparent 50%);
    z-index: 1;
}

.cart-bg-radial-2 {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 60%, rgba(236, 72, 153, 0.15), transparent 50%);
    z-index: 1;
}

/* Animated floating particles */
.floating-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.particle {
    position: absolute;
    border-radius: 50%;
}

.particle-1 {
    top: 80px;
    left: 80px;
    width: 8px;
    height: 8px;
    background: #06b6d4;
    animation: pulse 2s ease-in-out infinite;
    opacity: 0.7;
}

.particle-2 {
    top: 160px;
    right: 128px;
    width: 4px;
    height: 4px;
    background: #a855f7;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.6;
    animation-delay: 1s;
}

.particle-3 {
    bottom: 160px;
    left: 160px;
    width: 6px;
    height: 6px;
    background: #ec4899;
    animation: pulse 2s ease-in-out infinite;
    opacity: 0.5;
    animation-delay: 2s;
}

.particle-4 {
    bottom: 240px;
    right: 80px;
    width: 4px;
    height: 4px;
    background: #22d3ee;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.7;
    animation-delay: 0.5s;
}

/* Container */
.container.relative {
    position: relative;
    z-index: 10;
}

/* Cart Header */
.cart-header {
    margin-bottom: 48px;
}

.cart-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.btn-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    color: #67e8f9;
    border: 1px solid rgba(103, 232, 249, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-continue-shopping:hover {
    color: #e0f2fe;
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(103, 232, 249, 0.5);
    transform: translateX(-4px);
}

.btn-continue-shopping svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-continue-shopping:hover svg {
    transform: translateX(-4px);
}

.cart-summary-header {
    text-align: right;
}

.cart-items-count {
    font-size: 14px;
    color: rgba(103, 232, 249, 0.6);
    margin-bottom: 4px;
}

.cart-total-header {
    font-size: 24px;
    font-weight: 700;
    color: #bae6fd;
}

.cart-title-section {
    text-align: center;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(to right, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 9999px;
    margin-bottom: 24px;
    backdrop-filter: blur(12px);
}

.cart-badge svg {
    width: 16px;
    height: 16px;
    color: #c084fc;
}

.cart-badge span {
    color: #e9d5ff;
    font-size: 14px;
    font-weight: 500;
}

.cart-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(to right, #06b6d4, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-purple {
    background: linear-gradient(to right, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-subtitle {
    font-size: 20px;
    color: rgba(103, 232, 249, 0.7);
    max-width: 640px;
    margin: 0 auto;
}

/* Empty Cart State */
.empty-cart-state {
    text-align: center;
    padding: 80px 0;
}

.empty-cart-card {
    max-width: 640px;
    margin: 0 auto;
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(103, 232, 249, 0.3);
    border-radius: 24px;
    padding: 48px;
}

.empty-cart-icon-wrapper {
    width: 96px;
    height: 96px;
    background: linear-gradient(to bottom right, rgba(6, 182, 212, 0.2), rgba(168, 85, 247, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.empty-cart-icon-wrapper svg {
    color: #06b6d4;
}

.empty-cart-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #bae6fd;
    margin-bottom: 16px;
}

.empty-cart-card p {
    color: rgba(103, 232, 249, 0.7);
    margin-bottom: 32px;
}

.btn-browse-services {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(to right, #a855f7, #ec4899);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-browse-services:hover {
    background: linear-gradient(to right, #9333ea, #db2777);
    transform: scale(1.05);
}

/* Cart Grid */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
}

/* Cart Items */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cart-item {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(103, 232, 249, 0.3);
    border-radius: 24px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-item:hover {
    border-color: rgba(103, 232, 249, 0.5);
}

.cart-item-content {
    display: flex;
    gap: 16px;
}

.cart-item-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(to bottom right, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-item:hover .cart-item-icon {
    transform: scale(1.1);
}

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

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.cart-item-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.cart-item-title {
    font-size: 18px;
    font-weight: 700;
    color: #bae6fd;
    transition: color 0.3s;
}

.cart-item:hover .cart-item-title {
    color: #e0f2fe;
}

.item-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-popular {
    background: linear-gradient(to right, rgba(251, 191, 36, 0.2), rgba(251, 146, 60, 0.2));
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-instant {
    background: linear-gradient(to right, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.cart-item-description {
    color: rgba(103, 232, 249, 0.7);
    font-size: 14px;
    margin-bottom: 8px;
}

.cart-item-category {
    font-size: 12px;
    color: rgba(192, 132, 252, 0.6);
    margin-bottom: 12px;
}

.cart-item-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-price {
    font-size: 20px;
    font-weight: 700;
    color: #67e8f9;
}

.item-original-price {
    font-size: 14px;
    color: rgba(103, 232, 249, 0.5);
    text-decoration: line-through;
}

.item-save-badge {
    background: linear-gradient(to right, rgba(239, 68, 68, 0.2), rgba(236, 72, 153, 0.2));
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.btn-remove-item {
    padding: 8px;
    background: transparent;
    color: #f87171;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-remove-item:hover {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-label {
    font-size: 14px;
    color: rgba(103, 232, 249, 0.7);
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: rgba(71, 85, 105, 0.5);
    border: 1px solid rgba(103, 232, 249, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #67e8f9;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-btn:hover {
    color: #e0f2fe;
    background: rgba(6, 182, 212, 0.2);
}

.quantity-value {
    min-width: 48px;
    padding: 4px 16px;
    text-align: center;
    color: #bae6fd;
    font-weight: 500;
}

.item-total {
    text-align: right;
}

.item-total-price {
    font-size: 18px;
    font-weight: 700;
    color: #c084fc;
}

.instant-delivery {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(103, 232, 249, 0.5);
    margin-top: 4px;
}

.instant-delivery svg {
    width: 12px;
    height: 12px;
}

/* Order Summary Column */
.cart-summary-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Promo Card */
.promo-card {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 24px;
    overflow: hidden;
}

.promo-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.promo-card-header svg {
    width: 20px;
    height: 20px;
    color: #c084fc;
}

.promo-card-header span {
    font-size: 18px;
    font-weight: 600;
    color: #e9d5ff;
}

.promo-card-content {
    padding: 24px;
}

.promo-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.promo-input {
    flex: 1;
    padding: 10px 16px;
    background: rgba(71, 85, 105, 0.5);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    color: #e9d5ff;
    font-size: 14px;
}

.promo-input::placeholder {
    color: rgba(192, 132, 252, 0.5);
}

.promo-input:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.5);
}

.btn-apply-promo {
    padding: 10px 24px;
    background: linear-gradient(to right, #a855f7, #ec4899);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-apply-promo:hover {
    background: linear-gradient(to right, #9333ea, #db2777);
    transform: scale(1.05);
}

.applied-promo {
    padding: 12px;
    background: linear-gradient(to right, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.applied-promo-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.applied-promo-info svg {
    width: 16px;
    height: 16px;
    color: #4ade80;
}

.promo-code-name {
    font-size: 14px;
    font-weight: 500;
    color: #86efac;
}

.promo-code-desc {
    font-size: 12px;
    color: rgba(134, 239, 172, 0.7);
}

.btn-remove-promo {
    padding: 4px;
    background: transparent;
    border: none;
    color: #f87171;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove-promo:hover {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 6px;
}

.available-coupons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.coupons-label {
    font-size: 12px;
    color: rgba(192, 132, 252, 0.6);
    margin-bottom: 4px;
}

.coupon-item {
    width: 100%;
    padding: 8px 12px;
    background: rgba(71, 85, 105, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.coupon-item:hover {
    border-color: rgba(168, 85, 247, 0.4);
}

.coupon-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coupon-info svg {
    color: #c084fc;
}

.coupon-info span {
    font-size: 12px;
    font-weight: 500;
    color: #e9d5ff;
}

.coupon-discount {
    font-size: 12px;
    color: #c084fc;
}

.coupon-item:hover .coupon-discount {
    color: #e9d5ff;
}

/* Order Summary Card */
.order-summary-card {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(103, 232, 249, 0.3);
    border-radius: 24px;
    overflow: hidden;
}

.order-summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(103, 232, 249, 0.2);
}

.order-summary-header svg {
    width: 20px;
    height: 20px;
    color: #06b6d4;
}

.order-summary-header span {
    font-size: 20px;
    font-weight: 600;
    color: #bae6fd;
}

.order-summary-content {
    padding: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.summary-row span:first-child {
    color: rgba(103, 232, 249, 0.7);
}

.summary-row span:last-child {
    color: #bae6fd;
}

.discount-row .discount-label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #4ade80;
}

.discount-row .discount-label svg {
    width: 12px;
    height: 12px;
}

.discount-amount {
    color: #4ade80 !important;
}

.summary-divider {
    height: 1px;
    background: rgba(103, 232, 249, 0.2);
    margin: 12px 0;
}

.total-row {
    padding-top: 16px;
}

.total-row span:first-child {
    font-size: 18px;
    font-weight: 700;
    color: #bae6fd;
}

.total-row span:last-child {
    font-size: 20px;
    font-weight: 700;
    color: #67e8f9;
}

.btn-checkout {
    width: 100%;
    height: 56px;
    margin: 24px 0;
    background: linear-gradient(to right, #a855f7, #ec4899, #06b6d4);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-checkout:hover {
    background: linear-gradient(to right, #9333ea, #db2777, #0891b2);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.3);
}

.btn-checkout-content,
.btn-checkout-processing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 10;
}

.btn-checkout::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.7s;
}

.btn-checkout:hover::before {
    transform: translateX(100%);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.security-features {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(103, 232, 249, 0.6);
}

.security-badge svg {
    width: 12px;
    height: 12px;
}

.security-note {
    text-align: center;
    font-size: 12px;
    color: rgba(103, 232, 249, 0.5);
}

/* Trust Card */
.trust-card {
    background: linear-gradient(to bottom right, 
        rgba(20, 83, 45, 0.3), 
        rgba(5, 46, 22, 0.2), 
        rgba(20, 83, 45, 0.3));
    backdrop-filter: blur(24px);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
}

.trust-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.trust-header svg {
    width: 20px;
    height: 20px;
    color: #4ade80;
}

.trust-header span {
    font-weight: 500;
    color: #86efac;
}

.trust-card p {
    font-size: 14px;
    color: rgba(134, 239, 172, 0.7);
    line-height: 1.6;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

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

.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-zoom-in {
    animation: zoomIn 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-left {
    animation: slideLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-right {
    animation: slideRight 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-summary-column {
        position: sticky;
        bottom: 0;
        background: rgba(15, 23, 42, 0.98);
        padding: 20px;
        margin: -20px;
        margin-top: 20px;
    }
}

@media (max-width: 640px) {
    .cart-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .cart-title {
        font-size: 2rem;
    }
    
    .cart-subtitle {
        font-size: 16px;
    }
    
    .cart-item-content {
        flex-direction: column;
    }
    
    .cart-item-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .quantity-controls {
        justify-content: space-between;
    }
    
    .promo-input-group {
        flex-direction: column;
    }
    
    .btn-apply-promo {
        width: 100%;
    }
}