/* =========================================================
   VOLTGUARD — PRODUCT PAGE (Lithium-Ion Battery)
   product.css
   ========================================================= */

:root {
    --pbmit-global-color: #8cc63f;
    --pbmit-secondary-color: #131419;
    --pbmit-light-color: #eff3f5;
    --pbmit-blackish-color: #101010;
    --pbmit-link-color-normal: #131419;
    --pbmit-link-color-hover: #8cc63f;
    --pbmit-responsive-breakpoint: 1200px;
    --pbmit-global-color-rgb: 138,196,58;

    --pbmit-body-typography-font-family: 'Nunito Sans', sans-serif;
    --pbmit-body-typography-variant: 400;
    --pbmit-body-typography-font-size: 16px;
    --pbmit-body-typography-line-height: 1.7;
    --pbmit-body-typography-color: #60626d;
    --pbmit-heading-typography-font-family: 'Quicksand', sans-serif;
    --pbmit-heading-color: #101010;
    --pbmit-heading-font-variant: 700;

    --pbmit-btn-typography-font-family: 'Quicksand', sans-serif;
    --pbmit-btn-typography-variant: 700;
    --pbmit-btn-typography-font-size: 13px;
    --pbmit-btn-typography-line-height: 18px;
}

/* =========================================================
   BASE
   ========================================================= */
.vg-product-page * {
    box-sizing: border-box;
}

.vg-product-page {
    font-family: var(--pbmit-body-typography-font-family);
    font-weight: var(--pbmit-body-typography-variant);
    font-size: var(--pbmit-body-typography-font-size);
    line-height: var(--pbmit-body-typography-line-height);
    color: var(--pbmit-body-typography-color);
    overflow-x: hidden;
}

.vg-product-page img {
    max-width: 100%;
    display: block;
}

/* :where() keeps this base rule at zero specificity so any single-class
   override below (e.g. .vg-breadcrumb-title, .vg-explore-link) always wins,
   regardless of source order. */
:where(.vg-product-page) :where(a) {
    text-decoration: none;
    color: var(--pbmit-link-color-normal);
    transition: color .3s ease, background .3s ease, border-color .3s ease, opacity .3s ease;
}

:where(.vg-product-page) :where(h1, h2, h3, h4) {
    font-family: var(--pbmit-heading-typography-font-family);
    font-weight: var(--pbmit-heading-font-variant);
    color: var(--pbmit-heading-color);
    margin: 0 0 15px;
    line-height: 1.3;
}

.vg-product-page p {
    margin: 0 0 18px;
}

.vg-product-page p:last-child {
    margin-bottom: 0;
}

.vg-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.vg-section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--pbmit-btn-typography-font-family);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .5px;
    color: var(--pbmit-global-color);
    margin-bottom: 14px;
}

.vg-section-subtitle::before,
.vg-section-subtitle::after {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--pbmit-global-color);
    display: inline-block;
}

.vg-section-header {
    max-width: 650px;
}

.vg-section-header.text-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.vg-section-header.text-center .vg-section-subtitle {
    justify-content: center;
}

/* Buttons */
.vg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--pbmit-btn-typography-font-family);
    font-weight: var(--pbmit-btn-typography-variant);
    font-size: var(--pbmit-btn-typography-font-size);
    line-height: var(--pbmit-btn-typography-line-height);
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 16px 34px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.vg-btn-filled {
    background: var(--pbmit-global-color);
    color: #ffffff;
    border-color: var(--pbmit-global-color);
}

.vg-btn-filled:hover {
    background: transparent;
    color: var(--pbmit-global-color);
}

.vg-btn-outline {
    background: transparent;
    color: var(--pbmit-secondary-color);
    border-color: var(--pbmit-secondary-color);
}

.vg-btn-outline:hover {
    background: var(--pbmit-secondary-color);
    color: #ffffff;
    border-color: var(--pbmit-secondary-color);
}

.vg-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

/* =========================================================
   1. BREADCRUMB / HERO
   ========================================================= */
/* =========================================
   Product Breadcrumb
========================================= */

