:root {
    --bg: #f5f5f7;
    --surf: #fff;
    --ink: #111114;
    --mute: #6b6b76;
    --line: #e4e4ea;
    --acc: #ff5a1f;
    --sh: #ececf1;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px)
}

@font-face {
    font-family: 'ramofont';
    src: url('ramofont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@media (prefers-color-scheme:dark) {
    :root:not([data-theme="light"]) {
        --bg: #0e0e10;
        --surf: #1a1a1d;
        --ink: #f3f3f5;
        --mute: #9a9aa5;
        --line: #2a2a30;
        --sh: #232328
    }
}

:root[data-theme="dark"] {
    --bg: #0e0e10;
    --surf: #1a1a1d;
    --ink: #f3f3f5;
    --mute: #9a9aa5;
    --line: #2a2a30;
    --sh: #232328
}

* {
    box-sizing: border-box
}

html {
    height: 100%
}

body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.6 Manrope, "Segoe UI", system-ui, sans-serif
}

h1,
h2,
h3,
.logo {
    font-family: 'ramofont';
    line-height: 1;
    margin: 0;
    font-weight: 500;
    letter-spacing: -.02em
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer
}

:focus-visible {
    outline: 3px solid var(--acc);
    outline-offset: 2px
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px
}

header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 6;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line)
}

header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px
}

.logo {
    font-size: 24px;
    display: flex;
    gap: 10px;
    align-items: center
}

.logo i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, #111 30%, #555 33%, #111 60%, var(--acc) 64%)
}

nav {
    display: flex;
    gap: 22px;
    align-items: center;
    font-weight: 500
}

nav a {
    color: var(--mute)
}

nav a:hover {
    color: var(--ink)
}

.cartb {
    background: var(--ink);
    color: var(--bg);
    border: 0;
    border-radius: 24px;
    padding: 8px 18px;
    font-weight: 700
}

.cartb b {
    background: var(--acc);
    color: #fff;
    border-radius: 12px;
    padding: 0 8px;
    margin-left: 6px
}

.btn {
    display: inline-block;
    background: var(--acc);
    color: var(--bg);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 800;
    border: 0;
    transition: transform .2s, box-shadow .2s
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .5)
}

.btn.alt {
    background: transparent;
    color: inherit;
    border: 2px solid currentColor;
    margin-left: 10px
}

