@import url('./product.css');

/* English product line above Devanagari title (brochure layout) */
.single-product-section .product-display-title-en {
    display: block;
    font-size: 1.25em;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    margin-bottom: 0.2em;
    color: #111;
}

/* ================== Single Product Hero Banner ================== */
/* Layout: outdoor-style background; yellow + white equal columns; product image
   absolutely on the left, overlapping the yellow block (brochure-style). */
.product-hero-banner {
    width: 100%;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px 32px;
    background-color: #4a8c3a;
    background-image:
        linear-gradient(180deg, rgba(135, 206, 250, 0.75) 0%, rgba(180, 220, 255, 0.25) 32%, transparent 55%),
        linear-gradient(180deg, transparent 0%, rgba(58, 110, 48, 0.55) 72%, rgba(45, 85, 38, 0.9) 100%),
        url('../images/banner_product.png');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
}

.product-hero-inner {
    position: relative;
    width: min(1100px, 100%);
    min-height: 200px;
    /* Room for the overlapping product image on the left */
}

.product-hero-duo {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 200px;
    position: relative;
    z-index: 1;
}

.product-hero-center {
    flex: 1;
    min-width: 0;
    background: #ffea00;
    padding: 22px 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: clamp(26px, 3.4vw, 40px);
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-right: none;
    padding-left: calc(170px + 10%);
}

.product-hero-right {
    flex: 1;
    min-width: 0;
    background: #fff;
    padding: 28px 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 300px;
}

.product-hero-left {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: clamp(100px, 16vw, 170px);
}

.product-hero-left img {
    width: auto;
    max-width: none;
    height: auto;
    max-height: clamp(220px, 38vw, 340px);
    min-height: 180px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(4px 8px 14px rgba(0, 0, 0, 0.22));
}

.product-hero-logo {
    width: auto;
    height: 36px;
    margin-bottom: 10px;
    object-fit: contain;
}

.product-hero-title {
    margin: 0;
    font-family: 'Gotham', sans-serif;
    text-transform: uppercase;
    font-size: 1em;
    line-height: 1.05;
    color: #111;
}

.product-hero-subtitle {
    margin: 8px 0 0;
    font-size: 0.8em;
    line-height: 1.1;
    font-weight: 700;
    color: #111;
}

.product-hero-right p {
    margin: 0;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.45;
    text-align: center;
    color: #111;
    max-width: 42ch;
}

/* Tablet and below: stack hero (image on top), drop overlap — desktop layout unchanged */
@media (max-width: 992px) {
    .product-hero-banner {
        min-height: 0;
        padding: 22px 14px 28px;
        overflow-x: clip;
    }

    .product-hero-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        width: 100%;
        max-width: 100%;
    }

    .product-hero-duo {
        flex-direction: column;
        min-height: 0;
        width: 100%;
    }

    .product-hero-center {
        flex: none;
        width: 100%;
        padding: 20px 18px 18px;
        padding-left: 18px;
        border-right: 1px solid rgba(17, 17, 17, 0.12);
        border-bottom: none;
    }

    .product-hero-right {
        flex: none;
        width: 100%;
        max-width: none;
        padding: 18px 18px 20px;
        border-top: 1px solid rgba(17, 17, 17, 0.08);
    }

    .product-hero-left {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        justify-content: center;
        margin: 0 auto 16px;
        order: -1;
    }

    .product-hero-left img {
        width: auto;
        max-width: min(100%, 320px);
        height: auto;
        max-height: clamp(160px, 42vw, 280px);
        min-height: 0;
        object-position: center;
    }

    .product-hero-right p {
        max-width: 52ch;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .product-hero-banner {
        padding: 18px 12px 24px;
    }

    .product-hero-center {
        padding: 16px 14px 14px;
    }

    .product-hero-right {
        padding: 14px 14px 16px;
    }

    .product-hero-logo {
        height: 30px;
        margin-bottom: 8px;
    }

    .product-hero-center {
        font-size: clamp(22px, 6vw, 34px);
    }

    .product-hero-right p {
        font-size: clamp(14px, 3.6vw, 17px);
    }

    .product-hero-left img {
        max-height: min(220px, 48vw);
    }
}

@media (max-width: 480px) {
    .product-hero-banner {
        padding: 14px 10px 20px;
    }

    .product-hero-center {
        padding: 14px 12px 12px;
    }

    .product-hero-right {
        padding: 12px 12px 14px;
    }

    .product-hero-logo {
        height: 26px;
    }

    .product-hero-center {
        font-size: clamp(20px, 7vw, 28px);
    }
}

