@charset "utf-8";

/* =========================================================
   Tehran Gearbox Modern Industrial UI
   ========================================================= */

:root {
    --tg-bg: #f4f3ef;
    --tg-surface: #ffffff;
    --tg-surface-alt: #ebe8e0;
    --tg-dark: #15191d;
    --tg-dark-soft: #20262b;
    --tg-text: #252a2e;
    --tg-muted: #6f7578;
    --tg-line: #dedbd3;
    --tg-accent: #c49247;
    --tg-accent-dark: #9d6e2d;
    --tg-red: #d8272f;
    --tg-blue: #176d92;
    --tg-radius-sm: 12px;
    --tg-radius-md: 20px;
    --tg-radius-lg: 30px;
    --tg-shadow: 0 22px 60px rgba(21, 25, 29, 0.10);
    --tg-container: 1100px;
}

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

html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--tg-text);
    background: var(--tg-bg) !important;
    font-family: 'yekan', Tahoma, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.8;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

p {
    color: var(--tg-muted);
    font-size: 14px;
    line-height: 2;
    text-align: inherit;
}

h1,
h2,
h3,
h4 {
    color: var(--tg-dark);
    line-height: 1.45;
}

h1 {
    font-size: clamp(30px, 4vw, 54px);
}

h2 {
    font-size: clamp(25px, 3vw, 38px);
}

h3 {
    font-size: 18px;
}

.tg-container {
    width: calc(100% - 32px);
    max-width: var(--tg-container);
    margin-right: auto;
    margin-left: auto;
}

.tg-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}


