:root {
    --brand-orange: #f5911d;
    --brand-orange-hover: #ea580c;
    --text-dark: #1f2937;
    --text-normal: #4b5563;
    --text-light: #9ca3af;
    --bg-body: #fafafa;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --hover-bg: #f3f4f6;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-normal);
    line-height: 1.6;
    overflow-x: hidden;

    /* ADD THESE 3 LINES */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Forces the body to be at least the height of the screen */
}

/* --- Header --- */
.frontend-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 32px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-center-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    pointer-events: none;
    /* So it doesn't interfere with other header elements */
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    height: 32px;
    line-height: 1;
    white-space: nowrap;
}

.header-center-title span {
    color: var(--brand-orange);
}


.header-left {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.header-right {
    display: flex;
    align-items: flex-start;
}

.header-logo {
    height: 36px;
    /* Keeps the logo a clean, standard size */
    width: auto;
    display: block;
}

.contents-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Inter', sans-serif;
}

.contents-btn:hover {
    background: var(--hover-bg);
}

.fa-magnifying-glass {
    z-index: 10;
}

.logo-area {
    cursor: pointer;
}

.logo-area h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-dark);
    line-height: 1;
}

.logo-area h1 span {
    color: var(--brand-orange);
}

.breadcrumb {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 8px;
    font-weight: 500;
}

.lang-select {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
}

/* --- Main Content Container --- */
.main-container {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 24px 120px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex: 1;
    width: 100%;
}

/* --- Content Cards --- */
.content-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    scroll-margin-top: 100px;
    /* For smooth scrolling offset */
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

/* Cover Section */
.cover-section {
    display: flex;
    align-items: center;
    gap: 40px;
}

.cover-image {
    flex-shrink: 0;
    width: 280px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.cover-image img {
    width: 100%;
    height: auto;
    display: block;
}

.cover-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.cover-text p {
    font-size: 16px;
}

/* Typography inside cards */
.content-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    margin-top: 24px;
}

.content-card h4:first-child {
    margin-top: 0;
}

.content-card ul {
    list-style-type: none;
}

.content-card li {
    position: relative;
    padding-left: 12px;
    margin-bottom: 6px;
    font-size: 14px;
}

.content-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-normal);
}

/* Product Info Table */
.info-table {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 24px;
    border: 1px solid var(--border-color);
}

.info-row {
    display: flex;
    padding: 12px 16px;
    font-size: 13px;
}

.info-row:nth-child(even) {
    background-color: var(--bg-white);
}

.info-row:nth-child(odd) {
    background-color: #f8fafc;
}

.info-label {
    flex: 1;
    font-weight: 700;
    color: var(--text-dark);
}

.info-value {
    flex: 2;
    color: var(--text-normal);
}

/* Parts Section */
.parts-image-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.parts-image-container img {
    max-width: 100%;
    max-height: 400px;
}

.parts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 8px;
    column-gap: 24px;
}

.part-item {
    display: flex;
    align-items: center;
    background-color: #f8fafc;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
}

.part-num {
    color: var(--brand-orange);
    font-weight: 700;
    width: 30px;
}

/* Step Boxes (Walkthrough & Troubleshooting) */
.step-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    scroll-margin-top: 100px;
}

.step-box:last-child {
    margin-bottom: 0;
}

.step-header {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.step-num {
    color: var(--brand-orange);
    margin-right: 4px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-normal);
}

/* GPSR Grid */
.gpsr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 16px;
}

.gpsr-col h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.gpsr-detail {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.gpsr-detail strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-dark);
}

/* --- Footer --- */
.frontend-footer {
    background-color: var(--brand-orange);
    color: white;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    position: relative;
    z-index: 10;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* --- Floating Action Navigation --- */
.floating-nav {
    position: fixed;
    bottom: 64px;
    /* Sits just above the footer */
    right: 32px;
    display: flex;
    gap: 12px;
    background: var(--bg-white);
    padding: 8px;
    border-radius: 9999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    z-index: 40;
}

.float-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    border: 1px solid var(--text-normal);
    background: var(--bg-white);
    color: var(--text-dark);
}

.float-btn:hover {
    background: var(--hover-bg);
}

