/* Mobile Cart Styles */
.cart-mobile-container {
    max-width: 414px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f8f8;
    color: #282c3f;
    min-height: 100vh;
    position: relative;
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-arrow {
    font-size: 20px;
    color: #282c3f;
    text-decoration: none;
    cursor: pointer;
}

.header-title {
    font-size: 16px;
    font-weight: 600;
    color: #282c3f;
    text-transform: uppercase;
}

.step-indicator {
    font-size: 12px;
    color: #94969f;
    text-transform: uppercase;
}

/* Content Container */
.content-container {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-bottom: 80px;
}

/* Delivery Section */
.delivery-section {
    background: #fff;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.delivery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.delivery-title {
    font-size: 14px;
    color: #282c3f;
}

.enter-pin {
    color: #ff3f6c;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
}

.items-count {
    background: #ff3f6c;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.delivery-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.delivery-icon {
    font-size: 16px;
    color: #94969f;
    cursor: pointer;
    transition: color 0.2s ease;
}

.delivery-icon:hover {
    color: #ff3f6c;
}

/* Product Item Styles */
.product-item {
    background: #fff;
    margin-bottom: 8px;
    position: relative;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.product-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-content {
    display: flex;
    padding: 16px;
    gap: 12px;
}

.product-image {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

.product-details {
    flex: 1;
}

.product-brand {
    font-size: 14px;
    font-weight: 600;
    color: #282c3f;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.product-title {
    font-size: 12px;
    color: #535766;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-options {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.option {
    font-size: 12px;
    color: #535766;
}

.qty-selector {
    border: 1px solid #d4d5d9;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 4px;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 14px;
    font-weight: 600;
    color: #282c3f;
}

.original-price {
    font-size: 12px;
    color: #94969f;
    text-decoration: line-through;
}

.discount {
    font-size: 12px;
    color: #ff905a;
    font-weight: 600;
    text-transform: uppercase;
}

.delivery-info {
    font-size: 11px;
    color: #14cda8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.remove-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 16px;
    color: #94969f;
    cursor: pointer;
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background: #f0f0f0;
    color: #ff3f6c;
}

.item-checkbox {
    position: absolute;
    bottom: 12px;
    right: 12px;
}

.cart-item-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #ff3f6c;
}

/* Login Section */
.login-section {
    background: #fff;
    padding: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 4px;
}

.login-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.login-content {
    flex: 1;
}

.login-text {
    font-size: 12px;
    color: #535766;
    margin-bottom: 4px;
    line-height: 1.3;
}

.login-link {
    color: #ff3f6c;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
}

.login-link:hover {
    text-decoration: underline;
}

/* Recommendations */
.recommendations {
    background: #fff;
    padding: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.rec-title {
    font-size: 14px;
    color: #282c3f;
    margin-bottom: 12px;
    font-weight: 600;
}

.rec-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
}

.rec-tab {
    padding: 6px 12px;
    border: 1px solid #d4d5d9;
    border-radius: 16px;
    font-size: 11px;
    color: #535766;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.rec-tab.active {
    background: #ff3f6c;
    color: white;
    border-color: #ff3f6c;
}

.rec-tab:hover {
    border-color: #ff3f6c;
}

.rec-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.rec-item {
    flex: 0 0 80px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.rec-item:hover {
    transform: translateY(-2px);
}

.rec-image {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 4px;
    border: 1px solid #f0f0f0;
}

.rec-price {
    font-size: 10px;
    color: #535766;
    font-weight: 600;
}

.selected-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #14cda8;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 600;
}

.items-selected {
    text-align: center;
    font-size: 11px;
    color: #535766;
    margin-top: 8px;
}

/* Offers Section */
.offers-section {
    background: #fff;
    margin-bottom: 8px;
    border-radius: 4px;
}

.offers-header {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.offers-icon {
    color: #ff905a;
    font-size: 16px;
}

.offers-title {
    font-size: 14px;
    font-weight: 600;
    color: #282c3f;
    text-transform: uppercase;
}

.offer-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f8f8f8;
    font-size: 12px;
    color: #535766;
    line-height: 1.4;
}

.show-more {
    color: #ff3f6c;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    display: inline-block;
    text-transform: uppercase;
    font-size: 11px;
}

.show-more:hover {
    text-decoration: underline;
}

/* Support Section */
.support-section {
    background: #fff;
    padding: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.support-title {
    font-size: 12px;
    color: #282c3f;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

.support-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.support-text {
    font-size: 12px;
    color: #535766;
}

.know-more {
    color: #ff3f6c;
    font-size: 12px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
}

.know-more:hover {
    text-decoration: underline;
}

.donation-amounts {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.donation-btn {
    padding: 6px 12px;
    border: 1px solid #d4d5d9;
    border-radius: 4px;
    font-size: 12px;
    color: #535766;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.donation-btn:hover,
.donation-btn.selected {
    background: #ff3f6c;
    color: white;
    border-color: #ff3f6c;
}

/* Coupons Section */
.coupons-section {
    background: #fff;
    padding: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.coupons-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.coupons-title {
    font-size: 14px;
    color: #282c3f;
    font-weight: 600;
    text-transform: uppercase;
}

.all-coupons {
    color: #ff3f6c;
    font-size: 12px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
}

.all-coupons:hover {
    text-decoration: underline;
}

.coupon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 4px;
}

.coupon-item:hover {
    background: #f8f8f8;
}

.coupon-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ff3f6c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #ff3f6c;
}

.coupon-text {
    flex: 1;
    font-size: 12px;
    color: #535766;
}

/* Price Details */
.price-details {
    background: #fff;
    padding: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.price-title {
    font-size: 14px;
    font-weight: 600;
    color: #282c3f;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
}

.price-label {
    color: #535766;
}

.price-value {
    color: #282c3f;
    font-weight: 600;
}

.price-value.discount {
    color: #14cda8;
}

.apply-coupon {
    color: #ff3f6c;
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
}

.apply-coupon:hover {
    text-decoration: underline;
}

.platform-fee {
    color: #ff3f6c;
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
}

.platform-fee:hover {
    text-decoration: underline;
}

.total-row {
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
    margin-top: 8px;
    font-weight: 600;
    font-size: 14px;
}

/* Bottom Section */
.bottom-section {
    background: #fff;
    padding: 12px 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 8px;
    border-radius: 4px;
}

.bottom-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #94969f;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bottom-icon:hover {
    background: #ff3f6c;
    color: white;
}

.items-selected-text {
    font-size: 11px;
    color: #535766;
    text-align: center;
    flex: 1;
    text-transform: uppercase;
}

/* Place Order Button */
.place-order-btn {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    padding: 16px;
    background: #ff3f6c;
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s ease;
    z-index: 1000;
}

.place-order-btn:hover {
    background: #e63658;
}

.place-order-btn:disabled {
    background: #d4d5d9;
    cursor: not-allowed;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    margin: 20px;
    border-radius: 8px;
}

.empty-cart-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-cart h3 {
    font-size: 18px;
    color: #282c3f;
    margin-bottom: 8px;
    font-weight: 600;
}

.empty-cart p {
    font-size: 14px;
    color: #535766;
    margin-bottom: 20px;
}

.continue-shopping-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #ff3f6c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.continue-shopping-btn:hover {
    background: #e63658;
    text-decoration: none;
    color: white;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff3f6c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Adjustments */
@media (max-width: 375px) {
    .header {
        padding: 10px 12px;
    }

    .product-content {
        padding: 12px;
    }

    .product-options {
        flex-direction: column;
        gap: 4px;
    }

    .price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .donation-amounts {
        justify-content: center;
    }
}

@media (min-width: 415px) {
    .cart-mobile-container {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
}

/* Animation Classes */
.fade-out {
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

.fade-in {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
}

/* Toast Notification Overrides for Mobile */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    left: 20px;
    z-index: 9999;
}

.toast {
    border-radius: 8px;
    font-size: 14px;
}

/* Custom Scrollbar */
.content-container::-webkit-scrollbar {
    width: 4px;
}

.content-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.content-container::-webkit-scrollbar-thumb {
    background: #ff3f6c;
    border-radius: 4px;
}

.content-container::-webkit-scrollbar-thumb:hover {
    background: #e63658;
}