/* Shop Styles */
.shop-section {
    padding: 40px 0;
    /* background-color: #f9f9f9; */
}

.shop-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background-color: #fff;
    border: 2px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #2c5530;
    color: #fff;
    border-color: #2c5530;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #2c5530;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c5530;
}

.product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 15px;
}

.product-actions {
    margin-top: auto;
    padding-top: 15px;
}

.btn-add-to-cart,
.btn-out-of-stock,
.btn-configure-product {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.btn-add-to-cart:last-child,
.btn-out-of-stock:last-child,
.btn-configure-product:last-child {
    margin-bottom: 0;
}

.btn-add-to-cart {
    background-color: #2c5530;
    color: #fff;
}

.btn-add-to-cart:hover {
    background-color: #1e3a21;
    transform: translateY(-1px);
}

.btn-add-to-cart.added {
    background-color: #4caf50;
}

.btn-configure-product {
    background-color: #f0f7f1;
    color: #2c5530;
    border: 2px solid #2c5530;
}

.btn-configure-product:hover {
    background-color: #2c5530;
    color: #fff;
}

.btn-configure-product.active {
    background-color: #2c5530;
    color: #fff;
}

.btn-out-of-stock {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

/* Cart Toggle Button */
.cart-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #2c5530;
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(44, 85, 48, 0.4);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4444;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 10000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

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

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

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

.cart-header h3 {
    margin: 0;
    font-size: 18px;
    color: #2c5530;
}

.cart-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.cart-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.cart-empty {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-style: italic;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

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

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c5530;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 8px;
}

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

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

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

.qty-number {
    font-size: 14px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    color: #ff4444;
}

.cart-summary {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

.cart-total {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
    color: #2c5530;
}

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

.btn-checkout,
.btn-clear-cart {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-checkout {
    background-color: #2c5530;
    color: #fff;
}

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

.btn-clear-cart {
    background-color: transparent;
    color: #666;
    border: 1px solid #e0e0e0;
}

.btn-clear-cart:hover {
    background-color: #f0f0f0;
}

/* Product Variants Styling */
.product-variants {
    margin: 15px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding-top: 15px;
        padding-bottom: 15px;
    }
}

.variant-group {
    margin-bottom: 15px;
}

.variant-group:last-child {
    margin-bottom: 0;
}

.variant-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 8px;
}

/* Price Options */
.price-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.price-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.price-option:hover {
    border-color: #2c5530;
}

.price-option input[type="radio"] {
    margin-right: 6px;
    accent-color: #2c5530;
}

.price-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: #2c5530;
}

.price-option:has(input[type="radio"]:checked) {
    border-color: #2c5530;
    background-color: #f0f7f1;
}

/* Custom Price Input */
.custom-price-input {
    margin-top: 10px;
}

.custom-price {
    width: 120px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.custom-price:focus {
    outline: none;
    border-color: #2c5530;
}

/* Variant Selects */
.variant-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.variant-select:focus {
    outline: none;
    border-color: #2c5530;
}

.variant-select:hover {
    border-color: #999;
}

/* Subscription Options */
.subscription-options {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 15px;
}

/* Product Price Display */
.product-price-display {
    font-size: 20px;
    font-weight: 700;
    color: #2c5530;
    margin: 15px 0;
}

.price-from {
    font-size: 16px;
    font-weight: 400;
    color: #666;
}

.dynamic-price,
.static-price {
    font-size: 20px;
    font-weight: 700;
    color: #2c5530;
}

/* Enhanced Product Cards for Variants */
.product-card[data-category="abonnementen"] {
    background: linear-gradient(135deg, #f8fff9 0%, #f0f7f1 100%);
}

.product-card[data-category="abonnementen"] .product-badge {
    background-color: #4caf50;
}

/* Mobile Shop Responsive */
@media (max-width: 768px) {
    .shop-filters {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-variants {
        margin: 10px 0;
        padding: 12px;
    }
    
    .price-options {
        flex-direction: column;
        gap: 6px;
    }
    
    .price-option {
        padding: 10px 12px;
        justify-content: flex-start;
    }
    
    .variant-select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px;
    }
    
    .custom-price {
        width: 100%;
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px;
    }
    
    .cart-sidebar {
        width: 100vw;
        right: -100vw;
    }
    
    .cart-toggle {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
} 