
/* =========================================================
   FA SPORTS — CUSTOM LAB
   PREMIUM BALANCED LAYOUT
   RED / WHITE / BLACK
   EXISTING BLADE CLASSES — JAVASCRIPT UNCHANGED
========================================================= */

:root {
    --fa-red: #e10600;
    --fa-black: #0b0b0b;
    --fa-dark: #151515;
    --fa-paper: #f5f5f3;
    --fa-white: #ffffff;
    --fa-muted: #737373;
    --fa-border: #e5e5e5;
    --fa-radius: 3px;
}

/* =========================
   GLOBAL
========================= */

.customizer-page {
    width: 100%;
    overflow: clip;
    background: var(--fa-white);
    color: var(--fa-black);
}

.customizer-page *,
.customizer-page *::before,
.customizer-page *::after {
    box-sizing: border-box;
}

.customizer-page button,
.customizer-page input,
.customizer-page select {
    font: inherit;
}

.customizer-page button {
    cursor: pointer;
}

.customization-section-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* =========================
   HERO
========================= */

.customizer-hero {
    position: relative;
    min-height: 590px;
    padding: 100px 7%;
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    background: var(--fa-white);
    border-bottom: 1px solid var(--fa-border);
}

.customizer-hero__wall {
    position: absolute;
    z-index: -1;
    top: 50%;
    right: -1%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: clamp(90px, 15vw, 205px);
    font-weight: 950;
    line-height: .76;
    letter-spacing: -.095em;
    color: #f0f0ee;
    user-select: none;
    pointer-events: none;
}

.customizer-hero__wall span:nth-child(2) {
    color: #e8e8e6;
}

.customizer-hero__wall span:nth-child(3) {
    color: rgba(225, 6, 0, .09);
}

.customizer-hero__content {
    position: relative;
    z-index: 1;
    width: min(700px, 100%);
}

.customizer-hero .eyebrow {
    margin: 0 0 24px;
    color: var(--fa-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
}

.customizer-hero h1 {
    margin: 0;
    font-size: clamp(48px, 7.2vw, 94px);
    line-height: .96;
    font-weight: 950;
    letter-spacing: -.065em;
}

.customizer-hero h1 span {
    color: var(--fa-red);
}

.customizer-hero .hero-copy {
    max-width: 440px;
    margin: 26px 0 30px;
    color: #626262;
    font-size: 15px;
    line-height: 1.9;
}

.customizer-hero__button {
    min-height: 52px;
    padding: 0 25px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    background: var(--fa-red);
    border: 1px solid var(--fa-red);
    color: var(--fa-white);
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    transition: background .25s ease, color .25s ease;
}

.customizer-hero__button:hover {
    background: var(--fa-black);
    border-color: var(--fa-black);
    color: var(--fa-white);
}

.customizer-hero__number {
    position: absolute;
    right: 7%;
    bottom: 30px;
    color: var(--fa-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
}

/* =========================
   PRODUCT SECTION
   EQUAL TWO-COLUMN LAYOUT
========================= */

.custom-product {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    align-items: start;
    gap: clamp(28px, 4vw, 60px);
    padding: 64px clamp(24px, 5.5vw, 84px);
    border-bottom: 1px solid var(--fa-border);
    background: var(--fa-white);
}

.custom-product--reverse {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
}

.custom-product--reverse .custom-product__image {
    order: 2;
}

.custom-product--reverse .custom-product__content {
    order: 1;
}

/* =========================
   IMAGE + WHATSAPP COLUMN
========================= */

.custom-product__image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .45s ease;
}

.custom-product__image::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(0, 0, 0, .045);
    pointer-events: none;
}

.custom-product__image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .45s ease;
}

.custom-product__image:hover img {
    transform: scale(1.035);
}

.product-index {
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 1;
    padding: 9px 11px;
    background: var(--fa-black);
    color: var(--fa-white);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
}

/* =========================
   PRODUCT CONTENT
========================= */

