/**
 * =========================================================
 * FSN STOREFRONT PRODUCT GRID
 * =========================================================
 */

.fsn-store-products {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 24px;
        width: calc(100% - 160px);
        max-width: 1600px;
        margin: 40px auto 0;
        box-sizing: border-box;
}


/**
 * =========================================================
 * PRODUCT CARD
 * =========================================================
 */

.fsn-store-product {
        min-width: 0;
}

.fsn-store-product-link {
        display: block;
        color: inherit;
        text-decoration: none;
}

.fsn-store-product-image {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        background: #f5f5f5;
        border: 1px solid #eeeeee;
        box-sizing: border-box;
        transition:
                transform 0.2s ease,
                box-shadow 0.2s ease;
}

.fsn-store-product-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        margin: 0;
}

.fsn-store-product-link:hover .fsn-store-product-image {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}


/**
 * =========================================================
 * PRODUCT NAME
 * =========================================================
 */

.fsn-store-product-name {
        margin: 16px 0 6px;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.25;
}

.fsn-store-product-link:hover .fsn-store-product-name {
        text-decoration: underline;
        text-decoration-color: #d4af19;
        text-underline-offset: 4px;
}


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

.fsn-store-product-price {
        margin: 0;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.4;
}

.fsn-store-product-price del {
        margin-right: 6px;
        color: #777777;
        font-weight: 400;
}

.fsn-store-product-price ins {
        color: #b89400;
        font-weight: 700;
        text-decoration: none;
}


/**
 * =========================================================
 * SINGLE PRODUCT PAGE
 * =========================================================
 */

.fsn-product-page {
        padding: 64px 0 80px;
        background: #ffffff;
}

.fsn-product-page__container {
        width: calc(100% - 80px);
        max-width: 1320px;
        margin: 0 auto;
}

.fsn-product-page__layout {
        display: grid;
        grid-template-columns:
                minmax(0, 1.05fr)
                minmax(360px, 0.95fr);
        gap: 72px;
        align-items: start;
}

.fsn-product-page__media {
        min-width: 0;
}

.fsn-product-page__image {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        background: #f7f7f7;
        border: 1px solid #e8e8e8;
        box-sizing: border-box;
}

.fsn-product-page__image img {
        display: block;
        width: 100%;
        height: 100%;
        margin: 0;
        object-fit: contain;
}

.fsn-product-page__details {
        min-width: 0;
        padding-top: 6px;
}

.fsn-product-page__back {
        display: inline-block;
        margin: 0 0 24px;
        color: #555555;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
}

.fsn-product-page__back:hover {
        color: #111111;
        text-decoration: underline;
        text-underline-offset: 3px;
}

.fsn-product-page__title {
        margin: 0 0 18px;
        font-size: clamp(32px, 4vw, 52px);
        line-height: 1.05;
        letter-spacing: -1px;
}

.fsn-product-page__price {
        margin: 0 0 28px;
        font-size: 28px;
        font-weight: 800;
        line-height: 1.2;
}

.fsn-product-page__summary {
        max-width: 640px;
        color: #444444;
        font-size: 17px;
        line-height: 1.7;
}

.fsn-product-page__summary > :first-child {
        margin-top: 0;
}

.fsn-product-page__summary > :last-child {
        margin-bottom: 0;
}


/**
 * =========================================================
 * PRODUCT PURCHASE AREA
 * =========================================================
 */

.fsn-product-page__purchase {
        display: flex;
        align-items: flex-end;
        gap: 14px;
        margin-top: 34px;
}

.fsn-product-page__quantity {
        display: flex;
        flex-direction: column;
        gap: 8px;
}

.fsn-product-page__quantity label {
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0.6px;
        text-transform: uppercase;
}

.fsn-product-page__quantity input {
        width: 88px;
        height: 52px;
        padding: 0 12px;
        box-sizing: border-box;
        border: 2px solid #dddddd;
        background: #ffffff;
        color: #111111;
        font: inherit;
        font-size: 16px;
        font-weight: 700;
        text-align: center;
}

