@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap");

:root {
    --primary: #162235;
    --accent: #70859b;
    --canvas: #f6f1ea;
    --surface: #fbf8f3;
    --white: #fbf8f3;
    --ink: #0a1220;
    --soft: #667487;
    --cool-grey: #d7dee4;
    --cool-grey-deep: #b8c3ce;
    --success: #70859b;
    --border: rgba(102, 116, 135, 0.18);
    --shadow-soft: 0 24px 60px rgba(10, 18, 32, 0.12);
    --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
    --motion-fast: 180ms;
    --motion-medium: 520ms;
    --motion-slow: 900ms;
}

* {
    box-sizing: border-box;
}

@view-transition {
    navigation: auto;
}

@property --hero-bg-x {
    syntax: "<length>";
    inherits: true;
    initial-value: 0px;
}

@property --hero-bg-y {
    syntax: "<length>";
    inherits: true;
    initial-value: 0px;
}

@property --hero-image-x {
    syntax: "<length>";
    inherits: true;
    initial-value: 0px;
}

@property --hero-image-y {
    syntax: "<length>";
    inherits: true;
    initial-value: 0px;
}

@property --hero-float-x {
    syntax: "<length>";
    inherits: true;
    initial-value: 0px;
}

@property --hero-float-y {
    syntax: "<length>";
    inherits: true;
    initial-value: 0px;
}

@property --hero-glow-x {
    syntax: "<length>";
    inherits: true;
    initial-value: 0px;
}

@property --hero-glow-y {
    syntax: "<length>";
    inherits: true;
    initial-value: 0px;
}

@property --hero-card-rotate {
    syntax: "<angle>";
    inherits: true;
    initial-value: 0deg;
}

@property --hero-pointer-x {
    syntax: "<percentage>";
    inherits: true;
    initial-value: 50%;
}

@property --hero-pointer-y {
    syntax: "<percentage>";
    inherits: true;
    initial-value: 48%;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 420ms;
    animation-timing-function: var(--ease-editorial);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    background: var(--canvas);
    color: var(--ink);
}

main {
    transform-origin: 50% 0;
}

.motion-ready main {
    animation: page-enter 620ms var(--ease-editorial) both;
}

.page-is-leaving main {
    animation: page-exit 180ms ease both;
}