.vg-breadcrumb-area {
    position: relative;
    min-height: 312px;

    background-image: url('../images/products/ess/ess-header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


/* Dark green overlay like reference image */
.vg-breadcrumb-overlay {
    position: absolute;
    inset: 0;

    background: rgba(13, 45, 18, 0.72);

    z-index: 1;
}


/* Content */
.vg-breadcrumb-content {
    position: relative;
    z-index: 2;

    width: 100%;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* Main Product Heading */
.vg-breadcrumb-title {
    margin: 0 0 30px;

    color: var(--pbmit-global-color);
    font-family: var(--pbmit-heading-typography-font-family);

    font-size: 48px;
    line-height: 1.15;
    font-weight: 700;

    text-transform: none;
    letter-spacing: 0;
}


/* Breadcrumb list */
.vg-breadcrumb-list {
    margin: 0;
    padding: 0;

    list-style: none;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 0;

    font-family: var(--pbmit-heading-typography-font-family);
    font-size: 17px;
    font-weight: 600;
}


/* Breadcrumb items */
.vg-breadcrumb-list li {
    display: flex;
    align-items: center;

    color: #ffffff;
}


/* Links */
.vg-breadcrumb-list li a {
    color: #ffffff;
    text-decoration: none;

    transition: all 0.3s ease;
}


.vg-breadcrumb-list li a:hover {
    color: var(--pbmit-global-color);
}


/* Arrow separator */
.vg-breadcrumb-list li + li::before {
    content: "\00BB";

    display: inline-block;

    margin: 0 12px;

    color: #ffffff;

    font-size: 27px;
    line-height: 1;
    font-weight: 700;
}


/* Current page */
.vg-breadcrumb-list li.active {
    color: var(--pbmit-global-color);
}


/* =========================================
   Tablet
========================================= */

@media (max-width: 991px) {

    .vg-breadcrumb-area {
        min-height: 280px;
    }

    .vg-breadcrumb-title {
        font-size: 40px;
        margin-bottom: 25px;
    }

    .vg-breadcrumb-list {
        font-size: 16px;
    }
}


/* =========================================
   Mobile
========================================= */

@media (max-width: 767px) {

    .vg-breadcrumb-area {
        min-height: 240px;

        padding: 50px 15px;
    }

    .vg-breadcrumb-title {
        font-size: 32px;
        line-height: 1.2;

        margin-bottom: 20px;
    }

    .vg-breadcrumb-list {
        font-size: 14px;
    }

    .vg-breadcrumb-list li + li::before {
        margin: 0 8px;
        font-size: 21px;
    }
}


/* =========================================
   Small Mobile
========================================= */

@media (max-width: 480px) {

    .vg-breadcrumb-area {
        min-height: 210px;
    }

    .vg-breadcrumb-title {
        font-size: 27px;
    }

    .vg-breadcrumb-list {
        font-size: 13px;
    }
}
/* =========================================================
   2. PRODUCT OVERVIEW
   ========================================================= */
.vg-product-overview {
    padding: 50px 0;
    background: #ffffff;
}

.vg-overview-flex {
    display: flex;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
}

.vg-overview-media,
.vg-overview-content {
    flex: 1 1 460px;
    min-width: 320px;
}

.vg-product-image-wrap {
    position: relative;
    max-width: 500px;
}

.vg-product-shape {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 65%;
    height: 65%;
    background: var(--pbmit-global-color);
    z-index: 1;
}

.vg-product-image {
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.vg-product-image img {
    width: 100%;
    height: auto;
    display: block;
    background: linear-gradient(135deg, #2c2f36, #14161a);
}

.vg-product-overlay-text {
    position: absolute;
    top: 28px;
    left: 28px;
    right: 28px;
    color: #ffffff;
    font-family: var(--pbmit-heading-typography-font-family);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.35;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,.4);
}

.vg-product-tag {
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--pbmit-global-color);
    color: #ffffff;
    font-family: var(--pbmit-heading-typography-font-family);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    line-height: 1.5;
    padding: 12px 22px;
}

.vg-product-tag strong {
    display: block;
    font-size: 17px;
}

.vg-overview-content .vg-section-title {
    font-size: 32px;
}

/* =========================================================
   3. PRODUCT DESCRIPTION + FEATURES
   ========================================================= */
.vg-product-description {
    padding: 50px 0;
    background: #ffffff;
}

.vg-description-flex {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.vg-description-content {
    flex: 1 1 380px;
    min-width: 300px;
}

.vg-description-content .vg-section-title {
    font-size: 30px;
    max-width: 420px;
}

.vg-description-content .vg-btn {
    margin-top: 10px;
}

.vg-feature-grid {
    flex: 1.4 1 520px;
    min-width: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 30px;
}

.vg-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    border: 1px solid #ebedf0;
    border-radius: 6px;
}

.vg-feature-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(var(--pbmit-global-color-rgb), .12);
    color: var(--pbmit-global-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.vg-feature-text h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.vg-feature-text p {
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.6;
}

/* =========================================================
   4. RELATED PRODUCTS
   ========================================================= */
.vg-related-products {
    padding: 50px 0;
    background: var(--pbmit-light-color);
}

.vg-related-products .vg-section-title {
    font-size: 32px;
}

.vg-related-products .vg-section-header p {
    font-size: 16px;
}

.vg-related-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.vg-product-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 18px 20px 26px;
    box-shadow: 0 4px 20px rgba(16,16,16,.05);
}

.vg-product-card-image {
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.vg-product-card-image img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: linear-gradient(135deg, #2c2f36, #14161a);
    transition: transform .4s ease;
}

.vg-product-card:hover .vg-product-card-image img {
    transform: scale(1.06);
}

.vg-product-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.vg-product-card p {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
}

.vg-explore-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--pbmit-heading-typography-font-family);
    font-weight: 700;
    font-size: 14px;
    color: var(--pbmit-blackish-color);
}

.vg-explore-link span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(var(--pbmit-global-color-rgb), .15);
    color: var(--pbmit-global-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background .3s ease, color .3s ease;
}

.vg-explore-link:hover {
    color: var(--pbmit-global-color);
}

.vg-explore-link:hover span {
    background: var(--pbmit-global-color);
    color: #ffffff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
    .vg-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .vg-breadcrumb-tagline {
        text-align: left;
    }

    .vg-breadcrumb-tagline::after {
        right: auto;
        left: 0;
    }

    .vg-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .vg-breadcrumb-area {
        padding: 60px 0;
    }

    .vg-breadcrumb-title {
        font-size: 32px;
    }

    .vg-product-overview,
    .vg-product-description,
    .vg-related-products {
        padding: 60px 0;
    }

    .vg-product-shape {
        display: none;
    }

    .vg-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .vg-btn {
        width: 100%;
    }

    .vg-btn-group {
        flex-direction: column;
    }
}