.float-btn.primary {
    background: var(--brand-orange);
    color: white;
    border-color: var(--brand-orange);
}

.float-btn.primary:hover {
    background: var(--brand-orange-hover);
    border-color: var(--brand-orange-hover);
}

/* --- Sidebar Overlay & Menu --- */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.toc-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -350px;
    width: 350px;
    background: var(--bg-white);
    z-index: 1000;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.toc-sidebar.active {
    left: 0;
}

.toc-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.toc-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.toc-header h2 span {
    color: var(--brand-orange);
}

.toc-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 16px;
    margin-bottom: 16px;
}

.toc-search {
    position: relative;
    width: 100%;
}

.toc-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 14px;
}

.toc-search input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    outline: none;
}

.toc-search input:focus {
    border-color: var(--brand-orange);
}

.toc-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.toc-link {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 0;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.toc-link:hover,
.toc-link.active {
    color: var(--brand-orange);
}

.toc-sublink {
    display: block;
    font-size: 13px;
    color: var(--text-normal);
    text-decoration: none;
    padding: 6px 0 6px 16px;
    transition: color 0.2s;
}

.toc-sublink:hover {
    color: var(--brand-orange);
}

/* Responsive */
@media (max-width: 768px) {
    .frontend-header {
        padding: 16px;
    }

    .header-center-title {
        display: none;
        /* Hide the centered title on mobile to avoid clutter */
    }

    .header-logo {
        margin-top: 5px;
        height: 24px;
        /* Slightly smaller logo on mobile */
    }

    .cover-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .cover-image {
        width: 100%;
        max-width: 300px;
    }

    .floating-nav {
        bottom: 16px;
        right: 16px;
        left: 16px;
        justify-content: center;
    }

    .main-container {
        padding-bottom: 100px;
    }

    .frontend-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

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

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

.info-row.multi-col .info-label {
    flex: 1.5;
}

/* --- Tools Section --- */
.tools-container {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 24px;
}

.tools-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 columns as shown in design */
    padding: 12px 16px;
    font-size: 13px;
    background-color: #f8fafc;
    /* Light grey stripe */
}

/* Adds zebra striping if you add more rows of tools later */
.tools-row:nth-child(even) {
    background-color: var(--bg-white);
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--text-normal);
}

.tool-num {
    color: var(--brand-orange);
    font-weight: 700;
    min-width: 16px;
}

.search-wrapper {
    position: relative;
    flex: 1;

}

.search-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--brand-orange);
}

.header-wrapper {
    background-color: var(--bg-white);
    border-bottom: none;
    width: 100%;
}

.categories-wrapper {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    /* Keeps the line under the categories */
    width: 100%;
}

.categories-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0 24px 0;
}

.categories-bar::-webkit-scrollbar {
    display: none;
}

.categories-bar::after {
    content: '';
    padding-right: 4px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.product-img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    margin-bottom: 24px;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-orange);
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-desc {
    font-size: 13px;
    color: var(--text-normal);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.page-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-normal);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}

.page-btn:hover {
    background-color: var(--border-color);
}

.page-btn.active {
    background-color: var(--brand-orange);
    color: white;
}

.store-max-width {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    width: 100%;
}

.store-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    max-width: 600px;
    margin: 0 32px;
}

.search-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.view-toggle {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    overflow: hidden;
    flex-shrink: 0;
}

.view-btn {
    background: var(--bg-white);
    border: none;
    padding: 8px 16px;
    color: var(--text-normal);
    cursor: pointer;
    transition: 0.2s;
}

.view-btn.active {
    background: var(--brand-orange);
    color: white;
}

