/* ========================================
   PRO HVAC SUPPLY - Catalogue Product Page
   Inspired by apamet.com.tr
   ======================================== */

:root {
    --pv-blue: #03476b;
    --pv-red: #C8432B;
    --pv-red-dark: #A33520;
    --pv-light: #F7F8FA;
    --pv-grey: #E8E8E8;
    --pv-text: #333;
    --pv-text-light: #666;
    --pv-font: 'Urbanist', sans-serif;
}

.pv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Breadcrumb === */
.pv-breadcrumb-bar {
    background: var(--pv-blue);
    padding: 14px 0;
}

.pv-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--pv-font);
    font-size: 13px;
}

.pv-breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.pv-breadcrumb a:hover { color: #fff; }

.pv-breadcrumb svg { stroke: rgba(255,255,255,0.3); }

.pv-breadcrumb span { color: #fff; font-weight: 500; }

/* === Product Hero === */
.pv-product-hero {
    padding: 50px 0;
    background: #fff;
    font-family: var(--pv-font);
}

.pv-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Image Showcase */
.pv-image-showcase {
    position: sticky;
    top: 100px;
}

.pv-main-image {
    background: var(--pv-light);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pv-main-image img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    transition: transform 0.3s;
}

.pv-main-image:hover img {
    transform: scale(1.03);
}

.pv-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.pv-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: var(--pv-light);
    transition: all 0.2s;
    padding: 4px;
}

.pv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.pv-thumb.active,
.pv-thumb:hover {
    border-color: var(--pv-blue);
}

/* Product Info */
.pv-category-tag {
    display: inline-block;
    background: rgba(3, 71, 107, 0.08);
    color: var(--pv-blue);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.pv-product-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--pv-blue);
    line-height: 1.25;
    margin: 0 0 15px;
}

.pv-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 25px;
}

.pv-stock-badge.in-stock { background: rgba(34,197,94,0.1); color: #16a34a; }
.pv-stock-badge.on-order { background: rgba(245,158,11,0.1); color: #d97706; }

.pv-stock-dot {
    width: 8px; height: 8px; border-radius: 50%;
}
.in-stock .pv-stock-dot { background: #16a34a; }
.on-order .pv-stock-dot { background: #d97706; }

/* Specs Highlight Grid */
.pv-specs-highlight {
    margin-bottom: 30px;
}

.pv-specs-highlight h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--pv-blue);
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pv-grey);
}

.pv-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pv-spec-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--pv-light);
    border-radius: 10px;
    transition: all 0.2s;
}

.pv-spec-card:hover {
    background: rgba(3, 71, 107, 0.06);
}

.pv-spec-icon {
    width: 42px;
    height: 42px;
    background: var(--pv-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pv-spec-icon svg {
    stroke: #fff;
    width: 20px;
    height: 20px;
}

.pv-spec-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pv-spec-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--pv-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pv-spec-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--pv-blue);
    line-height: 1.3;
    word-break: break-word;
}

/* CTA Buttons */
.pv-cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pv-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-family: var(--pv-font);
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.pv-btn-devis {
    background: var(--pv-red);
    color: #fff !important;
}
.pv-btn-devis:hover {
    background: var(--pv-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200,67,43,0.25);
}

.pv-btn-whatsapp {
    background: #25D366;
    color: #fff !important;
}
.pv-btn-whatsapp:hover {
    background: #1DA851;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,211,102,0.25);
}

.pv-btn-pdf {
    background: #fff;
    color: var(--pv-blue) !important;
    border: 2px solid var(--pv-grey);
}
.pv-btn-pdf:hover {
    border-color: var(--pv-blue);
    background: var(--pv-light);
    transform: translateY(-2px);
}

/* === Technical Section (Tabs) === */
.pv-technical-section {
    padding: 50px 0 60px;
    background: var(--pv-light);
    font-family: var(--pv-font);
}

