@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');


/* =========================================================
   GLOBAL RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: "Manrope", sans-serif;
    background: #ffffff;
    color: #111111;
}

img {
    max-width: 100%;
}


/* =========================================================
   PAGE
========================================================= */

.bolts-page {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.bolts-header {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
}


/* =========================================================
   TITLE
========================================================= */

.bolts-title {
    min-width: 0;
}

.bolts-title h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: #1d4169;
}

.bolts-title span {
    display: block;
    width: 74px;
    height: 3px;
    margin-top: 10px;
    background: #ef3b4f;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.back-products {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    min-width: 170px;
    height: 40px;

    padding: 0 24px;

    background: #ef3b4f;
    color: #ffffff;

    border-radius: 25px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.back-products:hover {
    background: #d92e42;
    transform: translateY(-1px);
}


/* =========================================================
   BANNER
========================================================= */

.bolts-banner {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    line-height: 0;
}

.bolts-banner img {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================================================
   TABLE SECTION
========================================================= */

.grade-table-section {
    width: 100%;
    padding: 0 20px 45px;
    background: #ffffff;
}

.grade-table-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}


/* =========================================================
   TABLE WRAPPER
========================================================= */

.grade-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}


/* =========================================================
   TABLE
========================================================= */

.grade-table {
    width: 100%;
    max-width: 100%;

    border-collapse: collapse;
    table-layout: fixed;

    background: #dbe6f2;
    color: #222222;

    font-family: "Manrope", sans-serif;
}


/* =========================================================
   TABLE HEADER
========================================================= */

.grade-table thead {
    background: #004380;
    color: #ffffff;
}

.grade-table th {
    padding: 15px 9px;

    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;

    text-align: center;
    vertical-align: middle;

    overflow-wrap: anywhere;
    word-break: normal;
}


/* =========================================================
   TABLE BODY
========================================================= */

.grade-table td {
    padding: 14px 9px;

    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;

    text-align: center;
    vertical-align: middle;

    overflow-wrap: anywhere;
    word-break: normal;
}

.grade-table th:last-child,
.grade-table td:last-child {
    border-right: none;
}


/* =========================================================
   COLUMN WIDTHS
========================================================= */

.grade-table th:nth-child(1),
.grade-table td:nth-child(1) {
    width: 16%;
}

.grade-table th:nth-child(2),
.grade-table td:nth-child(2) {
    width: 20%;
}

.grade-table th:nth-child(3),
.grade-table td:nth-child(3) {
    width: 19%;
}

.grade-table th:nth-child(4),
.grade-table td:nth-child(4) {
    width: 17%;
}

.grade-table th:nth-child(5),
.grade-table td:nth-child(5) {
    width: 15%;
}

.grade-table th:nth-child(6),
.grade-table td:nth-child(6) {
    width: 13%;
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.grade-image {
    display: block;

    width: 140px;
    height: 110px;

    max-width: 100%;

    margin: 0 auto;

    object-fit: contain;
}


/* =========================================================
   ROW HOVER
========================================================= */

.grade-table tbody tr {
    transition: background-color 0.2s ease;
}

.grade-table tbody tr:hover {
    background: #eeeeee;
}


/* =========================================================
   INFORMATION SECTION
========================================================= */

.fastener-info-section {
    width: 100%;
    padding: 10px 20px 20px;
}

.fastener-info-content {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
}

.fastener-info-content p {
    margin: 0 0 22px;

    color: #333333;

    font-size: 16px;
    line-height: 1.75;
    font-weight: 500;
}

.fastener-info-content strong {
    color: #173d63;
    font-size: 24px;
    font-weight: 700;
}


/* =========================================================
   MATERIALS
========================================================= */

.materials-section {
    width: 100%;
    padding: 45px 20px 60px;
    background: #ffffff;
}

.materials-container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
}

.materials-heading {
    margin: 0 0 30px;

    font-size: 18px;
    font-weight: 800;

    letter-spacing: 0.3px;
    text-transform: uppercase;

    color: #004380;
}


/* =========================================================
   MATERIAL GRID
========================================================= */

.materials-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: 70px;

    border-top: 1px solid #e2e6ea;
}


/* =========================================================
   MATERIAL ITEM
========================================================= */

.material-item {
    display: flex;
    align-items: center;

    min-width: 0;
    min-height: 78px;

    border-bottom: 1px solid #e2e6ea;

    transition: padding-left 0.2s ease;
}

.material-item:hover {
    padding-left: 6px;
}


/* =========================================================
   NUMBER
========================================================= */

.material-number {
    width: 34px;
    height: 34px;

    margin-right: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: 1px solid #d7dfe6;
    border-radius: 50%;

    background: #f8fafc;

    color: #004380;

    font-size: 11px;
    font-weight: 700;
}

.material-item:hover .material-number {
    background: #004380;
    color: #ffffff;
    border-color: #004380;
}


/* =========================================================
   MATERIAL NAME
========================================================= */

