:root {
    --navy: #111d31;
    --muted: #607087;
    --paper: #f8fafc;
    --line: #dbe3ea;
    --orange: #ed6a12;
    --orange-hover: #ff7a1a;
    --serif: "Plus Jakarta Sans", Arial, sans-serif;
    --sans: "Plus Jakarta Sans", Arial, sans-serif;
    --metallic-glow: rgba(237, 106, 18, 0.15);
    --metal-gradient: linear-gradient(135deg, #1d2c44 0%, #111d31 100%);
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--navy);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: auto
}

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid #e7ebef;
    backdrop-filter: blur(10px);
    animation: header-in .5s ease both
}

.nav-wrap {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none
}

.brand img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 7px
}

.brand span {
    display: grid
}

.brand b {
    font: 400 15px var(--serif);
    color: var(--navy);
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: .05em
}

.nav {
    display: flex;
    gap: 7px
}

.nav a {
    position: relative;
    padding: 8px 13px;
    border-radius: 5px;
    color: #344055;
    font: 600 14px var(--serif);
    text-decoration: none;
    transition: background .2s, color .2s, transform .2s
}

.nav a:hover {
    background: #edf1f5;
    transform: translateY(-1px)
}

.nav a.active {
    color: #fff;
    background: var(--navy)
}

.nav a::after {
    content: "";
    position: absolute;
    right: 13px;
    bottom: 4px;
    left: 13px;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transition: transform .2s
}

.nav a:hover::after,
.nav a.active::after {
    transform: scaleX(1)
}

.nav a.active::after {
    background: #fff
}

