:root {
    color-scheme: dark;
    --background: #020711;
    --surface: #07111e;
    --surface-strong: #0a1727;
    --surface-soft: rgba(8, 22, 38, 0.72);
    --border: rgba(127, 188, 255, 0.15);
    --border-strong: rgba(38, 175, 255, 0.42);
    --text: #f4f8ff;
    --text-soft: #a3b3c8;
    --text-muted: #6f8198;
    --cyan: #24c8ff;
    --blue: #147bff;
    --green: #33e6a3;
    --amber: #ffb84a;
    --danger: #ff7083;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(
            circle at 76% 8%,
            rgba(20, 123, 255, 0.14),
            transparent 28rem
        ),
        radial-gradient(
            circle at 12% 38%,
            rgba(36, 200, 255, 0.07),
            transparent 24rem
        ),
        var(--background);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.5;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.launch-notice {
    border-bottom: 1px solid rgba(255, 184, 74, 0.22);
    background: rgba(255, 184, 74, 0.07);
    color: #ffd797;
    font-size: 0.82rem;
}

.launch-notice__content {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.launch-notice__content strong {
    color: #ffe5bd;
}

.launch-notice__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 16px rgba(255, 184, 74, 0.8);
}

.site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(2, 7, 17, 0.83);
    backdrop-filter: blur(18px);
}

.site-header__content {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    letter-spacing: -0.04em;
}

.brand__korvex {
    color: var(--text);
    font-size: 1.13rem;
    font-weight: 850;
    letter-spacing: 0.02em;
}

.brand__labs {
    color: var(--cyan);
    font-size: 1rem;
    font-weight: 500;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.site-nav a {
    transition:
        color 160ms ease,
        transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--cyan);
    transform: translateY(-1px);
}

.site-nav__pending {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: not-allowed;
}

.site-nav__pending small {
    padding: 3px 7px;
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero {
    overflow: hidden;
    padding: 86px 0 74px;
}

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

.eyebrow,
.section-heading__index {
    color: var(--cyan);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
}

.eyebrow span {
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, var(--cyan), transparent);
}

.hero h1 {
    max-width: 730px;
    margin: 21px 0 22px;
    font-size: clamp(3.1rem, 7vw, 6.35rem);
    font-weight: 780;
    letter-spacing: -0.075em;
    line-height: 0.92;
}

.hero h1 strong {
    display: block;
    background: linear-gradient(100deg, #ffffff 10%, #6edcff 60%, #177fff);
    background-clip: text;
    color: transparent;
    font-weight: inherit;
}

.hero__lead {
    max-width: 620px;
    margin: 0;
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 750;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.button--primary {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 14px 40px rgba(20, 123, 255, 0.24);
    color: #00101b;
}

.button--primary:hover,
.button--primary:focus-visible {
    transform: translateY(-2px);
}

.button--secondary {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-soft);
}

.button--disabled {
    cursor: not-allowed;
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    margin: 44px 0 0;
}

.hero__stats div {
    position: relative;
}

.hero__stats div:not(:last-child)::after {
    position: absolute;
    top: 4px;
    right: -18px;
    width: 1px;
    height: 42px;
    background: var(--border);
    content: "";
}

.hero__stats dt {
    font-size: 1.4rem;
    font-weight: 800;
}

.hero__stats dd {
    margin: 2px 0 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.hero__visual {
    position: relative;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: #01050c;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.hero__visual::before {
    position: absolute;
    z-index: 2;
    inset: 0;
    border: 1px solid rgba(87, 203, 255, 0.12);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.hero__visual img {
    width: 100%;
    border-radius: inherit;
}

.hero__visual-glow {
    position: absolute;
    z-index: -1;
    inset: 18% -10% -8%;
    border-radius: 50%;
    background: rgba(20, 123, 255, 0.25);
    filter: blur(70px);
}

.hero__visual figcaption {
    position: absolute;
    right: 18px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: rgba(1, 7, 17, 0.78);
    color: var(--text-soft);
    font-size: 0.7rem;
    backdrop-filter: blur(10px);
}

.hero__visual figcaption span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
}

.principles {
    padding-bottom: 104px;
}

.principles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface-soft);
    overflow: hidden;
}