.pv-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 35px;
    background: var(--pv-red);
    border-radius: 0;
    overflow: hidden;
    padding: 0;
}

.pv-tab {
    flex: 1;
    padding: 16px 24px;
    background: none;
    border: none;
    border-radius: 0;
    font-family: var(--pv-font);
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    text-align: center;
    letter-spacing: 0.2px;
}

.pv-tab:hover {
    color: #fff;
    background: rgba(0,0,0,0.1);
}

.pv-tab.active {
    color: #fff;
    background: var(--pv-blue);
    font-weight: 700;
}

.pv-tab:focus {
    outline: none;
}

@media (max-width: 768px) {
    .pv-tabs {
        flex-direction: column;
    }

    .pv-tab {
        padding: 14px 20px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .pv-tab:last-child {
        border-bottom: none;
    }
}

.pv-tab-content {
    display: none;
}

.pv-tab-content.active {
    display: block;
}

/* Description content */
.pv-description-content {
    max-width: 900px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--pv-text);
}

.pv-description-content h3,
.pv-description-content h4 {
    color: var(--pv-blue);
    margin-top: 30px;
}

.pv-description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.pv-description-content table th {
    background: var(--pv-blue);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.pv-description-content table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--pv-grey);
}

.pv-description-content table tr:nth-child(even) td {
    background: #fff;
}

.pv-description-content table tr:hover td {
    background: rgba(3, 71, 107, 0.03);
}

.pv-description-content ul {
    padding-left: 20px;
}

.pv-description-content li {
    margin-bottom: 6px;
}

/* Schemas grid */
.pv-schemas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.pv-schema-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--pv-grey);
}

.pv-schema-item img {
    max-width: 100%;
    border-radius: 8px;
}

/* Full specs table */
.pv-full-specs-table {
    width: 100%;
    border-collapse: collapse;
    max-width: 700px;
}

.pv-full-specs-table thead th {
    background: var(--pv-blue);
    color: #fff;
    padding: 14px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
}

.pv-full-specs-table tbody td {
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--pv-grey);
}

.pv-full-specs-table tbody td:first-child {
    font-weight: 600;
    color: var(--pv-blue);
    width: 40%;
}

.pv-full-specs-table tbody tr:nth-child(even) td {
    background: #fff;
}

/* === Product CTA Banner === */
.pv-product-cta {
    padding: 60px 0;
    background: var(--pv-blue);
    font-family: var(--pv-font);
}

.pv-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.pv-cta-text h2 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.pv-cta-text p {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.pv-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* === Related Products === */
.pv-related-section {
    padding: 60px 0;
    background: #fff;
    font-family: var(--pv-font);
}

.pv-related-section h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--pv-blue);
    margin: 0 0 30px;
}

.pv-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.pv-related-card {
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--pv-grey);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s;
}

.pv-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: transparent;
}

.pv-related-img {
    background: var(--pv-light);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.pv-related-img img {
    max-height: 170px;
    max-width: 100%;
    object-fit: contain;
}

.pv-related-body {
    padding: 20px;
}

.pv-related-cat {
    font-size: 12px;
    font-weight: 600;
    color: #4A90A4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pv-related-body h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--pv-blue);
    margin: 8px 0 12px;
    line-height: 1.3;
}

.pv-view-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--pv-red);
}

/* === Responsive === */
@media (max-width: 768px) {
    .pv-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pv-image-showcase {
        position: static;
    }

    .pv-product-title {
        font-size: 24px;
    }

    .pv-specs-grid {
        grid-template-columns: 1fr;
    }

    .pv-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }

    .pv-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .pv-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .pv-cta-actions .pv-btn {
        width: 100%;
    }

    .pv-related-grid {
        grid-template-columns: 1fr;
    }

    .pv-schemas-grid {
        grid-template-columns: 1fr;
    }

    /* Sticky CTA on mobile */
    .pv-cta-group {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding: 15px 0;
        z-index: 50;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
        border-radius: 0;
    }
}
