/* =========================================================
   RELATED PRODUCT PAGE
   Same design system as Main Product Page
========================================================= */

.related-product-page {
    padding: 42px 0 70px;

    background:
        radial-gradient(circle at top left,
            rgba(255, 255, 255, 0.55),
            transparent 28%),
        radial-gradient(circle at top right,
            rgba(255, 255, 255, 0.35),
            transparent 20%),
        linear-gradient(135deg,
            #f4f7fb 0%,
            #eef3f8 45%,
            #e8eef5 100%);

    min-height: 100vh;
}


/* =========================================================
   LAYOUT
========================================================= */

.related-product-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 26px;
    align-items: start;
}


/* =========================================================
   SIDEBAR
========================================================= */

.related-product-sidebar {
    position: sticky;
    top: 18px;
    align-self: start;
    width: 100%;
}

.related-sidebar-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);

    border-radius: 22px;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.35);

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.25);
}


/* Sidebar title */

.related-sidebar-title {
    padding: 18px 16px;

    text-align: center;

    font-size: 22px;
    font-weight: 800;

    color: #b91c1c;

    background:
        linear-gradient(180deg,
            #ffffff,
            #f8fafc);

    border-bottom: 1px solid #e5e7eb;
}


/* Sidebar list */

.related-product-list {
    list-style: none;

    margin: 0;
    padding: 0;

    max-height: none;
    overflow: visible;
}

.related-product-list li {
    margin: 0;
    padding: 0;
}

.related-product-list li:last-child a {
    border-bottom: none;
}

.related-product-list li a {
    display: block;

    padding: 12px 16px;

    color: #b91c1c;

    text-decoration: none;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.4;

    border-bottom: 1px solid #eef2f7;

    transition: 0.25s ease;
}

.related-product-list li a:hover {
    background: #fff1f2;
    padding-left: 20px;
}


/* =========================================================
   MAIN COLUMN
========================================================= */

.related-product-main {
    min-width: 0;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.related-product-card {
    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(14px);

    border-radius: 26px;

    padding: 26px;

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.28);

    border: 1px solid rgba(255, 255, 255, 0.25);

    width: 100%;
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.related-product-grid {
    display: grid;

    grid-template-columns: 1fr 0.95fr;

    gap: 22px;

    align-items: start;
}


/* =========================================================
   GALLERY
========================================================= */

.related-product-gallery {
    width: 100%;
}


/* Main image */

.related-image-frame {
    background: #fff;

    border-radius: 22px;

    padding: 12px;

    border: 1px solid #e5e7eb;

    width: 100%;
}

.related-image-frame img {
    width: 100%;
    height: auto;

    display: block;

    object-fit: contain;

    border-radius: 16px;
}


/* No image */

.related-no-image,
.no-product-image {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 300px;

    color: #999;

    font-size: 15px;
}


/* =========================================================
   PRODUCT INFO
========================================================= */

.related-product-info {
    display: flex;

    flex-direction: column;

    align-items: stretch;
}

.related-product-info h1 {
    font-size: 28px;

    font-weight: 800;

    color: #0f172a;

    margin: 0 0 18px;

    letter-spacing: -0.02em;
}

.related-product-description {
    color: #334155;

    font-size: 15px;

    line-height: 1.9;

    margin-bottom: 14px;
}

.related-product-description p {
    margin-bottom: 15px;
}

.related-product-info p {
    color: #334155;

    font-size: 15px;

    line-height: 1.9;

    margin-bottom: 14px;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.product-breadcrumb {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 15px;

    font-size: 14px;

    color: #777;
}

.product-breadcrumb a {
    color: #b91c1c;

    text-decoration: none;

    font-weight: 600;
}

.product-breadcrumb a:hover {
    text-decoration: underline;
}


/* =========================================================
   ACTION BUTTONS
========================================================= */

.related-product-actions {
    width: 100%;

    display: flex;

    justify-content: flex-end;

    gap: 14px;

    margin-top: 24px;

    margin-left: auto;

    flex-wrap: wrap;
}


/* Enquiry */

.related-enquiry-btn {
    padding: 12px 22px;

    border-radius: 12px;

    font-weight: 800;

    text-decoration: none;

    font-size: 14px;

    transition: 0.25s ease;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(180deg,
            #ef4444,
            #b91c1c);

    color: #fff !important;

    border: none;

    box-shadow:
        0 14px 28px rgba(185, 28, 28, 0.28);
}

.related-enquiry-btn:hover {
    transform: translateY(-2px);

    color: #fff !important;
}


/* Website */

.related-website-btn {
    padding: 11px 22px;

    border: 2px solid #b91c1c;

    border-radius: 12px;

    color: #b91c1c !important;

    background: #fff;

    font-weight: 800;

    text-decoration: none;

    font-size: 14px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    transition: 0.25s ease;
}

.related-website-btn:hover {
    background: #b91c1c;

    color: #fff !important;

    transform: translateY(-2px);
}


/* =========================================================
   SPECIFICATION / INFORMATION
========================================================= */

.related-info-section {
    margin-top: 26px;

    padding-top: 8px;
}

.related-section-title {
    font-size: 24px;

    font-weight: 800;

    color: #0f172a;

    margin-bottom: 6px;
}

.related-section-subtitle {
    margin: 0 0 14px;

    color: #64748b;

    font-size: 14px;
}


/* =========================================================
   TABLE
========================================================= */

.related-table-wrap {
    overflow-x: auto;

    border-radius: 18px;
}

.related-info-table {
    width: 100%;

    border-collapse: collapse;

    overflow: hidden;
}

.related-info-table td {
    border: 1px solid #e2e8f0;

    padding: 13px 14px;

    color: #334155;

    font-size: 14px;

    background: rgba(255, 255, 255, 0.92);
}

.related-info-table td:first-child {
    width: 34%;

    background: #f8fafc;

    font-weight: 800;

    color: #0f172a;
}


/* =========================================================
   MAIN PRODUCT REFERENCE
========================================================= */

.related-main-product {
    margin-top: 20px;

    padding: 16px 18px;

    background: #fff1f2;

    border: 1px solid #fecdd3;

    border-radius: 12px;

    color: #7f1d1d;

    font-size: 14px;
}

.related-main-product a {
    color: #b91c1c;

    font-weight: 700;

    text-decoration: none;
}

.related-main-product a:hover {
    text-decoration: underline;
}


/* =========================================================
   RELATED PRODUCT IMAGE
========================================================= */

.related-product-image {
    height: 210px;

    background: #f7f7f7;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;
}

.related-product-image img {
    width: 100%;

    height: 100%;

    object-fit: contain;

    padding: 15px;
}

.related-product-image .no-product-image {
    min-height: 210px;
}


/* =========================================================
   RELATED PRODUCT CARDS
========================================================= */

.related-products-section {
    margin-top: 35px;

    padding: 30px;

    background: #fff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;
}

.related-products-section .section-heading {
    margin-bottom: 25px;
}

.related-products-section .section-heading h3 {
    margin: 0 0 6px;

    font-size: 24px;

    font-weight: 800;

    color: #111827;
}

.related-products-section .section-heading p {
    margin: 0;

    color: #6b7280;

    font-size: 14px;
}

.related-products-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.related-product-card-item {
    display: block;

    text-decoration: none;

    background: #fff;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.related-product-card-item:hover {
    transform: translateY(-5px);

    border-color: #b91c1c;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);
}

.related-product-card-item .related-product-card-content {
    padding: 18px;
}

.related-product-card-content h4 {
    margin: 0 0 10px;

    color: #111827;

    font-size: 17px;

    font-weight: 600;

    line-height: 1.4;
}

.related-product-card-content span {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: #b91c1c;

    font-size: 13px;

    font-weight: 600;
}

.related-product-card-content span i {
    transition: transform 0.2s ease;
}

.related-product-card-item:hover .related-product-card-content span i {
    transform: translateX(4px);
}


/* =========================================================
   MODAL
========================================================= */

.related-modal .modal-content {
    border: none;

    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35);

    background:
        linear-gradient(180deg,
            #ffffff 0%,
            #f8fafc 100%);
}

.related-modal .modal-header {
    padding: 22px 26px;

    border-bottom: 1px solid #e5e7eb;

    background:
        linear-gradient(180deg,
            #fff,
            #f8fafc);
}

.related-modal .modal-title {
    font-size: 30px;

    font-weight: 800;

    color: #b91c1c;

    margin: 0;
}

.related-modal .modal-body {
    padding: 24px 26px 28px;
}

.related-modal .form-label {
    display: block;

    margin-bottom: 6px;

    font-weight: 700;

    color: #1f2937;

    font-size: 14px;
}

.related-modal .form-control {
    width: 100%;

    border-radius: 12px;

    border: 1px solid #dbe3ee;

    padding: 12px 14px;

    font-size: 14px;

    background: #fff;

    min-height: 45px;

    transition: 0.25s ease;

    box-shadow: none;
}

.related-modal .form-control:focus {
    border-color: #b91c1c;

    box-shadow:
        0 0 0 4px rgba(185, 28, 28, 0.08);
}

.related-modal .enquiry-submit {
    background:
        linear-gradient(180deg,
            #ef4444,
            #b91c1c);

    color: #fff;

    font-weight: 800;

    border: none;

    border-radius: 12px;

    padding: 12px 24px;

    box-shadow:
        0 14px 28px rgba(185, 28, 28, 0.25);
}

.related-modal .enquiry-submit:hover {
    color: #fff;

    transform: translateY(-2px);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 992px) {

    .related-product-layout {
        grid-template-columns: 1fr;
    }

    .related-product-sidebar {
        position: static;

        order: 2;
    }

    .related-product-main {
        order: 1;
    }

    .related-product-grid {
        grid-template-columns: 1fr;
    }

    .related-product-info {
        align-items: flex-start;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .related-product-page {
        padding: 24px 0 40px;
    }

    .related-product-card {
        padding: 16px;

        border-radius: 20px;
    }

    .related-product-grid {
        gap: 18px;
    }

    .related-image-frame img {
        height: 240px;

        object-fit: contain;
    }

    .related-product-info h1 {
        font-size: 24px;
    }

    .related-product-description,
    .related-product-info p {
        font-size: 14px;

        line-height: 1.8;
    }

    .related-product-actions {
        justify-content: flex-start;

        margin-top: 18px;
    }

    .related-enquiry-btn,
    .related-website-btn {
        padding: 11px 18px;

        font-size: 13px;
    }

    .related-products-section {
        padding: 20px;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
    }

    .related-product-image {
        height: 200px;
    }

    .related-section-title {
        font-size: 20px;
    }

    .related-sidebar-title {
        font-size: 20px;
    }

    .related-product-list li a {
        font-size: 14px;
    }
}

/* =========================================================
   RELATED PRODUCT SIDEBAR - BLACK
========================================================= */

.related-product-sidebar {
    width: 100%;
}

.related-product-sidebar .related-sidebar-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.10);
}

.related-product-sidebar .related-sidebar-title {
    padding: 18px 16px;
    text-align: center;

    font-size: 22px;
    font-weight: 800;

    color: #000000 !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc);

    border-bottom: 1px solid #e5e7eb;
}

.related-product-sidebar .related-product-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-product-sidebar .related-product-list li {
    border-bottom: 1px solid #eef2f7;
    color: #000000 !important;
}

.related-product-sidebar .related-product-list li:last-child {
    border-bottom: none;
}

.related-product-sidebar .related-product-list li a {
    display: block;

    padding: 12px 16px;

    color: #000000 !important;
    text-decoration: none;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;

    transition: all 0.25s ease;
}

.related-product-sidebar .related-product-list li a:hover {
    background: #f3f4f6;
    color: #000000 !important;
    padding-left: 20px;
}