.principles article {
    position: relative;
    display: grid;
    min-height: 178px;
    align-content: start;
    grid-template-columns: auto 1fr;
    gap: 15px;
    padding: 27px;
}

.principles article:not(:last-child) {
    border-right: 1px solid var(--border);
}

.principles__icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    color: var(--cyan);
    font-size: 0.69rem;
    font-weight: 800;
}

.principles h2 {
    margin: 2px 0 8px;
    font-size: 0.98rem;
}

.principles p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.principles__status {
    position: absolute;
    right: 27px;
    bottom: 23px;
    color: var(--amber);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.catalog {
    padding: 105px 0 120px;
    border-top: 1px solid var(--border);
    background:
        linear-gradient(
            180deg,
            rgba(9, 24, 41, 0.4),
            rgba(2, 7, 17, 0)
        );
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
}

.section-heading h2,
.privacy h2 {
    margin: 10px 0 7px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    letter-spacing: -0.055em;
    line-height: 1;
}

.section-heading p {
    margin: 0;
    color: var(--text-muted);
}

.catalog-search {
    width: min(100%, 390px);
}

.catalog-search label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 0.72rem;
}

.catalog-search__control {
    position: relative;
}

.catalog-search svg {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--text-muted);
    stroke-linecap: round;
    stroke-width: 1.7;
}

.catalog-search input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 46px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.catalog-search input::placeholder {
    color: #53657b;
}

.catalog-search input:focus {
    border-color: var(--border-strong);
    box-shadow: 0 0 0 4px rgba(36, 200, 255, 0.08);
}

.category-filters {
    display: flex;
    gap: 8px;
    margin: 34px 0 14px;
    padding-bottom: 7px;
    overflow-x: auto;
    scrollbar-color: var(--border-strong) transparent;
}

.category-filter {
    display: inline-flex;
    min-width: max-content;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    font-size: 0.76rem;
}

.category-filter span {
    display: grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.65rem;
}

.category-filter:hover,
.category-filter:focus-visible,
.category-filter.is-active {
    border-color: var(--border-strong);
    background: rgba(36, 200, 255, 0.08);
    color: var(--cyan);
}

.catalog-result {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 0.74rem;
}

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

