/* =========================================================
   PRODUCT DETAIL PAGE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: #ffffff;
    color: var(--primary-color);
}

button,
a {
    font-family: inherit;
}


/* =========================================================
   MAIN PAGE
========================================================= */

.product-page {
    width: 100%;
    max-width: 1250px;
    margin: auto;
    padding: 20px;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin: 10px 0 30px;

    color: #888;
    font-size: 12px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}


/* =========================================================
   PRODUCT HERO
========================================================= */

.product-container {
    display: grid;

    grid-template-columns: 55% 45%;

    gap: 45px;

    align-items: start;
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.product-gallery {
    width: 100%;
    min-width: 0;
}

.main-image-box {
    width: 100%;
    height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f6f8;

    border-radius: 14px;

    overflow: hidden;

    border: 1px solid #eeeeee;
}

.main-image-box img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 20px;

    transition: transform .3s ease;
}

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


/* =========================================================
   PRODUCT INFORMATION
========================================================= */

.product-info {
    padding-top: 5px;
}

.product-category {
    display: inline-block;

    color: #777;

    font-size: 11px;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    margin-bottom: 10px;
}

.product-info h1 {
    color: var(--primary-color);

    font-size: 38px;

    line-height: 1.15;

    margin-bottom: 18px;

    font-weight: 700;
}

.product-intro {
    max-width: 550px;

    color: #666;

    font-size: 15px;

    line-height: 1.8;

    margin-bottom: 20px;
}


/* =========================================================
   SIZE & PRICE VARIANTS
========================================================= */

.product-variants {
    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-top: 18px;

    margin-bottom: 14px;
}

.product-variants label {
    color: #333;

    font-size: 13px;

    font-weight: 600;
}


/* =========================================================
   SIZE SELECT
========================================================= */

.product-variants select {
    width: 100%;

    max-width: 320px;

    height: 45px;

    padding: 0 40px 0 13px;

    border: 1px solid #dcdcdc;

    border-radius: 8px;

    background-color: #fff;

    color: #333;

    font-family: inherit;

    font-size: 14px;

    font-weight: 500;

    outline: none;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.product-variants select:hover {
    border-color: #bbb;
}

.product-variants select:focus {
    border-color: var(--primary-color);

    box-shadow: 0 0 0 3px rgba(0, 0, 0, .05);
}


/* =========================================================
   PRICE
========================================================= */

.price-area {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 5px;

    margin-bottom: 25px;
}

.current-price {
    color: var(--primary-color);

    font-size: 29px;

    font-weight: 700;

    line-height: 1.2;
}


/* =========================================================
   FEATURES
========================================================= */

.product-features {
    display: flex;

    flex-direction: column;

    gap: 16px;

    padding: 20px 0;

    border-top: 1px solid #eeeeee;

    border-bottom: 1px solid #eeeeee;
}

.feature {
    display: flex;

    align-items: center;

    gap: 13px;
}

.feature-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f1f4f8;

    color: var(--primary-color);

    border-radius: 50%;

    font-size: 15px;
}

.feature strong {
    display: block;

    color: #222;

    font-size: 13px;

    margin-bottom: 3px;
}

.feature small {
    display: block;

    color: #888;

    font-size: 11px;

    line-height: 1.4;
}


/* =========================================================
   PRODUCT ACTIONS
========================================================= */

.product-actions {
    display: flex;

    gap: 12px;

    margin-top: 25px;
}

.buy-now-btn,
.secondary-product-btn {
    min-height: 46px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 10px 22px;

    border-radius: 7px;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition: .3s;
}

.buy-now-btn {
    flex: 1;

    background: var(--primary-color);

    color: #fff;
}

.buy-now-btn:hover {
    background: #084dbf;
}

.secondary-product-btn {
    flex: 1;

    border: 1px solid var(--primary-color);

    color: var(--primary-color);

    background: #fff;
}

.secondary-product-btn:hover {
    background: var(--primary-color);

    color: #fff;
}


/* =========================================================
   GENERAL SEO SECTION
========================================================= */

.seo-section,
.specification-section,
.applications-section,
.product-benefits {
    margin-top: 80px;

    padding-top: 35px;

    border-top: 1px solid #eeeeee;
}

.section-heading {
    margin-bottom: 25px;
}

.section-heading span {
    display: block;

    color: #888;

    font-size: 10px;

    letter-spacing: 2px;

    text-transform: uppercase;

    margin-bottom: 6px;
}