/* =========================================================
   Clean unified site header
   ========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    text-align: initial;
}

.tg-rtl {
    direction: rtl;
}

.tg-ltr {
    direction: ltr;
}

.tg-header-container {
    width: calc(100% - 32px);
    max-width: var(--tg-container);
    margin-right: auto;
    margin-left: auto;
}

.tg-site-header {
    position: relative;
    z-index: 5000;
    width: 100%;
    background: var(--tg-surface);
    box-shadow: 0 8px 30px rgba(21, 25, 29, .06);
}

.tg-topbar {
    min-height: 42px;
    color: rgba(255, 255, 255, .76);
    background: var(--tg-dark);
}

.tg-topbar-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    min-height: 42px;
    align-items: center;
}

.tg-social-links {
    display: flex;
    gap: 7px;
}

.tg-social-links a {
    display: grid;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    place-items: center;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 9px;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.tg-social-links a:hover {
    color: var(--tg-dark);
    background: var(--tg-accent);
    transform: translateY(-2px);
}

.tg-topbar-contact {
    display: flex;
    gap: 10px;
    align-items: center;
    direction: ltr;
}

.tg-topbar-contact a {
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.tg-language-switcher {
    display: flex;
    gap: 4px;
}

.tg-language-switcher a {
    display: grid;
    width: 32px;
    height: 25px;
    border-radius: 999px;
    place-items: center;
    color: rgba(255, 255, 255, .62);
    font-family: Arial, sans-serif;
    font-size: 10px;
}

.tg-language-switcher a.is-active {
    color: var(--tg-dark);
    background: var(--tg-accent);
}

.tg-main-header {
    background: #fff;
}

.tg-main-header-inner {
    display: grid;
    grid-template-columns: 245px minmax(220px, .8fr) minmax(480px, 1.35fr);
    gap: 32px;
    min-height: 132px;
    align-items: center;
}

.tg-site-logo {
    display: flex;
    align-items: center;
}

.tg-site-logo img {
    display: block;
    width: 100%;
    max-width: 245px;
    max-height: 100px;
    object-fit: contain;
}

.tg-header-description {
    display: grid;
    gap: 2px;
    min-width: 0;
    color: var(--tg-muted);
    line-height: 1.7;
}

.tg-header-description strong {
    color: var(--tg-dark);
    font-size: 16px;
}

.tg-header-description span {
    color: var(--tg-text);
    font-family: inherit !important;
    font-size: 12px;
}

.tg-header-description small {
    color: var(--tg-muted);
    font-size: 11px;
}

.tg-primary-navigation {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
}

.tg-primary-navigation a {
    position: relative;
    display: inline-flex;
    min-height: 54px;
    padding: 0 15px;
    align-items: center;
    justify-content: center;
    color: var(--tg-dark);
    font-size: 13px;
    white-space: nowrap;
}

.tg-primary-navigation a::after {
    position: absolute;
    right: 15px;
    bottom: 6px;
    left: 15px;
    height: 2px;
    content: "";
    border-radius: 2px;
    background: var(--tg-accent);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.tg-primary-navigation a:hover::after,
.tg-primary-navigation a.is-active::after {
    transform: scaleX(1);
}

.tg-main-nav-toggle {
    display: none;
}

.tg-products-header {
    position: relative;
    z-index: 5100;
    width: 100%;
    min-height: 76px;
    padding-bottom: 16px;
    background: #fff;
}

#grayc.tg-products-nav {
    position: relative !important;
    width: calc(100% - 32px) !important;
    max-width: var(--tg-container) !important;
    height: 76px !important;
    min-height: 76px !important;
    margin: 0 auto !important;
    overflow: visible !important;
    border-radius: 14px !important;
    background: var(--tg-dark) !important;
    box-shadow: 0 16px 34px rgba(21, 25, 29, .16) !important;
}

#grayc .nav_wra {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    height: 76px !important;
    min-height: 76px !important;
    margin: 0 !important;
    overflow: visible !important;
    border-radius: 14px !important;
    background: var(--tg-dark) !important;
    align-items: stretch !important;
}

.tg-products-toggle {
    display: none;
}

#grayc #menu.menu {
    position: static !important;
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 76px !important;
    min-height: 76px !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
}

#grayc #menu.menu > ul.dropdown {
    position: static !important;
    display: flex !important;
    width: 100% !important;
    height: 76px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    align-items: stretch !important;
    justify-content: center !important;
    list-style: none !important;
}

#grayc #menu.menu > ul.dropdown > li {
    position: relative !important;
    display: flex !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 76px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    list-style: none !important;
}

#grayc #menu.menu > ul.dropdown > li > a {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 76px !important;
    padding: 8px 7px !important;
    overflow: hidden !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    background: transparent !important;
    font-size: 10px !important;
    line-height: 1.55 !important;
    text-align: center !important;
    white-space: normal !important;
}

#grayc #menu.menu > ul.dropdown > li:hover > a,
#grayc #menu.menu > ul.dropdown > li.hover > a {
    color: var(--tg-dark) !important;
    background: var(--tg-accent) !important;
}

#grayc #menu.menu ul.sub-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    display: none !important;
    width: 250px !important;
    min-width: 250px !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 8px !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 0 14px 14px !important;
    background: var(--tg-dark-soft) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .24) !important;
    list-style: none !important;
    z-index: 99999 !important;
}

#grayc #menu.menu > ul.dropdown > li:nth-last-child(-n+2) > ul.sub-menu {
    right: auto !important;
    left: 0 !important;
}

#grayc #menu.menu li:hover > ul.sub-menu,
#grayc #menu.menu li.hover > ul.sub-menu {
    display: block !important;
}

#grayc #menu.menu ul.sub-menu > li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#grayc #menu.menu ul.sub-menu > li > a {
    display: block !important;
    width: 100% !important;
    min-height: 42px !important;
    padding: 10px 13px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 7px !important;
    color: rgba(255, 255, 255, .86) !important;
    background: transparent !important;
    font-size: 11px !important;
    line-height: 1.8 !important;
    text-align: right !important;
    white-space: normal !important;
}

#grayc #menu.menu ul.sub-menu > li > a:hover {
    color: var(--tg-dark) !important;
    background: var(--tg-accent) !important;
}

.tg-products-search-toggle {
    display: grid !important;
    flex: 0 0 64px !important;
    width: 64px !important;
    height: 76px !important;
    padding: 0 !important;
    border: 0 !important;
    cursor: pointer !important;
    place-items: center !important;
    color: #fff !important;
    background: transparent !important;
}

.tg-products-search-toggle svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.tg-products-search-toggle:hover {
    color: var(--tg-accent) !important;
}

#grayc .search_box {
    position: absolute !important;
    top: 76px !important;
    right: 0 !important;
    left: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    width: 100% !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 14px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    border-radius: 0 0 14px 14px !important;
    background: var(--tg-accent) !important;
    transition: height .2s ease, max-height .2s ease, padding .2s ease, opacity .2s ease !important;
    z-index: 99998 !important;
}

#grayc .search_box.active {
    height: 72px !important;
    max-height: 72px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    opacity: 1 !important;
}

#grayc .search_box input {
    width: 100% !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 15px !important;
    border: 0 !important;
    border-radius: 10px !important;
    outline: 0 !important;
    color: var(--tg-dark) !important;
    background: #fff !important;
}

#grayc .search_box .search_icon {
    min-width: 96px !important;
    height: 52px !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    color: #fff !important;
    background: var(--tg-dark) !important;
    font-weight: 700 !important;
}

.tg-whatsapp-float {
    position: fixed !important;
    left: 18px !important;
    right: auto !important;
    bottom: 24px !important;
    z-index: 999999 !important;
    display: flex !important;
    min-height: 56px !important;
    padding: 7px 13px 7px 8px !important;
    border-radius: 999px !important;
    align-items: center !important;
    gap: 9px !important;
    color: #fff !important;
    background: #147a55 !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .24) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
}

.tg-whatsapp-float svg {
    width: 40px;
    height: 40px;
    fill: #fff;
}

.tg-whatsapp-float:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .30) !important;
}

#mobtop,
.middlediv,
#fixed-topper,
#flink {
    display: none !important;
}

#main-content {
    position: relative;
    z-index: 1;
}

@media (max-width: 1050px) {
    .tg-main-header-inner {
        grid-template-columns: 215px minmax(180px, .7fr) minmax(420px, 1.2fr);
        gap: 22px;
    }

    .tg-primary-navigation a {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 12px;
    }

    #grayc #menu.menu > ul.dropdown > li > a {
        font-size: 9px !important;
    }
}

@media (max-width: 820px) {
    .tg-main-header-inner {
        grid-template-columns: 190px 1fr auto;
        min-height: 104px;
    }

    .tg-header-description {
        display: none;
    }

    .tg-main-nav-toggle {
        display: grid;
        width: 46px;
        height: 46px;
        padding: 10px;
        border: 1px solid var(--tg-line);
        border-radius: 12px;
        cursor: pointer;
        background: #fff;
        align-content: center;
        gap: 5px;
    }

    .tg-main-nav-toggle > span:not(.tg-sr-only) {
        display: block;
        width: 100%;
        height: 2px;
        border-radius: 2px;
        background: var(--tg-dark);
    }

    .tg-primary-navigation {
        position: absolute;
        top: 100%;
        right: 16px;
        left: 16px;
        display: none;
        padding: 10px;
        border-radius: 14px;
        background: #fff;
        box-shadow: var(--tg-shadow);
        flex-direction: column;
        z-index: 6000;
    }

    .tg-primary-navigation.is-open {
        display: flex;
    }

    .tg-primary-navigation a {
        width: 100%;
        min-height: 46px;
    }

    .tg-products-toggle {
        display: flex !important;
        flex: 1 1 auto !important;
        min-height: 58px !important;
        padding: 0 16px !important;
        border: 0 !important;
        cursor: pointer !important;
        align-items: center !important;
        gap: 7px !important;
        color: #fff !important;
        background: transparent !important;
    }

    .tg-products-toggle > span {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
    }

    .tg-products-toggle strong {
        margin-right: 4px;
        font-size: 12px;
    }

    #grayc.tg-products-nav,
    #grayc .nav_wra {
        height: auto !important;
        min-height: 58px !important;
    }

    #grayc .nav_wra {
        flex-wrap: wrap !important;
    }

    #grayc #menu.menu {
        order: 3;
        flex: 0 0 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        background: var(--tg-dark-soft) !important;
        transition: max-height .25s ease !important;
    }

    #grayc #menu.menu.active {
        max-height: 1800px !important;
    }

    #grayc #menu.menu > ul.dropdown,
    #grayc #menu.menu > ul.dropdown > li {
        display: block !important;
        width: 100% !important;
        height: auto !important;
    }

    #grayc #menu.menu > ul.dropdown > li > a {
        min-height: 48px !important;
        height: auto !important;
        padding: 11px 18px !important;
        border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
        justify-content: flex-start !important;
        font-size: 11px !important;
        text-align: right !important;
    }

    #grayc #menu.menu ul.sub-menu {
        position: static !important;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-height: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: rgba(0, 0, 0, .15) !important;
        transition: max-height .25s ease !important;
    }

    #grayc #menu.menu ul.sub-menu.active {
        max-height: 1000px !important;
    }

    #grayc #menu.menu ul.sub-menu > li > a {
        padding-right: 32px !important;
    }

    .tg-products-search-toggle {
        flex: 0 0 58px !important;
        width: 58px !important;
        height: 58px !important;
    }

    #grayc .search_box {
        top: 58px !important;
    }
}

@media (max-width: 600px) {
    .tg-header-container {
        width: calc(100% - 20px);
    }

    .tg-topbar-inner {
        grid-template-columns: 1fr auto;
    }

    .tg-topbar-contact {
        display: none;
    }

    .tg-main-header-inner {
        grid-template-columns: minmax(150px, 1fr) auto;
        gap: 15px;
        min-height: 90px;
    }

    .tg-site-logo img {
        max-width: 185px;
        max-height: 74px;
    }

    .tg-language-switcher {
        justify-self: end;
    }

    .tg-whatsapp-float {
        left: 10px !important;
        bottom: 12px !important;
        width: 54px !important;
        min-height: 54px !important;
        padding: 7px !important;
        justify-content: center !important;
    }

    .tg-whatsapp-float span {
        display: none;
    }

    .tg-whatsapp-float svg {
        width: 38px;
        height: 38px;
    }

    #grayc.tg-products-nav {
        width: calc(100% - 20px) !important;
    }

    #grayc .search_box.active {
        height: 130px !important;
        max-height: 130px !important;
        grid-template-columns: 1fr !important;
    }

    #grayc .search_box .search_icon {
        width: 100% !important;
    }
}


/* =========================================================
   Existing slider
   ========================================================= */

