
main {
    overflow-x: hidden;
}

/* =========================================================
   SWIPE PRODUCT
   FULLY ISOLATED
   ========================================================= */

.swipe-product {
    width: 100%;
    padding: 70px 0 90px;
    background: #f7f6f2;
    color: #111;
}

.swipe-product__container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   TOP
   ========================================================= */

.swipe-product__top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 18px;
    margin-bottom: 28px;

    border-bottom: 1px solid #d8d6d0;
}

.swipe-product__number,
.swipe-product__category {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.swipe-product__number {
    color: #111;
}

.swipe-product__category {
    color: #8a8881;
}


/* =========================================================
   GRID
   ========================================================= */

.swipe-product__grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(390px, .85fr);

    gap: 75px;

    align-items: start;
}


/* =========================================================
   GALLERY
   ========================================================= */

.swipe-product__gallery {
    min-width: 0;
}


/* =========================================================
   VIEWPORT
   ========================================================= */

.swipe-product__viewport {
    position: relative;

    width: 100%;

    overflow: hidden;

    background: #e9e7e1;

    cursor: grab;

    touch-action: pan-y;

    user-select: none;
    -webkit-user-select: none;

    -webkit-tap-highlight-color: transparent;
}

.swipe-product__viewport.is-dragging {
    cursor: grabbing;
}


/* =========================================================
   TRACK
   ========================================================= */

.swipe-product__track {
    display: flex;

    width: 100%;

    transition:
        transform .55s cubic-bezier(.22, 1, .36, 1);

    will-change: transform;
}


/* =========================================================
   SLIDE
   ========================================================= */

.swipe-product__slide {
    position: relative;

    flex: 0 0 100%;

    width: 100%;

    aspect-ratio: 1 / 1.05;

    overflow: hidden;

    background: #e9e7e1;
}

.swipe-product__slide img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    pointer-events: none;

    user-select: none;

    -webkit-user-drag: none;
}


/* =========================================================
   COUNTER
   ========================================================= */

.swipe-product__counter {
    position: absolute;

    right: 20px;
    bottom: 18px;

    z-index: 5;

    display: flex;
    align-items: center;
    gap: 7px;

    color: #fff;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;

    text-shadow:
        0 1px 4px rgba(0,0,0,.4);

    pointer-events: none;
}

.swipe-product__counter i {
    width: 18px;
    height: 1px;

    display: block;

    background: rgba(255,255,255,.65);
}


/* =========================================================
   ARROWS
   ========================================================= */

.swipe-product__arrow {
    position: absolute;

    top: 50%;

    z-index: 10;

    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;

    background: rgba(0,0,0,.12);

    color: #fff;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        background .2s ease,
        border-color .2s ease;
}

.swipe-product__arrow:hover {
    background: #111;
    border-color: #111;
}

.swipe-product__arrow--prev {
    left: 18px;
}

.swipe-product__arrow--next {
    right: 18px;
}

.swipe-product__arrow i {
    font-size: 15px;
}


/* =========================================================
   THUMBNAILS
   ========================================================= */

.swipe-product__thumbs {
    display: flex;

    gap: 10px;

    margin-top: 12px;
}

.swipe-product__thumb {
    width: 72px;
    height: 72px;

    flex: 0 0 auto;

    padding: 0;

    overflow: hidden;

    border: 1px solid transparent;

    background: #e9e7e1;

    cursor: pointer;

    opacity: .55;

    transition:
        opacity .2s ease,
        border-color .2s ease;
}

.swipe-product__thumb:hover {
    opacity: .85;
}

.swipe-product__thumb.is-active {
    border-color: #111;
    opacity: 1;
}

.swipe-product__thumb img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    pointer-events: none;

    user-select: none;

    -webkit-user-drag: none;
}


/* =========================================================
   PRODUCT INFO
   ========================================================= */

.swipe-product__info {
    padding-top: 15px;
}

.swipe-product__heading {
    margin-bottom: 35px;
}

.swipe-product__heading > span {
    display: block;

    margin-bottom: 13px;

    color: #8a8881;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 3px;
}