.fsn-product-page__quantity input:focus {
        border-color: #111111;
        outline: none;
}

.fsn-product-page__add-button {
        min-height: 52px;
        padding: 0 30px;
        border: 2px solid var(--fsn-accent, #d4af19);
        background: var(--fsn-accent, #d4af19);
        color: #111111;
        cursor: pointer;
        font: inherit;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 0.7px;
        text-transform: uppercase;
        transition:
                background 0.2s ease,
                border-color 0.2s ease,
                transform 0.2s ease;
}

.fsn-product-page__add-button:hover {
        transform: translateY(-1px);
        background: #111111;
        border-color: #111111;
        color: #ffffff;
}

.fsn-product-page__add-button:focus-visible {
        outline: 3px solid #111111;
        outline-offset: 3px;
}

.fsn-product-page__added {
        display: none;
        margin-top: 18px;
        padding: 12px 16px;
        background: #f2f7f1;
        border: 1px solid #cfe1cc;
        font-size: 14px;
        font-weight: 800;
}

.fsn-product-page__basket-actions {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 16px 24px;
        margin-top: 22px;
}

.fsn-product-page__basket-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 0 22px;
        border: 2px solid #111111;
        color: #111111;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0.6px;
        text-decoration: none;
        text-transform: uppercase;
        transition:
                background 0.2s ease,
                color 0.2s ease;
}

.fsn-product-page__basket-link:hover {
        background: #111111;
        color: #ffffff;
}

.fsn-product-page__basket-summary {
        color: #555555;
        font-size: 14px;
        line-height: 1.4;
}

.fsn-product-page__basket-summary strong {
        color: #111111;
}


/**
 * =========================================================
 * ORDERING DISABLED
 * =========================================================
 */

.fsn-product-page__ordering-disabled {
        margin-top: 34px;
        padding: 22px 24px;
        border: 2px solid #222222;
        background: #f8f8f8;
}

.fsn-product-page__ordering-disabled strong {
        display: block;
        margin-bottom: 10px;
        font-size: 18px;
}

.fsn-product-page__ordering-disabled p {
        margin: 10px 0 0;
        line-height: 1.6;
}


/**
 * =========================================================
 * PRODUCT DESCRIPTION
 * =========================================================
 */

.fsn-product-page__description {
        max-width: 900px;
        margin: 72px auto 0;
        padding-top: 48px;
        border-top: 1px solid #e5e5e5;
}

.fsn-product-page__description h2 {
        margin: 0 0 22px;
        font-size: 28px;
}

.fsn-product-page__description p {
        color: #444444;
        font-size: 17px;
        line-height: 1.75;
}


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

@media (max-width: 1000px) {

        .fsn-store-products {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                width: calc(100% - 48px);
        }

        .fsn-product-page {
                padding: 48px 0 64px;
        }

        .fsn-product-page__container {
                width: calc(100% - 48px);
        }

        .fsn-product-page__layout {
                grid-template-columns: minmax(0, 1fr);
                gap: 40px;
        }

        .fsn-product-page__media {
                max-width: 720px;
                margin: 0 auto;
        }

        .fsn-product-page__details {
                width: 100%;
                max-width: 720px;
                margin: 0 auto;
        }
}


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

@media (max-width: 600px) {

        .fsn-store-products {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 16px;
                width: calc(100% - 32px);
        }

        .fsn-store-product-name {
                font-size: 17px;
        }

        .fsn-product-page {
                padding: 28px 0 48px;
        }

        .fsn-product-page__container {
                width: calc(100% - 32px);
        }

        .fsn-product-page__layout {
                gap: 28px;
        }

        .fsn-product-page__back {
                margin-bottom: 18px;
        }

        .fsn-product-page__title {
                font-size: 34px;
        }

        .fsn-product-page__price {
                margin-bottom: 22px;
                font-size: 24px;
        }

        .fsn-product-page__summary {
                font-size: 16px;
        }

        .fsn-product-page__purchase {
                align-items: stretch;
                flex-direction: column;
        }

        .fsn-product-page__quantity input {
                width: 100%;
        }

        .fsn-product-page__add-button {
                width: 100%;
        }

        .fsn-product-page__basket-actions {
                align-items: stretch;
                flex-direction: column;
        }

        .fsn-product-page__basket-link {
                width: 100%;
                box-sizing: border-box;
        }

        .fsn-product-page__description {
                margin-top: 48px;
                padding-top: 36px;
        }
}

/**
 * =========================================================
 * STOREFRONT BASKET PAGE
 * =========================================================
 */

.fsn-basket-page {
        padding: 64px 0 80px;
        background: #ffffff;
}

.fsn-basket-page__container {
        width: calc(100% - 80px);
        max-width: 1180px;
        margin: 0 auto;
}

.fsn-basket-page__header {
        max-width: 760px;
        margin-bottom: 44px;
}

.fsn-basket-page__back {
        display: inline-block;
        margin-bottom: 22px;
        color: #555555;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
}

.fsn-basket-page__back:hover {
        color: #111111;
        text-decoration: underline;
        text-underline-offset: 3px;
}

.fsn-basket-page__header h1 {
        margin: 0 0 12px;
        font-size: clamp(34px, 4vw, 52px);
        line-height: 1.05;
        letter-spacing: -1px;
}

.fsn-basket-page__header p {
        margin: 0;
        color: #555555;
        font-size: 17px;
        line-height: 1.6;
}


/**
 * =========================================================
 * EMPTY BASKET
 * =========================================================
 */

.fsn-basket-page__empty {
        padding: 48px 36px;
        background: #f7f7f7;
        border: 1px solid #e5e5e5;
        text-align: center;
}

.fsn-basket-page__empty h2 {
        margin: 0 0 10px;
        font-size: 28px;
}

.fsn-basket-page__empty p {
        margin: 0 0 26px;
        color: #555555;
}

.fsn-basket-page__shop-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        padding: 0 26px;
        border: 2px solid var(--fsn-accent, #d4af19);
        background: var(--fsn-accent, #d4af19);
        color: #111111;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0.7px;
        text-decoration: none;
        text-transform: uppercase;
}

.fsn-basket-page__shop-button:hover {
        background: #111111;
        border-color: #111111;
        color: #ffffff;
}


/**
 * =========================================================
 * BASKET ITEMS
 * =========================================================
 */

.fsn-basket-page__items {
        border-top: 1px solid #e5e5e5;
}

.fsn-basket-item {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr) auto;
        gap: 26px;
        align-items: center;
        padding: 26px 0;
        border-bottom: 1px solid #e5e5e5;
}

.fsn-basket-item__image {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 120px;
        height: 120px;
        overflow: hidden;
        background: #f7f7f7;
        border: 1px solid #eeeeee;
        box-sizing: border-box;
}

.fsn-basket-item__image-element {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
}

.fsn-basket-item__details {
        min-width: 0;
}

.fsn-basket-item__title {
        display: block;
        margin-bottom: 7px;
        font-size: 19px;
        line-height: 1.3;
}

.fsn-basket-item__price {
        margin: 0 0 16px;
        color: #555555;
        font-size: 14px;
}

.fsn-basket-item__quantity {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        margin-right: 14px;
        font-size: 14px;
        font-weight: 700;
}

.fsn-basket-item__quantity-input {
        width: 72px;
        height: 42px;
        padding: 0 8px;
        box-sizing: border-box;
        border: 2px solid #dddddd;
        background: #ffffff;
        color: #111111;
        font: inherit;
        font-weight: 700;
        text-align: center;
}

.fsn-basket-item__quantity-input:focus {
        border-color: #111111;
        outline: none;
}

.fsn-basket-item__remove {
        padding: 0;
        border: 0;
        background: transparent;
        color: #666666;
        cursor: pointer;
        font: inherit;
        font-size: 13px;
        font-weight: 700;
        text-decoration: underline;
        text-underline-offset: 3px;
}

.fsn-basket-item__remove:hover {
        color: #111111;
}

.fsn-basket-item__line-total {
        min-width: 90px;
        font-size: 20px;
        text-align: right;
}


/**
 * =========================================================
 * BASKET SUMMARY
 * =========================================================
 */

.fsn-basket-page__summary {
        max-width: 560px;
        margin: 42px 0 0 auto;
        padding: 28px;
        background: #f7f7f7;
        border: 1px solid #e5e5e5;
}

.fsn-basket-page__total {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
        padding-bottom: 22px;
        border-bottom: 1px solid #dddddd;
}

.fsn-basket-page__total span {
        font-size: 16px;
        font-weight: 700;
}

.fsn-basket-page__total strong {
        font-size: 28px;
        line-height: 1;
}

.fsn-basket-page__actions {
        margin-top: 24px;
}

.fsn-basket-page__continue {
        display: inline-block;
        margin-bottom: 20px;
        color: #555555;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
}

.fsn-basket-page__continue:hover {
        color: #111111;
        text-decoration: underline;
        text-underline-offset: 3px;
}

.fsn-basket-page__actions form {
        margin: 0;
}

.fsn-basket-page__checkout {
        width: 100%;
        min-height: 54px;
        padding: 0 26px;
        border: 2px solid var(--fsn-accent, #d4af19);
        background: var(--fsn-accent, #d4af19);
        color: #111111;
        cursor: pointer;
        font: inherit;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 0.7px;
        text-transform: uppercase;
        transition:
                background 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease;
}

.fsn-basket-page__checkout:hover {
        background: #111111;
        border-color: #111111;
        color: #ffffff;
}

.fsn-basket-page__checkout-disabled {
        padding: 20px;
        border: 2px solid #222222;
        background: #ffffff;
}

.fsn-basket-page__checkout-disabled strong {
        display: block;
        margin-bottom: 8px;
        font-size: 17px;
}

.fsn-basket-page__checkout-disabled p {
        margin: 0;
        color: #444444;
        line-height: 1.6;
}


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

@media (max-width: 800px) {

        .fsn-basket-page {
                padding: 48px 0 64px;
        }

        .fsn-basket-page__container {
                width: calc(100% - 48px);
        }

        .fsn-basket-item {
                grid-template-columns: 100px minmax(0, 1fr) auto;
                gap: 20px;
        }

        .fsn-basket-item__image {
                width: 100px;
                height: 100px;
        }
}


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

@media (max-width: 600px) {

        .fsn-basket-page {
                padding: 28px 0 48px;
        }

        .fsn-basket-page__container {
                width: calc(100% - 32px);
        }

        .fsn-basket-page__header {
                margin-bottom: 30px;
        }

        .fsn-basket-page__header h1 {
                font-size: 34px;
        }

        .fsn-basket-item {
                grid-template-columns: 82px minmax(0, 1fr);
                gap: 16px;
                align-items: start;
                padding: 20px 0;
        }

        .fsn-basket-item__image {
                width: 82px;
                height: 82px;
        }

        .fsn-basket-item__title {
                font-size: 17px;
        }

        .fsn-basket-item__quantity {
                display: flex;
                margin: 0 0 12px;
        }

        .fsn-basket-item__line-total {
                grid-column: 2;
                min-width: 0;
                margin-top: -4px;
                font-size: 18px;
                text-align: left;
        }

        .fsn-basket-page__summary {
                max-width: none;
                margin-top: 30px;
                padding: 22px;
        }

        .fsn-basket-page__total strong {
                font-size: 24px;
        }

        .fsn-basket-page__checkout {
                min-height: 52px;
        }
}