.bg-canvas {
    background-color: var(--canvas);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-primary\/10 {
    background-color: rgba(22, 34, 53, 0.1);
}

.bg-accent {
    background-color: var(--accent);
}

.bg-accent\/10 {
    background-color: rgba(112, 133, 155, 0.12);
}

.text-primary {
    color: var(--primary);
}

.text-ink {
    color: var(--ink);
}

.text-soft {
    color: var(--soft);
}

.text-accent {
    color: var(--accent);
}

.text-white\/70 {
    color: rgba(255, 255, 255, 0.7);
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.hover\:text-accent:hover {
    color: var(--accent);
}

.hover\:border-accent:hover {
    border-color: var(--accent);
}

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

button,
input,
textarea,
select {
    font: inherit;
}

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

::selection {
    background: rgba(112, 133, 155, 0.22);
    color: var(--ink);
}

[x-cloak] {
    display: none !important;
}

.logo-font {
    font-family: "Playfair Display", serif;
}

.site-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at top left, rgba(112, 133, 155, 0.16), transparent 30%),
        radial-gradient(circle at 82% 12%, rgba(22, 34, 53, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(246, 241, 234, 0.98), rgba(246, 241, 234, 1));
    background-size: 130% 130%;
    animation: ambient-shift 18s var(--ease-editorial) infinite alternate;
}

.hero-bg {
    --hero-bg-x: 0px;
    --hero-bg-y: 0px;
    --hero-image-x: 0px;
    --hero-image-y: 0px;
    --hero-float-x: 0px;
    --hero-float-y: 0px;
    --hero-glow-x: 0px;
    --hero-glow-y: 0px;
    --hero-card-rotate: 0deg;
    --hero-pointer-x: 50%;
    --hero-pointer-y: 48%;
    isolation: isolate;
    background-image:
        linear-gradient(118deg, rgba(10, 18, 32, 0.94), rgba(22, 34, 53, 0.76) 54%, rgba(10, 18, 32, 0.86)),
        radial-gradient(circle at 78% 22%, rgba(112, 133, 155, 0.38), transparent 34%),
        url("/assets/images/hoodie-quiet-force-alt.png");
    background-position:
        center,
        calc(76% + var(--hero-bg-x)) calc(18% + var(--hero-bg-y)),
        calc(50% + var(--hero-image-x)) calc(42% + var(--hero-image-y));
    background-size:
        auto,
        120% 120%,
        cover;
    background-repeat: no-repeat;
    animation: hero-drift 18s var(--ease-editorial) infinite alternate;
}

.hero-bg > .relative {
    z-index: 1;
}

.hero-bg::before {
    content: "";
    position: absolute;
    inset: 4% -8% auto auto;
    z-index: 0;
    width: min(42vw, 560px);
    aspect-ratio: 0.72;
    border-radius: 36px;
    background: url("/assets/images/hoodie-built-from-restraint-alt.png") center/cover no-repeat;
    filter: saturate(0.88) contrast(1.08);
    opacity: 0.3;
    transform: rotate(calc(-3deg + var(--hero-card-rotate))) translate3d(var(--hero-float-x), var(--hero-float-y), 0);
    box-shadow: 0 42px 90px rgba(0, 0, 0, 0.32);
    animation: hero-product-float 14s var(--ease-editorial) infinite alternate;
    transition:
        opacity 520ms ease,
        filter 700ms ease,
        transform 700ms var(--ease-out-soft);
    will-change: transform, opacity, filter;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: -22%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at var(--hero-pointer-x) var(--hero-pointer-y), rgba(246, 241, 234, 0.22), transparent 17%),
        radial-gradient(circle at calc(var(--hero-pointer-x) + 10%) calc(var(--hero-pointer-y) + 8%), rgba(112, 133, 155, 0.18), transparent 26%),
        linear-gradient(105deg, transparent 24%, rgba(255, 255, 255, 0.08), transparent 42%);
    opacity: 0.58;
    mix-blend-mode: screen;
    transform: translate3d(var(--hero-glow-x), var(--hero-glow-y), 0);
    transition:
        opacity 520ms ease,
        transform 700ms var(--ease-out-soft);
    will-change: transform, opacity;
}

.hero-bg.is-pointer-active::before {
    opacity: 0.38;
    filter: saturate(1.02) contrast(1.12);
}

.hero-bg.is-pointer-active::after {
    opacity: 0.94;
}

.hero-media-animate {
    transform-origin: center;
    animation: hero-media-breathe 9s var(--ease-editorial) infinite alternate;
}

.motion-ready .hero-bg .chip,
.motion-ready .hero-bg h1,
.motion-ready .hero-bg p,
.motion-ready .hero-bg .btn-primary,
.motion-ready .hero-bg .btn-secondary,
.motion-ready .hero-bg .stat-pill {
    animation: hero-copy-enter 860ms var(--ease-editorial) both;
}

.motion-ready .hero-bg h1 {
    animation-delay: 120ms;
}

.motion-ready .hero-bg p {
    animation-delay: 210ms;
}

.motion-ready .hero-bg .btn-primary,
.motion-ready .hero-bg .btn-secondary {
    animation-delay: 320ms;
}

.motion-ready .hero-bg .stat-pill:nth-child(1) {
    animation-delay: 430ms;
}

.motion-ready .hero-bg .stat-pill:nth-child(2) {
    animation-delay: 500ms;
}

.motion-ready .hero-bg .stat-pill:nth-child(3) {
    animation-delay: 570ms;
}

.motion-ready .hero-bg .surface-card.motion-float {
    animation:
        hero-panel-enter 960ms var(--ease-editorial) 260ms both,
        editorial-float 7s var(--ease-editorial) 1.25s infinite alternate;
}

.surface-card {
    position: relative;
    border: 1px solid var(--border);
    background: rgba(251, 248, 243, 0.9);
    backdrop-filter: blur(12px);
}

.card-hover {
    --pointer-x: 50%;
    --pointer-y: 0%;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    isolation: isolate;
    position: relative;
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transition: transform var(--motion-medium) var(--ease-out-soft), box-shadow var(--motion-medium) var(--ease-out-soft), border-color var(--motion-fast) ease;
    will-change: transform;
}

