/* =========================================================
   C-Sky Photonic - PRODUCT PAGE
   Existing visual system retained; layout conflicts removed.
   ========================================================= */

:root {
    --dimension-size: 20vh;
    --theme-teal: #008080;
    --theme-teal-hover: #006666;
    --bg-page: #ffffff;
    --text-white: #ffffff;
    --text-dark: #1e293b;
    --border-light: #e2e8f0;
    --font-family: system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-page);
    color: var(--text-dark);
    font-family: var(--font-family);
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    width: 100%;
    min-height: var(--dimension-size);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    gap: 1.5rem;
    background: var(--theme-teal);
    color: var(--text-white);
    flex-shrink: 0;
    z-index: 10;
}

.navbar > a {
    text-decoration: none;
    color: inherit;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-white);
    white-space: nowrap;
}

.logo img {
    display: block;
    object-fit: contain;
}

.companyname {
    font-size: 1.4rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-links a {
    position: relative;
    padding: 0.25rem 0;
font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-white);
    text-decoration: none;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--text-white);
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.search-box {
    min-width: 140px;
    max-width: 200px;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    font-size: 0.9rem;
    outline: none;
}

.search-box::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.search-box:focus {
    background: #ffffff;
    color: var(--text-dark);
    border-color: #ffffff;
}

.mobile-toggle-btn {
    display: none;
    padding: 0.3rem 0.6rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    background: none;
    color: var(--text-white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */

.breadcrumb-container {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 5vh;
    padding: 0;
    background: #ffffff;
    font-size: 0.8rem;
    gap: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    min-width: 0;
}

.breadcrumb li + li::before {
    content: "/";
    margin: 0 10px;
    color: #b0b0b0;
}

.breadcrumb a,
.breadcrumb span {
    color: #4a4a4a;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.breadcrumb a:hover {
    color: var(--theme-teal);
}

/* =========================================================
   MAIN PRODUCT AREA
   ========================================================= */

.container {
    width: 100%;
    height: auto;
}

.main-content {
    width: calc(100% - 10vh);
    display: grid;
    grid-template-columns: minmax(70px, 1fr) minmax(260px, 3fr) minmax(260px, 6fr);
    min-height: 40vh;
    margin: 0 5vh 5vh;
    gap: 5vh;
    align-items: stretch;
}

.thumbnail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.thumbnail-image {
    width: 10vh;
    min-width: 55px;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 1px solid #d8d8d8;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
}

.thumbnail-image.active {
    border-color: var(--theme-teal);
}

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

.product-image {
    min-width: 0;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 55vh;
    object-fit: contain;
    object-position: center;
}

.product-image-dynamic {
    min-height: 40vh;
}

.product {
    min-width: 0;
    align-self: start;
}

.product-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.product-title h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.product-title h2 {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #555;
    overflow-wrap: anywhere;
}

.feature-list {
    display: flex;
    gap: 2rem;
    min-width: 0;
}

.feature-list ul,
#features ul {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding-left: 20px;
    overflow-wrap: anywhere;
}

.feature-list li {
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

/* =========================================================
   PRODUCT INFORMATION / TABS
   ========================================================= */

.product-info {
    width: calc(100% - 10vh);
    min-height: 60vh;
    margin: 0 5vh 5vh;
}

.info-buttons {
    display: flex;
    gap: 35px;
    margin: 0 0 25px;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

.info-buttons button {
    position: relative;
    flex: 0 0 auto;
    background: none;
    border: none;
    padding: 12px 0;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
}

.info-buttons button:focus-visible {
    outline: 2px solid var(--theme-teal);
    outline-offset: 4px;
}

.info-buttons button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 3px;
    background-color: var(--theme-teal);
    transition: width 0.3s ease;
}

.info-buttons button.active {
    color: var(--theme-teal);
}

.info-buttons button.active::after {
    width: 100%;
}

#description,
#features,
#specifications,
#uses,
#resources {
    display: none;
}

#uses ul {
    margin: 0;
    padding-left: 20px;
}

#uses li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Resource download buttons: keep label and download icon on one line. */
#resources .resource-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    box-sizing: border-box;
    line-height: 1.2;
}

#resources .resource-btn img {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.section-active {
    display: block !important;
}

.section-content {
    min-width: 0;
    overflow-wrap: anywhere;

}

#description p {
    margin: 0;
    line-height: 1.7;
    color: #444;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

#features ul {
    margin-top: 0;
}

#features li {
    margin-bottom: 10px;
}

/* =========================================================
   SPECIFICATIONS
   ========================================================= */

#specifications {
    width: 100%;
    overflow-x: auto;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
}

.spec-table td {
    width: 25%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    overflow-wrap: anywhere;
    word-break: normal;
    vertical-align: top;
}