.tg-current-slider {
    position: relative;
    z-index: 1;
    margin-top: 18px !important;
    border-radius: var(--tg-radius-md);
    box-shadow: var(--tg-shadow);
}

.tg-current-slider,
.tg-current-slider .rslides,
.tg-current-slider .rslides li,
.tg-current-slider .rslides img {
    border-radius: var(--tg-radius-md);
}

.tg-current-slider .rslides img {
    display: block;
    width: 100%;
}

.rslides_nav {
    border-radius: 10px;
    background: rgba(21, 25, 29, .90) !important;
}


/* =========================================================
   Home page shared components
   ========================================================= */

.tg-home {
    overflow: hidden;
}

.tg-section {
    padding: 90px 0;
}

.tg-section-muted {
    background: var(--tg-surface-alt);
}

.tg-eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--tg-accent-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
}

.tg-section-header {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
    gap: 70px;
    margin-bottom: 40px;
    align-items: end;
}

.tg-section-header p {
    max-width: 470px;
}

.tg-section-header-light h2,
.tg-section-header-light p {
    color: #fff;
}

.tg-section-header-light .tg-eyebrow {
    color: var(--tg-accent);
}

.tg-section-link,
.tg-text-link {
    display: inline-flex;
    color: var(--tg-dark);
    font-weight: 700;
    align-items: center;
    gap: 8px;
}

