/* ═══════════════════════════════════════════════════════════════════
    PRODUCT SINGLE PAGE STYLES
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
    Product Detail Container
   ───────────────────────────────────────────────────────────────── */
.wv-product-detail {
    margin: 2rem auto;
    padding: 2rem;
    background: var(--wv-card-bg, #ffffff);
    border-radius: 12px;
    /*max-width: 800px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);*/
}

/* ─────────────────────────────────────────────────────────────────
    Product Header
   ───────────────────────────────────────────────────────────────── */
.wv-product-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--wv-border-color, #e5e7eb);
}

.wv-product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wv-heading-color, #1f2937);
    /*margin: 0 0 1rem 0;*/
    margin: 0;
    line-height: 1.2;
}

/* ─────────────────────────────────────────────────────────────────
    Product Price
   ───────────────────────────────────────────────────────────────── */
.wv-product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wv-price-current {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent, #ff6b35);
}

.wv-price-old {
    font-size: 1.25rem;
    color: var(--wv-text-muted, #9ca3af);
    text-decoration: line-through;
}

/* ─────────────────────────────────────────────────────────────────
    Product Actions (Add to Cart)
   ───────────────────────────────────────────────────────────────── */
.wv-product-actions {
    margin: 1.5rem 0;
}

.wv-btn-add-to-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--accent, #ff6b35);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(var(--accent-rgb), 0.2);
}

.wv-btn-add-to-cart:hover {
    background: var(rgba(var(--accent-rgb), .8), #e85a2a);
    box-shadow: 0 4px 8px rgba(var(--accent-rgb), 0.3);
    transform: translateY(-1px);
}

.wv-btn-add-to-cart:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(255, 107, 53, 0.2);
}

.wv-btn-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.wv-btn-add-to-cart svg {
    flex-shrink: 0;
}

/* Success state for add-to-cart button */
.dm-lb__add--success {
    background: var(--wv-success-color, #10b981) !important;
    animation: pulse-success 0.4s ease-out;
}

@keyframes pulse-success {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ─────────────────────────────────────────────────────────────────
    Product Categories
   ───────────────────────────────────────────────────────────────── */
.wv-product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.wv-category-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--wv-category-bg, #f3f4f6);
    color: var(--wv-category-text, #4b5563);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wv-category-badge:hover {
    background: var(--wv-category-hover-bg, #e5e7eb);
    color: var(--wv-category-hover-text, #1f2937);
}

/* ─────────────────────────────────────────────────────────────────
    Food Flags
   ───────────────────────────────────────────────────────────────── */
.wv-product-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.wv-flag {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: var(--wv-flag-bg, #fef3c7);
    border-radius: 6px;
    font-size: 0.875rem;
}

.wv-flag img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.wv-flag-label {
    color: var(--wv-flag-text, #92400e);
    font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────────
    Daily Dish Badge
   ───────────────────────────────────────────────────────────────── */
.wv-daily-dish-badge {
    margin-bottom: 1rem;
}

.wv-daily-dish-badge .badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--wv-daily-bg, #10b981);
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* ─────────────────────────────────────────────────────────────────
    Product Content
   ───────────────────────────────────────────────────────────────── */
.wv-product-content {
    margin-bottom: 2rem;
}

.wv-product-excerpt {
    font-size: 1.125rem;
    color: var(--wv-text-color, #374151);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.wv-product-description {
    font-size: 1rem;
    color: var(--wv-text-secondary, #6b7280);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.wv-product-description p {
    margin-bottom: 1rem;
}

.wv-product-description p:last-child {
    margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────────────
    Product Tags
   ───────────────────────────────────────────────────────────────── */
.wv-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.wv-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--wv-tag-bg, #dbeafe);
    color: var(--wv-tag-text, #1e40af);
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────────
    Product Image
   ───────────────────────────────────────────────────────────────── */
.wv-product-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wv-product-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ─────────────────────────────────────────────────────────────────
    Back Button
   ───────────────────────────────────────────────────────────────── */
.wv-product-back {
    margin-top: 2rem;
    text-align: center;
}

.wv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.wv-btn-secondary {
    background: var(--wv-btn-secondary-bg, #f3f4f6);
    color: var(--wv-btn-secondary-text, #374151);
    border: 1px solid var(--wv-border-color, #e5e7eb);
}

.wv-btn-secondary:hover {
    background: var(--wv-btn-secondary-hover-bg, #e5e7eb);
    color: var(--wv-btn-secondary-hover-text, #1f2937);
}

.wv-btn svg {
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
    DARK MODE
   ═══════════════════════════════════════════════════════════════════ */
/*
@media (prefers-color-scheme: dark) {
    .wv-product-detail {
        --wv-card-bg: #1f2937;
        --wv-border-color: #374151;
    }

    .wv-product-title {
        --wv-heading-color: #f9fafb;
    }

    .wv-category-badge {
        --wv-category-bg: #374151;
        --wv-category-text: #d1d5db;
        --wv-category-hover-bg: #4b5563;
        --wv-category-hover-text: #f9fafb;
    }

    .wv-flag {
        --wv-flag-bg: #451a03;
        --wv-flag-text: #fef3c7;
    }

    .wv-product-excerpt {
        --wv-text-color: #e5e7eb;
    }

    .wv-product-description {
        --wv-text-secondary: #d1d5db;
    }

    .wv-tag {
        --wv-tag-bg: #1e3a8a;
        --wv-tag-text: #dbeafe;
    }

    .wv-btn-secondary {
        --wv-btn-secondary-bg: #374151;
        --wv-btn-secondary-text: #d1d5db;
        --wv-btn-secondary-hover-bg: #4b5563;
        --wv-btn-secondary-hover-text: #f9fafb;
        --wv-border-color: #4b5563;
    }
}*/

/* ═══════════════════════════════════════════════════════════════════
    RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .wv-product-detail {
        padding: 1.5rem;
        margin: 1rem;
    }

    .wv-product-title {
        font-size: 1.5rem;
    }

    .wv-price-current {
        font-size: 1.5rem;
    }

    .wv-price-old {
        font-size: 1.125rem;
    }

    .wv-product-excerpt {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .wv-product-detail {
        padding: 1rem;
        margin: 0.5rem;
    }

    .wv-product-title {
        font-size: 1.375rem;
    }

    .wv-product-categories {
        gap: 0.375rem;
    }

    .wv-category-badge {
        font-size: 0.8125rem;
        padding: 0.25rem 0.5rem;
    }

    .wv-product-flags {
        gap: 0.5rem;
    }

    .wv-flag {
        padding: 0.25rem 0.5rem;
        font-size: 0.8125rem;
    }

    .wv-flag img {
        width: 16px;
        height: 16px;
    }
}