.spec-table td:nth-child(odd) {
    font-weight: 600;
    background-color: #f5f5f5;
}

.spec-table td:nth-child(even) {
    color: #555;
}

/* =========================================================
   STATES
   ========================================================= */

.image-unavailable,
.product-load-error {
    color: #666;
}

.product-image-error {
    opacity: 0.35;
}

.dynamic-empty-state {
    padding: 2rem;
    border: 1px solid #ddd;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    width: 100%;
    min-height: var(--dimension-size);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.75rem;
    padding: 1.5rem 2.5rem;
    background: var(--theme-teal);
    color: var(--text-white);
    align-items: center;
    align-content: center;
    overflow: hidden;
    margin-top: 0;
    position: static;
    flex: 0 0 auto;
    text-decoration: none;
}

.footer div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
     text-decoration: none;
}

.footer h4 {
    width: 100%;
    margin: 0 0 0.35rem;
    padding-bottom: 0.2rem;
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
     text-decoration: none;
}

.footer a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: 0.15s ease;
     text-decoration: none;
}

.footer a:hover {
    color: var(--text-white);
    transform: translateX(3px);
     text-decoration: none;
}

.footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.76rem;
    line-height: 1.3;
    word-break: break-word;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {
    .navbar {
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .main-content {
        grid-template-columns: 70px minmax(240px, 1fr) minmax(260px, 1.5fr);
        gap: 2.5vh;
    }

    .footer {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
    :root {
        --dimension-size: clamp(65px, 12vh, 85px);
    }

    body {
        height: auto;
        overflow-y: auto;
    }

    .navbar {
        height: auto;
        min-height: var(--dimension-size);
        padding: 0.8rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .mobile-toggle-btn {
        display: block;
        order: 2;
        margin-left: auto;
    }

    .logo {
        order: 1;
    }

    .search-box {
        order: 4;
        width: 100%;
        max-width: none;
    }

    .nav-links {
        order: 3;
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 0;
        background: var(--theme-teal-hover);
        border-radius: 8px;
        overflow: hidden;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .breadcrumb {
        margin: 3vh 1rem;
    }

    .main-content {
        width: calc(100% - 2rem);
        grid-template-columns: 1fr;
        margin: 0 1rem 3vh;
        gap: 1.5rem;
    }

    .thumbnail {
        order: 2;
        flex-direction: row;
        overflow-x: auto;
    }

    .thumbnail-image {
        width: 70px;
        flex: 0 0 70px;
    }

    .product-image {
        order: 1;
        min-height: 35vh;
    }

    .product {
        order: 3;
    }

    .product-info {
        width: calc(100% - 2rem);
        min-height: auto;
        margin: 0 1rem 3vh;
    }

    .info-buttons {
        gap: 25px;
        margin: 20px 0;
        padding: 0 10px;
    }

    .info-buttons button {
        font-size: 14px;
    }

    .section-content {
        padding: 0 10px;
    }

    #description p,
    #features li {
        font-size: 14px;
    }

    .spec-table {
        min-width: 600px;
        font-size: 12px;
    }

    .spec-table td {
        padding: 7px 8px;
    }

    .footer {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        text-align: center;
    }

    .footer div {
        align-items: center;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {
    .logo {
        gap: 0.6rem;
    }

    .logo img {
        width: 42px;
        height: 42px;
    }

    .companyname {
        font-size: 1.05rem;
    }

    .breadcrumb {
        margin: 2vh 1rem;
        font-size: 0.75rem;
    }

    .breadcrumb li + li::before {
        margin: 0 6px;
    }

    .product-title h1 {
        font-size: 1.45rem;
    }

    .product-title h2 {
        font-size: 1rem;
    }

    .feature-list {
        gap: 1rem;
    }

    .feature-list ul {
        padding-left: 18px;
    }

    .info-buttons {
        gap: 20px;
    }

    .info-buttons button {
        font-size: 13px;
        padding: 9px 0;
    }

    .section-content {
        padding: 0 8px;
    }

    #description p,
    #features li {
        font-size: 13px;
    }

    .spec-table {
        min-width: 560px;
        font-size: 11px;
    }

    .spec-table td {
        padding: 6px 7px;
    }
}

/* =========================================================
   TECHNICAL INFORMATION
   Existing section structure retained; only layout protection
   is added so product-specific content cannot overlap.
   ========================================================= */

.technicalinfo-container {
    width: calc(100% - 10vh);
    margin: 0 5vh 5vh;
    min-width: 0;
}

.technical-info {
    width: 100%;
    min-width: 0;
}

.technicalinfo-title {
    margin: 0 0 2rem;
    min-width: 0;
}

.technicalinfo-title h2 {
    margin: 0;
    overflow-wrap: anywhere;
}

.content-container {
    width: 100%;
    min-width: 0;
}

.technicalinfo-content {
    width: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 2rem 0;
    min-width: 0;
}

.technicalinfo-content > div {
    flex: 1 1 50%;
    min-width: 0;
}

.technicalinfo-content h4 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    overflow-wrap: anywhere;
}

.technicalinfo-content p {
    margin: 0;
    line-height: 1.7;
    white-space: pre-line;
    overflow-wrap: anywhere;
    color: #444;
}

.technicalinfo-content img {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    margin: 0 auto;
}

.technicalinfo-container hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
}

.product-asp {
    width: min(1540px, 100%);
    max-width: 1540px;
    aspect-ratio: 1540 / 500;
    min-width: 0;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.product-asp[hidden] {
    display: none !important;
}

.product-asp img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.technicalinfo-container[hidden],
.technicalinfo-content[hidden] {
    display: none;
}

@media (max-width: 768px) {
    .product-asp {
        width: 100%;
        aspect-ratio: 1540 / 500;
    }

    .product-asp img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .technicalinfo-container {
        width: calc(100% - 2rem);
        margin: 0 1rem 3vh;
    }

    .technicalinfo-content {
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .technicalinfo-content > div {
        flex-basis: auto;
    }

    .technicalinfo-content img {
        max-height: 320px;
    }
}

@media (max-width: 480px) {
    .technicalinfo-container {
        width: calc(100% - 2rem);
        margin: 0 1rem 2vh;
    }

    .technicalinfo-content {
        gap: 1rem;
        padding: 1rem 0;
    }

    .technicalinfo-content h4 {
        font-size: 1rem;
    }

    .technicalinfo-content p {
        font-size: 13px;
    }
}

/* =========================================================
   TARGETED PRODUCT PAGE UPDATES
   Requested changes only; all declarations are forced.
   ========================================================= */

.info-buttons {
    overflow-y: hidden !important;
    justify-content: center !important;
    scrollbar-width: none !important;
}

.info-buttons::-webkit-scrollbar {
    height: 0 !important;
    width: 0 !important;
}

.info-buttons button {
    flex: 0 0 auto !important;
      font-size: 1.7rem !important;
}

.spec-table {
    width: 85% !important;
    max-width: 850px !important;
    height: auto !important;
    font-size: 12px !important;
}

.spec-table td {
    padding: 7px 10px !important;
    line-height: 1.25 !important;
}

#description p {
    width: 100% !important;
    max-width: 1500px !important;
    text-align: justify !important;
}

.product-title h1 {
    margin: 0 0 0.5rem !important;
}


/* =========================================================
   PRODUCT INFORMATION CENTERING - TARGETED UPDATE
   ========================================================= */

.info-buttons {
    justify-content: center !important;
    overflow-y: hidden !important;
    overflow-x: visible !important;
    scrollbar-width: none !important;
}

.info-buttons::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
}

.section-content {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    
}

#description p {
    width: min(1500px, 100%) !important;
    max-width: 1500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: justify !important;
}

#features ul {
    width: fit-content !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    text-align: left !important;
}