.tg-section-link::after,
.tg-text-link::after {
    content: "←";
    transition: transform .2s ease;
}

html[lang^="en"] .tg-section-link::after,
html[lang^="en"] .tg-text-link::after {
    content: "→";
}

.tg-section-link:hover::after,
.tg-text-link:hover::after {
    transform: translateX(-5px);
}

html[lang^="en"] .tg-section-link:hover::after,
html[lang^="en"] .tg-text-link:hover::after {
    transform: translateX(5px);
}

.tg-button {
    display: inline-flex;
    min-height: 50px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.tg-button:hover {
    transform: translateY(-2px);
}

.tg-button-primary {
    color: #fff;
    background: var(--tg-dark);
    box-shadow: 0 12px 25px rgba(21, 25, 29, .18);
}

.tg-button-primary:hover {
    background: var(--tg-accent-dark);
}

.tg-button-secondary {
    color: var(--tg-dark);
    border-color: var(--tg-dark);
}

.tg-button-secondary:hover {
    color: #fff;
    background: var(--tg-dark);
}

.tg-button-dark {
    color: #fff;
    background: var(--tg-dark);
}

.tg-button-accent {
    color: var(--tg-dark);
    background: var(--tg-accent);
}

.tg-button-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
}


/* =========================================================
   Intro and search
   ========================================================= */

