/* =========================================================
   iGroup Product Detail
   dt-the7-child / WPBakery
   ========================================================= */

.igroup-product-page {
    --product-accent: #FFA800;
    --product-text: #222222;
    --product-muted: #888888;
    --product-border: #e8e8e8;

    width: 100%;
}


/* ---------------------------------------------------------
   Main Grid
   --------------------------------------------------------- */

.igroup-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr);
    gap: 80px;

    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 0 120px;
}


/* ---------------------------------------------------------
   Left Content
   --------------------------------------------------------- */

.igroup-product-content {
    min-width: 0;
    color: var(--product-text);
}


/* H2 */

.igroup-product-content h2 {
    position: relative;

    margin: 72px 0 28px;

    font-size: 32px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.02em;

    /*
     * When clicking a TOC anchor, leave enough space
     * below the fixed site header.
     */
    scroll-margin-top: 130px;
}

.igroup-product-content h2:first-child {
    margin-top: 0;
}


/* H3 */

.igroup-product-content h3 {
    margin: 42px 0 18px;

    font-size: 23px;
    line-height: 1.45;
    font-weight: 600;

    scroll-margin-top: 130px;
}


/* Paragraph */

.igroup-product-content p {
    margin-bottom: 22px;

    font-size: 16px;
    line-height: 1.9;

    color: #555;
}


/* Lists */

.igroup-product-content ul,
.igroup-product-content ol {
    margin-bottom: 28px;
}

.igroup-product-content li {
    margin-bottom: 10px;

    line-height: 1.8;
    color: #555;
}


/* Images */

.igroup-product-content img {
    max-width: 100%;
    height: auto;
}


/* ---------------------------------------------------------
   Section Divider
   --------------------------------------------------------- */

.igroup-product-content h2:not(:first-child)::before {
    content: "";

    display: block;

    width: 100%;
    height: 1px;

    margin-bottom: 42px;

    background: var(--product-border);
}


/* ---------------------------------------------------------
   Right Sidebar
   --------------------------------------------------------- */

.igroup-product-sidebar {
    position: sticky;
    top: 110px;

    align-self: start;

    max-height: calc(100vh - 130px);
}


/* ---------------------------------------------------------
   Product Logo
   --------------------------------------------------------- */

.igroup-product-logo {
    width: 100%;
    max-width: 280px;

    height: 130px;

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

    margin-bottom: 30px;
}

.igroup-product-logo img {
    display: block;

    width: auto;
    max-width: 240px;

    height: auto;
    max-height: 120px;

    object-fit: contain;
}


/* ---------------------------------------------------------
   Product Name
   --------------------------------------------------------- */

.igroup-product-name {
    margin: 0 0 14px;

    font-size: 34px;
    line-height: 1.2;
    font-weight: 600;

    color: var(--product-text);
}


/* ---------------------------------------------------------
   Product Category
   --------------------------------------------------------- */

.igroup-product-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 24px;
    padding: 7px 14px;

    border: 1px solid #d9d9d9;
    border-radius: 999px;

    background: #fff;
    color: #666 !important;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;

    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


/* Category Hover */

.igroup-product-category:hover,
.igroup-product-category:focus {
    background: #000;
    border-color: #000;

    color: #fff !important;

    text-decoration: none !important;
}


/* ---------------------------------------------------------
   Official Website
   --------------------------------------------------------- */

.igroup-product-website {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 10px;
    padding-bottom: 8px;

    border-bottom: 1px solid #222;

    color: #222 !important;

    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;

    text-decoration: none !important;

    transition:
        color 0.2s ease,
        font-weight 0.2s ease;
}


/* Official Website Hover */

.igroup-product-website:hover,
.igroup-product-website:focus {
    color: #222 !important;

    font-weight: 600;

    text-decoration: none !important;
}


/* ---------------------------------------------------------
   TOC
   --------------------------------------------------------- */

.igroup-product-toc {
    padding-top: 30px;

    border-top: 1px solid var(--product-border);
}


/* TOC Title */

.igroup-product-toc-title {
    margin-bottom: 20px;

    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;

    letter-spacing: 0.15em;
    text-transform: uppercase;

    color: #999;
}


/* TOC List */

.igroup-product-toc-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.igroup-product-toc-item {
    margin: 0;
    padding: 0;
}


/* TOC Link */

.igroup-product-toc-link {
    display: inline-block;

    padding: 7px 0;

    color: #222 !important;

    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;

    text-decoration: underline !important;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;

    transition:
        font-weight 0.2s ease;
}


/* TOC Hover */

.igroup-product-toc-link:hover,
.igroup-product-toc-link:focus {
    color: #222 !important;

    font-weight: 600;

    text-decoration: underline !important;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1199px) {

    .igroup-product-layout {
        gap: 55px;

        padding-left: 30px;
        padding-right: 30px;
    }

    .igroup-product-content h2 {
        font-size: 29px;
    }

    .igroup-product-name {
        font-size: 30px;
    }
}


@media (max-width: 991px) {

    .igroup-product-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 45px;

        padding-top: 60px;
        padding-bottom: 80px;
    }

    .igroup-product-sidebar {
        position: static;

        max-height: none;

        order: -1;
    }

    .igroup-product-logo {
        height: auto;
        min-height: 100px;
    }

    .igroup-product-toc {
        display: none;
    }
}


@media (max-width: 767px) {

    .igroup-product-layout {
        display: block;

        padding: 45px 20px 70px;
    }

    .igroup-product-sidebar {
        margin-bottom: 45px;
    }

    .igroup-product-logo {
        max-width: 220px;
        min-height: 90px;

        margin-bottom: 22px;
    }

    .igroup-product-logo img {
        max-width: 200px;
        max-height: 100px;
    }

    .igroup-product-name {
        font-size: 28px;
    }

    .igroup-product-content h2 {
        margin-top: 55px;

        font-size: 26px;

        scroll-margin-top: 100px;
    }

    .igroup-product-content h3 {
        font-size: 21px;

        scroll-margin-top: 100px;
    }

    .igroup-product-content p,
    .igroup-product-content li {
        font-size: 15px;
        line-height: 1.85;
    }

    .igroup-product-website {
        margin-bottom: 24px;
    }
}