/* ================== Specs table (brochure style) ================== */
.single-product-section .product-specs-table {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border-collapse: collapse;
    table-layout: fixed;
    background: #ffea00;
    border: 1px solid #111;
    font-family: 'Gotham', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    color: #111;
}

.single-product-section .product-specs-table th,
.single-product-section .product-specs-table td {
    border: 1px solid #111;
    vertical-align: middle;
    box-sizing: border-box;
}

/* Row 1: black bar, yellow type */
.single-product-section .product-specs-table__head-row th,
.single-product-section .product-specs-table__head-row td {
    background: #111;
    color: #ffea00;
    padding: 14px 14px;
}

.single-product-section .product-specs-table__head-row th {
    width: 42%;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

.single-product-section .product-specs-table__head-row td {
    text-align: left;
    padding-left: 18px;
    font-weight: 700;
}

.single-product-section .product-specs-model-value {
    display: inline-block;
    font-size: clamp(17px, 2.8vw, 22px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

/* Rows 2–4: yellow cells, black type */
.single-product-section .product-specs-table__data-row th,
.single-product-section .product-specs-table__data-row td {
    background: #ffea00;
    color: #111;
    padding: 10px 14px;
    font-weight: 600;
}

.single-product-section .product-specs-table__data-row th {
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.single-product-section .product-specs-table__data-row td {
    text-align: left;
    padding-left: 18px;
    font-weight: 600;
    font-size: 14px;
}

/* Kill legacy badge / borders from shared product.css on this page */
.single-product-section .product-specs-table tr:nth-child(2) th,
.single-product-section .product-specs-table tr:nth-child(2) td,
.single-product-section .product-specs-table tr:nth-child(3) th,
.single-product-section .product-specs-table tr:nth-child(3) td {
    border-bottom: 1px solid #111;
}

/* ================== Product Switcher Row ================== */
.single-product-switcher {
    padding: 42px 0 10px;
}

.product-switcher-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.product-switch-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    padding: 7px 12px;
    background: #ffea00;
    color: #111;
    text-decoration: none;
    border: 1px solid transparent;
    font-size: 16px;
    line-height: 1.1;
}

.product-switch-title {
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
}

.product-switch-subtitle {
    margin-top: 4px;
    font-size: 0.8em;
    font-weight: 700;
}

.product-switch-btn.is-active {
    border-color: #111;
    box-shadow: 0 0 0 1px #111 inset;
}

/* In-page variants (e.g. Diamond Steel King / Plain)—matches flyer tab styling */
.product-variant-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 520px;
    margin: 0 auto 14px;
}

.product-variant-tab {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 8px 14px;
    background: #ffea00;
    color: #111;
    border: 1px solid #111;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.1;
    text-decoration: none;
    box-sizing: border-box;
}

a.product-variant-tab {
    cursor: pointer;
}

.product-variant-tab.is-active {
    background: #bdbdbd;
}

.product-variant-tab-title {
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
}

.product-variant-tab-sub {
    margin-top: 4px;
    font-size: 0.8em;
    font-weight: 700;
}

@media (max-width: 992px) {
    .single-product-switcher {
        padding-top: 34px;
    }

    .product-switcher-row {
        max-width: 460px;
    }
}

@media (max-width: 768px) {
    .single-product-switcher {
        padding: 24px 0 8px;
    }

    .product-switcher-row {
        gap: 10px;
        max-width: 320px;
    }

    .product-switch-btn {
        min-width: 102px;
        padding: 6px 10px;
        font-size: 14px;
    }
}

/* CTA below product specs block */
.single-product-range-cta-wrap {
    text-align: center;
    padding: 8px 20px 56px;
}

.single-product-range-cta {
    display: inline-block;
    text-decoration: none;
    background-color: #EA2229;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.05;
    padding: 12px 80px;
    border: none;
    transition: background-color 0.2s ease;
}

.single-product-range-cta:hover,
.single-product-range-cta:focus-visible {
    color: #fff;
    outline: 2px solid #000;
    outline-offset: 3px;
}

@media (max-width: 992px) {
    .single-product-range-cta {
        font-size: 18px;
        padding: 10px 48px;
    }
}

@media (max-width: 640px) {
    .single-product-range-cta-wrap {
        padding-bottom: 40px;
    }

    .single-product-range-cta {
        font-size: 13px;
        letter-spacing: 0.03em;
        padding: 7px 28px;
    }
}

@media (max-width: 420px) {
    .single-product-range-cta {
        font-size: 11px;
        letter-spacing: 0.02em;
        padding: 6px 20px;
    }
}