.section-heading h2 {
    color: var(--primary-color);

    font-size: 28px;

    line-height: 1.3;
}

.seo-content {
    max-width: 950px;
}

.seo-content p {
    color: #666;

    font-size: 15px;

    line-height: 1.9;
}


/* =========================================================
   SPECIFICATIONS
========================================================= */

.details-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    border: 1px solid #e7e7e7;

    border-radius: 10px;

    overflow: hidden;
}

.details-grid > div {
    padding: 22px;

    border-right: 1px solid #e7e7e7;

    background: #fff;
}

.details-grid > div:last-child {
    border-right: none;
}

.details-grid span {
    display: block;

    color: #888;

    font-size: 11px;

    margin-bottom: 8px;
}

.details-grid strong {
    color: #222;

    font-size: 14px;

    line-height: 1.4;
}

.stock {
    color: #15803d !important;
}


/* =========================================================
   APPLICATIONS
========================================================= */

.application-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.application-card {
    padding: 25px;

    background: #f7f9fc;

    border: 1px solid #eeeeee;

    border-radius: 12px;

    transition: .3s;
}

.application-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.application-card > i {
    display: flex;

    width: 45px;
    height: 45px;

    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 50%;

    background: var(--primary-color);

    color: #fff;

    font-size: 17px;
}

.application-card h3 {
    color: #222;

    font-size: 16px;

    margin-bottom: 8px;
}

.application-card p {
    color: #777;

    font-size: 12px;

    line-height: 1.7;
}


/* =========================================================
   BENEFITS
========================================================= */

.benefits-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.benefit-card {
    padding: 25px;

    border: 1px solid #eeeeee;

    border-radius: 12px;

    background: #fff;
}

.benefit-card > i {
    color: #15803d;

    font-size: 18px;

    margin-bottom: 12px;
}

.benefit-card h3 {
    color: #222;

    font-size: 16px;

    margin-bottom: 8px;
}

.benefit-card p {
    color: #777;

    font-size: 12px;

    line-height: 1.7;
}


/* =========================================================
   CTA
========================================================= */

.product-cta {
    margin-top: 80px;

    padding: 55px 40px;

    background: var(--primary-color);

    border-radius: 18px;

    text-align: center;

    color: #fff;
}

.product-cta span {
    font-size: 10px;

    letter-spacing: 2px;

    opacity: .75;
}

.product-cta h2 {
    margin: 10px 0;

    font-size: 30px;

    line-height: 1.3;
}

.product-cta p {
    max-width: 600px;

    margin: 0 auto 25px;

    color: #d9dce8;

    font-size: 13px;

    line-height: 1.7;
}

.cta-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 12px 25px;

    background: #fff;

    color: var(--primary-color);

    text-decoration: none;

    border-radius: 7px;

    font-size: 13px;

    font-weight: 600;

    transition: .3s;
}

.cta-btn:hover {
    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}


/* =========================================================
   RELATED PRODUCTS
========================================================= */

.more-products {
    margin-top: 80px;

    padding-bottom: 50px;
}

.more-products-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 28px;
}

.more-products-heading span {
    color: #888;

    font-size: 10px;

    letter-spacing: 2px;
}

.more-products-heading h2 {
    margin-top: 6px;

    color: var(--primary-color);

    font-size: 27px;
}

.more-products-heading a {
    color: var(--primary-color);

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;
}

.more-products-heading a:hover {
    text-decoration: underline;
}


/* =========================================================
   RELATED PRODUCT GRID
========================================================= */

.products-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.product-card {
    min-width: 0;

    color: var(--primary-color);

    text-decoration: none;
}

.card-image {
    width: 100%;
    height: 230px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f5f6f8;

    border-radius: 10px;

    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 10px;

    transition: .3s;
}

.product-card:hover .card-image img {
    transform: scale(1.04);
}

.card-info {
    padding: 11px;
}

.card-category {
    color: #999;

    font-size: 9px;

    text-transform: uppercase;
}

