/*
 * Product detail page styles previously inlined in Views/Products/Detail.cshtml:
 * hero, SPECS bar, showcase, key features, gallery, materials and CTA sections.
 */

.product-hero {
    position: relative;
    background: #1a1a1a;
    overflow: hidden;
}
.product-hero-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    opacity: 0.5;
}
.product-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 0 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    z-index: 2;
}
.product-hero-copy {
    max-width: calc(100% - 360px);
}
.product-hero-overlay h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 10px;
}
.product-hero-overlay .product-tagline {
    color: #d4a84b;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.product-hero-overlay .breadcrumb-nav {
    margin-top: 15px;
}
.product-hero-overlay .breadcrumb-nav a,
.product-hero-overlay .breadcrumb-nav span {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.product-hero-overlay .breadcrumb-nav a:hover {
    color: #d4a84b;
}
.product-hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.hero-icon-btn {
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    padding: 0;
    transition: background .2s, color .2s, border-color .2s;
    width: 38px;
}
.hero-icon-btn:hover,
.hero-icon-btn:focus-visible {
    border-color: #d4a84b;
    color: #d4a84b;
    outline: none;
}
.hero-icon-btn.is-active {
    background: #d4a84b;
    border-color: #d4a84b;
    color: #1d1d1f;
}
.product-price-corner {
    align-items: center;
    appearance: none;
    background: linear-gradient(135deg, #f3be24 0%, #e7a920 60%, #c88f12 100%);
    border: 0;
    bottom: 0;
    box-shadow: 0 16px 32px rgba(0,0,0,0.22);
    clip-path: polygon(27% 0, 100% 0, 100% 100%, 0 100%);
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font: inherit;
    gap: 8px;
    height: 124px;
    justify-content: center;
    letter-spacing: 0;
    min-width: 310px;
    padding: 0 42px 0 104px;
    position: absolute;
    right: 0;
    text-align: right;
    transition: filter 0.2s ease, transform 0.2s ease;
    z-index: 3;
}
.product-price-corner:hover,
.product-price-corner:focus {
    filter: brightness(1.06);
    outline: none;
    text-decoration: none;
}
.product-price-corner:focus-visible {
    box-shadow: 0 16px 32px rgba(0,0,0,0.22), 0 0 0 3px rgba(255,255,255,0.78) inset;
}
.product-price-corner:active {
    transform: translateY(1px);
}
.product-price-corner::after {
    background: rgba(255,255,255,0.2);
    content: "";
    height: 160%;
    pointer-events: none;
    position: absolute;
    right: 72px;
    top: -40%;
    transform: rotate(16deg);
    width: 1px;
}
.product-price-corner span {
    color: #fff;
    line-height: 1;
    position: relative;
    text-shadow: 0 2px 12px rgba(0,0,0,0.18);
    z-index: 1;
}
.product-price-corner .product-price-action {
    background: rgba(34,34,34,0.16);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 2px;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 11px;
    text-transform: uppercase;
}
.product-price-corner .product-price-value {
    font-size: 38px;
    font-weight: 400;
}

.specs-bar {
    background: #222;
    padding: 30px 0;
}
.specs-bar .spec-item {
    text-align: center;
    padding: 10px 15px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.specs-bar .spec-item:last-child {
    border-right: none;
}
.specs-bar .spec-label {
    color: #d4a84b;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}
.specs-bar .spec-value {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}
.specs-bar .spec-colors {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
}
.specs-bar .spec-color-swatch {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
    cursor: pointer;
    display: inline-block;
    padding: 0;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.specs-bar .spec-color-swatch:hover,
.specs-bar .spec-color-swatch.is-active {
    transform: scale(1.15);
    border-color: #d4a84b;
}
.specs-bar .spec-color-swatch:focus {
    outline: none;
}
.specs-bar .spec-color-swatch:focus-visible {
    box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 0 0 3px rgba(212,168,75,0.34);
}
.specs-bar .spec-color-item {
    display: inline-flex;
}
.specs-bar .spec-features {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
}
.specs-bar .spec-feature-item {
    display: inline-flex;
}
.specs-bar .spec-feature {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    color: #d4a84b;
    cursor: pointer;
    font: inherit;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.specs-bar .spec-feature:hover,
.specs-bar .spec-feature.is-active {
    background: rgba(212,168,75,0.12);
    transform: scale(1.1);
    border-color: #d4a84b;
}
.specs-bar .spec-feature:focus {
    outline: none;
}
.specs-bar .spec-feature:focus-visible {
    box-shadow: 0 0 0 3px rgba(212,168,75,0.34);
}
.specs-bar .spec-feature-svg {
    width: 24px;
    height: 24px;
    display: block;
}
/* PNG functionality icons ship as black line-art with a baked-in label,
   so they sit on a white tile to stay legible on the dark specs bar and
   are large enough to read. object-fit:contain prevents any cropping. */
.specs-bar .spec-feature--img {
    width: 62px;
    height: 62px;
    background: #fff;
    border-color: #fff;
    border-radius: 10px;
    padding: 6px;
}
.specs-bar .spec-feature--img:hover,
.specs-bar .spec-feature--img.is-active {
    background: #fff;
    border-color: #d4a84b;
}
.specs-bar .spec-feature-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.specs-bar .spec-features {
    max-width: 100%;
}
.spec-feature-tooltip {
    position: fixed;
    z-index: 9999;
    max-width: min(260px, calc(100vw - 32px));
    padding: 10px 12px;
    border: 1px solid rgba(212,168,75,0.46);
    border-radius: 6px;
    background: rgba(24,24,24,0.96);
    color: #fff;
    box-shadow: 0 14px 32px rgba(0,0,0,0.28);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}
.spec-feature-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.spec-feature-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 10px;
    height: 10px;
    border-right: 1px solid rgba(212,168,75,0.46);
    border-bottom: 1px solid rgba(212,168,75,0.46);
    background: rgba(24,24,24,0.96);
    transform: translateX(-50%) rotate(45deg);
}
.spec-feature-tooltip[data-placement="top"]::after {
    bottom: -6px;
}
.spec-feature-tooltip[data-placement="bottom"]::after {
    top: -6px;
    transform: translateX(-50%) rotate(225deg);
}

.product-overview {
    padding: 80px 0 60px;
}
.product-overview .section-label {
    color: #d4a84b;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.product-overview h2 {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
}
.product-overview p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}
.product-overview .feature-icon {
    font-size: 40px;
    color: #d4a84b;
    margin-bottom: 15px;
}

.key-features {
    padding: 60px 0;
    background: #f8f8f8;
}
.key-features .feature-card {
    text-align: center;
    padding: 40px 25px;
    background: #fff;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}
.key-features .feature-card:hover {
    border-bottom-color: #d4a84b;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.key-features .feature-card i {
    font-size: 48px;
    color: #d4a84b;
    margin-bottom: 20px;
    display: block;
}
.key-features .feature-card h3 {
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 18px;
}
.key-features .feature-card p {
    color: #1a1a1a;
    font-size: 17px;
    line-height: 1.7;
}
.key-features .feature-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.key-features .feature-card-link:hover,
.key-features .feature-card-link:focus {
    color: inherit;
    text-decoration: none;
}
.key-features .feature-card--image {
    padding: 0;
    overflow: hidden;
}
.key-features .feature-card--image img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.showcase-section {
    padding: 60px 0;
}
.showcase-section .section-label {
    color: #d4a84b;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.showcase-section h2 {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 40px;
}
.showcase-card {
    margin-bottom: 30px;
    background: #fff;
    overflow: hidden;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
.showcase-card:hover {
    border-bottom-color: #d4a84b;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.showcase-card .showcase-img {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #f7f7f7;
    aspect-ratio: 1122 / 926;
}
.showcase-card .showcase-img .showcase-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.showcase-card .showcase-img .showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.showcase-card:hover .showcase-img .showcase-overlay {
    opacity: 1;
}
.showcase-card .showcase-img .showcase-overlay img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.showcase-card .showcase-img > a.fancybox-buttons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}
.showcase-card .showcase-caption {
    padding: 15px 10px;
    text-align: center;
}
.showcase-card .showcase-caption h3 {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    font-size: 14px;
}

.materials-section {
    padding: 80px 0;
}
.materials-section h3 {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.materials-section .section-label {
    color: #d4a84b;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.materials-section p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}
.materials-section .divider-line {
    width: 60px;
    height: 3px;
    background: #d4a84b;
    margin: 20px 0 25px;
}

.gallery-section {
    padding: 60px 0;
    background: #f8f8f8;
}
.gallery-section .section-label {
    color: #d4a84b;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.gallery-section h2 {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.cta-banner {
    background: #222;
    padding: 60px 0;
    text-align: center;
}
.cta-banner h3 {
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.cta-banner p {
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    margin-bottom: 30px;
}
.cta-banner .cta-btn {
    display: inline-block;
    padding: 14px 40px;
    border: 2px solid #d4a84b;
    color: #d4a84b;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
}
.cta-banner .cta-btn:hover {
    background: #d4a84b;
    color: #222;
}

/* Standalone quote CTA placed right after the Technical Specification. */
.product-quote-cta {
    text-align: center;
    padding: 10px 0 50px;
}
.product-quote-cta .cta-btn {
    display: inline-block;
    padding: 16px 46px;
    background: #d4a84b;
    border: 2px solid #d4a84b;
    color: #1d1d1f;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}
.product-quote-cta .cta-btn:hover,
.product-quote-cta .cta-btn:focus {
    background: transparent;
    color: #d4a84b;
    text-decoration: none;
}

.related-section {
    padding: 80px 0;
}
.related-section .section-label {
    color: #d4a84b;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.related-section h2 {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 40px;
}
.related-card {
    margin-bottom: 30px;
}
.related-card .related-img {
    overflow: hidden;
    position: relative;
}
.related-card .related-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.related-card:hover .related-img img {
    transform: scale(1.05);
}
.related-card .related-info {
    padding: 20px 0;
}
.related-card .related-info h3 {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-size: 18px;
}
.related-card .related-info span {
    color: #999;
    font-size: 13px;
}
.related-card .related-info a {
    color: inherit;
}
.related-card .related-info a:hover h3 {
    color: #d4a84b;
}

.gallery-row {
    display: flex;
    flex-wrap: wrap;
}
.gallery-row > .col-md-6 {
    display: flex;
    flex-direction: column;
}
.gallery-row .work,
.gallery-row .product-video {
    margin-bottom: 30px;
    width: 100%;
    aspect-ratio: 1122 / 926;
    overflow: hidden;
}
.gallery-row .work .grid,
.gallery-row .work .grid figure {
    width: 100%;
    height: 100%;
}
.gallery-row .work .grid figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-video {
    position: relative;
    border-radius: 2px;
    background: #1a1a1a;
}
.product-video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    .product-hero-img { height: 360px; }
    .product-hero-overlay { padding: 50px 0 96px; }
    .product-hero-copy { max-width: 100%; }
    .product-hero-overlay h1 { font-size: 28px; }
    .product-price-corner {
        height: 74px;
        gap: 4px;
        min-width: 190px;
        padding: 0 20px 0 58px;
    }
    .product-price-corner .product-price-action {
        font-size: 10px;
        padding: 3px 8px;
    }
    .product-price-corner .product-price-value { font-size: 24px; }
    .specs-bar .spec-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 15px; }
    .specs-bar .spec-item:last-child { border-bottom: none; }
    /* Keep functionality tiles fully visible (no cropping): smaller tiles
       that wrap onto multiple centred rows on narrow screens. */
    .specs-bar .spec-features { gap: 6px; }
    .specs-bar .spec-feature--img { width: 54px; height: 54px; padding: 5px; }
    .product-overview h2, .gallery-section h2, .related-section h2 { font-size: 26px; }
    .cta-banner h3 { font-size: 22px; }
    .gallery-row {
        display: block;
    }
    .gallery-row > .col-md-6 {
        display: block;
        width: 100%;
    }
    .gallery-row .work,
    .gallery-row .product-video {
        aspect-ratio: auto;
        overflow: hidden;
        height: auto;
    }
    .gallery-row .work .grid {
        height: auto;
        overflow: hidden; /* contain floated figure */
    }
    .gallery-row .work .grid figure,
    .gallery-row .work .grid figure img {
        height: auto;
    }
    .product-video {
        overflow: visible;
    }
    .product-video video {
        width: 100%;
        height: auto;
    }
}
