/* Responsive for new cart structure */
@media (max-width: 992px) {
  .cart-container {
    flex-direction: column;
    gap: 15px;
  }
  .cart-items, .cart-summary {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }
  .item-image img {
    width: 100%;
    height: auto;
  }
}
@media (max-width: 576px) {
  .cart-section {
    margin: 10px 0;
  }
  .cart-title {
    font-size: 1.1rem;
  }
  .cart-item {
    padding: 5px;
  }
}
/* Cart Page Styles */

.cart-section {
    margin: 30px 0;
}

.cart-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1C1C1C;
}

.cart-container {
    display: flex;
    gap: 20px;
}

/* Cart Items */
.cart-items {
    flex: 1;
}

.cart-item {
    display: flex;
    background-color: white;
    border: 1px solid #DEE2E7;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.item-image {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.item-details {
    flex: 1;
}

.item-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1C1C1C;
}

.item-attributes {
    color: #8B96A5;
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.item-actions {
    display: flex;
    gap: 15px;
}

.btn-remove,
.btn-save {
    background: none;
    border: none;
    color: #0D6EFD;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.btn-remove:hover {
    color: #EB001B;
}

.btn-save:hover {
    color: #0B5ED7;
}

.item-price {
    font-weight: 600;
    font-size: 1.125rem;
    color: #1C1C1C;
    margin: 0 20px;
    flex-shrink: 0;
    width: 80px;
    text-align: right;
}

.item-quantity {
    flex-shrink: 0;
    width: 100px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #DEE2E7;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
}

.quantity-selector span {
    font-size: 0.875rem;
    color: #1C1C1C;
}

.dropdown-icon {
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 40px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    color: #0D6EFD;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-back:hover {
    color: #0B5ED7;
}

.btn-back::before {
    content: '←';
    margin-right: 8px;
}

.btn-remove-all {
    background: none;
    border: none;
    color: #EB001B;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.btn-remove-all:hover {
    color: #C00016;
}

/* Cart Summary */
.cart-summary {
    width: 280px;
    flex-shrink: 0;
}

.coupon-section {
    background-color: white;
    border: 1px solid #DEE2E7;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.coupon-section h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #1C1C1C;
}

.coupon-form {
    display: flex;
}

.coupon-input {
    flex: 1;
    border: 1px solid #DEE2E7;
    border-radius: 6px 0 0 6px;
    padding: 8px 12px;
    font-size: 0.875rem;
}

.btn-apply {
    background-color: #0D6EFD;
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    padding: 8px 15px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-apply:hover {
    background-color: #0B5ED7;
}

.order-summary {
    background-color: white;
    border: 1px solid #DEE2E7;
    border-radius: 6px;
    padding: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: #505050;
}

.summary-row.total {
    font-weight: 600;
    color: #1C1C1C;
    font-size: 1rem;
    border-top: 1px solid #DEE2E7;
    padding-top: 12px;
    margin-top: 12px;
}

.price {
    color: #1C1C1C;
}

.discount {
    color: #EB001B;
}

.btn-checkout {
    width: 100%;
    background-color: #00B517;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin: 15px 0;
    transition: background-color 0.3s ease;
}

.btn-checkout:hover {
    background-color: #009714;
}

.payment-methods {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.payment-methods img {
    height: 24px;
    width: auto;
    margin: 5px;
}

/* Cart Features */
.cart-features {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
}

.feature {
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #DEE2E7;
    border-radius: 6px;
    padding: 20px;
    width: 32%;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #E3F0FF;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: #1C1C1C;
}

.feature-text p {
    font-size: 0.875rem;
    color: #8B96A5;
    margin-bottom: 0;
}

/* Saved Items */
.saved-items {
    margin: 40px 0;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.saved-items h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1C1C1C;
}

.saved-items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.saved-items .product-card {
    background: #fff;
    border: 1px solid #DEE2E7;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.saved-items .product-image {
    width: 100%;
    height: 200px; /* Fixed height */
    object-fit: contain; /* This ensures full image is visible */
    margin-bottom: 12px;
    background: #f7f7f9;
    padding: 8px;
    border-radius: 4px;
}

.saved-items .product-price {
    font-weight: 600;
    color: #1C1C1C;
    font-size: 16px;
    margin-bottom: 8px;
}

.saved-items .product-title {
    color: #505050;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1; /* This helps maintain consistent card heights */
}

.saved-items .btn-move-to-cart {
    width: 100%;
    padding: 8px;
    background: #0D6EFD;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .saved-items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .saved-items .product-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .saved-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .saved-items .product-image {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .saved-items-grid {
        grid-template-columns: 1fr;
    }
    
    .saved-items .product-image {
        height: 200px;
    }
}

/* Card UI Enhancement */
.card-ui {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 24px;
    margin-bottom: 24px;
    transition: box-shadow 0.2s;
}

.card-ui:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.cart-item .item-left {
    flex: 0 0 80px;
    margin-right: 24px;
}

.cart-item .product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    background: #f5f5f5;
}

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

.cart-item .item-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item .item-attributes {
    color: #888;
    font-size: 15px;
    margin-bottom: 4px;
}

.cart-item .item-seller {
    color: #555;
    font-size: 15px;
    margin-bottom: 12px;
}

.cart-item .item-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    background: #f3f4f6;
    color: #222;
    transition: background 0.2s;
}

.btn:hover {
    background: #e0e7ef;
}

.btn-remove {
    background: #ffeaea;
    color: #d32f2f;
}

.btn-remove:hover {
    background: #ffd6d6;
}

.btn-save {
    background: #eaf6ff;
    color: #1976d2;
}

.btn-save:hover {
    background: #d6eaff;
}

.cart-item .item-right {
    flex: 0 0 120px;
    text-align: right;
}

.cart-item .item-price {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.quantity-dropdown {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 15px;
    background: #f9f9f9;
}

.saved-items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.product-card.card-ui {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    min-height: 260px;
}

.product-card .product-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
    background: #f5f5f5;
}

.product-card .product-info {
    margin-bottom: 12px;
}

.product-card .product-price {
    font-size: 17px;
    font-weight: 600;
    color: #222;
}

.product-card .product-title {
    font-size: 15px;
    color: #555;
    margin-top: 4px;
}

.btn-move-to-cart {
    background: #eaf6ff;
    color: #1976d2;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.btn-move-to-cart:hover {
    background: #d6eaff;
}

.btn-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .saved-items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .cart-container {
        flex-direction: column;
    }
    
    .cart-summary {
        width: 100%;
    }
    
    .cart-features {
        flex-wrap: wrap;
    }
    
    .feature {
        width: 48%;
        margin-bottom: 20px;
    }
    
    .saved-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cart-item {
        flex-wrap: wrap;
    }
    
    .item-details {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .item-price {
        margin-left: auto;
    }
    
    .feature {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .saved-items-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-back,
    .btn-remove-all {
        width: 100%;
        text-align: center;
    }
}