#specifications {
    width: 100% !important;
    overflow-x: auto !important;
    text-align: center !important;
}

#specifications .spec-table {
    width: min(900px, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

#resources {
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    text-align: center !important;
}

#resources.section-active {
    display: flex !important;
}

/* =========================================================
   BUY NOW BUTTON + POPUP - TARGETED UPDATE
   ========================================================= */

.buy-now-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 22px !important;
}

.buy-now-btn {
    min-width: 140px !important;
    padding: 12px 28px !important;
    border: none !important;
    border-radius: 6px !important;
    background: var(--theme-teal) !important;
    color: #ffffff !important;
    font: inherit !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.buy-now-btn:hover {
    background: var(--theme-teal-hover) !important;
    transform: translateY(-1px) !important;
}

.buy-now-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

.buy-now-modal-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.55) !important;
}

.buy-now-modal-dialog {
    position: relative !important;
    z-index: 1 !important;
    width: min(680px, 100%) !important;
    max-height: min(90vh, 620px) !important;
    overflow-y: auto !important;
    padding: 24px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28) !important;
}

.buy-now-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
}

.buy-now-modal-header h2 {
    margin: 0 !important;
    color: var(--text-dark) !important;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem) !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere !important;
}

.buy-now-modal-close {
    flex: 0 0 auto !important;
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    border-radius: 50% !important;
    background: #eeeeee !important;
    color: #333333 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.buy-now-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.buy-now-option {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(120px, auto) auto !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
}

.buy-now-platform {
    min-width: 0 !important;
    color: var(--text-dark) !important;
    font-weight: 700 !important;
    overflow-wrap: anywhere !important;
}

