:root {
    --bg: #f6efe8;
    --bg-soft: #fff9f3;
    --surface: rgba(255, 255, 255, 0.76);
    --surface-strong: #fffdf9;
    --text: #211912;
    --muted: #6c625a;
    --line: rgba(33, 25, 18, 0.1);
    --line-strong: rgba(33, 25, 18, 0.18);
    --accent: #ea6d44;
    --accent-deep: #cc4f26;
    --accent-soft: #ffe5d8;
    --shadow: 0 24px 60px rgba(86, 49, 29, 0.16);
    --radius-lg: 32px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --content-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(234, 109, 68, 0.18), transparent 30%),
        radial-gradient(circle at 85% 20%, rgba(103, 160, 135, 0.14), transparent 22%),
        linear-gradient(180deg, #fff8f0 0%, var(--bg) 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    z-index: -1;
    border-radius: 50%;
    filter: blur(18px);
    pointer-events: none;
    opacity: 0.72;
}

body::before {
    width: 20rem;
    height: 20rem;
    top: 5rem;
    right: -6rem;
    background: radial-gradient(circle, rgba(255, 181, 127, 0.5), rgba(255, 181, 127, 0));
    animation: driftBlob 14s ease-in-out infinite;
}

body::after {
    width: 24rem;
    height: 24rem;
    left: -8rem;
    bottom: 2rem;
    background: radial-gradient(circle, rgba(123, 192, 168, 0.34), rgba(123, 192, 168, 0));
    animation: driftBlob 18s ease-in-out infinite reverse;
}

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

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

button {
    font: inherit;
}

