/* Sample Cart Styles */

/* Sample button states */
.vc-sample-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vc-sample-btn.in-cart {
    background: #5cb85c;
    border-color: #5cb85c;
    color: white;
}

.vc-sample-btn.in-cart:hover {
    background: #4cae4c;
    border-color: #4cae4c;
}

.vc-sample-btn-added {
    color: #fff !important;
}

.vc-sample-btn.added-animation {
    animation: buttonPulse 0.6s ease;
}

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

/* Loading state */
.vc-loading {
    display: inline-block;
    animation: loadingDots 1.4s infinite;
}

@keyframes loadingDots {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}

/* Sample cart widget */
.vc-sample-cart-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
}

.vc-sample-cart-widget.visible {
    opacity: 1;
    transform: translateY(0);
}

.vc-sample-cart-widget:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.vc-sample-cart-widget.bounce {
    animation: widgetBounce 0.6s ease;
}

@keyframes widgetBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-10px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-5px); }
}

.vc-sample-cart-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.vc-sample-cart-icon svg {
    width: 20px;
    height: 20px;
}

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

.vc-sample-cart-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vc-sample-cart-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.vc-sample-cart-link {
    font-size: 13px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.vc-sample-cart-link:hover {
    text-decoration: underline;
}

/* Messages */
.vc-message {
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    text-align: center;
}

.vc-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vc-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.vc-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Particle effect */
.vc-particle {
    font-size: 24px;
    font-weight: bold;
    color: #5cb85c;
    z-index: 9999;
}

/* Sample overview page */
.vc-sample-overview {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.vc-sample-header {
    text-align: center;
    margin-bottom: 50px;
}

.vc-sample-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}

.vc-sample-header p {
    font-size: 18px;
    color: #666;
}

.vc-sample-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eb0052;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: bold;
    margin-left: 10px;
    font-size: 16px;
    vertical-align: middle;
    position: relative;
    top: -2px; /* Fijnafstelling voor betere uitlijning met de tekst */
}

/* Empty cart state */
.vc-empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.vc-empty-icon {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.vc-empty-cart h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #666;
}

.vc-empty-cart p {
    font-size: 16px;
    color: #999;
    margin-bottom: 30px;
}

.vc-empty-cart .button {
    display: inline-block;
    padding: 12px 30px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.vc-empty-cart .button:hover {
    background: #222;
    transform: translateY(-2px);
}

/* Sample grid */
.vc-sample-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.vc-sample-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.vc-sample-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f5f5f5;
}

.vc-sample-info {
    padding: 20px;
}

.vc-sample-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.vc-sample-sku {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
}

.vc-sample-remove {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #dc3545;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.vc-sample-remove:hover {
    color: #c82333;
    text-decoration: underline;
}

/* Form section */
.vc-sample-form-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 30px;
}

.vc-sample-form-section h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.vc-form-section {
    margin-bottom: 30px;
}

.vc-form-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vc-form-section-title:after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s ease;
}

.vc-form-section-title.collapsed:after {
    transform: rotate(-90deg);
}

.vc-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.vc-form-group {
    margin-bottom: 20px;
}

.vc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.vc-form-group label .required {
    color: #dc3545;
}

.vc-form-group input,
.vc-form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.vc-form-group input:focus,
.vc-form-group textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.vc-form-group input.error {
    border-color: #dc3545;
}

.vc-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit section */
.vc-submit-section {
    text-align: center;
    padding-top: 20px;
}

.vc-submit-button {
    display: inline-block;
    padding: 15px 40px;
    background: #333;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vc-submit-button:hover {
    background: #222;
    transform: translateY(-2px);
}

.vc-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Info boxes */
.vc-info-box {
    background: #f8f9fa;
    border-left: 4px solid #000;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.vc-info-box p {
    margin: 5px 0;
    color: #666;
}

/* Success modal */
.vc-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.vc-success-modal-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.vc-success-icon {
    width: 80px;
    height: 80px;
    background: #5cb85c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.vc-success-modal h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.vc-success-modal p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.vc-success-loading {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.vc-success-loading span {
    width: 10px;
    height: 10px;
    background: #333;
    border-radius: 50%;
    animation: loadingBounce 1.4s infinite ease-in-out;
}

.vc-success-loading span:nth-child(1) { animation-delay: -0.32s; }
.vc-success-loading span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .vc-sample-cart-widget {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
    }
    
    .vc-sample-cart-content {
        display: none;
    }
    
    .vc-sample-overview {
        padding: 20px 15px;
    }
    
    .vc-sample-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .vc-sample-form-section {
        padding: 20px;
    }
    
    .vc-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Add more link */
.vc-sample-add-more {
    text-align: center;
    margin: 40px 0;
}

.vc-sample-add-more a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: white;
    color: #333;
    border: 2px solid #333;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.vc-sample-add-more a:hover {
    background: #333;
    color: white;
}

/* Max reached message */
.vc-sample-max-reached {
    text-align: center;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    color: #856404;
    margin: 20px 0;
}