:root {
    --bg: #ffffff;
    --text: #101114;
    --muted: rgba(16, 17, 20, 0.7);
    --line: rgba(16, 17, 20, 0.12);
    --card: rgba(255, 255, 255, 0.88);
    --shadow: 0 18px 60px rgba(16, 17, 20, 0.1);
    --orange: #ff6a00;
    --orange-2: #ff8a38;
    --orange-3: #ffb26b;
    --green: #14b86a;
    --danger: #ff2d55;
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.page {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.bg::before,
.bg::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 40% 60% 55% 45% / 50% 35% 65% 50%;
    filter: blur(18px);
    opacity: 0.55;
    transform: translate3d(0, 0, 0);
}

.bg::before {
    left: -180px;
    top: -160px;
    background:
        radial-gradient(closest-side, rgba(255, 106, 0, 0.42), rgba(255, 106, 0, 0) 70%),
        radial-gradient(closest-side, rgba(255, 178, 107, 0.5), rgba(255, 178, 107, 0) 70%);
}

.bg::after {
    right: -220px;
    top: 120px;
    width: 620px;
    height: 620px;
    background:
        radial-gradient(closest-side, rgba(255, 138, 56, 0.42), rgba(255, 138, 56, 0) 70%),
        radial-gradient(closest-side, rgba(255, 106, 0, 0.38), rgba(255, 106, 0, 0) 70%);
}

.bg .grid {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(16, 17, 20, 0.04), transparent 38%),
        radial-gradient(circle at 78% 28%, rgba(255, 106, 0, 0.06), transparent 40%),
        radial-gradient(circle at 32% 78%, rgba(255, 138, 56, 0.05), transparent 46%),
        linear-gradient(transparent 0, transparent 28px, rgba(16, 17, 20, 0.035) 29px),
        linear-gradient(90deg, transparent 0, transparent 28px, rgba(16, 17, 20, 0.035) 29px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 30px 30px, 30px 30px;
    opacity: 0.9;
}

nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.7);
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand .name {
    font-family: "Playfair Display", serif;
    letter-spacing: 0.2px;
    font-size: 22px;
}

.brand .sub {
    font-size: 12px;
    color: var(--muted);
}

.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 106, 0, 0.25);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78));
    box-shadow: 0 10px 24px rgba(255, 106, 0, 0.12);
}

.cart-count {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    font-size: 12px;
    font-weight: 700;
}

main {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 80px;
    flex: 1;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 26px;
    align-items: center;
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid rgba(16, 17, 20, 0.09);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-kicker,
.section-overline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
}

.hero-kicker::before,
.section-overline::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.hero h1 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(38px, 5vw, 56px);
    letter-spacing: 0.2px;
}

.hero p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 560px;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.pill {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(16, 17, 20, 0.12);
    background: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 12px;
}

.pill.orange {
    border-color: rgba(255, 106, 0, 0.25);
    box-shadow: 0 10px 22px rgba(255, 106, 0, 0.1);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.stat-card {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(16, 17, 20, 0.09);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 14px 38px rgba(16, 17, 20, 0.06);
}

.stat-card strong {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.hero-art {
    position: relative;
    min-height: 430px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(16, 17, 20, 0.1);
    background:
        radial-gradient(closest-side at 18% 20%, rgba(255, 106, 0, 0.24), transparent 56%),
        radial-gradient(closest-side at 72% 42%, rgba(255, 178, 107, 0.28), transparent 58%),
        radial-gradient(closest-side at 55% 74%, rgba(255, 138, 56, 0.2), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.74));
}

.hero-art .ring {
    position: absolute;
    inset: -120px -180px auto auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(255, 106, 0, 0.22);
    box-shadow: 0 30px 90px rgba(255, 106, 0, 0.12);
    transform: rotate(18deg);
}

.hero-art .float {
    position: absolute;
    left: 18px;
    bottom: 18px;
    width: 92%;
    height: 80%;
    border-radius: 18px;
    background:
        radial-gradient(closest-side at 12% 18%, rgba(255, 106, 0, 0.18), transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(255, 106, 0, 0.18);
    transform: translate3d(0, 0, 0);
    animation: floaty 6s ease-in-out infinite;
}

.hero-art .float::after {
    content: "";
    position: absolute;
    inset: auto 12% 12% auto;
    width: 110px;
    height: 110px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.22), rgba(255, 178, 107, 0.15));
    transform: rotate(18deg);
    filter: blur(0.2px);
    box-shadow: 0 24px 70px rgba(255, 106, 0, 0.16);
}