.swipe-product__heading h1 {
    margin: 0;

    color: #111;

    font-size: clamp(50px, 5.3vw, 76px);

    line-height: .88;

    font-weight: 300;

    letter-spacing: -.06em;
}

.swipe-product__heading h1 strong {
    display: block;

    font-weight: 700;
}


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

.swipe-product__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 20px;

    border-bottom: 1px solid #d8d6d0;
}

.swipe-product__price {
    font-size: 23px;
    font-weight: 700;
}

.swipe-product__stock {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #77746d;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.swipe-product__stock span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #111;
}


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

.swipe-product__description {
    max-width: 510px;

    margin: 28px 0 38px;

    color: #5f5d57;

    font-size: 15px;
    line-height: 1.85;
}


/* =========================================================
   DETAILS
   ========================================================= */

.swipe-product__details {
    border-top: 1px solid #d8d6d0;
}

.swipe-product__detail {
    display: grid;

    grid-template-columns: 42px 1fr;

    gap: 14px;

    padding: 17px 0;

    border-bottom: 1px solid #d8d6d0;
}

.swipe-product__detail > span {
    color: #9b9890;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1px;
}

.swipe-product__detail strong {
    display: block;

    margin-bottom: 4px;

    color: #111;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .8px;

    text-transform: uppercase;
}

.swipe-product__detail p {
    margin: 0;

    color: #77746d;

    font-size: 13px;
}


/* =========================================================
   PURCHASE
   ========================================================= */

.swipe-product__purchase {
    display: grid;

    grid-template-columns: 125px 1fr;

    gap: 10px;

    margin-top: 32px;
}


/* =========================================================
   QUANTITY
   ========================================================= */

.swipe-product__quantity {
    height: 58px;

    padding: 8px 12px;

    border: 1px solid #cfcdc7;
}

.swipe-product__quantity label {
    display: block;

    margin-bottom: 1px;

    color: #8a8881;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.swipe-product__quantity > div {
    display: grid;

    grid-template-columns:
        25px 1fr 25px;

    align-items: center;
}

.swipe-product__quantity button {
    height: 25px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #111;

    font-size: 17px;

    cursor: pointer;
}

.swipe-product__quantity input {
    width: 100%;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #111;

    text-align: center;

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

.swipe-product__quantity input::-webkit-inner-spin-button,
.swipe-product__quantity input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.swipe-product__quantity input[type="number"] {
    -moz-appearance: textfield;
}


/* =========================================================
   CART
   ========================================================= */

.swipe-product__cart {
    min-height: 58px;

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

    padding: 0 20px;

    border: 1px solid #111;

    background: #111;

    color: #fff;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.swipe-product__cart:hover {
    background: #292929;
}

.swipe-product__cart:active {
    transform: translateY(1px);
}

.swipe-product__cart i {
    font-size: 16px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.swipe-product__footer {
    display: flex;
    justify-content: space-between;

    margin-top: 18px;

    color: #99968e;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


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

@media (max-width: 991px) {

    .swipe-product {
        padding: 55px 0 70px;
    }

    .swipe-product__grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .swipe-product__visual {
        max-width: 800px;
    }

    .swipe-product__info {
        max-width: 720px;
    }

}


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

@media (max-width: 575px) {

    .swipe-product {
        padding: 35px 0 55px;
    }

    .swipe-product__container {
        width: calc(100% - 24px);
    }

    .swipe-product__top {
        margin-bottom: 18px;
    }

    .swipe-product__category {
        display: none;
    }

    .swipe-product__grid {
        gap: 30px;
    }

    .swipe-product__slide {
        aspect-ratio: 1 / 1.08;
    }

    .swipe-product__arrow {
        width: 42px;
        height: 42px;
    }

    .swipe-product__arrow--prev {
        left: 12px;
    }

    .swipe-product__arrow--next {
        right: 12px;
    }

    .swipe-product__thumb {
        width: 60px;
        height: 60px;
    }

    .swipe-product__heading {
        margin-bottom: 25px;
    }

    .swipe-product__heading h1 {
        font-size: 50px;
    }

    .swipe-product__description {
        font-size: 14px;
    }

    .swipe-product__purchase {
        grid-template-columns: 1fr;
    }

}