.card-hover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(520px circle at var(--pointer-x) var(--pointer-y), rgba(251, 248, 243, 0.28), transparent 42%),
        linear-gradient(120deg, transparent 8%, rgba(255, 255, 255, 0.18), transparent 18%);
    opacity: 0;
    transform: translate3d(-8%, -8%, 0);
    transition: opacity var(--motion-fast) ease, transform var(--motion-medium) var(--ease-out-soft);
}

.card-hover:hover {
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-10px) scale(1.012);
    box-shadow: 0 26px 60px rgba(10, 18, 32, 0.14);
    border-color: rgba(112, 133, 155, 0.28);
}

.card-hover:hover::after {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.product-card img {
    transform-origin: center;
    transition: transform 900ms var(--ease-editorial), filter 900ms var(--ease-editorial);
}

.product-card:hover img {
    transform: scale(1.055);
    filter: saturate(1.08) contrast(1.04);
}

.product-card .product-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 54%, rgba(10, 18, 32, 0.22)),
        radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(251, 248, 243, 0.18), transparent 32%);
    opacity: 0;
    transition: opacity 420ms ease;
}

.product-card:hover .product-card-media::after {
    opacity: 1;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.size-option {
    min-width: 3.05rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(102, 116, 135, 0.22);
    border-radius: 999px;
    background: rgba(251, 248, 243, 0.88);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    box-shadow: 0 12px 24px rgba(10, 18, 32, 0.06);
    transition:
        transform var(--motion-fast) var(--ease-out-soft),
        background-color var(--motion-fast) ease,
        border-color var(--motion-fast) ease,
        color var(--motion-fast) ease,
        box-shadow var(--motion-fast) ease;
}

.size-option:hover {
    transform: translateY(-2px);
    border-color: rgba(112, 133, 155, 0.5);
    box-shadow: 0 16px 28px rgba(10, 18, 32, 0.12);
}

.size-option:disabled,
.size-option.is-disabled {
    cursor: not-allowed;
    border-color: rgba(102, 116, 135, 0.14);
    background: rgba(226, 232, 240, 0.55);
    color: rgba(100, 116, 139, 0.62);
    box-shadow: none;
    transform: none;
}

.size-option:disabled:hover,
.size-option.is-disabled:hover {
    transform: none;
    border-color: rgba(102, 116, 135, 0.14);
    box-shadow: none;
}

.size-option.is-selected {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 18px 34px rgba(22, 34, 53, 0.22);
    animation: size-select-pop 360ms var(--ease-out-soft);
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(246, 241, 234, 0.18);
    background: rgba(246, 241, 234, 0.1);
    padding: 0.8rem 1rem;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.btn-primary,
.btn-secondary,
.btn-ghost {
    isolation: isolate;
    overflow: hidden;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.95rem 1.6rem;
    font-weight: 600;
    transition: transform var(--motion-fast) ease, background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.btn-primary::after,
.btn-secondary::after,
.btn-ghost::after {
    content: "";
    position: absolute;
    inset: -40% -80%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.28), transparent 62%);
    transform: translateX(-45%) rotate(4deg);
    transition: transform 700ms var(--ease-out-soft);
}

.btn-primary:hover::after,
.btn-secondary:hover::after,
.btn-ghost:hover::after {
    transform: translateX(45%) rotate(4deg);
}

.btn-primary {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 18px 30px rgba(22, 34, 53, 0.22);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: var(--accent);
    border-color: var(--accent);
}

.btn-primary.is-pressing,
.btn-secondary.is-pressing,
.btn-ghost.is-pressing,
.filter-chip.is-pressing,
.pagination-button.is-pressing,
.size-option.is-pressing {
    animation: press-pop 420ms var(--ease-out-soft);
}

.btn-secondary {
    border: 1px solid rgba(246, 241, 234, 0.34);
    background: rgba(246, 241, 234, 0.08);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    border-color: rgba(246, 241, 234, 0.56);
    background: rgba(246, 241, 234, 0.14);
}

.btn-ghost {
    border: 1px solid rgba(112, 133, 155, 0.18);
    background: rgba(251, 248, 243, 0.84);
    color: var(--primary);
}

.btn-ghost:hover {
    transform: translateY(-1px);
    border-color: rgba(112, 133, 155, 0.32);
    color: var(--accent);
}

.value-card {
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(251, 248, 243, 0.96), rgba(215, 222, 228, 0.2));
    box-shadow: var(--shadow-soft);
}