.material-item h3 {
    min-width: 0;

    margin: 0;

    color: #202831;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;

    overflow-wrap: anywhere;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .bolts-page {
        max-width: 100%;
        padding-left: 25px;
        padding-right: 25px;
    }

    .grade-table-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .grade-table th {
        padding: 12px 6px;
        font-size: 13px;
    }

    .grade-table td {
        padding: 12px 6px;
        font-size: 12px;
    }

    .grade-image {
        width: 100px;
        height: 85px;
    }

    .materials-section {
        padding-left: 25px;
        padding-right: 25px;
    }
}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 800px) {

    .bolts-header {
        gap: 15px;
    }

    .bolts-title h1 {
        font-size: 25px;
    }

    .back-products {
        min-width: 150px;
        padding: 0 18px;
        font-size: 13px;
    }

    .grade-table th {
        font-size: 11px;
        padding: 10px 5px;
    }

    .grade-table td {
        font-size: 11px;
        padding: 10px 5px;
    }

    .grade-image {
        width: 80px;
        height: 70px;
    }

    .fastener-info-content p {
        font-size: 15px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .bolts-page {
        width: 100%;
        max-width: 100%;

        padding: 25px 15px 35px;
    }


    /* PAGE HEADER */

    .bolts-header {
        display: flex;
        align-items: center;
        gap: 12px;

        margin-bottom: 22px;
    }

    .bolts-title {
        flex: 1;
        min-width: 0;
    }

    .bolts-title h1 {
        font-size: 20px;
        line-height: 1.25;
    }

    .bolts-title span {
        width: 55px;
        height: 2px;
        margin-top: 7px;
    }

    .back-products {
        flex-shrink: 0;

        min-width: auto;
        height: 35px;

        padding: 0 13px;

        font-size: 11px;
    }


    /* BANNER */

    .bolts-banner {
        border-radius: 10px;
    }


    /* TABLE SECTION */

    .grade-table-section {
        padding: 15px 15px 30px;
    }

    .grade-table-wrapper {
        overflow: visible;
    }


    /* TURN TABLE INTO CARDS */

    .grade-table,
    .grade-table tbody {
        display: block;
        width: 100%;
    }

    .grade-table thead {
        display: none;
    }

    .grade-table tr {
        display: block;

        width: 100%;

        margin-bottom: 18px;

        background: #dbe6f2;

        border: 1px solid #c8d6e4;
        border-radius: 12px;

        overflow: hidden;

        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    }

    .grade-table td {
        display: grid;

        grid-template-columns: 40% minmax(0, 60%);

        width: 100% !important;

        min-height: 45px;

        padding: 10px 12px;

        border: none;
        border-bottom: 1px solid #ffffff;

        font-size: 12px;
        line-height: 1.45;

        text-align: left;

        overflow-wrap: anywhere;
    }

    .grade-table td:last-child {
        border-bottom: none;
    }

    .grade-table td::before {
        content: attr(data-label);

        padding-right: 8px;

        color: #004380;

        font-size: 11px;
        font-weight: 800;

        line-height: 1.4;
    }


    /* PRODUCT IMAGE */

    .grade-table td:first-child {
        display: block;

        padding: 15px;

        text-align: center;

        background: #ffffff;
    }

    .grade-table td:first-child::before {
        display: block;

        margin-bottom: 10px;

        text-align: center;
    }

    .grade-image {
        width: 110px;
        height: 90px;
        margin: 0 auto;
    }


    /* INFORMATION */

    .fastener-info-section {
        padding: 10px 15px 20px;
    }

    .fastener-info-content p {
        font-size: 14px;
        line-height: 1.75;

        margin-bottom: 18px;
    }

    .fastener-info-content strong {
        font-size: 19px;
    }


    /* MATERIALS */

    .materials-section {
        padding: 35px 15px 45px;
    }

    .materials-heading {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .materials-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .material-item {
        min-height: 62px;
    }

    .material-number {
        width: 30px;
        height: 30px;

        margin-right: 13px;

        font-size: 10px;
    }

    .material-item h3 {
        font-size: 14px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .bolts-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .bolts-header {
        gap: 8px;
    }

    .bolts-title h1 {
        font-size: 18px;
    }

    .back-products {
        height: 33px;
        padding: 0 10px;
        font-size: 10px;
    }

    .grade-table-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .grade-table td {
        grid-template-columns: 38% minmax(0, 62%);
        padding: 9px 10px;
        font-size: 11px;
    }

    .grade-table td::before {
        font-size: 10px;
    }

    .grade-image {
        width: 95px;
        height: 80px;
    }

    .fastener-info-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .fastener-info-content p {
        font-size: 13px;
    }

    .fastener-info-content strong {
        font-size: 18px;
    }

    .materials-section {
        padding-left: 12px;
        padding-right: 12px;
    }
}


/* =========================================================
   FOOTER OVERFLOW PROTECTION
========================================================= */

.site-footer {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
}