/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f3f0;
    color: #111;
}



/* =========================================================
   HEADER
   ========================================================= */

header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 40px;

    background: rgba(255,255,255,0.94);

    z-index: 100;
}


.logo {
    font-size: 22px;
    font-weight: 900;

    letter-spacing: -1px;

    cursor: pointer;
}


nav {
    display: flex;
    align-items: center;

    gap: 32px;
}


nav button,
nav a {
    border: 0;

    background: none;

    font: inherit;

    font-size: 13px;
    font-weight: 700;

    color: #111;

    text-decoration: none;

    cursor: pointer;
}



/* =========================================================
   AUTHENTICATION NAVIGATION
   ========================================================= */

.auth-links {
    display: flex;
    align-items: center;

    gap: 8px;
}


.auth-divider {
    font-size: 13px;

    font-weight: 400;
}


.account-icon {
    display: flex;

    align-items: center;
    justify-content: center;
}


.account-icon svg {
    width: 21px;
    height: 21px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}



/* =========================================================
   MAIN
   ========================================================= */

main {
    width: 100%;
    height: 100vh;

    padding-top: 72px;
}


.split {
    display: flex;

    width: 100%;
    height: 100%;

    overflow: hidden;
}



/* =========================================================
   LEFT + RIGHT PANELS
   ========================================================= */

.panel {
    position: relative;

    width: 50%;
    height: 100%;

    overflow: hidden;
}



/* =========================================================
   COVER IMAGES
   ========================================================= */

.cover-image {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    cursor: pointer;

    transition:
        opacity 350ms ease,
        transform 700ms cubic-bezier(.76,0,.24,1);
}


.cover-image:hover {
    transform: scale(1.02);
}



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

.content {
    position: absolute;

    inset: 0;

    padding: 70px;

    background: #f3f3f0;

    overflow-y: auto;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 350ms ease;
}


.content-inner {
    max-width: 600px;
}



/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.content h1 {
    font-size:
        clamp(50px, 6vw, 95px);

    line-height: .9;

    letter-spacing: -5px;

    margin-bottom: 70px;
}


.content h2 {
    margin-top: 45px;
    margin-bottom: 14px;

    font-size: 14px;

    letter-spacing: 1.5px;
}


.content p {
    max-width: 560px;

    font-size: 18px;

    line-height: 1.55;
}



/* =========================================================
   PRODUCT DESCRIPTIONS
   ========================================================= */

.ski-description p,
.snowboard-description p {
    margin-bottom: 25px;
}


.ski-description .lead,
.snowboard-description .lead {
    margin-bottom: 35px;

    font-size: 22px;

    font-weight: 700;

    line-height: 1.4;
}



/* =========================================================
   PRICE
   ========================================================= */

.price {
    margin-top: 60px;

    font-size: 40px !important;

    font-weight: 800;

    letter-spacing: -2px;
}


.small {
    margin-top: 10px;

    font-size: 14px !important;
}


.made-to-order {
    max-width: 480px;

    line-height: 1.5;
}



/* =========================================================
   ORIGINAL CTA
   ========================================================= */

.cta {
    display: inline-block;

    margin-top: 35px;

    padding: 17px 25px;

    background: #111;

    color: #fff;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1px;
}



/* =========================================================
   CONFIGURATORS
   ========================================================= */

.ski-configurator,
.snowboard-configurator {
    margin-top: 80px;

    padding-top: 35px;

    border-top: 2px solid #111;
}


.ski-configurator h2,
.snowboard-configurator h2 {
    margin-top: 0;

    margin-bottom: 45px;

    font-size: 28px;

    letter-spacing: -1px;
}



/* =========================================================
   CONFIGURATION GROUPS
   ========================================================= */

.config-group {
    margin-bottom: 40px;
}


.config-label {
    margin-bottom: 12px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;
}



/* =========================================================
   SKI MODEL OPTIONS
   ========================================================= */

.model-options {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 8px;
}


.model-option {
    padding: 18px 15px;

    border: 1px solid #111;

    background: transparent;

    color: #111;

    text-align: left;

    cursor: pointer;
}


.model-option:hover {
    background:
        rgba(0,0,0,0.05);
}


.model-option.selected {
    background: #111;

    color: #fff;
}



/* =========================================================
   SNOWBOARD MODEL OPTIONS
   ========================================================= */

.snowboard-model-options {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 8px;
}


.snowboard-model-option {
    padding: 18px 15px;

    border: 1px solid #111;

    background: transparent;

    color: #111;

    text-align: left;

    cursor: pointer;
}


.snowboard-model-option:hover {
    background:
        rgba(0,0,0,0.05);
}


.snowboard-model-option.selected {
    background: #111;

    color: #fff;
}



/* =========================================================
   MODEL TYPOGRAPHY
   ========================================================= */

.model-name {
    display: block;

    font-size: 18px;

    font-weight: 800;
}


.model-spec {
    display: block;

    margin-top: 5px;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;
}



/* =========================================================
   SIZE / FLEX / CAMBER
   ========================================================= */

.config-options {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


.config-option {
    padding: 12px 17px;

    border: 1px solid #111;

    background: transparent;

    color: #111;

    font: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;
}


.config-option:hover {
    background:
        rgba(0,0,0,0.05);
}


.config-option.selected {
    background: #111;

    color: #fff;
}


.config-option:disabled {
    opacity: .2;

    cursor: not-allowed;
}



/* =========================================================
   CONFIGURATION SUMMARY
   ========================================================= */

.config-summary {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 25px;

    margin-top: 60px;

    padding-top: 25px;

    border-top: 1px solid #111;
}


#ski-configuration,
#snowboard-configuration {
    font-size: 18px;

    font-weight: 800;
}


.config-summary-price {
    font-size: 28px;

    font-weight: 800;

    letter-spacing: -1px;
}



/* =========================================================
   ORDER BUTTON
   ========================================================= */

.order-button {
    width: 100%;

    margin-top: 25px;

    padding: 17px 25px;

    border: 0;

    background: #111;

    color: #fff;

    font: inherit;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;

    cursor: pointer;
}


.order-button:hover {
    opacity: .8;
}



/* =========================================================
   SKIS SELECTED
   ========================================================= */

/*

LEFT:
ski image remains

RIGHT:
snowboard image disappears
ski information appears

*/

.split.skis-active .snowboard-cover {
    opacity: 0;

    pointer-events: none;
}


.split.skis-active .ski-content {
    opacity: 1;

    pointer-events: auto;
}



/* =========================================================
   SNOWBOARDS SELECTED
   ========================================================= */

/*

RIGHT:
snowboard image remains

LEFT:
ski image disappears
snowboard information appears

*/

.split.snowboards-active .ski-cover {
    opacity: 0;

    pointer-events: none;
}


.split.snowboards-active .snowboard-content {
    opacity: 1;

    pointer-events: auto;
}



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

@media (max-width: 800px) {

    header {
        padding: 0 20px;
    }


    nav {
        gap: 14px;
    }


    .auth-links {
        display: none;
    }


    .account-icon svg {
        width: 20px;
        height: 20px;
    }


    .split {
        flex-direction: column;
    }


    .panel {
        width: 100%;

        height: 50%;
    }


    .content {
        padding: 40px 25px;
    }


    .content h1 {
        margin-bottom: 40px;
    }


    .model-options,
    .snowboard-model-options {
        grid-template-columns: 1fr;
    }


    .config-summary {
        display: block;
    }


    .config-summary-price {
        margin-top: 18px;
    }

}