.newsletter-panel {
    background:
        radial-gradient(circle at top right, rgba(112, 133, 155, 0.24), transparent 28%),
        linear-gradient(135deg, #0a1220, #162235 56%, #70859b);
    box-shadow: 0 30px 80px rgba(10, 18, 32, 0.18);
}

.input-shell {
    border: 1px solid rgba(112, 133, 155, 0.24);
    border-radius: 1.25rem;
    background: rgba(251, 248, 243, 0.98);
    padding: 1rem 1.1rem;
    color: var(--ink);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.input-shell:focus {
    border-color: rgba(112, 133, 155, 0.48);
    box-shadow: 0 0 0 4px rgba(112, 133, 155, 0.12);
    background: var(--surface);
}

.control-shell {
    border: 1px solid rgba(112, 133, 155, 0.18);
    border-radius: 1.4rem;
    background: rgba(251, 248, 243, 0.88);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.control-shell:focus-within {
    border-color: rgba(112, 133, 155, 0.42);
    box-shadow: 0 0 0 4px rgba(112, 133, 155, 0.1);
    background: var(--surface);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid rgba(112, 133, 155, 0.18);
    border-radius: 999px;
    background: rgba(251, 248, 243, 0.95);
    padding: 0.78rem 1rem;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.filter-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(112, 133, 155, 0.3);
    color: var(--accent);
}

.filter-chip.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 14px 24px rgba(22, 34, 53, 0.18);
}

.filter-chip small {
    border-radius: 999px;
    background: rgba(10, 18, 32, 0.06);
    padding: 0.22rem 0.48rem;
    font-size: 0.72rem;
    line-height: 1;
}

.filter-chip.is-active small {
    background: rgba(246, 241, 234, 0.12);
}

.pagination-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.8rem;
    height: 2.8rem;
    border: 1px solid rgba(112, 133, 155, 0.2);
    border-radius: 999px;
    background: rgba(251, 248, 243, 0.96);
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 600;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.pagination-button:hover {
    transform: translateY(-1px);
    border-color: rgba(112, 133, 155, 0.3);
    color: var(--accent);
}

.pagination-button.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 12px 20px rgba(22, 34, 53, 0.18);
}

.pagination-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.star {
    color: var(--accent);
}

.animate-pulse-once {
    animation: pulse-once 900ms ease;
}

.motion-ready [data-reveal] {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(0, 26px, 0) scale(0.985);
    transition:
        opacity var(--motion-slow) var(--ease-editorial),
        filter var(--motion-slow) var(--ease-editorial),
        transform var(--motion-slow) var(--ease-editorial);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, filter, transform;
}

.motion-ready [data-reveal].is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
}

.motion-ready [data-reveal="left"] {
    transform: translate3d(-30px, 18px, 0) scale(0.985);
}

.motion-ready [data-reveal="right"] {
    transform: translate3d(30px, 18px, 0) scale(0.985);
}

.motion-ready [data-reveal="zoom"] {
    transform: translate3d(0, 12px, 0) scale(0.96);
}

.motion-ready [data-reveal="left"].is-visible,
.motion-ready [data-reveal="right"].is-visible,
.motion-ready [data-reveal="zoom"].is-visible {
    transform: translate3d(0, 0, 0) scale(1);
}

.motion-float {
    animation: editorial-float 7s var(--ease-editorial) infinite alternate;
}

.toast-enter {
    animation: toast-enter 420ms var(--ease-out-soft) both;
}

.cart-count-pop {
    animation: cart-count-pop 560ms var(--ease-out-soft) both;
}

.cart-line-enter {
    animation: cart-line-enter 640ms var(--ease-editorial) both;
}

.quick-view-overlay {
    animation: quick-view-fade 260ms ease both;
}

.quick-view-overlay.is-leaving {
    animation: quick-view-fade-out 220ms ease both;
}

.quick-view-panel {
    animation: quick-view-panel-enter 520ms var(--ease-editorial) both;
}

.quick-view-overlay.is-leaving .quick-view-panel {
    animation: quick-view-panel-exit 220ms ease both;
}

.toast-leave {
    animation: toast-leave 260ms ease both;
}

@keyframes pulse-once {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.12);
    }
}

