@font-face { font-family: "Aime"; src: url("fonts/aime-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "KMR Melange Grotesk"; src: url("fonts/melange-grotesk-350.woff2") format("woff2"); font-weight: 350; font-style: normal; font-display: swap; }
@font-face { font-family: "KMR Melange Grotesk"; src: url("fonts/melange-grotesk-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
    --ink: #4d3533;
    --ink-2: rgba(77, 53, 51, .7);
    --ink-3: rgba(77, 53, 51, .5);
    --hairline: rgba(77, 53, 51, .1);
    --page: #fdfcfb;
    --white: #fff;
    --raised: #f6f2ef;
    --magenta: #b612d0;
    --purple: #5e17a1;
    --pink: #c82a79;
    --gradient: linear-gradient(118deg, #b612d0 0%, #7a2bb5 58%, #378ce6 100%);
    --display: "Aime", Georgia, "Times New Roman", serif;
    --text: "KMR Melange Grotesk", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
    background: var(--page);
    color: var(--ink);
    font-family: var(--text);
    font-weight: 350;
    font-size: 15px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

.page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 20px 16px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Brand */
.brand {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: 20px;
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}
.brand-top { height: 5px; background: var(--gradient); margin: 0 -16px 18px; align-self: stretch; }
.logo { width: 186px; height: auto; display: block; }
.tagline { margin: 0; color: var(--ink-3); font-size: 13px; }

/* Intro */
.intro { display: flex; flex-direction: column; gap: 8px; }
.title {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(23px, 5.6vw, 32px);
    line-height: 1.35;
    letter-spacing: -.01em;
}
.lead { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink-2); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--hairline);
    background: var(--white);
    color: var(--ink-2);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}
.chip.is-on { background: var(--gradient); border-color: transparent; color: #fff; font-weight: 600; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    overflow: hidden;
}
.photo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #f7eef0; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.name { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.size { margin: 0; font-size: 12px; color: var(--ink-3); }
.desc { margin: 2px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.price { font-size: 14px; font-weight: 600; color: var(--purple); white-space: nowrap; }

.add {
    height: 34px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid rgba(94, 23, 161, .3);
    background: #fff;
    color: var(--purple);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}
.add:active { background: rgba(94, 23, 161, .08); }

.stepper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 34px;
    padding: 0 4px;
    border-radius: 10px;
    background: var(--gradient);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
}
.stepper button {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
}
.stepper span { min-width: 18px; text-align: center; }

/* Cart */
.cart { background: var(--raised); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cart-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 21px; }
.cart-count { font-size: 13px; color: var(--ink-2); }
.empty { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }

.cart-body { display: flex; flex-direction: column; gap: 16px; }
.cart-summary { display: flex; flex-direction: column; gap: 12px; }
.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.line {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: var(--white);
    border-radius: 14px;
}
.line-photo { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; display: block; background: #f7eef0; }
.line-main { min-width: 0; }
.line-name { margin: 0; font-size: 14px; font-weight: 600; }
.line-meta { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-2); }
.line-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.drop {
    border: 0;
    background: transparent;
    padding: 4px 0;
    color: var(--ink-3);
    font: inherit;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

.total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 15px; }
.total strong { font-size: 18px; font-weight: 600; color: var(--purple); }

.form { display: flex; flex-direction: column; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--ink-2); }
.field input {
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--hairline);
    background: var(--white);
    padding: 0 12px;
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    width: 100%;
}
.field input:focus { outline: 2px solid rgba(94, 23, 161, .35); outline-offset: 1px; }

.cta {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    margin-top: 4px;
    border-radius: 14px;
    background: var(--gradient);
    color: #fff;
    font-size: 15.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.cta.is-off { opacity: .4; filter: grayscale(.4); cursor: default; }
.hint { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.hint.is-warn { color: var(--pink); }

.foot { margin: 0; font-size: 12px; line-height: 1.7; color: var(--ink-3); }

@media (min-width: 700px) {
    .page { gap: 24px; padding: 28px 24px 36px; }
    .brand { padding: 0 24px 20px; }
    .brand-top { margin: 0 -24px 22px; }
    .logo { width: 220px; }
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .name { font-size: 16px; }
    .cart { padding: 24px; }
    .cart-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
}
@media (min-width: 1000px) {
    .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
