/* Shopping Cart Page Styles */

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 60px;
    min-height: 60vh;
}

.cart-header {
    text-align: center;
    margin-bottom: 40px;
}

.cart-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.cart-header h1 i {
    color: #00B894;
    margin-right: 10px;
}

.cart-subtitle {
    color: #666;
    font-size: 1.1rem;
}

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

.empty-cart-icon {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 30px;
}

.empty-cart h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #666;
    max-width: 400px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.empty-cart-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-cart-actions .btn-primary,
.empty-cart-actions .btn-secondary {
    padding: 15px 30px;
}

/* Cart Content */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* Cart Items */
.cart-items {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.cart-items-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 50px;
    gap: 15px;
    padding: 20px 25px;
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.cart-items-list {
    padding: 0;
}

/* Cart Item */
.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 50px;
    gap: 15px;
    padding: 25px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-product {
    display: flex;
    gap: 15px;
    align-items: center;
}

.item-image {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.item-image img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.item-info h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
}

.item-info p {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}

.item-origin {
    font-size: 0.8rem;
    color: #00B894;
}

.item-price {
    font-weight: 600;
    color: #333;
}

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

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-value {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.item-total {
    font-weight: 700;
    color: #00B894;
    font-size: 1.1rem;
}

.item-remove {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
    padding: 5px;
}

.item-remove:hover {
    color: #e74c3c;
}

/* Cart Sidebar */
.cart-sidebar {
    position: sticky;
    top: 100px;
}

.cart-summary {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.cart-summary h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: #555;
}

.summary-row.total {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    padding-top: 20px;
    margin-top: 15px;
    border-top: 2px solid #eee;
}

.summary-row.discount {
    color: #e74c3c;
}

.free-shipping {
    color: #00B894;
    font-weight: 600;
}

/* Promo Code */
.promo-code-section {
    padding: 15px 0;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.promo-input {
    display: flex;
    gap: 10px;
}

.promo-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
}

.promo-input button {
    padding: 12px 20px;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.promo-input button:hover {
    background: #555;
}

.promo-message {
    font-size: 0.85rem;
    margin-top: 8px;
}

.promo-message.success {
    color: #00B894;
}

.promo-message.error {
    color: #e74c3c;
}

/* Daily Cost */
.daily-cost {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e8f8f5;
    padding: 12px 15px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #555;
}

.daily-cost i {
    color: #00B894;
}

.daily-cost strong {
    color: #00B894;
}

/* Checkout Button */
.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #00B894 0%, #00a085 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.3);
    color: white;
}

.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #888;
}

.secure-checkout i {
    color: #00B894;
}

/* Subscription Benefits */
.subscription-benefits {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.subscription-benefits h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #333;
    margin-bottom: 15px;
}

.subscription-benefits h4 i {
    color: #00B894;
}

.subscription-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subscription-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: #555;
}

.subscription-benefits li i {
    color: #00B894;
    font-size: 0.8rem;
}

/* Continue Shopping */
.continue-shopping {
    margin-top: 30px;
}

.continue-shopping a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00B894;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.continue-shopping a:hover {
    color: #00a085;
}

/* Cart Icon in Navigation */
.cart-icon {
    position: relative;
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.cart-icon:hover,
.cart-icon.active {
    color: #00B894;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #00B894;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count:empty,
.cart-count[data-count="0"] {
    display: none;
}

/* Recommended Section */
.recommended-section {
    background: #f8f9fa;
    padding: 60px 20px;
}

.recommended-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 40px;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.recommended-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.recommended-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.recommended-item img {
    max-width: 60px;
    margin-bottom: 15px;
}

.recommended-item h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
}

.recommended-item p {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.recommended-item .price {
    font-weight: 600;
    color: #00B894;
    margin-bottom: 15px;
}

.recommended-item .btn-add {
    padding: 10px 20px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.recommended-item .btn-add:hover {
    background: #00B894;
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        position: static;
    }
    
    .cart-items-header {
        display: none;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .item-product {
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
    }
    
    .cart-item > div:not(.item-product) {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .cart-item > div:not(.item-product)::before {
        content: attr(data-label);
        font-weight: 500;
        color: #888;
    }
}

@media (max-width: 768px) {
    .cart-container {
        padding: 80px 15px 40px;
    }
    
    .cart-header h1 {
        font-size: 1.8rem;
    }
    
    .empty-cart-icon {
        font-size: 4rem;
    }
    
    .empty-cart-actions {
        flex-direction: column;
    }
    
    .cart-summary {
        padding: 20px;
    }
}

/* Add to Cart Animation */
@keyframes addToCart {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cart-icon.animate {
    animation: addToCart 0.3s ease;
}

/* Toast Notification */
.cart-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    animation: slideInUp 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cart-toast.success {
    background: #00B894;
}

.cart-toast i {
    font-size: 1.2rem;
}

.cart-toast a {
    color: white;
    text-decoration: underline;
    margin-left: 10px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pack Badge */
.pack-badge {
    background: linear-gradient(135deg, #00B894, #00a085);
    color: white;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Item Ingredients (for Packs) */
.item-ingredients {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}