.tg-intro-section {
    padding: 52px 0 70px;
}

.tg-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    gap: 54px;
    align-items: center;
}

.tg-intro-copy h1 {
    max-width: 760px;
    margin-bottom: 22px;
}

.tg-intro-copy p {
    max-width: 690px;
    font-size: 16px;
}

.tg-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.tg-search-panel {
    position: relative;
    padding: 34px;
    border-radius: var(--tg-radius-md);
    color: #fff;
    background: var(--tg-dark);
    box-shadow: var(--tg-shadow);
}

.tg-search-panel::before {
    position: absolute;
    top: 0;
    right: 32px;
    width: 75px;
    height: 5px;
    content: "";
    border-radius: 0 0 5px 5px;
    background: var(--tg-accent);
}

.tg-search-panel h2 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 25px;
}

.tg-search-panel p {
    color: rgba(255, 255, 255, .66);
}

.tg-search-icon {
    display: block;
    width: 38px;
    height: 38px;
    margin-bottom: 30px;
    border: 3px solid var(--tg-accent);
    border-radius: 50%;
}

.tg-search-icon::after {
    display: block;
    width: 15px;
    height: 3px;
    margin-top: 29px;
    margin-right: -8px;
    content: "";
    background: var(--tg-accent);
    transform: rotate(-45deg);
}

.tg-product-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 22px;
}

.tg-product-search input {
    min-width: 0;
    height: 52px;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 12px;
    outline: 0;
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.tg-product-search input:focus {
    border-color: var(--tg-accent);
}

.tg-product-search button {
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    color: var(--tg-dark);
    background: var(--tg-accent);
    font-weight: 700;
}

.tg-search-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
}

.tg-search-examples strong {
    padding: 3px 9px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: rgba(255, 255, 255, .8);
}


/* =========================================================
   Categories
   ========================================================= */

.tg-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.tg-category-card {
    overflow: hidden;
    border: 1px solid var(--tg-line);
    border-radius: var(--tg-radius-md);
    background: var(--tg-surface);
    transition: transform .25s ease, box-shadow .25s ease;
}

.tg-category-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--tg-shadow);
}

.tg-category-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f0eb;
}

.tg-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.tg-category-card:hover .tg-category-image img {
    transform: scale(1.05);
}

.tg-category-number {
    position: absolute;
    top: 14px;
    left: 14px;
    display: grid;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    place-items: center;
    color: var(--tg-dark);
    background: var(--tg-accent);
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.tg-category-content {
    padding: 22px;
}

.tg-category-content h3 {
    margin-bottom: 8px;
}

.tg-category-content p {
    min-height: 54px;
    margin-bottom: 15px;
    font-size: 12px;
}


/* =========================================================
   Product cards
   ========================================================= */

.tg-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.tg-product-card {
    overflow: hidden;
    border: 1px solid rgba(21, 25, 29, .08);
    border-radius: var(--tg-radius-md);
    background: var(--tg-surface);
    transition: transform .25s ease, box-shadow .25s ease;
}

.tg-product-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--tg-shadow);
}