@keyframes ambient-shift {
    from {
        background-position: 0% 0%;
    }
    to {
        background-position: 100% 42%;
    }
}

@keyframes hero-drift {
    from {
        background-position:
            center,
            calc(76% + var(--hero-bg-x)) calc(18% + var(--hero-bg-y)),
            calc(50% + var(--hero-image-x)) calc(42% + var(--hero-image-y));
    }
    to {
        background-position:
            center,
            calc(68% + var(--hero-bg-x)) calc(28% + var(--hero-bg-y)),
            calc(50% + var(--hero-image-x)) calc(54% + var(--hero-image-y));
    }
}

@keyframes hero-product-float {
    from {
        opacity: 0.22;
        transform: rotate(calc(-4deg + var(--hero-card-rotate))) translate3d(var(--hero-float-x), calc(12px + var(--hero-float-y)), 0) scale(0.98);
    }
    to {
        opacity: 0.34;
        transform: rotate(calc(-1deg + var(--hero-card-rotate))) translate3d(calc(-18px + var(--hero-float-x)), calc(-18px + var(--hero-float-y)), 0) scale(1.04);
    }
}

@keyframes page-enter {
    from {
        opacity: 0;
        filter: blur(8px);
        transform: translate3d(0, 12px, 0) scale(0.994);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes page-exit {
    from {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        opacity: 0.84;
        filter: blur(6px);
        transform: translate3d(0, -8px, 0) scale(0.992);
    }
}

@keyframes hero-media-breathe {
    from {
        transform: scale(1);
        filter: saturate(0.96) contrast(1.02);
    }
    to {
        transform: scale(1.045);
        filter: saturate(1.05) contrast(1.08);
    }
}

@keyframes hero-copy-enter {
    from {
        opacity: 0;
        filter: blur(12px);
        transform: translate3d(0, 24px, 0);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0);
    }
}

@keyframes hero-panel-enter {
    from {
        opacity: 0;
        filter: blur(14px);
        transform: translate3d(36px, 28px, 0) rotate(1.5deg) scale(0.96);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0) rotate(0) scale(1);
    }
}

@keyframes editorial-float {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(0, -10px, 0);
    }
}