.hero-product {
    position: absolute;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
    box-shadow: 0 28px 70px rgba(16, 17, 20, 0.14);
    backdrop-filter: blur(8px);
    will-change: transform;
}

.hero-product img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 30px 44px rgba(16, 17, 20, 0.22));
}

.hero-product-main {
    left: 40px;
    right: 128px;
    top: 44px;
    bottom: 48px;
    padding: 24px;
    animation: floaty 6s ease-in-out infinite;
}

.hero-product-side {
    width: 180px;
    height: 220px;
    right: 24px;
    bottom: 62px;
    padding: 14px;
    animation: floaty 5.2s ease-in-out infinite reverse;
}

.hero-badge {
    position: absolute;
    display: grid;
    gap: 4px;
    max-width: 220px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 40px rgba(16, 17, 20, 0.08);
}

.hero-badge-top {
    top: 18px;
    left: 18px;
}

.hero-badge-bottom {
    right: 18px;
    bottom: 18px;
}

.badge-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange);
}

.badge-copy {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

@keyframes floaty {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -10px, 0);
    }
}

.section-title {
    margin: 26px 0 14px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.section-title.compact {
    margin-top: 18px;
}

.section-title h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0.1px;
}

.section-title .hint {
    color: var(--muted);
    font-size: 13px;
}

.highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 28px;
}

.highlight-card,
.trust-item,
.cta-band {
    border-radius: var(--radius);
    border: 1px solid rgba(16, 17, 20, 0.09);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.8));
    box-shadow: 0 18px 50px rgba(16, 17, 20, 0.07);
}

.highlight-card {
    padding: 18px;
}

.highlight-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.16), rgba(255, 178, 107, 0.28));
    color: var(--orange);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.highlight-card h2,
.cta-band h2 {
    margin: 0 0 8px;
    font-size: 19px;
}

.highlight-card p,
.cta-band p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.trust-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.trust-item {
    padding: 16px 18px;
    display: grid;
    gap: 6px;
}

.trust-item strong {
    font-size: 14px;
}

.trust-item span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.product {
    grid-column: span 4;
    border-radius: var(--radius);
    border: 1px solid rgba(16, 17, 20, 0.09);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78));
    box-shadow: 0 18px 60px rgba(16, 17, 20, 0.09);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product .img-wrap {
    position: relative;
    padding: 18px 18px 0;
    height: 230px;
}

.product .img-wrap::before {
    content: "";
    position: absolute;
    inset: -40px -20px auto auto;
    width: 220px;
    height: 220px;
    border-radius: 40% 60% 50% 50% / 45% 55% 45% 55%;
    background: radial-gradient(closest-side, rgba(255, 106, 0, 0.22), rgba(255, 106, 0, 0) 70%);
    filter: blur(8px);
    opacity: 0.8;
}

.product img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translate3d(0, 0, 0);
    filter: drop-shadow(0 24px 46px rgba(16, 17, 20, 0.22));
    animation: floaty 5.8s ease-in-out infinite;
    will-change: transform;
}

.product .body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product:hover {
    transform: translateY(-4px);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 26px 80px rgba(16, 17, 20, 0.12);
}

.product .name {
    font-weight: 800;
    letter-spacing: 0.1px;
    font-size: 16px;
    margin: 0;
}