.tg-product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    padding: 18px;
    overflow: hidden;
    background: #f8f7f3;
}

.tg-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
}

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

.tg-product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: var(--tg-dark);
    font-family: Arial, sans-serif;
    font-size: 10px;
}

.tg-product-content {
    padding: 20px;
}

.tg-product-content h3 {
    min-height: 50px;
    margin-bottom: 8px;
}

.tg-product-content p {
    margin-bottom: 12px;
    font-size: 12px;
}

.tg-product-code {
    color: var(--tg-accent-dark) !important;
    font-family: Arial, sans-serif;
}


/* =========================================================
   Workflow, stats and markets
   ========================================================= */

.tg-workflow-section {
    color: #fff;
    background: var(--tg-dark);
}

.tg-workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.tg-workflow-card {
    padding: 28px 24px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: var(--tg-radius-md);
    background: rgba(255, 255, 255, .04);
}

.tg-workflow-card h3 {
    margin-bottom: 12px;
    color: #fff;
}

.tg-workflow-card p {
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
}

.tg-step-number {
    display: block;
    margin-bottom: 34px;
    color: var(--tg-accent);
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
}

.tg-stats-section {
    padding: 0 0 20px;
    background: var(--tg-dark);
}

.tg-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.tg-stat-item {
    padding: 42px 20px;
    text-align: center;
}

.tg-stat-item + .tg-stat-item {
    border-right: 1px solid rgba(255, 255, 255, .10);
}

.tg-stat-item strong {
    display: block;
    color: var(--tg-accent);
    font-family: Arial, sans-serif;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1;
}

.tg-stat-item span {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, .72);
    font-family: inherit !important;
    font-size: 12px;
}

.tg-market-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--tg-line);
    border-radius: var(--tg-radius-md);
    background: var(--tg-line);
}

.tg-market-card {
    min-height: 190px;
    padding: 26px;
    background: var(--tg-surface);
    transition: color .2s ease, background .2s ease;
}

.tg-market-card:hover {
    color: #fff;
    background: var(--tg-dark);
}

.tg-market-card > span {
    display: block;
    margin-bottom: 30px;
    color: var(--tg-accent-dark);
    font-family: Arial, sans-serif !important;
    font-size: 12px;
}

.tg-market-card h3 {
    margin-bottom: 8px;
}

.tg-market-card:hover h3,
.tg-market-card:hover p {
    color: #fff;
}


/* =========================================================
   About and brands
   ========================================================= */

.tg-about-section {
    background: var(--tg-surface);
}

.tg-about-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 70px;
    align-items: center;
}

.tg-about-gallery {
    position: relative;
    min-height: 570px;
}

.tg-about-main-image {
    width: 82%;
    height: 520px;
    border-radius: var(--tg-radius-lg);
    object-fit: cover;
    box-shadow: var(--tg-shadow);
}

.tg-about-small-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 48%;
    height: 235px;
    border: 10px solid var(--tg-surface);
    border-radius: var(--tg-radius-md);
    object-fit: cover;
    box-shadow: var(--tg-shadow);
}

.tg-about-copy h2 {
    margin-bottom: 20px;
}

.tg-about-copy > p {
    margin-bottom: 24px;
    font-size: 15px;
}

.tg-feature-list {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
    list-style: none;
}

.tg-feature-list li {
    position: relative;
    padding-right: 28px;
    color: var(--tg-text);
}

.tg-feature-list li::before {
    position: absolute;
    top: 10px;
    right: 0;
    width: 13px;
    height: 13px;
    content: "";
    border: 3px solid var(--tg-accent);
    border-radius: 50%;
}

html[lang^="en"] .tg-feature-list li {
    padding-right: 0;
    padding-left: 28px;
}

html[lang^="en"] .tg-feature-list li::before {
    right: auto;
    left: 0;
}