.buy-now-price {
    color: #444444 !important;
    font-weight: 600 !important;
    text-align: right !important;
    white-space: nowrap !important;
}

.buy-now-platform-btn {
    min-width: 76px !important;
    padding: 9px 18px !important;
    border: none !important;
    border-radius: 5px !important;
    background: var(--theme-teal) !important;
    color: #ffffff !important;
    font: inherit !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.buy-now-platform-btn:hover {
    background: var(--theme-teal-hover) !important;
}

body.buy-modal-open {
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .info-buttons {
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        gap: 18px !important;
        justify-content: center !important;
    }

    .section-content {
        width: 100% !important;
    }

    .buy-now-option {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        text-align: center !important;
    }

    .buy-now-price {
        text-align: center !important;
    }

    .buy-now-platform-btn {
        width: 100% !important;
        max-width: 180px !important;
    }
}

@media (max-width: 480px) {
    .buy-now-modal {
        padding: 12px !important;
    }

    .buy-now-modal-dialog {
        padding: 18px !important;
        max-height: 92vh !important;
    }
}

/* =========================================================
   FINAL PRODUCT TITLE + BUY NOW ROW OVERRIDE
   ========================================================= */
.product-title .product-heading-row {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    min-width: 0 !important;
}

.product-title .product-heading-row h1 {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}

.product-title .product-heading-row .buy-now-container {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

.product-title .product-heading-row .buy-now-btn {
    white-space: nowrap !important;
}

@media (max-width: 600px) {
    .product-title .product-heading-row {
        align-items: center !important;
        gap: 0.65rem !important;
    }

    .product-title .product-heading-row h1 {
        font-size: clamp(1.2rem, 6vw, 1.65rem) !important;
    }

    .product-title .product-heading-row .buy-now-btn {
        min-width: 100px !important;
        padding: 0.6rem 0.75rem !important;
        font-size: 0.85rem !important;
    }
}


/* FINAL: product name and Buy Now must share one horizontal row. */
.product-title .product-heading-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 1rem !important;
}
.product-title .product-heading-row h1 {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}
.product-title .product-heading-row .buy-now-container {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    margin: 0 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
}
.product-title .product-heading-row .buy-now-btn {
    display: inline-flex !important;
    white-space: nowrap !important;
}


/* =========================================================
   PRODUCT DATA — +3px
   ========================================================= */
.product-title h2 { font-size: calc(1.1rem + 3px) !important; }
.feature-list li,
#features li { font-size: calc(1rem + 3px) !important; }
#description p,
.technicalinfo-content p { font-size: calc(1rem + 3px) !important; }
.spec-table { font-size: calc(14px + 3px) !important; }
.spec-table td { font-size: calc(14px + 3px) !important; }


/* Product image wheel zoom. Scroll up to zoom in, down to zoom out. */
.product-image {
    cursor: zoom-in !important;
    touch-action: pan-y;
}
.product-image.is-zoomed {
    cursor: zoom-out !important;
}
.product-image img {
    transform: scale(1);
    transform-origin: 50% 50%;
    transition: transform 0.12s ease-out;
    will-change: transform;
}


/* =========================================================
   PRODUCT INFORMATION WIDTH / CENTERING - V8
   Keep Description, Features, Specifications and Resources
   comfortably centered with reduced left/right margins.
   ========================================================= */
.product-info {
    width: calc(100% - 4vh) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 768px) {
    .product-info {
        width: calc(100% - 1.5rem) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* =========================================================
   FINAL PRODUCT INFORMATION TAB LAYOUT
   Uses and Features follow the same visual language as the
   existing .product-info > .info-buttons tabs.
   ========================================================= */
#features ul,
#uses ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 3rem !important;
    row-gap: 0.25rem !important;
    width: min(900px, 100%) !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style-position: inside !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

#features li,
#uses li {
    margin: 0 !important;
    padding: 0.35rem 0 !important;
    overflow-wrap: anywhere !important;
    font-size: calc(1rem + 3px) !important; 
}

/* Odd number: keep the final item centered beneath the two-column row. */
#features ul.is-odd-count > li:last-child,
#uses ul.is-odd-count > li:last-child {
    grid-column: 1 !important;
    justify-self: stretch !important;
    text-align: left !important;
}

/* Uses content is intentionally left-aligned, while the tab buttons stay centered. */
#uses.section-active {
    text-align: left !important;
}

@media (max-width: 768px) {
    #features ul,
    #uses ul {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }

    #features ul.is-odd-count > li:last-child,
    #uses ul.is-odd-count > li:last-child {
        grid-column: auto !important;
        justify-self: stretch !important;
        text-align: left !important;
    }
}