.product-card {
    position: relative;
    display: flex;
    min-height: 440px;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(13, 31, 52, 0.9),
            rgba(5, 15, 27, 0.92)
        );
    overflow: hidden;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.product-card::after {
    position: absolute;
    right: -80px;
    bottom: -100px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(20, 123, 255, 0.08);
    filter: blur(30px);
    content: "";
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(36, 200, 255, 0.32);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.product-card[hidden] {
    display: none;
}

.product-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-card__category {
    color: var(--cyan);
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.66rem;
}

.stock-status span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.stock-status--available {
    color: #83eec5;
}

.stock-status--available span {
    background: var(--green);
    box-shadow: 0 0 10px rgba(51, 230, 163, 0.7);
}

.stock-status--empty {
    color: #e995a1;
}

.stock-status--empty span {
    background: var(--danger);
}

.product-card__symbol {
    position: relative;
    display: grid;
    width: 104px;
    height: 104px;
    margin: 32px auto 28px;
    place-items: center;
}

.product-card__symbol i {
    position: absolute;
    border: 1px solid rgba(36, 200, 255, 0.23);
    border-radius: 50%;
}

.product-card__symbol i:nth-child(1) {
    inset: 5px;
}

.product-card__symbol i:nth-child(2) {
    inset: 19px;
    border-color: rgba(20, 123, 255, 0.38);
}

.product-card__symbol i:nth-child(3) {
    inset: 34px;
    background: rgba(36, 200, 255, 0.07);
    box-shadow: 0 0 30px rgba(20, 123, 255, 0.16);
}

.product-card__symbol span {
    position: relative;
    z-index: 2;
    color: #9ae6ff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.product-card__body {
    position: relative;
    z-index: 2;
}

.product-card__sku {
    margin: 0 0 7px;
    color: var(--text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-card h3 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.035em;
}

.product-card__presentation {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.product-card__prices {
    position: relative;
    z-index: 2;
    display: grid;
    margin-top: auto;
    padding-top: 25px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.product-card__prices div {
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.022);
}

.product-card__prices span,
.product-card__prices strong {
    display: block;
}

.product-card__prices span {
    color: var(--text-muted);
    font-size: 0.65rem;
}

.product-card__prices strong {
    margin-top: 4px;
    font-size: 0.9rem;
}

.product-card__footer {
    position: relative;
    z-index: 2;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.68rem;
}

.catalog-empty {
    grid-column: 1 / -1;
    padding: 36px;
    border: 1px dashed var(--border);
    border-radius: 16px;
    color: var(--text-muted);
    text-align: center;
}

.privacy {
    padding: 108px 0;
    border-top: 1px solid var(--border);
}

.privacy__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
}

.privacy h2 {
    max-width: 540px;
}

.privacy__content {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.75;
}

.privacy__content p {
    margin-top: 0;
}

.privacy__content ul {
    display: grid;
    margin: 28px 0 0;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
}

.privacy__content li {
    position: relative;
    padding: 14px 14px 14px 35px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.78rem;
}

.privacy__content li::before {
    position: absolute;
    top: 18px;
    left: 15px;
    width: 8px;
    height: 8px;
    border: 1px solid var(--cyan);
    border-radius: 50%;
    content: "";
}

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(1, 5, 12, 0.7);
}

.site-footer__content {
    display: grid;
    min-height: 130px;
    align-items: center;
    grid-template-columns: 0.65fr 1.35fr auto;
    gap: 35px;
}

.site-footer p {
    max-width: 620px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.site-footer small {
    color: var(--text-muted);
    white-space: nowrap;
}

@media (max-width: 980px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        width: min(100%, 640px);
    }

    .principles__grid {
        grid-template-columns: 1fr;
    }

    .principles article:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .catalog-search {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .privacy__grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(calc(100% - 26px), var(--container));
    }

    .launch-notice__content {
        min-height: 46px;
        flex-wrap: wrap;
        gap: 5px 8px;
        padding: 7px 0;
    }

    .site-header__content {
        min-height: 66px;
    }

    .site-nav a {
        display: none;
    }

    .site-nav__pending {
        font-size: 0.72rem;
    }

    .hero {
        padding: 62px 0;
    }

    .hero__grid {
        gap: 45px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 16vw, 4.5rem);
    }

    .hero__lead {
        font-size: 0.95rem;
    }

    .hero__stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .hero__stats div:not(:last-child)::after {
        right: -6px;
    }

    .hero__stats dt {
        font-size: 1.15rem;
    }

    .hero__stats dd {
        font-size: 0.58rem;
    }

    .principles {
        padding-bottom: 72px;
    }

    .principles article {
        min-height: 190px;
        padding: 22px;
    }

    .catalog {
        padding: 78px 0 86px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        min-height: 420px;
    }

    .privacy {
        padding: 78px 0;
    }

    .privacy__content ul {
        grid-template-columns: 1fr;
    }

    .site-footer__content {
        padding: 35px 0;
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* KORVEX: hero logo proportions */
.hero__visual {
    width: min(100%, 420px);
    aspect-ratio: 16 / 9;
    justify-self: end;
    overflow: hidden;
}

.hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 980px) {
    .hero__visual {
        width: min(100%, 480px);
        justify-self: center;
    }
}

@media (max-width: 680px) {
    .hero__visual {
        width: 100%;
        max-width: 420px;
    }
}
/* END KORVEX: hero logo proportions */

/* KORVEX: hero title size */
.hero h1 {
    max-width: 680px;
    font-size: clamp(2.35rem, 4.8vw, 4.65rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

@media (max-width: 680px) {
    .hero h1 {
        max-width: 100%;
        font-size: clamp(2.15rem, 10.5vw, 3.35rem);
        line-height: 1.02;
        letter-spacing: -0.05em;
    }
}
/* END KORVEX: hero title size */

/* KORVEX: compact product cards */
.product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.product-card {
    min-height: 0;
    height: 100%;
    padding: 16px;
    border-radius: 16px;
}

.product-card__symbol {
    display: none;
}

.product-card__body {
    margin-top: 24px;
}

.product-card__category,
.stock-status {
    font-size: 0.62rem;
}

.product-card h3 {
    min-height: 2.45em;
    font-size: 1.12rem;
    line-height: 1.2;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card__presentation {
    margin-top: 4px;
    min-height: 1.3em;
    font-size: 0.76rem;
}

.product-card__prices {
    margin-top: 20px;
    padding-top: 0;
    gap: 7px;
}

.product-card__prices div {
    padding: 9px;
    border-radius: 9px;
}

.product-card__prices span {
    font-size: 0.6rem;
}

.product-card__prices strong {
    margin-top: 3px;
    font-size: 0.82rem;
}

.product-card__footer {
    margin-top: 11px;
    padding-top: 10px;
    font-size: 0.62rem;
}

@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-card {
        padding: 14px;
        border-radius: 14px;
    }

    .product-card__body {
        margin-top: 16px;
    }

    .product-card h3 {
        min-height: auto;
        font-size: 1.05rem;
    }

    .product-card__prices {
        margin-top: 15px;
    }

    .product-card__footer {
        margin-top: 9px;
    }
}
/* END KORVEX: compact product cards */

/* KORVEX: hero title proportion final */
.hero h1 {
    max-width: 540px;
    font-size: clamp(2.25rem, 3.6vw, 3.2rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

@media (max-width: 700px) {
    .hero h1 {
        max-width: 340px;
        font-size: clamp(1.95rem, 8.7vw, 2.3rem);
        line-height: 1.04;
        letter-spacing: -0.035em;
    }
}

/* KORVEX: cart v1 */
.product-card__footer--purchase {
    border-top: 0;
    padding-top: 0;
}

.product-purchase {
    display: grid;
    gap: 10px;
    width: 100%;
}

.product-purchase__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(105, 181, 255, 0.14);
    border-radius: 12px;
    background: rgba(2, 10, 25, 0.58);
}

.product-purchase__option {
    min-height: 34px;
    padding: 7px 9px;
    border: 0;
    border-radius: 9px;
    color: #8f9aab;
    background: transparent;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.product-purchase__option.is-active {
    color: #03101f;
    background: linear-gradient(135deg, #3edfff, #198cff);
}

.product-purchase__option:only-child {
    grid-column: 1 / -1;
}

.product-purchase__row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
}

.quantity-control {
    display: grid;
    grid-template-columns: 34px 34px 34px;
    min-height: 40px;
    overflow: hidden;
    border: 1px solid rgba(105, 181, 255, 0.16);
    border-radius: 11px;
    background: rgba(2, 10, 25, 0.62);
}

.quantity-control button,
.quantity-control output {
    display: grid;
    place-items: center;
    border: 0;
    color: #eaf6ff;
    background: transparent;
    font: inherit;
    font-weight: 800;
}

.quantity-control button {
    cursor: pointer;
}

.quantity-control button:hover,
.quantity-control button:focus-visible {
    color: #36ccff;
    background: rgba(54, 204, 255, 0.08);
}

.add-to-cart {
    min-height: 40px;
    padding: 9px 12px;
    border: 0;
    border-radius: 11px;
    color: #03101f;
    background: linear-gradient(135deg, #3edfff, #198cff);
    box-shadow: 0 10px 24px rgba(25, 140, 255, 0.16);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 850;
    cursor: pointer;
}

.add-to-cart:hover,
.add-to-cart:focus-visible {
    filter: brightness(1.08);
}

.cart-open {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 11px 15px;
    border: 1px solid rgba(103, 207, 255, 0.42);
    border-radius: 999px;
    color: #eaf8ff;
    background: rgba(4, 17, 36, 0.94);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(18px);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
}

.cart-open svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.cart-open__count {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    color: #03101f;
    background: #3edfff;
    font-size: 0.72rem;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 89;
    background: rgba(0, 5, 14, 0.7);
    backdrop-filter: blur(5px);
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 90;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(430px, 100%);
    height: 100dvh;
    color: #eef8ff;
    background: #07111f;
    border-left: 1px solid rgba(105, 181, 255, 0.16);
    box-shadow: -24px 0 70px rgba(0, 0, 0, 0.52);
}

.cart-overlay[hidden],
.cart-drawer[hidden],
.cart-toast[hidden],
[data-cart-count][hidden],
#cart-clear[hidden] {
    display: none !important;
}

body.cart-is-open {
    overflow: hidden;
}

.cart-drawer__header,
.cart-drawer__footer {
    padding: 20px;
    border-color: rgba(105, 181, 255, 0.12);
}

.cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(105, 181, 255, 0.12);
}

.cart-drawer__header span {
    display: block;
    margin-bottom: 4px;
    color: #37d4ff;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cart-drawer__header h2 {
    margin: 0;
    font-size: 1.35rem;
}

.cart-drawer__close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(105, 181, 255, 0.18);
    border-radius: 12px;
    color: #eaf8ff;
    background: rgba(255, 255, 255, 0.03);
    font: inherit;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-drawer__body {
    overflow-y: auto;
    padding: 18px 20px;
}

.cart-empty {
    margin: 0;
    padding: 24px;
    border: 1px dashed rgba(105, 181, 255, 0.2);
    border-radius: 16px;
    color: #9eabba;
    text-align: center;
    line-height: 1.55;
}

.cart-items {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(105, 181, 255, 0.13);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.025);
}

.cart-item__details {
    min-width: 0;
}

.cart-item__details strong,
.cart-item__details span {
    display: block;
}

.cart-item__details strong {
    overflow: hidden;
    color: #f2f9ff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item__details span {
    margin-top: 5px;
    color: #8e9cac;
    font-size: 0.76rem;
}

.cart-item__price {
    white-space: nowrap;
}

.cart-item__controls {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item__controls button:not(.cart-item__remove),
.cart-item__controls > span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
}

.cart-item__controls button:not(.cart-item__remove) {
    border: 1px solid rgba(105, 181, 255, 0.16);
    color: #eaf8ff;
    background: rgba(255, 255, 255, 0.035);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.cart-item__controls button:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.cart-item__remove {
    margin-left: auto;
    padding: 6px 0;
    border: 0;
    color: #ff8796;
    background: transparent;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 750;
    cursor: pointer;
}

.cart-drawer__footer {
    display: grid;
    gap: 12px;
    border-top: 1px solid rgba(105, 181, 255, 0.12);
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cart-total span {
    color: #9eabba;
}

.cart-total strong {
    font-size: 1.35rem;
}

.cart-checkout {
    min-height: 48px;
    border: 0;
    border-radius: 13px;
    color: #7990a5;
    background: rgba(91, 119, 144, 0.14);
    font: inherit;
    font-weight: 800;
    cursor: not-allowed;
}

.cart-clear {
    justify-self: center;
    padding: 5px;
    border: 0;
    color: #8f9cab;
    background: transparent;
    font: inherit;
    font-size: 0.75rem;
    cursor: pointer;
}

.cart-drawer__note {
    margin: 0;
    color: #718092;
    font-size: 0.7rem;
    line-height: 1.45;
    text-align: center;
}

.cart-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 100;
    max-width: min(420px, calc(100% - 32px));
    padding: 12px 16px;
    border: 1px solid rgba(72, 218, 255, 0.28);
    border-radius: 12px;
    color: #eaf8ff;
    background: rgba(4, 17, 36, 0.97);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
    font-size: 0.82rem;
    text-align: center;
    transform: translateX(-50%);
}

@media (max-width: 600px) {
    .product-purchase__row {
        grid-template-columns: 102px minmax(0, 1fr);
    }

    .cart-open {
        right: 12px;
        bottom: 12px;
        min-height: 46px;
        padding: 10px 13px;
    }

    .cart-drawer {
        width: 100%;
        border-left: 0;
    }

    .cart-drawer__header,
    .cart-drawer__footer {
        padding: 16px;
    }

    .cart-drawer__body {
        padding: 14px 16px;
    }

    .cart-toast {
        bottom: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-open,
    .cart-drawer,
    .cart-overlay,
    .cart-toast {
        scroll-behavior: auto;
        transition: none;
    }
}