.nav .nav-cta { margin-left: 6px; color: #fff; background: var(--orange) }
.nav .nav-cta::after { display: none }
.nav .nav-cta:hover { background: var(--orange-hover); color: #fff }

.supply-strip { padding: 76px 0; background: var(--navy); color: #fff }
.supply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center }
.supply-strip .label { color: #ffb37c }
.supply-strip h2 { max-width: 520px; margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -.04em }
.supply-strip p:not(.label) { max-width: 520px; margin: 18px 0 0; color: #c5d0de; line-height: 1.7 }
.supply-strip figure { position: relative; overflow: hidden; margin: 0; min-height: 300px; border-radius: 10px; background: #253750 }
.supply-strip figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(17,29,49,.42), transparent 55%) }
.supply-strip img { display: block; width: 100%; min-height: 300px; height: 100%; object-fit: cover }
.supply-strip figcaption { position: absolute; z-index: 1; right: 16px; bottom: 13px; left: 16px; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase }
.text-link { display: inline-flex; gap: 8px; margin-top: 24px; color: #fff; font-weight: 700; text-decoration: none }
.text-link:hover { color: #ffb37c }

.home-page .product-card:nth-child(n+5), .home-page #inquiry { display: none }
.home-catalog-action { margin: 30px 0 0; text-align: center }
.home-catalog-action .button { margin: 0 }
.page-hero { padding: 72px 0 54px; background: radial-gradient(circle at 85% 0, rgba(237,106,18,.16), transparent 30%), var(--navy); color: #fff }
.page-hero .label { color: #ffb37c }
.page-hero h1 { max-width: 740px; margin: 0; font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -.05em }
.page-hero p:last-child { max-width: 630px; margin: 18px 0 0; color: #c5d0de; line-height: 1.75 }
.page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch }
.modern-card { padding: 30px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 14px 35px rgba(17,29,49,.06) }
.modern-card h2, .modern-card h3 { margin: 0 0 12px }
.modern-card h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.14; letter-spacing: -.04em }

body:has(.page-hero) .about-video { background-image: url("product%20image%20box/aluminium-profiles-detail.jpg") }
body:has(.page-hero) .about-video figcaption { display: none }

/* Polished contact links, form actions and page call-to-actions. */
.service-points li.contact-list-item::before { display: none }
.service-points li.contact-list-item { gap: 0 }
.service-points li.contact-list-item a, .contact-links a { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); text-decoration: none }
.service-points li.contact-list-item a:hover, .contact-links a:hover { color: var(--orange) }
.map-icon { border-radius: 50% }
.contact-form.modern-card { border-top: 4px solid var(--orange); box-shadow: 0 18px 40px rgba(17,29,49,.1) }
.contact-form .contact-actions { grid-column: 1 / -1; margin-top: 4px }
.contact-form .contact-actions .button { display: inline-flex; align-items: center; gap: 8px; min-width: 178px }
.contact-form .contact-actions .light { background: var(--orange); color: #fff }
body:has(.review-grid) .modern-card { position: relative; min-height: 285px; overflow: hidden; padding-right: 52%; background: linear-gradient(135deg,#fff 0 56%,#edf3f7 56%) }
body:has(.review-grid) .modern-card::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 44%; background: url("product%20image%20box/aluminium-profiles-detail.jpg") center / cover no-repeat }
body:has(.review-grid) .modern-card::before { content: "Fast replies · bulk support · trusted materials"; position: absolute; z-index: 1; right: 24px; bottom: 22px; max-width: 210px; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase }
body:has(.page-hero) .about-video { background-image: url("product%20image%20box/aluminium-profiles-detail.jpg") }
body:has(.page-hero) .about-video figcaption { display: none }

@media (max-width: 768px) {
  body:has(.review-grid) .modern-card { padding-right: 30px; padding-bottom: 235px; background: #fff }
  body:has(.review-grid) .modern-card::after { top: auto; width: 100%; height: 205px }
}
.modern-card p { color: var(--muted); line-height: 1.7 }
.about-video { margin: 0; overflow: hidden }.about-video video,.about-video img { display: block; width: 100%; min-height: 280px; object-fit: cover; border-radius: 7px }.about-video figcaption { padding-top: 11px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase }
.service-points { display: grid; gap: 14px; padding: 0; margin: 22px 0 0; list-style: none }
.service-points li { display: flex; gap: 10px; align-items: flex-start; color: #344055; font-weight: 600 }
.service-points li::before { content: "✓"; display: grid; place-items: center; flex: 0 0 22px; height: 22px; border-radius: 50%; background: #fff0e5; color: var(--orange) }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; padding: 14px; overflow: hidden; border: 1px solid #2a3e59; border-radius: 14px; background: linear-gradient(135deg,#142235,#1f3550); box-shadow: 0 16px 32px rgba(17,29,49,.14) }
.stat-row div { position: relative; padding: 30px 16px 25px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: rgba(255,255,255,.06); text-align: center; transition: transform .25s ease,background .25s ease }.stat-row div::before { content: ""; position: absolute; top: 0; left: 50%; width: 38px; height: 3px; border-radius: 0 0 4px 4px; background: var(--orange); transform: translateX(-50%) }.stat-row div:hover { background: rgba(255,255,255,.12); transform: translateY(-4px) }.stat-row b { display: block; color: #ff7a1a; font-size: clamp(31px,3vw,40px); letter-spacing: -.05em; line-height: 1 }.stat-row span { display: block; margin-top: 10px; color: #d9e3ee; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase }
.review-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px }
.review-grid blockquote { display: flex; flex-direction: column; min-height: 215px; margin: 0; padding: 25px; border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 10px; background: #fff; box-shadow: 0 10px 25px rgba(17,29,49,.05) }
.review-grid blockquote > p { margin: 0; color: #344055; font-size: 17px; line-height: 1.65 }.review-grid footer { display: flex; justify-content: space-between; margin-top: auto; padding-top: 20px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em }.review-grid footer b { color: var(--navy) }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin: 0; color: var(--navy) }.contact-form label { display: grid; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase }.contact-form input,.contact-form select,.contact-form textarea { width: 100%; padding: 13px 14px; border: 1px solid #ccd6e0; border-radius: 6px; background: #fff; color: var(--navy); font: 400 14px var(--sans) }.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus { outline: 2px solid rgba(237,106,18,.25); border-color: var(--orange) }.contact-form textarea { resize: vertical }.contact-form .message { grid-column: 1 / -1 }.contact-form .contact-actions { display: flex; flex-wrap: wrap; gap: 10px }.contact-form .button { margin: 0; border: 0; cursor: pointer }.email-button { color: var(--navy); background: #fff; border: 1px solid var(--navy) !important }
.contact-icon { width: 18px; height: 18px; flex: 0 0 18px; object-fit: contain }
.field-icon { width: 15px; height: 15px; object-fit: contain }
.review-grid footer { padding: 20px 0 0; background: transparent }
body:has(.page-hero) .about-video { min-height: 330px; background: #fff url("product%20image%20box/shop4.png") center / cover no-repeat }
body:has(.page-hero) .about-video video { display: none }
body:has(.page-hero) .about-video figcaption { position: relative; top: 285px; padding: 10px 12px; background: rgba(255,255,255,.94) }

.menu-button {
    display: none
}

.hero {
    min-height: 600px;
    display: grid;
    align-items: center;
    background-image: radial-gradient(#d8e0e8 1px, transparent 1px);
    background-size: 20px 20px
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 75px;
    padding: 74px 0
}

.label {
    margin: 0 0 18px;
    color: #253750;
    font: 700 12px var(--serif)
}

.label::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border: 2px solid var(--orange);
    border-radius: 50%;
    vertical-align: -1px
}

.hero h1,
.section h2,
.contact h2 {
    margin: 0;
    font: 700 clamp(47px, 6vw, 76px)/1.02 var(--serif);
    letter-spacing: -.04em
}

.subhead {
    margin: 10px 0 20px;
    color: #53647d;
    font: 600 27px var(--serif)
}

.intro {
    max-width: 510px;
    margin: 0;
    color: #2d405a;
    font: 500 16px/1.75 var(--serif)
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    padding: 14px 19px;
    color: #fff;
    background: var(--navy);
    border: 1px solid var(--navy);
    border-radius: 5px;
    font: 700 14px var(--serif);
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 18px rgba(17, 29, 49, .15)
}

.quick-stats {
    display: flex;
    gap: 28px;
    margin-top: 43px;
    color: var(--muted);
    font-size: 10px
}

.quick-stats span {
    display: grid;
    gap: 3px;
    padding-left: 13px;
    border-left: 1px solid #cbd5df
}

.quick-stats span:first-child {
    padding-left: 0;
    border: 0
}

.quick-stats b {
    color: var(--navy);
    font: 400 15px var(--serif)
}

.shop-images {
    display: grid;
    gap: 22px
}

.shop-images figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 13px 25px rgba(20, 34, 53, .13)
}

.shop-images img {
    display: block;
    width: 100%;
    transition: transform .45s ease
}

.shop-main img {
    height: 330px;
    object-fit: cover;
    object-position: center
}

.shop-small img {
    height: 280px;
    object-fit: cover;
    object-position: center
}

.shop-images figure:hover img,
.product-card:hover img {
    transform: scale(1.045)
}

figcaption {
    padding: 10px 13px;
    font: 400 12px var(--serif)
}

.section {
    padding: 88px 0;
    background: #fff;
    border-top: 1px solid #e8edf1
}

.section-title {
    margin-bottom: 36px
}

.section-title h2,
.about h2 {
    font-size: 46px
}

.section-title>p:last-child {
    max-width: 500px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px
}

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

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    transition: transform .22s, box-shadow .22s, border-color .22s
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 22px rgba(20, 34, 53, .1);
    border-color: #cbd5e1;
}

.product-image {
    position: relative;
    height: 190px;
    background: #f0f3f6;
    overflow: hidden
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease
}

.product-card h3 {
    margin: 0;
    font: 600 17px/1.3 var(--serif);
    color: var(--navy);
}

.about {
    background: var(--paper)
}

.about-grid {
    display: grid;
    grid-template-columns: .55fr 1fr;
    gap: 60px
}

.about-grid .label {
    margin-top: 8px
}

.about h2 {
    max-width: 600px
}

.about p:last-child {
    max-width: 650px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75
}

.contact {
    padding: 75px 0;
    background: var(--navy);
    color: #fff
}

.contact .label {
    color: #d3dce8
}

.contact h2 {
    font-size: 45px
}

.contact .light {
    color: var(--navy);
    background: #fff;
    border-color: #fff
}

footer {
    padding: 20px 0;
    background: #0b1422;
    color: #9aa6b7;
    font-size: 10px
}

footer .container {
    display: flex;
    justify-content: space-between
}

/* ====================================================
   PRODUCTS CATALOG HERO & FILTERS
   ==================================================== */
.products-hero {
    padding: 64px 0 42px;
    background: var(--navy);
    color: #fff;
    background-image: radial-gradient(circle at 15% 20%, #1e314f 0, transparent 35%), radial-gradient(circle at 85% 80%, rgba(237, 106, 18, .18) 0, transparent 30%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.products-hero .label {
    color: #ffb37c;
}

.products-hero h1 {
    font-size: clamp(36px, 5vw, 62px);
    margin: 0 0 12px;
    color: #fff;
    letter-spacing: -.03em;
}

.catalog-subtitle {
    max-width: 640px;
    margin: 0 0 32px;
    color: #c0cedf;
    font-size: 17px;
    line-height: 1.6;
}

.catalog-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.search-box {
    position: relative;
    max-width: 640px;
    width: 100%;
}

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

.search-box input {
    width: 100%;
    padding: 14px 44px 14px 48px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--navy);
    font: 500 15px var(--sans);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: border-color .2s, box-shadow .2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(237, 106, 18, 0.3);
}

.clear-search-btn {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tab {
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font: 600 13px var(--sans);
    cursor: pointer;
    transition: all .2s ease;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.filter-tab.active {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    box-shadow: 0 4px 14px rgba(237, 106, 18, 0.4);
}

/* Catalog Grid Header Meta */
.catalog-header-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.meta-title h2 {
    font-size: 32px;
    margin: 0;
}

.meta-title p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

/* Card Styling Enhancements */
.catalog-card {
    display: flex;
    flex-direction: column;
}

.catalog-card .product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

.card-category {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--orange);
    font: 700 11px var(--sans);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.card-short-desc {
    margin: 8px 0 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    flex: 1;
}

.card-footer-actions {
    margin-top: auto;
}

.card-btn {
    width: 100%;
    margin-top: 0;
    padding: 10px 14px;
    font-size: 13px;
    background: #182842;
    border-color: #182842;
}

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

.metallic-card {
    border-top: 3px solid #94a3b8;
}

.metallic-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 4px 9px;
    background: rgba(17, 29, 49, 0.88);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font: 700 10px var(--sans);
    letter-spacing: .06em;
    backdrop-filter: blur(4px);
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    background: #f1f5f9;
    border-radius: 12px;
    border: 1px dashed var(--line);
    margin: 30px 0;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.empty-state p {
    max-width: 480px;
    margin: 0 auto 20px;
    color: var(--muted);
    font-size: 14px;
}

/* Recently Viewed */
.recently-viewed-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

/* CTA Banner Card */
.cta-banner-section {
    background: var(--paper);
    padding: 60px 0;
}

.cta-banner-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 40px;
    background: var(--metal-gradient);
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 16px 36px rgba(17, 29, 49, 0.2);
}

.cta-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(237, 106, 18, 0.2);
    color: #ffb37c;
    border: 1px solid var(--orange);
    border-radius: 999px;
    font: 700 11px var(--sans);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 14px;
}

.cta-content h2 {
    margin: 0 0 10px;
    font-size: 32px;
    color: #fff;
}

.cta-content p {
    margin: 0;
    color: #d1dceb;
    max-width: 600px;
    font-size: 15px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 220px;
}

.cta-actions .button {
    margin: 0;
    width: 100%;
}

.whatsapp-btn {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: #fff !important;
}

.whatsapp-btn:hover {
    background: #1eb956 !important;
}

.phone-btn {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #fff !important;
}

.phone-btn:hover {
    background: #0369a1 !important;
}

/* ====================================================
   PRODUCT DETAIL PAGE STYLES & 3D VIEWER
   ==================================================== */
.detail-breadcrumb-bar {
    padding: 16px 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
}

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

.breadcrumb .sep {
    color: #cbd5e1;
}

.breadcrumb .current {
    color: var(--orange);
    font-weight: 700;
}

.detail-hero-section {
    padding: 48px 0;
    background: #fff;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* 3D Viewer Card */
.viewer-card {
    position: relative;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-3d {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #ffb37c;
    font: 700 11px var(--sans);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.badge-3d span {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
}

.material-tag {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    height: 380px;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
    cursor: grab;
}

.canvas-wrapper:active {
    cursor: grabbing;
}

#threeCanvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.fallback-image-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fallback-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.viewer-overlay-tips {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

.viewer-overlay-tips span {
    display: inline-block;
    padding: 4px 9px;
    background: rgba(15, 23, 42, 0.75);
    color: #cbd5e1;
    font-size: 11px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.viewer-toolbar {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.viewer-tool-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(30, 41, 59, 0.85);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font: 600 11px var(--sans);
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .2s, border-color .2s;
}

.viewer-tool-btn:hover {
    background: rgba(51, 65, 85, 0.95);
    border-color: var(--orange);
}

.viewer-tool-btn.active {
    background: var(--orange);
    border-color: var(--orange);
}

.viewer-footer-note {
    padding: 10px 16px;
    background: #090d16;
    color: #64748b;
    font-size: 11px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.viewer-footer-note p {
    margin: 0;
}

/* Info Column */
.info-column {
    display: flex;
    flex-direction: column;
}

.back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: var(--orange);
}

.detail-category-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 10px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 4px;
    font: 700 11px var(--sans);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}

.detail-title {
    font-size: 38px;
    margin: 0 0 12px;
    color: var(--navy);
}

.detail-short-desc {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 24px;
}

.spec-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.spec-pill {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pill-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 700;
}

.pill-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
}

.detail-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.detail-btn {
    margin: 0;
    width: 100%;
    justify-content: center;
    font-size: 14px;
    padding: 13px 16px;
}

.quote-btn {
    grid-column: 1 / -1;
    background: var(--navy);
    color: #fff;
}

.quote-btn:hover {
    background: #1e293b;
}

.guarantee-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 18px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    font-size: 13px;
}

.guarantee-box p {
    margin: 0;
    font-weight: 600;
}

/* Detail Content Grid */
.detail-content-section {
    background: var(--paper);
    padding: 64px 0;
}

.content-split-grid {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 42px;
}

.content-block {
    margin-bottom: 36px;
}

.content-block h2 {
    font-size: 32px;
    margin: 0 0 12px;
}

.content-block h3 {
    font-size: 22px;
    margin: 0 0 16px;
    color: var(--navy);
}

.lead-paragraph {
    font-size: 16px;
    line-height: 1.75;
    color: #334155;
    margin: 0;
}

.feature-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.feature-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: #334155;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Side Specs Card */
.side-specs-card {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.side-specs-card h3 {
    margin: 0 0 20px;
    font-size: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.spec-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.spec-row:last-of-type {
    border-bottom: 0;
}

.spec-key {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 700;
}

.spec-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.spec-disclaimer {
    color: #475569;
    font-style: italic;
    font-weight: 500;
    font-size: 13px;
}

.specs-cta-note {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.specs-cta-note p {
    margin: 0 0 14px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.block-btn {
    width: 100%;
    margin: 0;
    justify-content: center;
}

/* ====================================================
   QUOTE MODAL OVERLAY
   ==================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(17, 29, 49, 0.75);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: relative;
    width: min(580px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--navy);
}

.modal-close:hover {
    background: #e2e8f0;
}

.modal-header h3 {
    margin: 0 0 6px;
    font-size: 24px;
}

.modal-header p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 13px;
}

.modal-form {
    margin-top: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* ====================================================
   FLOATING SCROLL TO TOP BUTTON
   ==================================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99;
    width: 44px;
    height: 44px;
    border: 1px solid var(--navy);
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.scroll-top-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-2px);
}

/* ====================================================
   RESPONSIVE MEDIA QUERIES (360px, 390px, 430px, 768px, 1024px)
   ==================================================== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .content-split-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta-banner-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px;
    }

    .cta-actions {
        flex-direction: row;
        width: 100%;
    }

    .cta-actions .button {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .nav-wrap { position: relative; height: 64px }
    .menu-button { display: inline-flex; align-items: center; justify-content: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--navy); font: 700 12px var(--sans); cursor: pointer }
    .nav { position: absolute; top: calc(100% + 8px); right: 0; left: 0; display: none; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.98); box-shadow: 0 14px 32px rgba(17,29,49,.16); flex-direction: column; gap: 2px }
    .nav.open { display: flex }
    .nav a, .nav .nav-cta { margin: 0; padding: 11px 12px }
    .nav .nav-cta { justify-content: center; text-align: center }
    .page-grid, .review-grid { grid-template-columns: 1fr }
    .page-hero { padding: 56px 0 42px }
    .contact-form { grid-template-columns: 1fr }
    .contact-form .message { grid-column: auto }

    .hero { min-height: 0 }
    .hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 46px 0 54px }
    .hero h1 { font-size: clamp(40px,11vw,54px) }
    .subhead { margin: 8px 0 16px; font-size: 22px }
    .quick-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 30px }
    .quick-stats span, .quick-stats span:first-child { padding: 10px 8px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.72); text-align: center }
    .quick-stats b { font-size: 13px }
    .shop-images { grid-template-columns: 1fr; gap: 14px }
    .shop-main img, .shop-small img { height: 230px }

    footer .container { gap: 8px; flex-wrap: wrap; justify-content: center; text-align: center }

    .supply-grid { grid-template-columns: 1fr; gap: 30px }
    .supply-strip { padding: 58px 0 }
    .supply-strip figure, .supply-strip img { min-height: 230px }

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

    .meta-title h2 {
        font-size: 26px;
    }

    .catalog-controls {
        gap: 14px;
    }

    .canvas-wrapper {
        height: 300px;
    }

    .detail-title {
        font-size: 30px;
    }

    .detail-action-buttons {
        grid-template-columns: 1fr;
    }

    .spec-pills {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cta-actions {
        flex-direction: column;
    }

    .modal-container {
        padding: 24px;
    }
}

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

    .products-hero h1 {
        font-size: 32px;
    }

    .catalog-subtitle {
        font-size: 15px;
    }

    .canvas-wrapper {
        height: 260px;
    }

    .detail-title {
        font-size: 26px;
    }

    .viewer-toolbar {
        bottom: 8px;
        right: 8px;
    }

    .viewer-tool-btn span {
        display: none;
    }

    .filter-tabs {
        gap: 6px;
    }

    .filter-tab {
        padding: 7px 13px;
        font-size: 12px;
    }

    .quick-stats { grid-template-columns: 1fr; gap: 7px }
    .stat-row { grid-template-columns: 1fr; gap: 9px; padding: 9px }
    .stat-row div { padding: 24px 14px 20px }

}

@media (max-width: 360px) {
    .container {
        width: calc(100% - 24px);
    }

    .search-box input {
        font-size: 13px;
        padding-left: 40px;
    }

    .detail-title {
        font-size: 24px;
    }

    .cta-banner-card {
        padding: 20px;
    }
}

/* Shared-page overrides: keep new content cards compact and readable. */
.modern-card h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.14; letter-spacing: -.04em }
body:has(.page-hero) .about-video { background-image: url("product%20image%20box/aluminium-profiles-detail.jpg") }
body:has(.page-hero) .about-video figcaption { display: none }

/* Home hero: one authoritative mobile layout, isolated from other pages. */
@media (max-width: 768px) {
    .home-page .hero,
    .home-page .hero-grid,
    .home-page .hero-copy { width: 100%; max-width: 100%; min-width: 0 }

    .home-page .hero { min-height: 0 }
    .home-page .hero-grid { display: block; padding: 32px 0 42px }
    .home-page .hero-copy { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.82); box-shadow: 0 12px 28px rgba(17,29,49,.06) }
    .home-page .shop-images { display: none }

    .home-page .home-loop { width: 100%; max-width: 100%; min-width: 0 }
    .home-page .hero-location { display: flex; max-width: 100%; min-width: 0; align-items: flex-start }
    .home-page .hero-location span,
    .home-page .intro,
    .home-page .hero h1 { min-width: 0; overflow-wrap: anywhere }
    .home-page .hero h1 { font-size: clamp(38px, 11vw, 48px) }
    .home-page .button { max-width: 100%; white-space: normal }

    .home-page .quick-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 100%; min-width: 0; gap: 8px; margin-top: 24px }
    .home-page .quick-stats span,
    .home-page .quick-stats span:first-child { min-width: 0; padding: 10px 7px; border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow-wrap: anywhere; text-align: center }
    .home-page .quick-stats span:last-child { grid-column: 1 / -1 }
    .home-page .quick-stats b { font-size: 13px }
}
