/* Cart Styles */

/* Header Cart Icon */
.header-cart-container {
    flex-shrink: 0;
    margin-left: 15px;
    position: relative;
}

.header-cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    margin-top: 0;
}

.header-cart-link:hover {
    background-color: #f5f5f5;
}

.header-cart-link.active {
    background-color: #0066cc;
    color: white;
}

.cart-icon-large {
    font-size: 24px;
    line-height: 1;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}

/* Add to Cart Button on Grid Items */
.cart-container {
    padding: 10px;
    border-top: 1px solid #eee;
   /* background: #f8f9fa;*/
}
.featured-item .cart-container {
    padding: 0px;
}

.add-to-cart-btn {
    width: 100%;
   /* padding: 10px 15px;*/
    background: #c9d3a1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: "Open Sans", Arial, sans-serif;
}

.add-to-cart-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn.added {
    background: #f8a7a7;
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.cart-icon {
    font-size: 18px;
}

.cart-text {
    font-size: 14px;
}

/* Cart Page Styles */
.cart-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-empty-message {
    font-size: 24px;
    color: #666;
    margin-bottom: 20px;
}

.cart-back-link {
    display: inline-block;
    padding: 12px 24px;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cart-back-link:hover {
    background: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.cart-items-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cart-header {
    padding: 20px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cart-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.cart-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-clear-cart {
    padding: 10px 20px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: "Open Sans", Arial, sans-serif;
}

.btn-clear-cart:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-download-all {
    padding: 10px 20px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-download-all:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-download-all-large {
    padding: 15px 30px;
    font-size: 18px;
}

.cart-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
    gap: 15px;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

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

.cart-item-number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.cart-item-name {
    flex: 1;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.cart-item-remove {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.cart-item-remove:hover {
    background: #c82333;
    transform: scale(1.1);
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    background: #f8f9fa;
}

.cart-summary {
    font-size: 18px;
    color: #333;
}

.cart-summary strong {
    color: #0066cc;
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-actions {
        width: 100%;
    }
    
    .btn-clear-cart,
    .btn-download-all {
        flex: 1;
    }
    
    .cart-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-download-all-large {
        width: 100%;
    }
    
    .cart-item {
        flex-wrap: wrap;
    }
    
    .cart-item-name {
        flex-basis: calc(100% - 80px);
    }
}

