:root {
    --ds-page: #f7f5f2;
    --ds-white: #ffffff;
    --ds-raised: #f1eeea;
    --ds-hairline: #e6e1db;
    --ds-ink: #1c1720;
    --ds-ink-2: #56505e;
    --ds-ink-3: #8b8494;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
    background: var(--ds-page);
    color: var(--ds-ink);
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    padding: 16px 14px 40px;
}

.rom-page {
    --rom-purple: #8e3f6f;
    --rom-pink: #c82a79;
    --rom-gradient: linear-gradient(118deg, #c1476a 0%, #a8447e 55%, #7a4b9c 100%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
}

/* Brand */
.rom-brand {
    background: var(--ds-white);
    border: 1px solid var(--ds-hairline);
    border-radius: 20px;
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}
.rom-brand-top { height: 5px; background: var(--rom-gradient); margin: 0 -16px 18px; align-self: stretch; }
.rom-logo { width: 186px; height: auto; display: block; }
.rom-wordmark {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.005em;
    text-align: center;
    background: var(--rom-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.rom-tagline { margin: 0; color: var(--ds-ink-3); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }

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

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

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

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

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

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

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

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

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

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

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

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