/* INVERGY Product Page — WAAREE-style layout */

.invergy-product { max-width: 1400px; margin: 0 auto; padding: 100px 20px 60px; font-family: 'Roboto', sans-serif; }
@media (min-width: 1600px) { .invergy-product { max-width: 1600px; } }

/* Breadcrumb */
.invergy-breadcrumb-bar { font-size: 13px; color: #777; margin-bottom: 20px; }
.invergy-breadcrumb-bar a { color: #777; text-decoration: none; }
.invergy-breadcrumb-bar a:hover { color: #e07b00; }
.invergy-breadcrumb-bar span { margin: 0 6px; }
.invergy-breadcrumb-current { color: #1a1a1a; font-weight: 600; }

/* Top layout */
.invergy-top { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 40px; position: relative; }
@media (max-width: 768px) { .invergy-top { grid-template-columns: 1fr; } }

.invergy-gallery { align-self: start; }

.invergy-gallery-flex { display: flex; gap: 12px; }
.invergy-thumbs-vertical { display: flex; flex-direction: column; gap: 8px; max-height: 500px; overflow-y: auto; }
.invergy-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid #eee; flex-shrink: 0; }
.invergy-thumb.active, .invergy-thumb:hover { border-color: #e07b00; }
.invergy-main-image-wrap {
    flex: 1; background: #f7f7f7; border-radius: 10px; aspect-ratio: 1/1;
    display: flex; align-items: center; justify-content: center; padding: 30px;
}
.invergy-main-image { width: 100%; height: 100%; border-radius: 0; object-fit: contain; }
.invergy-img-placeholder {
    width: 100%; aspect-ratio: 1/1; background: #f2f2f2; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; color: #999;
}

/* Mobile carousel (hidden on desktop) */
.invergy-mobile-carousel { display: none; }

@media (max-width: 768px) {
    .invergy-desktop-gallery { display: none; }
    .invergy-mobile-carousel {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0;
        border-radius: 10px; -webkit-overflow-scrolling: touch;
    }
    .invergy-mobile-carousel::-webkit-scrollbar { display: none; }
    .invergy-carousel-slide {
        flex: 0 0 100%; scroll-snap-align: start; background: #f7f7f7;
        aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; padding: 20px;
    }
    .invergy-carousel-slide img { width: 100%; height: 100%; object-fit: contain; }
}

/* Buy box */
.invergy-buybox { display: flex; flex-direction: column; }
.invergy-product-title { font-family: 'Roboto Slab', serif; font-size: 26px; margin: 0 0 4px; }
.invergy-sku { color: #888; font-size: 13px; margin-bottom: 8px; }
.invergy-buybox .star-rating { margin-bottom: 10px; }

.invergy-price-row { display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }
.invergy-price { font-size: 28px; font-weight: 700; }
.invergy-price del { color: #999; font-weight: 400; font-size: 18px; margin-right: 8px; }
.invergy-price ins { text-decoration: none; color: #1a1a1a; }
.invergy-savings-badge { background: #e8f5e9; color: #2e7d32; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 4px; }
.invergy-tax-note { font-size: 12px; color: #999; margin: 0 0 16px; }

.invergy-emi-box {
    display: flex; gap: 12px; background: #fff3ea; border: 1px solid #ffd9b3; border-radius: 8px;
    padding: 14px 16px; margin-bottom: 16px; align-items: flex-start;
}
.invergy-emi-icon {
    width: 30px; height: 30px; background: #e07b00; color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.invergy-emi-headline { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: #1a1a1a; }
.invergy-emi-details summary { cursor: pointer; color: #e07b00; font-size: 13px; font-weight: 600; list-style: none; }
.invergy-emi-table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 13px; }
.invergy-emi-table td { padding: 6px 0; border-bottom: 1px solid #ffe4c2; color: #444; }
.invergy-emi-table td:last-child { text-align: right; font-weight: 600; }
.invergy-emi-secured { font-size: 11px; color: #999; margin: 8px 0 0; }

.invergy-stock { font-weight: 600; margin-bottom: 16px; font-size: 14px; }
.invergy-stock.in-stock { color: #2e7d32; }
.invergy-stock.out-stock { color: #c62828; }

.invergy-cta-row { margin-bottom: 12px; }

/* Variable product: table.variations (confirmed on /product/three-phase-hybrid-hv/) */
.invergy-cta-row table.variations {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 16px !important;
    border: 0 !important;
    border-collapse: collapse !important;
    background: none !important;
}
.invergy-cta-row table.variations tbody,
.invergy-cta-row table.variations tr {
    display: block;
    width: 100%;
}
.invergy-cta-row table.variations th.label,
.invergy-cta-row table.variations td.value {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    text-align: left !important;
    vertical-align: top;
}
.invergy-cta-row table.variations th.label {
    margin: 0 0 8px;
}
.invergy-cta-row table.variations th.label label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}
.invergy-cta-row table.variations td.value {
    position: relative;
}
.invergy-cta-row table.variations select {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 12px 40px 12px 16px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23333' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.5L6 6l4.5-4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    height: auto !important;
    line-height: 1.4;
}
.invergy-cta-row table.variations select:focus {
    border-color: #e07b00 !important;
    outline: none;
}
.invergy-cta-row a.reset_variations {
    display: inline-block;
    margin: 8px 0 0;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    color: #999;
    text-decoration: none;
    line-height: 1.4;
    min-height: 18px;
}
.invergy-cta-row a.reset_variations:hover {
    color: #e07b00;
}

/* Keep variation price/stock from collapsing the CTA when WC toggles display */
.invergy-cta-row .woocommerce-variation.single_variation {
    display: block !important;
    min-height: 56px;
    margin: 0 0 12px;
    box-sizing: border-box;
}
.invergy-cta-row .woocommerce-variation-description:empty {
    display: none;
}
.invergy-cta-row .woocommerce-variation-price .price {
    display: block;
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}
.invergy-cta-row .woocommerce-variation-availability .stock {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}
.invergy-cta-row .woocommerce-variation-availability .stock.in-stock { color: #2e7d32; }
.invergy-cta-row .woocommerce-variation-availability .stock.out-of-stock { color: #c62828; }

.invergy-cta-row .quantity { display: block; margin-bottom: 10px; }
.invergy-cta-row .quantity .qty {
    width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 6px;
    font-size: 15px; font-weight: 600; text-align: center; height: auto;
}
.invergy-cta-row .quantity .qty:focus { border-color: #e07b00; outline: none; }
.invergy-cta-row .button {
    width: 100%; padding: 14px; background: #e07b00 !important; color: #fff !important;
    border: none; border-radius: 6px; font-weight: 700; font-size: 15px; text-align: center;
}
.invergy-bulk-quote-link {
    display: inline-block; font-size: 13px; color: #e07b00; text-decoration: none; margin-bottom: 16px; font-weight: 600;
}
.invergy-bulk-quote-link:hover { text-decoration: underline; }

.invergy-info-buttons { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.invergy-info-btn {
    flex: 1; padding: 10px 16px; border: 1px solid #ddd; border-radius: 6px; background: #fff;
    color: #333; font-size: 13px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer;
}
.invergy-info-btn:hover { border-color: #e07b00; color: #e07b00; }

.invergy-delivery-check { margin-bottom: 16px; }
.invergy-pincode-row { display: flex; gap: 8px; }
.invergy-pincode-row input { flex: 1; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.invergy-check-btn { padding: 10px 18px; background: #fff; border: 1px solid #e07b00; color: #e07b00; border-radius: 6px; font-weight: 600; cursor: pointer; }
.invergy-check-btn:hover { background: #fff3ea; }

.invergy-trust-icons { display: flex; gap: 16px; border-top: 1px solid #eee; padding-top: 16px; margin-top: 8px; }
.invergy-trust-icon-item { flex: 1; text-align: center; }
.invergy-trust-icon-item p { font-size: 14px; color: #444; margin: 10px 0 0; font-weight: 600; }

.invergy-svg-icon {
    display: inline-flex; align-items: center; justify-content: center;
    background: #e07b00 !important; border-radius: 50%; padding: 18px;
}
.invergy-svg-icon svg { width: 28px !important; height: 28px !important; display: block; }
.invergy-svg-icon svg * { stroke: #fff !important; }
.invergy-svg-icon svg circle[fill="currentColor"] { fill: #fff !important; }
.invergy-svg-icon-lg { padding: 22px; }
.invergy-svg-icon-lg svg { width: 34px !important; height: 34px !important; }

@media (max-width: 480px) {
    .invergy-svg-icon { padding: 12px; }
    .invergy-svg-icon svg { width: 20px !important; height: 20px !important; }
    .invergy-svg-icon-lg { padding: 14px; }
    .invergy-svg-icon-lg svg { width: 22px !important; height: 22px !important; }
    .invergy-trust-icons { gap: 8px; }
    .invergy-badges-strip { padding: 16px 10px; gap: 8px; }
    .invergy-badge-item { min-width: 60px; }
    .invergy-badge-item p { font-size: 9px; }
    .invergy-trust-icon-item p { font-size: 9px; }
}

/* Badges strip */
.invergy-badges-strip {
    background: #fafafa; border-radius: 12px; padding: 40px 20px; margin-bottom: 40px;
}
.invergy-badges-strip-inner {
    display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px; text-align: center;
}
.invergy-badge-item { flex: 1; min-width: 100px; }
.invergy-badge-item p { font-size: 14px; color: #333; font-weight: 600; margin: 10px 0 0; }

/* Tabs */
.invergy-tabs { margin-bottom: 50px; }
.invergy-tab-nav { display: flex; justify-content: space-between; border-bottom: 2px solid #eee; margin-bottom: 30px; overflow-x: auto; }
.invergy-tab-btn {
    flex: 1; padding: 14px 20px; background: none; border: none; border-bottom: 3px solid transparent;
    font-size: 14px; font-weight: 600; color: #777; cursor: pointer; white-space: nowrap; text-align: center;
}
.invergy-tab-btn.active { color: #e07b00; border-bottom-color: #e07b00; }
.invergy-tab-panel { display: none; }
.invergy-tab-panel.active { display: block; }

.invergy-highlights { margin-bottom: 40px; background: #fff3ea; border-radius: 12px; padding: 30px; }
.invergy-highlights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; }
@media (max-width: 768px) { .invergy-highlights-grid { grid-template-columns: 1fr; } }
.invergy-highlight-item { display: flex; align-items: center; gap: 14px; }
.invergy-highlight-icon {
    width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 2px solid #e07b00;
    display: flex; align-items: center; justify-content: center; color: #e07b00; font-weight: 700; font-size: 14px;
    overflow: hidden;
}
.invergy-highlight-icon img { width: 20px; height: 20px; object-fit: contain; }
.invergy-highlight-title { font-weight: 600; color: #1a1a1a; font-size: 14px; }

.invergy-series-row { text-align: center; margin-bottom: 40px; }
.invergy-series-label { color: #e07b00; font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.invergy-series-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.invergy-outline-btn { padding: 10px 22px; border: 1px solid #ddd; border-radius: 30px; text-decoration: none; color: #333; font-weight: 500; font-size: 13px; }
.invergy-outline-btn:hover { border-color: #e07b00; color: #e07b00; }

.invergy-certifications { margin-bottom: 40px; }
.invergy-certifications h3 { font-family: 'Roboto Slab', serif; font-size: 18px; margin-bottom: 18px; color: #1a1a1a; }
.invergy-cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.invergy-cert-item { display: flex; align-items: flex-start; gap: 14px; background: #fafafa; border-radius: 10px; padding: 16px; }
.invergy-cert-title { font-weight: 700; font-size: 14px; color: #1a1a1a; margin: 0; }
.invergy-cert-desc { font-size: 12px; color: #777; margin: 4px 0 0; }

.invergy-description { line-height: 1.8; color: #333; }
.invergy-description h2 { font-family: 'Roboto Slab', serif; font-size: 22px; margin-bottom: 16px; }

.invergy-key-features-list { list-style: none; padding: 0; margin: 0; }
.invergy-key-features-list li { position: relative; padding-left: 26px; margin-bottom: 12px; color: #333; line-height: 1.6; font-size: 14px; }
.invergy-key-features-list li::before { content: "○"; position: absolute; left: 0; color: #e07b00; font-weight: 700; }

.invergy-app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.invergy-app-card { background: #f5f5f5; padding: 20px 14px; border-radius: 10px; text-align: center; font-weight: 600; font-size: 13px; }

.invergy-faq-item { border-bottom: 1px solid #eee; padding: 14px 0; }
.invergy-faq-item summary { font-weight: 600; cursor: pointer; font-size: 15px; }
.invergy-faq-item p { margin-top: 8px; color: #555; line-height: 1.6; font-size: 14px; }

/* Related products */
.invergy-related { margin-bottom: 50px; }
.invergy-related h2 { font-family: 'Roboto Slab', serif; font-size: 22px; margin-bottom: 20px; }
.invergy-related ul.products,
.invergy-related ul.products.columns-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
}
.invergy-related ul.products::before,
.invergy-related ul.products::after {
    content: none !important;
    display: none !important;
}
.invergy-related ul.products li.product {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}
.invergy-related ul.products li.product a img,
.invergy-related ul.products li.product img {
    width: 100% !important;
    height: 200px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    background: #f7f7f7 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    display: block !important;
    box-sizing: border-box !important;
}
@media (max-width: 768px) {
    .invergy-related ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Compare table */
.invergy-compare { margin-bottom: 50px; overflow-x: auto; }
.invergy-compare h2 { font-family: 'Roboto Slab', serif; font-size: 22px; margin-bottom: 20px; }
.invergy-compare-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 500px; }
.invergy-compare-table th, .invergy-compare-table td { padding: 12px 16px; border: 1px solid #eee; text-align: left; }
.invergy-compare-table th { background: #fafafa; font-weight: 700; }
.invergy-compare-table td:first-child { font-weight: 600; color: #555; background: #fafafa; }