.tg-brand-section {
    padding: 45px 0;
    border-top: 1px solid var(--tg-line);
    border-bottom: 1px solid var(--tg-line);
    background: var(--tg-surface);
}

.tg-brand-label {
    margin-bottom: 24px;
    text-align: center;
}

.tg-brand-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.tg-brand-grid div {
    display: grid;
    min-height: 92px;
    padding: 12px;
    border: 1px solid var(--tg-line);
    border-radius: var(--tg-radius-sm);
    background: #fff;
    place-items: center;
}

.tg-brand-grid img {
    max-height: 65px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .72;
    transition: filter .2s ease, opacity .2s ease;
}

.tg-brand-grid div:hover img {
    filter: grayscale(0);
    opacity: 1;
}


/* =========================================================
   Articles and CTA
   ========================================================= */

.tg-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.tg-article-card {
    overflow: hidden;
    border-radius: var(--tg-radius-md);
    background: var(--tg-surface);
}

.tg-article-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.tg-article-card > a > div {
    padding: 24px;
}

.tg-article-type {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--tg-accent-dark);
    font-family: inherit !important;
    font-size: 11px;
    font-weight: 700;
}

.tg-article-card h3 {
    min-height: 52px;
    margin-bottom: 10px;
}

.tg-article-card p {
    margin-bottom: 15px;
    font-size: 12px;
}

.tg-article-placeholder {
    grid-column: 1 / -1;
    padding: 40px;
    border-radius: var(--tg-radius-md);
    background: var(--tg-surface);
    text-align: center;
}

.tg-cta-section {
    padding: 70px 0;
    color: #fff;
    background: var(--tg-dark-soft);
}

.tg-cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 50px;
    align-items: center;
}

.tg-cta-section h2 {
    margin-bottom: 12px;
    color: #fff;
}

.tg-cta-section p {
    color: rgba(255, 255, 255, .65);
}

.tg-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


/* =========================================================
   Modern footer
   ========================================================= */

.tg-footer {
    padding: 78px 0 0;
    color: rgba(255, 255, 255, .75);
    background: #0f1215;
}

.tg-footer-main {
    display: grid;
    grid-template-columns: 1.35fr .8fr .75fr 1.1fr;
    gap: 48px;
    padding-bottom: 55px;
}

.tg-footer-logo {
    display: inline-block;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
}

.tg-footer-logo img {
    max-width: 210px;
}

.tg-footer-about p {
    max-width: 340px;
    margin-top: 20px;
    color: rgba(255, 255, 255, .56);
}

.tg-footer-social {
    display: flex;
    gap: 8px;
    margin-top: 22px;
}

.tg-footer-social a {
    display: grid;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    place-items: center;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 10px;
}

.tg-footer-social a:hover {
    color: var(--tg-dark);
    border-color: var(--tg-accent);
    background: var(--tg-accent);
}

.tg-footer h2 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 16px;
}

.tg-footer ul {
    display: grid;
    gap: 10px;
    list-style: none;
}

.tg-footer li a {
    color: rgba(255, 255, 255, .56);
    font-size: 13px;
}

.tg-footer li a:hover {
    color: var(--tg-accent);
}

.tg-footer-contact {
    display: grid;
    align-content: start;
    gap: 12px;
}

