/**
 * Product View Page — Redesigned Layout
 */

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.pv-hero {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    overflow: hidden;
    margin-bottom: 3rem;
}

.pv-gallery-col {
    border-right: 1px solid #f0f0f0;
}

.pv-info-col {
    padding: 0;
}

.pv-info {
    padding: 3rem 3.2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ── Stock badge ── */
.pv-badge {
    font-size: 1.1rem;
    padding: .35em .75em;
    border-radius: 20px;
    letter-spacing: .02em;
}

/* ── Title ── */
.pv-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.25;
    color: #222;
    margin: .6rem 0 1rem;
}

/* ── Meta row: rating + category path ── */
.pv-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: .6rem;
}

.pv-meta-row .ratings-container {
    margin-bottom: 0;
}

.pv-meta-sep {
    color: #ddd;
    font-size: 1.4rem;
}

.pv-category-path a {
    color: #888;
    transition: color .2s;
}

.pv-category-path a:hover {
    color: #0d9488;
}

/* ── Producer ── */
.pv-producer {
    margin-bottom: .4rem;
    font-size: 1.3rem;
}

.pv-producer-link {
    color: #0d9488;
    font-weight: 600;
    text-decoration: none;
}

.pv-producer-link:hover {
    color: #0f766e;
    text-decoration: underline;
}

/* ── Divider ── */
.pv-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 1.4rem 0;
}

/* ── Price block ── */
.pv-price-block {
    /* Livewire cart-button renders here — give it room */
}

/* ── Short description ── */
.pv-short-desc {
    font-size: 1.4rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ── Quick specs strip ── */
.pv-quick-specs {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.6rem;
}

.pv-spec-item {
    display: flex;
    flex-direction: column;
    min-width: 80px;
}

.pv-spec-label {
    font-size: 1.05rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.2;
}

.pv-spec-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

/* ── Wishlist / Compare action buttons ── */
.pv-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pv-action-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.4rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1.3rem;
    color: #555;
    background: #fff;
    text-decoration: none;
    transition: all .25s ease;
    cursor: pointer;
}

.pv-action-btn i {
    font-size: 1.5rem;
    line-height: 1;
}

.pv-action-btn:hover {
    border-color: #0d9488;
    color: #0d9488;
    text-decoration: none;
}

/* Wishlist active — filled heart, red */
.pv-action-btn.btn-wishlist.active {
    border-color: #e74c3c;
    color: #e74c3c;
    background: #fff5f5;
}

.pv-action-btn.btn-wishlist.active i:before {
    content: '\f233'; /* filled heart in molla font */
}

/* Compare active — teal fill */
.pv-action-btn.btn-compare.active {
    border-color: #0d9488;
    color: #fff;
    background: #0d9488;
}

/* ── Footer row: category tags + share ── */
.pv-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto; /* push to bottom of flex column */
}

.pv-cat-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    font-size: 1.2rem;
}

.pv-tag {
    display: inline-block;
    padding: .2em .7em;
    background: #f5f5f5;
    border-radius: 12px;
    color: #555;
    font-size: 1.15rem;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.pv-tag:hover {
    background: #0d9488;
    color: #fff;
    text-decoration: none;
}

.pv-share {
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════ */
.product-details-tab {
    margin-bottom: 3rem;
}

/* ── Specifications grid (replaces Tailwind grid) ── */
.pv-specs-grid {
    border: 1px solid #ebebeb;
    border-radius: 8px;
    overflow: hidden;
}

.pv-spec-row {
    display: flex;
    align-items: center;
    padding: 1rem 1.6rem;
    border-bottom: 1px solid #f5f5f5;
    transition: background .15s;
}

.pv-spec-row:last-child {
    border-bottom: none;
}

.pv-spec-row:nth-child(even) {
    background: #fafafa;
}

.pv-spec-row:hover {
    background: #fff8f0;
}

.pv-spec-key {
    width: 200px;
    flex-shrink: 0;
    font-weight: 600;
    color: #444;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.pv-spec-key i {
    color: #0d9488;
    font-size: 1.5rem;
}

.pv-spec-val {
    color: #666;
    font-size: 1.3rem;
}

/* ── GEO / Quick Summary (in Description tab) ── */
.pv-geo-summary {
    background: #f0fdfa;
    border-radius: 8px;
    padding: 1.6rem 2rem;
    border-left: 4px solid #0d9488;
}

.pv-geo-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 1.2rem;
}

.pv-geo-item {
    display: flex;
    flex-direction: column;
    padding: .6rem 0;
}

.pv-geo-label {
    font-size: 1.05rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pv-geo-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

/* ═══════════════════════════════════════════
   PRODUCER CARD (in tab)
   ═══════════════════════════════════════════ */
.producer-card {
    background: linear-gradient(135deg, #c0e6f7, #b39ddb);
    border-radius: 16px;
    padding: 3rem 2rem;
    max-width: 520px;
    margin: 0 auto;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,.1);
}

.producer-avatar-wrapper {
    width: 110px;
    height: 110px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
}

.producer-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.producer-name { margin-bottom: .25rem; }
.producer-role { margin-bottom: 1rem; opacity: .85; }
.producer-description { line-height: 1.5; margin-bottom: 1rem; }

.producer-social-icons a {
    margin: 0 .3rem;
    color: #fff;
    text-decoration: none;
    font-size: 1.6rem;
}

.producer-social-icons a:hover { opacity: .75; }

/* ═══════════════════════════════════════════
   REVIEWS
   ═══════════════════════════════════════════ */
.reviews { padding: 1rem 0; }

.review-form {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.review-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: #333;
}

.review {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow .3s;
}

.review:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }

.review h4 { font-size: 1.4rem; margin-bottom: .5rem; }
.review h4 a { color: #333; }
.review h4 a:hover { color: #0d9488; }

.review-date { font-size: 1.2rem; color: #999; }

.review-content { margin-top: 1rem; color: #666; line-height: 1.6; }
.review-content p { margin-bottom: 0; }

/* ── Star rating ── */
.star-rating {
    font-size: 28px;
    cursor: pointer;
    display: inline-flex;
    gap: 4px;
}

.star-rating .star {
    color: #ccc;
    transition: color .2s, transform .1s;
}

.star-rating .star:hover { transform: scale(1.1); }
.star-rating .star.selected { color: #ff9900; }

/* ═══════════════════════════════════════════
   RELATED PRODUCTS
   ═══════════════════════════════════════════ */
.pv-related { margin-bottom: 4rem; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 767px) {
    .pv-gallery-col {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .pv-info {
        padding: 2rem 1.6rem;
    }

    .pv-title {
        font-size: 2rem;
    }

    .pv-footer-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .pv-spec-key {
        width: 140px;
    }
}

@media (max-width: 480px) {
    .pv-info {
        padding: 1.6rem 1.2rem;
    }

    .pv-title {
        font-size: 1.8rem;
    }

    .pv-actions {
        flex-direction: column;
    }

    .pv-action-btn {
        justify-content: center;
    }
}
