/* V_produitoffert - Front styles */

#v-produitoffert-wrapper {
    margin-top: 30px;
}

/* Section styling */
.v-gift-section,
.v-samples-section {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.v-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.v-section-icon {
    font-size: 24px;
}

.v-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Gift section */
.v-gift-content {
    padding: 20px;
}

.v-tier-block {
    margin-bottom: 25px;
    
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.v-tier-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.v-progress-wrapper {
    margin-bottom: 15px;
}

.v-progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.v-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.v-tier-locked .v-progress-fill {
    background: linear-gradient(90deg, #bdbdbd, #e0e0e0);
}
.v-tier-locked{ margin-top: 50px;}
.v-progress-text {
    font-size: 14px;
    color: #555;
    margin: 0;
}

.v-progress-text strong {
    color: #333;
}

.v-progress-complete {
    color: #2e7d32;
    font-weight: 500;
}

.v-progress-complete strong {
    color: #2e7d32;
}

.v-gift-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #f8fdf8;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.v-gift-card-locked {
    background: #f9f9f9;
    border-color: #e0e0e0;
    opacity: 0.75;
}

.v-gift-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}

.v-gift-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.v-gift-info {
    flex: 1;
}

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

.v-gift-price {
    font-size: 14px;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 10px;
}

.v-btn-gift {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.v-btn-gift-active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.v-btn-gift-active:hover {
    background-color: #555;
    border-color: #555;
    color: #fff;
}

.v-gift-added {
    background-color: #fff;
    color: #4caf50;
    border-color: #4caf50;
    cursor: pointer;
}

.v-gift-added:hover {
    background-color: #f1f8f1;
    color: #388e3c;
}

.v-btn-gift-disabled {
    background-color: #e0e0e0;
    color: #999;
    border-color: #e0e0e0;
    cursor: not-allowed;
    font-weight: 500;
}

.v-btn-gift-disabled:hover {
    background-color: #e0e0e0;
    color: #999;
}

/* Samples section */
.v-samples-content {
    padding: 20px;
}

.v-samples-remaining {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    font-weight: 500;
}

.v-samples-count {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.v-samples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.v-sample-card {
    position: relative;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.v-sample-card:hover {
    border-color: #999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.v-sample-card.v-sample-selected {
    border-color: #4caf50;
    background: #f8fdf8;
}

.v-sample-card.v-sample-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.v-sample-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
}

.v-sample-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4caf50;
}

.v-sample-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
}

.v-sample-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.v-sample-name {
    font-size: 12px;
    color: #333;
    line-height: 1.3;
    font-weight: 500;
}

/* Loading state */
.v-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.v-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: v-spin 0.6s linear infinite;
}

@keyframes v-spin {
    to { transform: rotate(360deg); }
}

/* Toast notification */
.v-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background: #333;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-width: 300px;
}

.v-toast.v-toast-show {
    opacity: 1;
    transform: translateY(0);
}

.v-toast.v-toast-error {
    background: #d32f2f;
}

.v-toast.v-toast-success {
    background: #2e7d32;
}

/* Locked quantity in cart for gifts/samples */
.v-qty-locked input {
    text-align: center;
    background: #f5f5f5 !important;
    cursor: not-allowed;
    border-color: #e0e0e0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .v-gift-card {
        flex-direction: column;
        text-align: center;
    }

    .v-gift-image {
        width: 80px;
        height: 80px;
    }

    .v-samples-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .v-sample-image {
        width: 70px;
        height: 70px;
    }
}