.cat-pill {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-normal);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.cat-pill:hover,
.cat-pill.active {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

.cat-pill.active {
    background: var(--brand-orange);
    color: white;
}

.store-main {
    padding-top: 40px;
    flex: 1;
    width: 100%;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .store-max-width {
        padding: 0 24px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .store-header {
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
    }

    .header-center {
        margin: 0;
        max-width: 100%;
    }

    .header-right {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
    text-align: left;
    width: 100%;
}

.product-grid.list-view {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.product-grid.list-view .product-card {
    flex-direction: row;
    padding: 24px 32px;
    gap: 40px;
}

.product-grid.list-view .product-img {
    max-width: 100px;
    max-height: 100px;
    margin-bottom: 0;
    flex-shrink: 0;
    object-fit: contain;
}

.product-grid.list-view .product-info {
    display: block;
}

.product-grid.list-view .product-title {
    display: block;
    /* Forces it to take up the whole line */
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    /* Adds exactly 8px of space below the title */
    line-height: 1.4;
    color: var(--brand-orange);
}

.product-grid.list-view .product-desc {
    display: -webkit-box;
    width: 100%;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-normal);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}





.search-form {
    margin: 0;
    width: 100%;
    display: flex;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-results .fa-magnifying-glass {
    font-size: 40px;
    margin-bottom: 16px;
}

/* Container to force uniform image size */
.img-uniform-wrapper {
    width: 320px;
    /* Fixed width */
    height: 320px;
    /* Fixed height */
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    /* Prevents squishing */
}

.img-uniform-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensures image fills space without stretching */
}

/* Mobile adjustments for Step Boxes */
@media (max-width: 768px) {
    .step-box {
        flex-direction: column !important;
        /* Stacks Image on top of Text */
    }

    .img-uniform-wrapper {
        aspect-ratio: 1;
        /* Creates a nice wide cinematic look */
        margin-bottom: 16px !important;
    }

}

.error-header {
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}

.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 55vh;
}

.error-icon {
    font-size: 72px;
    color: var(--brand-orange);
    margin-bottom: 24px;
}

.error-title {
    font-size: 64px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1;
}

.error-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.error-description {
    font-size: 15px;
    color: var(--text-normal);
    max-width: 450px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.btn-return-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--brand-orange);
    color: white;
    padding: 12px 28px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
    box-shadow: 0 4px 12px rgba(245, 145, 29, 0.2);
}

.btn-return-home:hover {
    background-color: var(--brand-orange-hover);
    color: white;
}

/* ============================================================
   PRINT / SAVE AS PDF DESIGN
   ============================================================ */

.print-cover-page,
.print-content-header,
.print-document-footer {
    display: none;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 15mm 15mm 27mm 15mm;
    }

    html,
    body {
        display: block !important;
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        color: #1f2937 !important;
        font-family: 'Inter', Arial, sans-serif !important;
        font-size: 10.5pt !important;
        line-height: 1.5 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /*
     * Hide browser-only controls and the normal website cover.
     */
    .floating-nav,
    .sidebar-overlay,
    .toc-sidebar,
    .frontend-header,
    .frontend-footer,
    .contents-btn,
    .header-right,
    #section-cover {
        display: none !important;
    }

    .main-container {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .print-cover-page {
        display: block !important;
        position: relative !important;
        z-index: 20 !important;
        background: #ffffff !important;
        width: 100% !important;
        height: 252mm !important;
        min-height: 252mm !important;
        margin: 0 !important;
        padding: 0 !important;
        page-break-after: always !important;
        break-after: page !important;
        overflow: hidden !important;
    }

    .print-cover-header {
        display: block !important;
    }

    .print-cover-logo {
        display: block !important;
        width: 188px !important;
        height: auto !important;
        margin: 0 0 22px 0 !important;
    }

    .print-cover-title {
        font-size: 25pt !important;
        line-height: 1.18 !important;
        font-weight: 700 !important;
        color: #111827 !important;
        margin: 0 0 10px 0 !important;
        max-width: 92% !important;
    }

    .print-cover-description {
        display: block !important;
        max-width: 74% !important;
        margin: 0 0 12px 0 !important;
        font-size: 11pt !important;
        line-height: 1.5 !important;
        color: #4b5563 !important;
    }

    .print-cover-image-area {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        height: 136mm !important;
        margin-top: 4mm !important;
    }

    .print-cover-image {
        display: block !important;
        max-width: 95% !important;
        max-height: 130mm !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .print-cover-bottom {
        position: absolute !important;
        z-index: 100 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;

        display: flex !important;
        align-items: flex-end !important;
        justify-content: space-between !important;

        background: #ffffff !important;
        padding-top: 6mm !important;
        padding-bottom: 1mm !important;
    }

    .print-cover-qr {
        display: block !important;
        color: #111827 !important;
    }

    .print-cover-qr svg {
        display: block !important;
        width: 92px !important;
        height: 92px !important;
    }

    .print-cover-url {
        margin-top: 6px !important;
        font-size: 9pt !important;
        font-weight: 500 !important;
        color: #374151 !important;
    }

    .print-cover-meta {
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
        margin-bottom: 9px !important;
        color: #374151 !important;
    }

    .print-ce-svg {
        display: block !important;
        width: 38px !important;
        height: 38px !important;
        flex-shrink: 0 !important;
    }

    .print-ukca-svg {
        display: block !important;
        width: 42px !important;
        height: 52px !important;
        flex-shrink: 0 !important;
    }

    .print-meta-divider {
        display: inline-block !important;
        height: 34px !important;
        border-left: 2px solid #f5911d !important;
    }

    .print-instructions-label {
        font-size: 14pt !important;
        font-weight: 600 !important;
    }

    /* ========================================================
       PAGE 2 CONTENT HEADER
       ======================================================== */

    .print-content-header {
        display: flex !important;
        width: 100% !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 0 8px 0 !important;
        margin: 0 0 22px 0 !important;
        border-bottom: 2px solid #f5911d !important;
        page-break-after: avoid !important;
        break-after: avoid !important;
    }

    .print-content-title {
        font-size: 9pt !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;
        color: #374151 !important;
    }

    .print-content-lang {
        font-size: 9pt !important;
        line-height: 1.3 !important;
        font-weight: 700 !important;
        color: #374151 !important;
        text-transform: uppercase !important;
    }

    /* ========================================================
       DOCUMENT CONTENT
       ======================================================== */

    .content-card {
        display: block !important;
        width: 100% !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 0 11mm 0 !important;
        page-break-inside: auto !important;
        break-inside: auto !important;
    }

    .card-title {
        font-size: 19pt !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
        color: #111827 !important;
        margin: 0 0 17px 0 !important;
    }

    .content-card h4 {
        font-size: 12pt !important;
        font-weight: 700 !important;
        color: #111827 !important;
        margin: 18px 0 9px 0 !important;
    }

    .formatted-content {
        font-size: 10.5pt !important;
        line-height: 1.55 !important;
        color: #374151 !important;
    }

    .formatted-content p {
        margin: 0 0 9px 0 !important;
    }

    .formatted-content ul,
    .formatted-content ol {
        margin: 0 0 12px 18px !important;
        padding: 0 !important;
    }

    .formatted-content li {
        font-size: 10.5pt !important;
        line-height: 1.5 !important;
        margin-bottom: 4px !important;
    }

    /* Product information */
    .info-table {
        display: block !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        margin-top: 18px !important;
    }

    .info-row {
        display: flex !important;
        padding: 9px 13px !important;
        font-size: 10pt !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .info-row:nth-child(odd) {
        background: #f8fafc !important;
    }

    .info-row:nth-child(even) {
        background: #ffffff !important;
    }

    /* Parts and tools */
    .tools-container {
        display: block !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }

    .tools-row {
        display: flex !important;
        padding: 10px 13px !important;
        font-size: 10pt !important;
        border-bottom: 1px solid #e5e7eb !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .parts-image-container {
        border: none !important;
        padding: 0 !important;
        margin: 0 0 18px 0 !important;
    }

    .parts-image-container img {
        display: block !important;
        max-height: 75mm !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        object-fit: contain !important;
    }

    .parts-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px 14px !important;
    }

    .part-item {
        display: flex !important;
        align-items: center !important;
        min-height: 48px !important;
        gap: 10px !important;
        background: #f8fafc !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 6px !important;
        padding: 7px 10px !important;
        font-size: 9.5pt !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .part-item .img-uniform-wrapper {
        width: 40px !important;
        height: 40px !important;
        border: none !important;
        flex-shrink: 0 !important;
    }

    .part-item .img-uniform-wrapper img {
        object-fit: contain !important;
    }

    .part-num {
        color: #f5911d !important;
        font-weight: 700 !important;
        width: auto !important;
        margin-right: 5px !important;
    }

    /* Walkthrough */
    #section-walkthrough {
        margin-top: 4mm !important;
    }

    .step-box {
        display: block !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        background: #ffffff !important;
        padding: 15px !important;
        margin-bottom: 13px !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .step-content-col {
        width: 100% !important;
        min-width: 0 !important;
    }

    .step-images-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 7px !important;
        margin-top: 10px !important;
    }

    .step-images-grid.image-count-1 {
        grid-template-columns: 1fr !important;
        max-width: 78mm !important;
    }

    .step-image-card {
        width: 100% !important;
        aspect-ratio: 4 / 3 !important;
        border: 1px solid #e5e7eb !important;
        background: #ffffff !important;
        border-radius: 6px !important;
        padding: 5px !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .step-image-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        display: block !important;
    }

    .step-header {
        font-size: 11pt !important;
        line-height: 1.4 !important;
        font-weight: 700 !important;
        color: #111827 !important;
        margin-bottom: 8px !important;
    }

    .step-desc {
        font-size: 10pt !important;
        line-height: 1.5 !important;
        color: #374151 !important;
    }

    .step-num {
        color: #f5911d !important;
        font-weight: 700 !important;
    }

    /* GPSR */
    .gpsr-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        column-gap: 20px !important;
        margin-top: 12px !important;
    }

    .gpsr-col {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .gpsr-col h5 {
        font-size: 11pt !important;
        margin-bottom: 12px !important;
    }

    .gpsr-detail {
        font-size: 9.5pt !important;
        line-height: 1.65 !important;
        margin-bottom: 18px !important;
    }

    .print-document-footer {
        display: table !important;
        position: fixed !important;
        bottom: 0mm !important;
        /* CRITICAL FIX: Changed from -20mm to 0 */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 11mm !important;
        min-height: 11mm !important;
        padding: 5px 0 0 0 !important;
        margin: 0 !important;
        border-top: 1px solid #d1d5db !important;
        background: #ffffff !important;
        color: #374151 !important;
        z-index: 2 !important;
    }

    .print-document-footer-left {
        display: table-cell !important;
        width: 70% !important;
        vertical-align: top !important;
        padding-top: 1px !important;
        color: #374151 !important;
    }

    .print-document-footer-left strong {
        display: block !important;
        margin: 0 !important;
        font-size: 8pt !important;
        line-height: 1.25 !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
    }

    .print-document-footer-left span {
        display: block !important;
        margin: 1px 0 0 0 !important;
        font-size: 7pt !important;
        line-height: 1.25 !important;
        color: #6b7280 !important;
    }

    .print-document-footer-right {
        display: table-cell !important;
        width: 30% !important;
        vertical-align: top !important;
        padding-top: 2px !important;

        font-size: 7.5pt !important;
        line-height: 1.25 !important;
        color: #6b7280 !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    .print-cover-page::after {
        content: "" !important;
        position: absolute !important;
        z-index: 90 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: -27mm !important;
        height: 29mm !important;
        background: #ffffff !important;
    }

    .print-cover-bottom {
        z-index: 100 !important;
    }

    .card-title {
        page-break-after: avoid !important;
        break-after: avoid-page !important;
    }

    #section-product,
    #section-tools,
    #section-parts,
    #section-walkthrough,
    #section-troubleshooting,
    #section-gpsr {
        page-break-inside: auto !important;
        break-inside: auto !important;
    }

    /*
 * Avoid starting Product Information in the final small
 * space of the preceding page.
 */
    #section-product {
        page-break-before: always !important;
        break-before: page !important;
    }
}