.page-shell {
    width: min(calc(100% - 2rem), var(--content-width));
    margin: 0 auto;
    padding: 1.25rem 0 3rem;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0 1.5rem;
    position: relative;
    z-index: 2;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-mark {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.35rem;
    color: white;
    background: linear-gradient(135deg, #ea6d44, #e89d42);
    box-shadow: 0 14px 32px rgba(234, 109, 68, 0.35);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1rem;
}

.brand small {
    color: var(--muted);
    font-size: 0.82rem;
}

.site-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(12px);
}

.site-nav a {
    padding: 0.8rem 1rem;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.cart-count {
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.35rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--text);
    color: white;
    font-size: 0.78rem;
    transition: transform 0.25s ease;
}

.cart-count.bump {
    animation: badgePulse 0.55s ease;
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
    align-items: stretch;
    padding: 2rem 0 3rem;
}

.hero-copy,
.hero-visual,
.feature-strip article,
.story-panel,
.cart-panel,
.summary-card,
.product-card {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: var(--surface);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.hero-copy {
    position: relative;
    overflow: hidden;
    padding: clamp(1.8rem, 3vw, 3.25rem);
    border-radius: var(--radius-lg);
}

.hero-copy::before {
    content: "";
    position: absolute;
    inset: -35% auto auto -10%;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.hero-copy > * {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--accent-deep);
}

.hero h1,
.section-heading h1,
.section-heading h2,
.story-panel h2 {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    line-height: 1.04;
}

.hero h1 {
    max-width: 12ch;
    font-size: clamp(2.7rem, 6vw, 5rem);
}

.hero-text,
.feature-strip p,
.story-panel p,
.product-description,
.cart-meta,
.summary-note {
    color: var(--muted);
    line-height: 1.7;
}

.hero-text {
    max-width: 56ch;
    margin: 1.2rem 0 0;
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: white;
    background: linear-gradient(135deg, var(--accent), #f29a38);
    box-shadow: 0 16px 28px rgba(234, 109, 68, 0.28);
}

.button-primary.is-added {
    background: linear-gradient(135deg, #2f584f, #4f8a78);
    box-shadow: 0 16px 28px rgba(47, 88, 79, 0.24);
}

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

.button-block {
    width: 100%;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 2rem;
}

.hero-stats article {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-stats strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.15rem;
}

.hero-stats span {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-visual {
    position: relative;
    overflow: hidden;
    min-height: 440px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.95), transparent 40%),
        linear-gradient(145deg, #2f584f 0%, #18342e 48%, #11151d 100%);
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: conic-gradient(from 120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1));
    animation: rotateGlow 16s linear infinite;
}

.visual-card {
    position: absolute;
    padding: 1.15rem;
    width: min(220px, 62%);
    border-radius: 22px;
    color: white;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 28px 45px rgba(0, 0, 0, 0.2);
}

.visual-card span {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.82;
}

.visual-card strong {
    display: block;
    margin-top: 0.55rem;
    font-size: 1.3rem;
    line-height: 1.15;
}

.card-one {
    top: 11%;
    left: 8%;
    background: linear-gradient(135deg, rgba(234, 109, 68, 0.9), rgba(246, 177, 83, 0.86));
    animation: floatUp 6s ease-in-out infinite;
}

.card-two {
    right: 9%;
    bottom: 12%;
    background: linear-gradient(135deg, rgba(32, 41, 61, 0.92), rgba(78, 108, 139, 0.78));
    animation: floatUp 7s ease-in-out infinite 0.4s;
}

.visual-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(3px);
}

.orb-one {
    width: 220px;
    height: 220px;
    top: 18%;
    right: 18%;
    background: radial-gradient(circle, rgba(255, 196, 160, 0.9), rgba(255, 196, 160, 0));
}

.orb-two {
    width: 280px;
    height: 280px;
    left: 18%;
    bottom: -8%;
    background: radial-gradient(circle, rgba(143, 202, 178, 0.52), rgba(143, 202, 178, 0));
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature-strip article,
.story-panel,
.cart-panel,
.summary-card {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
    border-radius: 28px;
}

.feature-strip h2,
.summary-card strong,
.product-price,
.cart-item-price {
    margin: 0;
    font-size: 1.12rem;
}

.feature-strip p,
.summary-note {
    margin: 0.4rem 0 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin: 3.1rem 0 1.4rem;
}

.section-heading h1,
.section-heading h2,
.story-panel h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.text-link {
    color: var(--accent-deep);
    font-weight: 700;
}

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

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card::after {
    content: "";
    position: absolute;
    inset: -130% auto auto -20%;
    width: 42%;
    height: 280%;
    transform: rotate(20deg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: transform 0.7s ease, opacity 0.4s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(86, 49, 29, 0.2);
}

.product-card:hover::after {
    opacity: 1;
    transform: translateX(270%) rotate(20deg);
}

.product-card[data-added="true"] {
    animation: cardPulse 0.7s ease;
}

.product-image-wrap {
    position: relative;
    overflow: hidden;
}

.product-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 18, 28, 0) 45%, rgba(15, 18, 28, 0.12));
    pointer-events: none;
}

.product-image {
    aspect-ratio: 1 / 0.82;
    width: 100%;
    object-fit: cover;
    background: var(--bg-soft);
    transition: transform 0.7s ease, filter 0.7s ease;
}

.product-card:hover .product-image {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.product-body {
    display: grid;
    gap: 0.9rem;
    padding: 1.2rem;
}

.product-head,
.cart-item-head,
.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.product-category {
    display: inline-flex;
    width: fit-content;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-name,
.cart-item-name {
    margin: 0;
    font-size: 1.24rem;
}

.product-description {
    margin: 0;
}

.product-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.product-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-deep);
    font-weight: 700;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.product-price,
.cart-item-price {
    font-weight: 800;
}

.story-panel {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 1rem;
    align-items: center;
    margin-top: 3rem;
}

.cart-page {
    padding-bottom: 2rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    gap: 1.2rem;
}

.cart-items {
    display: grid;
    gap: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.cart-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(86, 49, 29, 0.12);
}

.cart-item.removing {
    opacity: 0;
    transform: translateX(24px) scale(0.98);
}

.cart-item-image {
    width: 120px;
    height: 96px;
    border-radius: 18px;
    object-fit: cover;
}

.cart-meta {
    margin: 0.3rem 0 0;
}

.cart-quantity {
    display: inline-flex;
    width: fit-content;
    margin-top: 0.9rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(234, 109, 68, 0.12);
    color: var(--accent-deep);
    font-size: 0.86rem;
    font-weight: 700;
}

.remove-button {
    padding: 0.85rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: white;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.remove-button:hover {
    transform: translateY(-1px);
    border-color: rgba(234, 109, 68, 0.45);
}

.summary-card {
    position: sticky;
    top: 1.5rem;
    height: fit-content;
}

.summary-label {
    margin: 0 0 1.4rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.summary-row {
    padding: 0.95rem 0;
    border-top: 1px solid var(--line);
}

.summary-row:first-of-type {
    border-top: 0;
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 320px;
    padding: 2rem;
    text-align: center;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px dashed rgba(33, 25, 18, 0.18);
}

.empty-state h2 {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: 2rem;
}

.empty-state p {
    max-width: 34ch;
    margin: 0.9rem auto 1.4rem;
    color: var(--muted);
}

.toast {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 20;
    min-width: 220px;
    max-width: min(90vw, 320px);
    padding: 1rem 1.15rem;
    border-radius: 22px;
    background: rgba(17, 21, 29, 0.92);
    color: white;
    box-shadow: 0 26px 45px rgba(17, 21, 29, 0.26);
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--delay, 0ms);
}

.js-enabled .reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes floatUp {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes driftBlob {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(18px, -24px, 0) scale(1.08);
    }
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    35% {
        transform: scale(1.18);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes cardPulse {
    0% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-4px) scale(1.015);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 980px) {
    .hero,
    .story-panel,
    .cart-layout,
    .product-grid,
    .feature-strip {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 340px;
    }

    .summary-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(calc(100% - 1rem), var(--content-width));
    }

    .site-header,
    .section-heading,
    .product-footer,
    .product-head,
    .cart-item-head {
        align-items: flex-start;
    }

    .site-header,
    .section-heading,
    .product-footer {
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
        justify-content: space-between;
        padding: 0.45rem;
        border-radius: 24px;
    }

    .site-nav a {
        flex: 1;
        text-align: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 0.72;
    }

    .remove-button,
    .button-block {
        width: 100%;
    }

    .toast {
        left: 0.8rem;
        right: 0.8rem;
        bottom: 0.8rem;
        max-width: none;
    }
}

@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;
    }
}