/* hero */
.hero {
    margin: 20px auto 0;
    max-width: 1180px;
    border-radius: 32px;
    background: radial-gradient(circle at var(--mx, 70%) var(--my, 40%), #fff 0, #eeeef3 45%, #dcdce4 100%);
    color: #111114;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 10px;
    padding: 56px 48px;
    overflow: hidden;
    position: relative;
    perspective: 900px
}

.hero h1 {
    font-size: clamp(40px, 6.4vw, 84px)
}

.hero h1 span {
    display: block;
    animation: rise .9s both
}

.hero h1 span:nth-child(2) {
    animation-delay: .15s;
    color: var(--acc)
}

.hero p {
    color: #55555f;
    max-width: 42ch;
    margin: 22px 0 30px;
    animation: rise .9s .3s both
}

.hero .cta {
    animation: rise .9s .45s both
}

.stage {
    transition: transform .15s;
    transform-style: preserve-3d;
    filter: drop-shadow(0 36px 30px rgba(0, 0, 0, .28));
    animation: float 6s ease-in-out infinite
}

.stage svg {
    width: 100%;
    display: block
}

.chip {
    position: absolute;
    background: #fff;
    border: 1px solid #e4e4ea;
    color: #111114;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .25);
    border-radius: 14px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 14px;
    animation: float 5s ease-in-out infinite
}

@keyframes float {
    50% {
        translate: 0 -12px
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(26px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.hero .btn {
    background: #111114;
    color: #fff
}

.hero .btn.alt {
    background: transparent;
    color: #111114
}

/* sections */
.sh {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin: 64px 0 22px
}

.sh h2 {
    font-size: clamp(28px, 4vw, 44px)
}

.cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.cat {
    background: var(--surf);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 16px;
    text-align: left;
    transition: .3s;
    display: block;
    width: 100%
}

.cat:hover,
.cat[aria-pressed=true] {
    background: var(--ink);
    color: var(--bg);
    transform: translateY(-4px)
}

.cat .a {
    aspect-ratio: 4/3
}

.cat svg {
    width: 100%;
    height: 100%
}

.cat b {
    font-family: 'ramofont';
    font-size: 20px;
    display: block
}

.cat small {
    opacity: .65
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px
}

.card {
    background: var(--surf);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    display: block;
    transition: transform .3s, box-shadow .3s
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px -22px rgba(27, 31, 74, .5)
}

.im {
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden
}

.im svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform .6s
}

.card:hover .im svg {
    transform: scale(1.07)
}

.bd {
    position: absolute;
    left: 12px;
    top: 12px;
    background: var(--acc);
    color: #fff;
    border-radius: 10px;
    padding: 2px 10px;
    font-size: 13px;
    z-index: 1
}

.tx {
    padding: 16px 18px 20px
}

.tx small {
    color: var(--mute)
}

.tx h3 {
    font-size: 20px;
    margin: 4px 0 6px
}

.rt {
    color: #e6a700;
    font-weight: 700;
    font-size: 14px
}

.price {
    font-family: 'ramofont';
    font-weight: 800;
    font-size: 22px;
    color: #17a05a;
}

.old {
    color: var(--mute);
    text-decoration: line-through;
    font-size: 15px;
    margin-left: 8px
}

.perks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 60px 0
}

.perks div {
    background: var(--sh);
    border-radius: 20px;
    padding: 22px
}

.perks b {
    font-family: 'ramofont';
    font-size: 20px;
    display: block
}

.perks span {
    color: var(--mute)
}

/* product */
.crumb {
    padding: 24px 0 14px;
    color: var(--mute);
    font-size: 14px
}

.crumb a:hover {
    color: var(--ink)
}

.prod {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 44px
}

.gal {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 14px;
    align-self: start;
    position: sticky;
    top: 84px
}

.thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.thumbs button {
    aspect-ratio: 1;
    border-radius: 14px;
    border: 2px solid transparent;
    padding: 0;
    overflow: hidden;
    opacity: .6;
    transition: .2s;
    background: none
}

.thumbs button[aria-current=true] {
    border-color: var(--acc);
    opacity: 1
}

.thumbs svg {
    width: 100%;
    height: 100%;
    display: block
}

.main {
    border-radius: 26px;
    overflow: hidden;
    aspect-ratio: 4/3.4;
    border: 0;
    padding: 0;
    position: relative;
    cursor: pointer;
    background: var(--sh)
}

.main svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform .25s;
    animation: fade .5s
}

.main:hover svg {
    transform: scale(1.6)
}

.main em {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: var(--surf);
    border-radius: 14px;
    padding: 2px 14px;
    font-style: normal;
    font-size: 13px
}

@keyframes fade {
    from {
        opacity: 0;
        filter: blur(8px)
    }

    to {
        opacity: 1;
        filter: none
    }
}

.info h1 {
    font-size: clamp(32px, 4.4vw, 52px);
    margin: 8px 0
}

.info .price {
    font-size: 38px;
    display: block;
    color: #17a05a;
    margin: 18px 0 6px
}

.ok {
    color: #17a05a;
    font-weight: 700;
    font-size: 14px
}

.desc {
    color: var(--mute);
    margin: 16px 0 24px;
    font-size: 17px
}

.buy {
    display: flex;
    gap: 12px;
    align-items: center
}

.qty {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surf)
}

.qty button {
    border: 0;
    background: none;
    width: 40px;
    height: 50px;
    font-size: 20px
}

.qty span {
    width: 30px;
    text-align: center;
    align-self: center;
    font-weight: 700
}

.mini {
    list-style: none;
    padding: 0;
    margin: 26px 0 0;
    display: grid;
    gap: 8px;
    color: var(--mute)
}

h2.sec {
    font-size: clamp(26px, 3.4vw, 38px);
    margin: 64px 0 18px
}

.specs {
    display: grid;
    gap: 10px
}

.sp {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: var(--surf);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 22px;
    transition: .3s
}

.sp:hover {
    border-color: #c2c2c2;
    transform: translateX(6px)
}

.sp b {
    color: var(--mute);
    font-weight: 500
}

.sp span {
    font-family: 'ramofont';
    font-weight: 700;
    font-size: 20px;
    text-align: right
}

.rv {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s, transform .6s
}

.rv.in {
    opacity: 1;
    transform: none
}

.long {
    max-width: 68ch;
    font-size: 18px;
    color: var(--mute)
}

/* cart + lightbox */
.dr {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(400px, 100%);
    background: var(--surf);
    z-index: 30;
    transform: translateX(105%);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 50px rgba(0, 0, 0, .3)
}

.dr.on {
    transform: none
}

.dr h2 {
    font-size: 28px;
    display: flex;
    justify-content: space-between
}

.dr h2 button {
    background: none;
    border: 0;
    font-size: 28px
}