.cover-ce-information {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.screen-ce-svg {
    display: block;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.screen-ukca-svg {
    display: block;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.cover-ce-text {
    font-size: 11px;
    color: var(--text-normal);
    line-height: 1.4;
}

.step-box {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 18px;
    scroll-margin-top: 100px;
    background: var(--bg-white);
}

.step-box:last-child {
    margin-bottom: 0;
}

.step-content-col {
    width: 100%;
}

.step-header {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.step-num {
    color: var(--brand-orange);
    margin-right: 4px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-normal);
}

.step-images-grid {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.step-images-grid.image-count-1 {
    grid-template-columns: minmax(220px, 420px);
}

.step-images-grid.image-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-images-grid.image-count-3,
.step-images-grid.image-count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-image-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.step-image-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.no-step-images {
    padding-bottom: 22px;
}

@media (max-width: 768px) {
    .step-box {
        padding: 18px;
    }

    .step-images-grid,
    .step-images-grid.image-count-1,
    .step-images-grid.image-count-2,
    .step-images-grid.image-count-3,
    .step-images-grid.image-count-4 {
        grid-template-columns: 1fr;
    }

    .step-image-card {
        aspect-ratio: 1 / 1;
    }
}

.troubleshoot-contact {
    color: #f5911d;
}

.sku-table-container {
    width: 100%;
    overflow-x: auto;
    /* Enables horizontal scrolling for many SKUs */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    margin-top: 24px;
}

.sku-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
    white-space: nowrap;
    /* Prevents text wrapping in tight columns */
}

.sku-data-table th,
.sku-data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.sku-data-table th:last-child,
.sku-data-table td:last-child {
    border-right: none;
}

.sku-data-table tr:last-child th,
.sku-data-table tr:last-child td {
    border-bottom: none;
}

/* Row Labels (Left Column) */
.sku-row-label {
    background-color: #f8fafc;
    font-weight: 700;
    color: var(--text-dark);
    min-width: 120px;
    position: sticky;
    left: 0;
    z-index: 2;
    /* Keeps the label visible when scrolling horizontally */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.03);
    /* Subtle separation shadow */
}

/* Highlight the top row (SKU numbers) */
.sku-header-row .sku-row-label {
    color: var(--brand-orange);
}

.sku-header-row .sku-cell-value {
    font-weight: 600;
    color: var(--text-dark);
}

/* Data Cells */
.sku-cell-value {
    color: var(--text-normal);
    background-color: var(--bg-white);
    min-width: 140px;
}

/* Zebra striping for easier reading across rows */
.sku-data-table tr:nth-child(even) .sku-cell-value {
    background-color: #fafafa;
}

/* Ensure print layout doesn't break */
@media print {
    .sku-table-container {
        overflow-x: visible !important;
    }

    .sku-data-table {
        white-space: normal !important;
    }
}

/* ============================================================
   CUSTOM SCROLLBAR FOR SKU TABLE
   ============================================================ */

/* Firefox support */
.sku-table-container {
    scrollbar-width: thin;
    scrollbar-color: var(--text-light) #f8fafc;
}

/* Chrome, Edge, and Safari support */
.sku-table-container::-webkit-scrollbar {
    height: 10px;
    /* Horizontal scrollbar height */
}

.sku-table-container::-webkit-scrollbar-track {
    background: #f8fafc;
    /* Matches the label row background */
    border-radius: 0 0 8px 8px;
    /* Matches the bottom corners of the table container */
}

.sku-table-container::-webkit-scrollbar-thumb {
    background-color: var(--text-light);
    /* Subtle grey when resting */
    border-radius: 10px;
    border: 2px solid #f8fafc;
    /* Creates a clean padded look within the track */
    transition: background-color 0.2s;
}

.sku-table-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--brand-orange);
    /* Highlights to MonsterShop orange on hover */
}

.brand-logo {
    display: block;
    flex: 0 0 auto;
    width: auto;
    height: 28px;
    max-width: 180px;
    object-fit: contain;
    margin: 0;
}

.brand-logo--near-square {
    height: 36px;
}

.brand-logo--wide {
    height: 18px;
}

.print-brand-logo {
    display: inline-block;
    width: auto;
    height: 20px;
    max-width: 180px;
    object-fit: contain;
    vertical-align: middle;
}

.print-brand-logo--near-square {
    height: 30px;
}

.print-brand-logo--wide {
    height: 16px;
}

.print-brand-showcase {
    position: relative;
    width: 280px;
    height: 82px;
    margin: 0 0 18px 0;
    padding: 11px 18px 10px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 68%);
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.print-brand-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    border-radius: 10px 0 0 10px;
    background: var(--brand-orange);
}

.print-brand-showcase-label {
    margin-bottom: 5px;
    color: var(--brand-orange);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.7px;
    line-height: 1;
    text-transform: uppercase;
}

.print-brand-showcase img {
    display: block;
    width: auto;
    height: auto;
    max-width: 235px;
    max-height: 45px;
    object-fit: contain;
}