@keyframes toast-enter {
    from {
        opacity: 0;
        transform: translate3d(18px, 18px, 0) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes toast-leave {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        opacity: 0;
        transform: translate3d(18px, 18px, 0) scale(0.96);
    }
}

@keyframes cart-count-pop {
    0% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.28) rotate(-7deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

@keyframes size-select-pop {
    0% {
        transform: scale(0.94);
    }
    56% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes press-pop {
    0% {
        transform: translateY(0) scale(1);
    }
    44% {
        transform: translateY(1px) scale(0.975);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes cart-line-enter {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: translate3d(0, 18px, 0) scale(0.98);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes quick-view-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes quick-view-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes quick-view-panel-enter {
    from {
        opacity: 0;
        filter: blur(12px);
        transform: translate3d(0, 26px, 0) scale(0.965);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes quick-view-panel-exit {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        opacity: 0;
        transform: translate3d(0, 18px, 0) scale(0.985);
    }
}

.bg-white {
    background-color: var(--surface);
}

.bg-slate-50 {
    background-color: rgba(215, 222, 228, 0.24);
}

.bg-slate-950 {
    background-color: var(--ink);
}

.border-slate-200 {
    border-color: rgba(112, 133, 155, 0.18);
}

.text-slate-200 {
    color: rgba(246, 241, 234, 0.82);
}

.text-slate-50 {
    color: rgba(251, 248, 243, 1);
}

.bg-slate-900 {
    background-color: var(--ink);
}

.text-success {
    color: var(--accent);
}

.bg-success\/10 {
    background-color: rgba(112, 133, 155, 0.12);
}

.text-emerald-700 {
    color: var(--primary);
}

.bg-emerald-50 {
    background-color: rgba(22, 34, 53, 0.08);
}

.bg-emerald-500 {
    background-color: var(--primary);
}

.bg-white\/90 {
    background-color: rgba(251, 248, 243, 0.9);
}

.bg-white\/95 {
    background-color: rgba(251, 248, 243, 0.95);
}

.bg-white\/10 {
    background-color: rgba(251, 248, 243, 0.1);
}

.border-white\/15 {
    border-color: rgba(246, 241, 234, 0.15);
}

.border-white\/20 {
    border-color: rgba(246, 241, 234, 0.2);
}

.border-slate-200\/70 {
    border-color: rgba(112, 133, 155, 0.15);
}

.bg-slate-900\/5 {
    background-color: rgba(10, 18, 32, 0.05);
}

.progress-shell {
    position: relative;
    overflow: hidden;
    height: 0.9rem;
    border: 1px solid rgba(112, 133, 155, 0.18);
    border-radius: 999px;
    background: rgba(215, 222, 228, 0.34);
}

.progress-fill {
    position: relative;
    width: var(--progress, 40%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    box-shadow: 0 8px 18px rgba(22, 34, 53, 0.18);
    transform-origin: left center;
    animation:
        progress-enter 1.3s ease-out both,
        progress-shimmer 3.2s linear infinite,
        progress-breathe 2.6s ease-in-out infinite;
}

.progress-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: translateX(-100%);
    animation: progress-sheen 2.8s ease-in-out infinite;
}

.progress-fill.is-40 {
    width: 40%;
}

.progress-fill.is-60 {
    width: 60%;
}

.account-order-card {
    overflow: hidden;
    border: 1px solid rgba(112, 133, 155, 0.08);
    transition:
        border-color var(--motion-fast) ease,
        box-shadow var(--motion-fast) ease,
        transform var(--motion-fast) ease;
}

.account-order-card:has(.account-order-details.is-open) {
    border-color: rgba(112, 133, 155, 0.22);
    box-shadow: 0 18px 42px rgba(10, 18, 32, 0.08);
}

.account-order-toggle[aria-expanded="true"] {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.account-order-details {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition:
        grid-template-rows var(--motion-medium) var(--ease-editorial),
        margin-top var(--motion-fast) ease,
        opacity var(--motion-fast) ease,
        transform var(--motion-medium) var(--ease-editorial);
}

.account-order-details.is-open {
    grid-template-rows: 1fr;
    margin-top: 1rem;
    opacity: 1;
    transform: translateY(0);
}

.account-order-details-inner {
    min-height: 0;
    overflow: hidden;
}

.account-order-detail-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-order-detail-grid > div {
    border: 1px solid rgba(112, 133, 155, 0.14);
    border-radius: 1.25rem;
    background: rgba(251, 248, 243, 0.72);
    padding: 0.95rem;
}

.account-order-detail-grid span,
.account-order-item span {
    display: block;
    color: var(--soft);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.account-order-detail-grid strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--primary);
    line-height: 1.45;
    word-break: break-word;
}

.account-order-item {
    display: grid;
    align-items: center;
    gap: 0.85rem;
    grid-template-columns: 3.6rem minmax(0, 1fr) auto;
    border: 1px solid rgba(112, 133, 155, 0.14);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.72);
    padding: 0.8rem;
}

.account-order-item img {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 1rem;
    object-fit: cover;
}

.account-order-item strong {
    color: var(--primary);
}

@media (max-width: 640px) {
    .account-order-detail-grid {
        grid-template-columns: 1fr;
    }

    .account-order-item {
        grid-template-columns: 3.25rem minmax(0, 1fr);
    }

    .account-order-item > strong {
        grid-column: 2;
    }
}

@keyframes progress-enter {
    from {
        transform: scaleX(0);
        opacity: 0.75;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes progress-shimmer {
    from {
        background-position: 0% 50%;
    }
    to {
        background-position: 200% 50%;
    }
}

@keyframes progress-breathe {
    0%,
    100% {
        filter: saturate(1);
    }
    50% {
        filter: saturate(1.1);
    }
}

@keyframes progress-sheen {
    0%,
    15% {
        transform: translateX(-100%);
    }
    60%,
    100% {
        transform: translateX(220%);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .motion-ready [data-reveal],
    .motion-ready [data-reveal="left"],
    .motion-ready [data-reveal="right"],
    .motion-ready [data-reveal="zoom"] {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }
}

@media (max-width: 640px) {
    .hero-bg {
        background-position:
            center,
            78% 14%,
            center top;
    }

    .hero-bg::before {
        inset: 10% -38% auto auto;
        width: 92vw;
        opacity: 0.18;
    }
}
