/* Cart Page Styles */
/* Mobile Header Styles */
.logo-text {
    color: var(--light-color);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-highlight {
    color: var(--primary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.header-icons {
    display: flex;
    align-items: center;
}

.cart-icon {
    color: var(--light-color);
    font-size: 1.2rem;
    margin-right: 15px;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: var(--light-color);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.2rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    background-color: var(--secondary-color);
    padding: 10px 0;
    position: absolute;
    width: 100%;
    z-index: 998;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav ul li:last-child {
    border-bottom: none;
}

.mobile-nav ul li a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

/* Page Title Section */
.page-title {
    background-color: var(--secondary-color);
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-title h1 {
    color: var(--light-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.breadcrumb {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--light-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

/* Cart Section */
.cart-section {
    padding: 40px 0 0;
    /* min-height verwijderd om wit vlak weg te halen */
}

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

.cart-items-container {
    flex: 1 1 65%;
    min-width: 300px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cart-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.clear-cart-btn {
    border: none;
    background: transparent;
    color: #ff4d4d;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-cart-btn:hover {
    color: #ff0000;
    text-decoration: underline;
}

.empty-cart {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    margin-right: 20px;
    border-radius: 5px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h3 {
    font-size: 16px;
    margin: 0 0 8px;
    font-weight: 500;
}

.cart-item-price {
    color: #333;
    font-weight: 600;
    margin: 0 0 12px;
}

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

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background-color: #e9e9e9;
}

.quantity-input {
    width: 40px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    margin: 0 5px;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.remove-item {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 10px;
    transition: color 0.3s ease;
}

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

.cart-summary {
    flex: 1 1 25%;
    min-width: 300px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    height: fit-content;
}

.cart-summary h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
}

.summary-divider {
    height: 1px;
    background-color: #eee;
    margin: 15px 0;
}

.summary-item.total {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 25px;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.continue-shopping {
    margin: 20px 0;
    text-align: center;
}

.continue-shopping a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.continue-shopping a i {
    margin-right: 5px;
}

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

.payment-methods {
    margin-top: 20px;
    text-align: center;
}

.payment-methods p {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.payment-icons i {
    font-size: 24px;
    color: #555;
}

/* Side Cart */
.side-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100vh;
    background-color: var(--light-color);
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    visibility: hidden;
}

.side-cart.active {
    transform: translateX(0);
    visibility: visible;
}

.side-cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-cart-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-side-cart {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    padding: 5px;
}

.side-cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.side-cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.side-cart-item-image {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.side-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-cart-item-details {
    flex-grow: 1;
}

.side-cart-item-title {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 500;
}

.side-cart-item-price {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 8px;
}

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

.side-cart-item-quantity button {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.side-cart-item-quantity span {
    font-size: 14px;
}

/* Free shipping progress bar */
.free-shipping-progress {
    padding: 15px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.free-shipping-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.free-shipping-amount {
    font-weight: 600;
    color: #4CAF50;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.free-shipping-success {
    color: #4CAF50;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% { 
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.3s ease;
}

.side-cart-footer {
    padding: 0;
    background: #fff;
}

.cart-summary {
    padding: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.cart-subtotal,
.cart-shipping,
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cart-total {
    font-weight: 600;
    font-size: 16px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.side-cart-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.free-shipping-progress {
    padding: 15px 20px;
    background: #f5f5f5;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.continue-shopping-btn {
    padding: 12px;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-shopping-btn:hover {
    background: #f5f5f5;
}

.side-cart-features {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.shipping-info {
    padding: 15px 20px;
    background: #f8f8f8;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.shipping-info i {
    color: #4CAF50;
    font-size: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.feature-item i {
    font-size: 16px;
    color: #4CAF50;
}

.side-cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
}

.side-cart-checkout {
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.side-cart-checkout:hover {
    background: #1a1a1a;
}

.side-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.side-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Cart notification */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    max-width: 350px;
    animation: slideIn 0.3s ease forwards;
}

.cart-notification-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

.cart-notification-content i {
    color: #4CAF50;
    font-size: 20px;
    margin-right: 12px;
}

.cart-notification-content span {
    flex-grow: 1;
    font-size: 14px;
}

.close-notification {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
    margin-left: 10px;
}

.close-notification:hover {
    color: #666;
}

.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Cart icon count */
.cart-icon {
    position: relative;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 30px;
    }
    
    .cart-item-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .remove-item {
        right: 0;
        top: 20px;
    }
    
    .cart-items-container, .cart-summary {
        flex: 1 1 100%;
    }
}