.card-info h3 {
    color: #222;

    margin: 5px 0;

    font-size: 14px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.card-price {
    color: var(--primary-color);

    font-size: 14px;

    font-weight: 700;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .product-container {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .main-image-box {
        height: 450px;
    }

    .product-info h1 {
        font-size: 32px;
    }

    .application-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .details-grid > div:nth-child(2) {
        border-right: none;
    }

    .details-grid > div:nth-child(1),
    .details-grid > div:nth-child(2) {
        border-bottom: 1px solid #e7e7e7;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-variants select {
        max-width: 100%;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .product-page {
        padding: 12px;
    }


    /* =========================
       BREADCRUMB
    ========================= */

    .breadcrumb {
        margin: 8px 0 20px;

        gap: 5px;

        font-size: 9px;

        white-space: nowrap;

        overflow: hidden;
    }


    /* =========================
       HERO
    ========================= */

    .product-container {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    /* =========================
       IMAGE
    ========================= */

    .main-image-box {
        height: 330px;

        border-radius: 10px;
    }

    .main-image-box img {
        padding: 12px;
    }


    /* =========================
       PRODUCT INFO
    ========================= */

    .product-category {
        font-size: 9px;

        margin-bottom: 8px;
    }

    .product-info h1 {
        font-size: 25px;

        line-height: 1.2;

        margin-bottom: 12px;
    }

    .product-intro {
        font-size: 13px;

        line-height: 1.7;

        margin-bottom: 17px;
    }


    /* =========================
       SIZE SELECTOR
    ========================= */

    .product-variants {
        margin-top: 15px;

        margin-bottom: 12px;

        gap: 7px;
    }

    .product-variants label {
        font-size: 12px;
    }

    .product-variants select {
        width: 100%;

        max-width: 100%;

        height: 44px;

        font-size: 13px;
    }


    /* =========================
       PRICE
    ========================= */

    .price-area {
        margin-top: 5px;

        margin-bottom: 20px;
    }

    .current-price {
        font-size: 24px;
    }


    /* =========================
       FEATURES
    ========================= */

    .product-features {
        gap: 13px;

        padding: 17px 0;
    }

    .feature-icon {
        width: 36px;
        height: 36px;

        font-size: 13px;
    }

    .feature strong {
        font-size: 11px;
    }

    .feature small {
        font-size: 9px;
    }


    /* =========================
       BUTTONS
    ========================= */

    .product-actions {
        flex-direction: column;

        gap: 9px;

        margin-top: 20px;

        width: 100%;
    }

    .buy-now-btn,
    .secondary-product-btn {
        width: 100%;

        min-height: 44px;

        padding: 10px 18px;
    }


    /* =========================
       SEO SECTIONS
    ========================= */

    .seo-section,
    .specification-section,
    .applications-section,
    .product-benefits {
        margin-top: 50px;

        padding-top: 25px;
    }

    .section-heading {
        margin-bottom: 18px;
    }

    .section-heading span {
        font-size: 8px;

        letter-spacing: 1.5px;
    }

    .section-heading h2 {
        font-size: 22px;
    }

    .seo-content p {
        font-size: 13px;

        line-height: 1.8;
    }


    /* =========================
       SPECIFICATIONS
    ========================= */

    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .details-grid > div {
        padding: 15px;
    }

    .details-grid span {
        font-size: 9px;
    }

    .details-grid strong {
        font-size: 11px;
    }


    /* =========================
       APPLICATIONS
    ========================= */

    .application-grid {
        grid-template-columns: 1fr 1fr;

        gap: 12px;
    }

    .application-card {
        padding: 16px;
    }

    .application-card > i {
        width: 38px;
        height: 38px;

        font-size: 13px;

        margin-bottom: 12px;
    }

    .application-card h3 {
        font-size: 13px;
    }

    .application-card p {
        font-size: 10px;

        line-height: 1.6;
    }


    /* =========================
       BENEFITS
    ========================= */

    .benefits-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .benefit-card {
        padding: 18px;
    }


    /* =========================
       CTA
    ========================= */

    .product-cta {
        margin-top: 50px;

        padding: 35px 18px;

        border-radius: 12px;
    }

    .product-cta h2 {
        font-size: 22px;
    }

    .product-cta p {
        font-size: 11px;
    }

    .cta-btn {
        width: 100%;

        padding: 11px;
    }


    /* =========================
       RELATED PRODUCTS
    ========================= */

    .more-products {
        margin-top: 50px;

        padding-bottom: 30px;
    }

    .more-products-heading {
        align-items: center;

        gap: 15px;
    }

    .more-products-heading h2 {
        font-size: 20px;
    }

    .more-products-heading a {
        font-size: 10px;

        white-space: nowrap;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 14px;
    }

    .card-image {
        height: 170px;
    }

    .card-info h3 {
        font-size: 12px;
    }

    .card-price {
        font-size: 12px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .main-image-box {
        height: 280px;
    }

    .product-info h1 {
        font-size: 22px;
    }

    .application-grid {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 150px;
    }

}