.tg-footer-contact-item {
    display: block;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.tg-footer-contact-item span {
    display: block;
    color: rgba(255, 255, 255, .45);
    font-family: inherit !important;
    font-size: 10px;
}

.tg-footer-contact-item strong {
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.tg-footer-quote {
    display: inline-flex;
    min-height: 46px;
    margin-top: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    color: var(--tg-dark);
    background: var(--tg-accent);
    font-weight: 700;
}

.tg-footer-bottom {
    display: flex;
    min-height: 70px;
    border-top: 1px solid rgba(255, 255, 255, .10);
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.tg-footer-bottom p {
    color: rgba(255, 255, 255, .45);
    font-size: 11px;
}


/* =========================================================
   Existing product/list pages compatibility
   ========================================================= */

#pro-main,
#theninja,
#theerror {
    width: calc(100% - 32px);
    max-width: var(--tg-container);
    margin: 35px auto;
    padding: 0;
}

#prodcontent,
#procontent {
    width: 100%;
}

.sidebar {
    height: auto;
    padding: 15px 20px;
    border-radius: var(--tg-radius-sm);
    color: #fff;
    background: var(--tg-dark);
}

.sidelab {
    padding: 20px;
    border: 1px solid var(--tg-line);
    border-radius: var(--tg-radius-sm);
    background: #fff;
}

.pro-id {
    width: 100%;
    margin: 18px 0;
    border: 1px solid var(--tg-line);
    border-radius: var(--tg-radius-md);
    background: #fff;
    box-shadow: none;
}

.picpro-id {
    overflow: hidden;
    border: 0;
    border-radius: var(--tg-radius-md);
}

.picpro-id img {
    border-radius: var(--tg-radius-md);
}

#pro-picture {
    overflow: hidden;
    border: 1px solid var(--tg-line);
    border-radius: var(--tg-radius-md);
    background: #fff;
}

#pro-picture img {
    border-radius: var(--tg-radius-md);
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
    .tg-category-grid,
    .tg-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tg-workflow-grid,
    .tg-market-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tg-intro-grid,
    .tg-about-grid {
        grid-template-columns: 1fr;
    }

    .tg-intro-grid {
        gap: 30px;
    }

    .tg-about-gallery {
        max-width: 650px;
    }

    .tg-brand-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tg-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #masterlinks > table > tbody > tr > td:first-child {
        width: 240px !important;
    }

    #masterlinks img {
        max-width: 210px;
    }
}

@media (max-width: 760px) {
    .tg-container {
        width: calc(100% - 20px);
    }

    .tg-section {
        padding: 62px 0;
    }

    .tg-section-header,
    .tg-cta-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tg-product-search {
        grid-template-columns: 1fr;
    }

    .tg-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tg-stat-item:nth-child(3) {
        border-top: 1px solid rgba(255, 255, 255, .10);
    }

    .tg-stat-item:nth-child(4) {
        border-top: 1px solid rgba(255, 255, 255, .10);
    }

    .tg-article-grid {
        grid-template-columns: 1fr;
    }

    .tg-footer-main {
        grid-template-columns: 1fr;
    }

    .tg-footer-bottom {
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
    }

    #thetopper {
        display: none;
    }

    #mobtop {
        display: block;
        width: calc(100% - 20px);
        margin: 10px auto;
        overflow: hidden;
        border-radius: var(--tg-radius-md);
        background: #fff;
        box-shadow: var(--tg-shadow);
    }

    .middlediv {
        display: none;
    }

    .tg-current-slider {
        width: calc(100% - 20px) !important;
        margin-top: 10px !important;
    }

    #grayc {
        height: auto !important;
        min-height: 58px;
    }

    .nav_wra,
    .menu {
        min-height: 58px;
        height: auto;
    }
}

@media (max-width: 520px) {
    .tg-category-grid,
    .tg-product-grid,
    .tg-workflow-grid,
    .tg-market-grid,
    .tg-brand-grid {
        grid-template-columns: 1fr;
    }

    .tg-intro-section {
        padding-top: 32px;
    }

    .tg-search-panel {
        padding: 26px 20px;
    }

    .tg-about-gallery {
        min-height: 430px;
    }

    .tg-about-main-image {
        width: 90%;
        height: 390px;
    }

    .tg-about-small-image {
        width: 52%;
        height: 175px;
    }

    .tg-stat-item {
        padding: 30px 12px;
    }

    .tg-cta-actions,
    .tg-intro-actions {
        flex-direction: column;
    }

    .tg-button {
        width: 100%;
    }
}


/* Final header safeguards */
#thetopper.tg-site-header {
    display: block !important;
}

#mobtop,
.middlediv,
#fixed-topper,
#flink {
    display: none !important;
}

@media (max-width: 760px) {
    #thetopper.tg-site-header {
        display: block !important;
    }

    #mobtop,
    .middlediv {
        display: none !important;
    }
}