.product .desc {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.product .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price .label {
    color: var(--muted);
    font-size: 12px;
}

.price .value {
    font-size: 18px;
    font-weight: 900;
}

.btn {
    border: 0;
    cursor: pointer;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 800;
    letter-spacing: 0.1px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    box-shadow: 0 16px 34px rgba(255, 106, 0, 0.22);
    transition: transform 0.12s ease, filter 0.12s ease;
}

.btn:active {
    transform: translateY(1px) scale(0.99);
}

.btn.secondary {
    background: rgba(16, 17, 20, 0.06);
    color: var(--text);
    box-shadow: none;
    border: 1px solid rgba(16, 17, 20, 0.12);
}

.btn.danger {
    background: rgba(255, 45, 85, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 45, 85, 0.22);
    box-shadow: none;
}

.btn.small {
    padding: 9px 11px;
    border-radius: 12px;
    font-weight: 800;
}

.btn.added {
    background: linear-gradient(135deg, #1bbf73, #14b86a);
    box-shadow: 0 16px 34px rgba(20, 184, 106, 0.18);
}

.toast {
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 18px;
    transform: translate(-50%, 16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 12px 14px;
    border-radius: 999px;
    border: 1px solid rgba(16, 17, 20, 0.12);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 60px rgba(16, 17, 20, 0.16);
    font-weight: 700;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.card {
    border-radius: var(--radius);
    border: 1px solid rgba(16, 17, 20, 0.09);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card .card-hd {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(16, 17, 20, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card .card-hd h2 {
    margin: 0;
    font-size: 16px;
}

.card .card-bd {
    padding: 16px 18px;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 86px 1fr auto;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(16, 17, 20, 0.08);
}

.cart-item:last-child {
    border-bottom: 0;
}

.cart-item img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    filter: drop-shadow(0 18px 34px rgba(16, 17, 20, 0.18));
}

.cart-item .title {
    font-weight: 900;
    margin: 0;
}

.cart-item .sub {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid rgba(16, 17, 20, 0.12);
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.86);
}

.qty .n {
    min-width: 20px;
    text-align: center;
    font-weight: 900;
}

.rows {
    display: grid;
    gap: 10px;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
}

.row .muted {
    color: var(--muted);
}

.row.total {
    border-top: 1px solid rgba(16, 17, 20, 0.09);
    padding-top: 10px;
    font-weight: 900;
}

form .field {
    display: grid;
    gap: 7px;
    margin-bottom: 12px;
}

label {
    font-weight: 800;
    font-size: 13px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(16, 17, 20, 0.14);
    background: rgba(255, 255, 255, 0.86);
    outline: none;
}

textarea {
    min-height: 92px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.empty {
    padding: 22px 18px;
    text-align: center;
    color: var(--muted);
}

footer {
    border-top: 1px solid var(--line);
    padding: 20px 16px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.footer-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.cta-band {
    margin-top: 22px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.highlights,
.trust-band,
#productsGrid,
.cta-band,
.cart-grid {
    content-visibility: auto;
    contain-intrinsic-size: 1px 700px;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-stats,
    .highlights,
    .trust-band {
        grid-template-columns: 1fr;
    }

    .hero-art {
        min-height: 360px;
    }

    .hero-product-main {
        left: 24px;
        right: 110px;
        top: 32px;
        bottom: 42px;
    }

    .hero-product-side {
        width: 150px;
        height: 190px;
    }

    .product {
        grid-column: span 6;
    }

    .cart-grid {
        grid-template-columns: 1fr;
    }

    .cta-band {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    main {
        padding: 20px 0 64px;
    }

    .hero {
        padding: 18px;
    }

    .hero-art {
        min-height: 300px;
    }

    .hero-product-main {
        left: 16px;
        right: 90px;
        top: 24px;
        bottom: 36px;
        padding: 18px;
    }

    .hero-product-side {
        width: 120px;
        height: 150px;
        right: 14px;
        bottom: 56px;
    }

    .hero-badge {
        max-width: 170px;
        padding: 10px 12px;
    }

    .hero-actions,
    .form-actions {
        flex-direction: column;
    }

    .hero-actions .btn,
    .form-actions .btn,
    .cta-band .btn {
        width: 100%;
        justify-content: center;
        display: inline-flex;
    }

    .product {
        grid-column: span 12;
    }

    nav,
    .hero-product {
        backdrop-filter: none;
    }

    nav {
        background: rgba(255, 255, 255, 0.96);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-product,
    .product img {
        will-change: auto;
    }
}