:root {
    --font-primary: "Inter", sans-serif;
    --font-secondary: "Fraunces", serif;

    --color-text: #223263;
    --color-bg: #fff1da;
    --color-link: #000;
    --color-link-hover: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  
}

html,
body {
    width: 100%;
    height: 100%;
}


body {
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main_sec ul,
.main_sec ol,
.main_sec menu {
    list-style: none;
}



.main_sec a {
    text-decoration: none;
    color: inherit;
    outline: none;
    cursor: pointer;
}

.main_sec a:focus {
    background: lightgrey;
    outline: none;
}

.main_sec a:focus:not(:focus-visible) {
    background: transparent;
}

.main_sec a:focus-visible {
    background: transparent;
    outline: 2px solid red;
}

.main_sec button,
.main_sec input,
.main_sec select,
.main_sec textarea {
    display: block;
    border: 0;
    border-radius: 0;
    background: 0 0;
    color: inherit;
}

.main_sec button:hover {
    cursor: pointer;
}

@media (scripting: enabled) {

    .loading::before,
    .loading::after {
        content: "";
        position: fixed;
        z-index: 10000;
    }

    .loading::before {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--color-bg);
    }

    .loading::after {
        top: 50%;
        left: 50%;
        width: 100px;
        height: 1px;
        margin: 0 0 0 -50px;
        background: var(--color-link);
        animation: loaderAnim 1.5s ease-in-out infinite alternate forwards;
    }
}

@keyframes loaderAnim {
    0% {
        transform: scaleX(0);
        transform-origin: 0% 50%;
    }

    50% {
        transform: scaleX(1);
        transform-origin: 0% 50%;
    }

    50.1% {
        transform: scaleX(1);
        transform-origin: 100% 50%;
    }

    100% {
        transform: scaleX(0);
        transform-origin: 100% 50%;
    }
}

/* 
html {
    font-size: 16px;
} */

body {
    font-family: var(--font-primary);
    font-size: 16px;
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* ---------------- Block intro ---------------- */
.main_sec {
    font-size: calc(100vw / 1440);
}

.block--intro {
    position: relative;
    z-index: 1;
}

.media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(100vh - 110px);
    overflow: hidden;
    /* Ensure media content doesn't overflow */
}


.media__track {
    display: flex;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.media__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.media__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: lightgray;
}

.media__dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 100px;
    backdrop-filter: blur(10px);
}

.media__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.media__dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

.media__dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.media__caption {
    position: relative;
    width: 221em;
    font-size: 14em;
    line-height: 1.3;
    text-transform: uppercase;
    text-align: center;
}

/* ---------------- Block .main_sec ---------------- */

.block_div.block--main {
    height: 425vh;
}

.block__wrapper {
    position: sticky;
    top: 0;
    padding: 0 24em;
    will-change: transform;
    overflow: hidden;
}

.content {
    pointer-events: none;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    text-align: center;
    /* z-index: 1; */
}

.content__title {
    width: 924em;
    font-family: var(--font-secondary);
    font-size: 35em;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: bold;
}

.content__description {
    width: 455em;
    margin-top: 2em;
    font-size: 11em;
    line-height: 1.3;
    text-transform: uppercase;
}

.content__button {
    margin-top: 1em;
    font-size: 14em;
    text-transform: uppercase;
}

.content__button:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------------- Gallery ---------------- */

.gallery {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    width: 736em;
}



.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 32em;
    row-gap: 40em;
    will-change: transform;
}

.gallery__item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    will-change: transform;
    overflow: hidden;
    cursor: pointer;
    /* Hide default cursor */
}

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    /* width: 80px;
    height: 30px; */
    margin-top: -28px;
    padding: 12px 24px;
    background: var(--color-text);
    /* border: 1px solid var(--color-text); */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.1em;
    pointer-events: none;
    z-index: 2000;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: opacity 0.1s ease;
}