#ci {
    flex: 1;
    overflow: auto;
    margin: 16px 0
}

.ci {
    display: grid;
    grid-template-columns: 70px 1fr 30px;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line)
}

.ci .th {
    border-radius: 12px;
    overflow: hidden
}

.ci button {
    background: none;
    border: 0;
    font-size: 22px
}

.lb {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 18, .92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
    padding: 20px
}

.lb.on {
    display: flex;
    animation: fade .3s
}

.lb .box {
    width: min(960px, 100%);
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3
}

.lb svg {
    width: 100%;
    height: 100%;
    display: block
}

.lb button {
    position: absolute;
    background: #fff;
    color: #111;
    border: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px
}

.lb .x {
    top: calc(16px + env(safe-area-inset-top, 0px));
    right: 16px
}

.lb .p {
    left: 14px
}

.lb .n {
    right: 14px
}

footer {
    margin-top: 80px;
    border-top: 1px solid var(--line);
    padding: 30px 0;
    color: var(--mute);
    font-size: 14px
}

@media(max-width:820px) {

    .hero,
    .prod {
        grid-template-columns: 1fr
    }

    .hero {
        padding: 36px 22px;
        margin: 12px
    }

    .cats {
        grid-template-columns: 1fr 1fr
    }

    .perks {
        grid-template-columns: 1fr
    }

    .gal {
        position: static;
        grid-template-columns: 1fr
    }

    .thumbs {
        flex-direction: row;
        order: 2
    }

    .thumbs button {
        flex: 1
    }

    nav a {
        display: none
    }

    .chip {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important
    }
}

.sk,
.ph:not(.ld) {
    background: linear-gradient(100deg, var(--sh) 30%, color-mix(in srgb, var(--sh) 55%, #fff) 50%, var(--sh) 70%) 0 0/200% 100%;
    animation: shim 1.3s linear infinite
}

@keyframes shim {
    to {
        background-position: -200% 0
    }
}

.ph {
    width: 100%;
    height: 100%;
    display: block
}

.ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity .5s, transform .6s
}

.ph.ld img {
    opacity: 1
}

.card:hover .im img {
    transform: scale(1.07)
}

.main:hover img {
    /* transform: scale(1.6) */
}

.main img {
    transition: transform .25s, opacity .5s
}

.lb .box img {
    object-fit: contain
}

.himg {
    aspect-ratio: 4/3;
    border-radius: 24px;
    overflow: hidden
}

.ci .th {
    aspect-ratio: 1
}

.cat .a {
    border-radius: 14px;
    overflow: hidden
}

.cat:hover {
    background: #b0b0b038;
    box-shadow: 0px 0px 6px 0px #6e6e6e;
    color: #393939;
}

.fls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px
}

.fl {
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surf);
    transition: .2s
}

.fl:hover {
    border-color: var(--acc)
}

.fl[aria-current=true] {
    background: var(--acc);
    color: var(--bg)
}

.pol {
    display: grid;
    gap: 10px;
    margin-top: 24px
}

.pol div {
    background: var(--sh);
    border-radius: 14px;
    padding: 12px 16px;
    color: var(--mute)
}

.pol b {
    display: block;
    color: var(--ink);
    font-family: 'ramofont';
}

.btn:disabled {
    opacity: .4;
    pointer-events: none
}

.lens {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: radial-gradient(circle, #111 30%, #555 33%, #111 60%, var(--acc) 64%);
    animation: spin 1.2s cubic-bezier(.6, 0, .3, 1) infinite
}

@keyframes spin {
    to {
        rotate: 360deg
    }
}

#pl {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--bg);
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    transition: opacity .5s, visibility .5s
}

#pl.off {
    opacity: 0;
    visibility: hidden
}

#pl b {
    font-family: 'ramofont';
    font-size: 26px;
    letter-spacing: .04em
}

#pt {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--acc);
    display: grid;
    place-items: center;
    transform: translateY(100%);
    transition: transform .5s cubic-bezier(.7, 0, .2, 1);
    pointer-events: none
}

#pt.in {
    transform: none;
    pointer-events: all
}

#pt.out {
    transform: translateY(-100%)
}

#pt .lens {
    width: 56px;
    height: 56px
}

.cartpg {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px
}

.cartpg .ci {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line)
}

.cartpg .ci .th {
    width: 90px;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden
}

.cartpg .ci button {
    background: none;
    border: 0;
    font-size: 24px;
    cursor: pointer;
    color: var(--ink)
}

.tot {
    display: flex;
    justify-content: space-between;
    font-family: 'ramofont';
    font-size: 24px;
    margin: 22px 0
}