.custom-product__content {
    width: 100%;
    min-width: 0;
}

.section-heading {
    padding-bottom: 23px;
    margin-bottom: 27px;
    border-bottom: 1px solid var(--fa-border);
}

.section-heading > span {
    display: block;
    margin-bottom: 13px;
    color: var(--fa-red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
}

.section-heading h2 {
    margin: 0;
    color: var(--fa-black);
    font-size: clamp(34px, 4vw, 55px);
    font-weight: 950;
    line-height: .98;
    letter-spacing: -.055em;
}

.section-heading h2 strong {
    color: var(--fa-red);
    font-weight: 950;
}

/* =========================
   FIELDS
========================= */

.custom-field {
    width: 100%;
    min-width: 0;
    margin: 0 0 22px;
}

.custom-field > label {
    display: block;
    margin-bottom: 10px;
    color: #282828;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
}

.custom-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}

.custom-row:has(#uniformShirtSize) {
    grid-template-columns: 1fr 1fr;
}

.custom-row:has(#uniformSleeve) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.custom-field input:not([type="checkbox"]):not([type="radio"]),
.custom-field select,
.custom-contact__form input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    min-width: 0;
    height: 47px;
    padding: 0 13px;
    border: 1px solid #dededc;
    border-radius: var(--fa-radius);
    outline: none;
    background: #fff;
    color: var(--fa-black);
    font-size: 12px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.custom-field input:focus,
.custom-field select:focus,
.custom-contact__form input:focus {
    border-color: var(--fa-red);
    box-shadow: 0 0 0 3px rgba(225, 6, 0, .07);
}

.custom-field input::placeholder,
.custom-contact__form input::placeholder {
    color: #999;
}

.custom-field select {
    cursor: pointer;
}

/* =========================
   OPTION BUTTONS
========================= */

.option-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.option-grid button {
    min-height: 41px;
    padding: 8px 5px;
    border: 1px solid #dededc;
    border-radius: 2px;
    background: #fff;
    color: #292929;
    font-size: 11px;
    font-weight: 650;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.option-grid button:hover,
.option-grid button.active,
.option-grid button.selected,
.option-grid button.is-active,
.option-grid button[aria-pressed="true"] {
    border-color: var(--fa-red);
    background: var(--fa-red);
    color: #fff;
}

/* =========================
   COLOR OPTIONS
========================= */

.color-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.color-grid button {
    min-height: 35px;
    padding: 6px 4px;
    border: 1px solid #e0e0de;
    border-radius: 2px;
    background: #fff;
    color: #333;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.3;
    overflow-wrap: anywhere;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.color-grid button:hover,
.color-grid button.active,
.color-grid button.selected,
.color-grid button.is-active,
.color-grid button[aria-pressed="true"] {
    border-color: var(--fa-red);
    background: var(--fa-red);
    color: #fff;
}

/* =========================
   LIVE SUMMARY
========================= */

.selection-summary {
    margin: 10px 0 28px;
    padding: 18px 20px;
    border-left: 3px solid var(--fa-red);
    background: var(--fa-paper);
}

.selection-summary > span {
    display: block;
    margin-bottom: 10px;
    color: var(--fa-red);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .15em;
}

.selection-summary p {
    margin: 0;
    color: #575757;
    font-size: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* =========================
   WHATSAPP PANEL
   BELOW PRODUCT IMAGE
========================= */

.section-whatsapp-box {
    width: 100%;
    margin-top: 22px;
    padding: 24px;
    background: var(--fa-black);
    border-top: 4px solid var(--fa-red);
    color: var(--fa-white);
}

.section-whatsapp-heading > span {
    display: block;
    margin-bottom: 10px;
    color: #ff5752;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .17em;
}

.section-whatsapp-heading h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(22px, 2.3vw, 30px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.035em;
}

.section-whatsapp-heading h3 strong {
    color: var(--fa-red);
}

.section-whatsapp-heading p {
    margin: 0 0 22px;
    color: #bcbcbc;
    font-size: 12px;
    line-height: 1.8;
}

.custom-contact__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.custom-contact__form .custom-field {
    margin-bottom: 15px;
}

.custom-contact__form .custom-field > label {
    color: #f1f1f1;
    font-size: 9px;
}

.custom-contact__form input:not([type="checkbox"]):not([type="radio"]) {
    height: 45px;
    border-color: #414141;
    background: #202020;
    color: #fff;
}

.custom-contact__form input:focus {
    border-color: var(--fa-red);
}

.custom-contact__form input::placeholder {
    color: #999;
}

.custom-error {
    margin: 0 0 12px;
    color: #ff7772;
    font-size: 12px;
    line-height: 1.6;
}

.whatsapp-button {
    width: 100%;
    min-height: 51px;
    padding: 13px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--fa-red);
    border-radius: 2px;
    background: var(--fa-red);
    color: #fff;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .06em;
    text-align: left;
    transition: background .2s ease, border-color .2s ease;
}

.whatsapp-button span {
    font-size: 19px;
    line-height: 1;
}

.whatsapp-button:hover {
    border-color: #fff;
    background: #fff;
    color: var(--fa-black);
}

/* =========================
   IMAGE + FORM COLUMN
   KEEP THEM TOGETHER
========================= */

.custom-product__image + .custom-product__content {
    min-width: 0;
}

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

@media (max-width: 1000px) {
    .custom-product,
    .custom-product--reverse {
        grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
        gap: 24px;
        padding: 45px 28px;
    }

    .custom-product__image {
        height: 290px;
        padding: 14px;
    }

    .section-whatsapp-box {
        padding: 19px;
    }

    .section-heading h2 {
        font-size: clamp(31px, 4vw, 43px);
    }

    .custom-row:has(#uniformSleeve) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 700px) {
    .customizer-hero {
        min-height: 490px;
        padding: 75px 23px;
    }

    .customizer-hero__wall {
        right: -4%;
        font-size: clamp(80px, 21vw, 145px);
        opacity: .85;
    }

    .customizer-hero h1 {
        font-size: clamp(43px, 10vw, 67px);
    }

    .customizer-hero .hero-copy {
        max-width: 330px;
        font-size: 13px;
    }

    .customizer-hero__number {
        right: 24px;
        bottom: 20px;
    }

    .custom-product,
    .custom-product--reverse {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 25px;
        padding: 32px 18px 38px;
    }

    .custom-product--reverse .custom-product__image,
    .custom-product--reverse .custom-product__content {
        order: initial;
    }

    .custom-product__image {
        width: 100%;
        height: clamp(235px, 66vw, 340px);
        padding: 16px;
    }

    .custom-product__content {
        width: 100%;
    }

    .section-heading {
        margin-bottom: 23px;
        padding-bottom: 19px;
    }

    .section-heading h2 {
        font-size: clamp(36px, 9vw, 52px);
    }

    .custom-row,
    .custom-row:has(#uniformSleeve),
    .custom-row:has(#uniformShirtSize) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .custom-field {
        margin-bottom: 19px;
    }

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

    .color-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .section-whatsapp-box {
        margin-top: 22px;
        padding: 21px 17px;
    }

    .section-whatsapp-heading h3 {
        font-size: 26px;
    }

    .selection-summary {
        padding: 16px;
    }
}

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

@media (max-width: 390px) {
    .custom-product,
    .custom-product--reverse {
        padding-right: 14px;
        padding-left: 14px;
    }

    .custom-row,
    .custom-row:has(#uniformSleeve),
    .custom-row:has(#uniformShirtSize) {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

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

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

    .section-whatsapp-box {
        padding: 18px 14px;
    }

    .customizer-hero h1 {
        font-size: 41px;
    }
}

/* =========================
   ACCESSIBILITY
========================= */

@media (prefers-reduced-motion: reduce) {
    .customizer-page *,
    .customizer-page *::before,
    .customizer-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