.body_section {
    position: relative;
    /*padding: 0px 0 140px;*/
    opacity: 0;
    will-change: opacity;
    /* width: calc(100vw - 16px); */
}

.body_section::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -25%;
    width: 150%;
    height: 150px;
    filter: blur(25px);
    /* Linear Gradient Example */
    background-color: var(--color-bg);
    /* background: linear-gradient(0deg, rgba(255, 241, 218, 0), rgba(255, 241, 218, 0.5), rgba(255, 241, 218, 1)); */
    z-index: -1;
    /* Places gradient behind the .shop content */
}

section#features {
    padding-top: 180px;
    padding-bottom: 4px;
}

.shop_section {
    position: relative;
    padding: 0px 0 140px;

}

.shop_header_title {
    font-size: 60px;
    text-align: center;
    font-family: var(--font-secondary);
    font-weight: bold;
    margin-bottom: 40px;
}

.shop_section_wrapper {
    margin: 0 auto;
    padding: 140px 16px 0;
    max-width: 1200px;
    width: 100%;
    ;
}

.shop_content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.shop_item {
    position: relative;
    width: 250px;
    height: 300px;
    will-change: transform;
    overflow: hidden;
    cursor: pointer;
}

.shop__item__inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24rem;
    /* background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); */
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(10rem);
}

.gallery__item:hover .shop__item__inner,
.shop_item:hover .shop__item__inner {
    opacity: 1;
    transform: translateY(0);
}

.shop__item__title {
    font-family: var(--font-secondary);
    font-size: 32rem;
    color: var(--color-text);
    margin: 0;
}

.shop__item__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.shop__item__meta__price {
    font-size: 18rem;
    font-weight: 600;
    color: var(--color-text);
}

.shop__item__button {
    padding: 8rem 16rem;
    background: #fff;
    color: #000;
    font-size: 12rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.1em;
    transition: background 0.3s ease, color 0.3s ease;
}

.shop__item__button:hover {
    background: #000;
    color: #fff;
}

.gallery__image,
.shop__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: lightgray;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery__item:hover .gallery__image,
.shop_item:hover .shop__image {
    transform: scale(1.1);
}

/* Vanilla CSS converted from Tailwind snippet */
.purchased-section {
    background-color: #ffffff;
}

.purchased-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 672px;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 64px;
    padding-bottom: 64px;
}

@media (min-width: 640px) {
    .purchased-container {
        padding-left: 24px;
        padding-right: 24px;
        padding-top: 96px;
        padding-bottom: 96px;
    }
}

@media (min-width: 1024px) {
    .purchased-container {
        max-width: 1280px;
        padding-left: 32px;
        padding-right: 32px;
    }
}

.purchased-title {
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #111827;
}

.purchased-grid {
    height: 384px;
    display: flex;
    gap: 20px;
    overflow: hidden;
     transition: transform 0.4s ease;
  
}

.slider-container {
    position: relative;
    overflow: hidden;
}

.product-card {
    flex: 0 0 calc(20% - 16px); /* 🔥 5 items */
    box-sizing: border-box;
}

/* Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 5;
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}

/* Disabled button */
.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}





@media (min-width: 640px) {
    /* .purchased-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    } */
}

@media (min-width: 1024px) {
    /* .purchased-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    } */
}

@media (min-width: 1280px) {
    /* .purchased-grid {
        column-gap: 32px;
    } */
}

.product-card {
    position: relative;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-image {
    overflow: hidden;
}

.product-image img {
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: 6px;
    /* background-color: #e5e7eb; */
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (min-width: 1024px) {
    .product-image img {
        aspect-ratio: auto;
        height: 320px;
    }
}

.product-info {
    margin: 16px 4px 0px;
    display: flex;
    justify-content: space-between;
}

.product-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #374151;
}

.product-link-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.product-color {
    margin-top: 4px;
    font-size: 14px;
    line-height: 20px;
    color: #6b7280;
}

.product-price {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #111827;
}

