/* Additions required by the server-rendered pages. The original page styles
   remain in index.css / mis.css / products.css / order.css / about.css / contact.css. */

/* Product cards become crawlable links while keeping the original look. */
.product-box > a {
    display: block;
    text-decoration: none;
}

.product-box > a:focus-visible,
.catalog-category:focus-visible {
    outline: 2px solid #F4452D;
    outline-offset: 4px;
}

/* Breadcrumbs */
.breadcrumbs {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #393939;
}

.breadcrumbs a {
    color: #393939;
}

.breadcrumbs a:hover {
    color: #F4452D;
}

.breadcrumb-sep {
    margin: 0 8px;
    color: #9a9a9a;
}

#main-container > .breadcrumbs {
    margin-bottom: 24px;
}

/* Category pages */
#order-head p#order-head-text {
    margin-bottom: 0;
}

/* Product detail page */
.pd-page {
    padding: 120px 8% 6%;
}

.pd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6%;
    align-items: start;
}

.pd-media {
    background: #f9fafc;
}

.pd-media img {
    display: block;
    width: 100%;
    height: auto;
}

.pd-eyebrow {
    margin: 0 0 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #F4452D;
}

.pd-title {
    margin: 0 0 14px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 42px;
    line-height: 1.2;
    color: #161616;
}

.pd-material {
    margin: 0 0 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #393939;
}

.pd-desc {
    margin: 0 0 26px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #393939;
}

.pd-label {
    display: block;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #161616;
}

.pd-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pd-swatch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 10px 0;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #393939;
}

.pd-swatch .circle-white,
.pd-swatch .circle-black,
.pd-swatch .circle-red,
.pd-swatch .circle-gold,
.pd-swatch .circle-grey {
    width: 18px;
    height: 18px;
}

.pd-swatch.active {
    border-color: #F4452D;
    box-shadow: 0 0 0 1px #F4452D inset;
}

.pd-selected {
    display: block;
    margin-top: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #8a8a8a;
    text-transform: capitalize;
}

.pd-qty {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-qty label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #161616;
}

.pd-qty input {
    height: 43px;
    max-width: 220px;
    padding: 0 12px;
    border: 1px solid #dcdcdc;
    border-radius: 10px 0;
    font-family: 'PT Sans', sans-serif;
    font-size: 15px;
}

.pd-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.pd-add {
    height: 43px;
    min-width: 185px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px 0;
    background: linear-gradient(73.47deg, #F13838 -8.51%, #FFC164 212.26%);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.pd-add:disabled {
    opacity: 0.65;
    cursor: default;
}

.pd-order-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #F4452D;
    text-decoration: underline;
}

.pd-note {
    min-height: 20px;
    margin: 12px 0 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #1f7a3d;
}

.pd-note.error {
    color: #F13838;
}

.pd-specs {
    margin: 34px 0 0;
    border-top: 1px solid #e6e6e6;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
}

.pd-specs > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #e6e6e6;
}

.pd-specs dt {
    margin: 0;
    font-weight: 700;
    color: #161616;
}

.pd-specs dd {
    margin: 0;
    text-align: right;
    color: #393939;
    text-transform: capitalize;
}

.pd-specs dd a {
    color: #F4452D;
}

.pd-section {
    max-width: 900px;
    margin-top: 64px;
}

.pd-section h2,
.pd-related h2 {
    margin: 0 0 18px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.3;
    color: #161616;
}

.pd-section p {
    margin: 0 0 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #393939;
}

.pd-list {
    margin: 20px 0 0;
    padding-left: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.9;
    color: #393939;
}

.pd-related {
    margin-top: 64px;
}

.pd-related-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Product specification table replaces duplicated boilerplate copy. */
.pd-spec-table-wrap {
    margin: 26px 0 30px;
    overflow-x: auto;
}

.pd-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.pd-spec-table th,
.pd-spec-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e6e6e6;
    text-align: left;
    vertical-align: top;
}

.pd-spec-table th {
    width: 34%;
    font-weight: 700;
    color: #161616;
    background: #fafafa;
}

.pd-spec-table td {
    color: #393939;
}

/* Further reading links from products to Insights articles. */
.pd-reading {
    margin-top: 56px;
    padding-top: 34px;
    border-top: 1px solid #e6e6e6;
    max-width: 900px;
}

.pd-reading h2 {
    margin: 0 0 18px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #161616;
}

.pd-reading ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pd-reading li {
    margin-bottom: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #393939;
}

.pd-reading li a {
    display: block;
    font-weight: 700;
    font-size: 16px;
    color: #F4452D;
}

/* Product FAQ block (mirrors the FAQPage structured data). */
.pd-faq-item {
    max-width: 900px;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.pd-faq-item h3 {
    margin: 0 0 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #161616;
}

.pd-faq-item p {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #393939;
}

/* 404 */
.notfound {
    padding: 170px 8% 110px;
    text-align: center;
}

.notfound-code {
    margin: 0;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 110px;
    line-height: 1;
    background: linear-gradient(73.47deg, #F13838 -8.51%, #FFC164 212.26%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notfound h1 {
    margin: 10px 0 16px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 34px;
    color: #161616;
}

.notfound p {
    max-width: 560px;
    margin: 0 auto 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #393939;
}

.notfound-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
}

.notfound-links a {
    color: #F4452D;
}

.notfound-links .notfound-primary {
    display: inline-flex;
    align-items: center;
    height: 43px;
    padding: 0 24px;
    background: linear-gradient(73.47deg, #F13838 -8.51%, #FFC164 212.26%);
    color: #fff;
    border-radius: 10px 0;
}

@media (max-width: 992px) {
    .pd-title {
        font-size: 34px;
    }
}

@media (max-width: 700px) {
    .pd-page {
        padding: 90px 10% 10%;
    }

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

    .pd-title {
        font-size: 28px;
    }

    .pd-related-grid .product-box {
        width: 45%;
    }

    .pd-specs dd {
        text-align: left;
    }

    .pd-specs > div {
        flex-direction: column;
        gap: 4px;
    }
}
