/* Cup Loveloop — Apple-style minimal storefront
   Single source for version: VERSION file (title bar). */

:root {
    --ink: #1d1d1f;
    --ink-soft: #6e6e73;
    --bg: #ffffff;
    --bg-soft: #f5f5f7;
    --accent: #0071e3;
    --radius: 18px;
    --maxw: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
        "Helvetica Neue", Inter, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.47;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* Nav / title bar */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav__brand {
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    letter-spacing: -0.01em;
}
.nav__ver {
    color: var(--ink-soft);
    font-weight: 400;
    font-size: 13px;
    margin-left: 6px;
}
.nav__links { display: flex; gap: 22px; font-size: 14px; }
.nav__links a { text-decoration: none; opacity: 0.85; }
.nav__links a:hover { opacity: 1; }

main { display: block; }

/* Hero */
.hero {
    text-align: center;
    padding: 96px 22px 64px;
}
.hero__title {
    font-size: clamp(40px, 7vw, 80px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 auto 18px;
    max-width: 16ch;
}
.hero__sub {
    color: var(--ink-soft);
    font-size: clamp(19px, 2.2vw, 24px);
    max-width: 56ch;
    margin: 0 auto 30px;
}
.hero__product {
    margin: 56px auto 0;
    max-width: 420px;
}
.bottle {
    aspect-ratio: 3 / 7;
    margin: 0 auto;
    max-width: 220px;
    border-radius: 60px 60px 46px 46px;
    background: linear-gradient(180deg, #e8e8ec 0%, #c9c9cf 45%, #a9a9b1 100%);
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.35);
}

/* Button */
.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 980px;
    font-size: 16px;
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { opacity: 0.88; }

/* Feature */
.feature {
    background: var(--bg-soft);
    text-align: center;
    padding: 96px 22px;
}
.feature__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    color: var(--accent);
    margin: 0 0 12px;
}
.feature__title {
    font-size: clamp(30px, 4.5vw, 52px);
    letter-spacing: -0.02em;
    margin: 0 auto 16px;
    max-width: 18ch;
    font-weight: 700;
}
.feature__body {
    color: var(--ink-soft);
    max-width: 60ch;
    margin: 0 auto;
    font-size: 20px;
}

/* Steps */
.steps {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 96px 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}
.step {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    padding: 34px 26px;
    text-align: center;
}
.step__num {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 15px;
    margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Footer */
.footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 26px;
    color: var(--ink-soft);
    font-size: 13px;
}

@media (max-width: 720px) {
    .steps { grid-template-columns: 1fr; }
}

/* Product detail page */
.pdp {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 64px 22px 96px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}
.pdp__media {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 48px;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdp__media img {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
}
.pdp__title { font-size: clamp(32px, 5vw, 56px); letter-spacing: -0.02em; margin: 0 0 10px; font-weight: 700; }
.pdp__price { font-size: 24px; margin: 0 0 18px; font-weight: 600; }
.pdp__desc  { color: var(--ink-soft); font-size: 18px; margin: 0 0 28px; }
.engrave { display: flex; flex-direction: column; gap: 12px; max-width: 380px; }
.engrave__label { font-size: 14px; font-weight: 600; }
.engrave input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 12px;
    font-size: 17px;
    font-family: inherit;
    outline: none;
}
.engrave input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,113,227,0.15); }
.engrave__preview-note { color: var(--ink-soft); font-size: 13px; margin: 0; }
.engrave .btn { margin-top: 8px; text-align: center; }

@media (max-width: 860px) {
    .pdp { grid-template-columns: 1fr; gap: 32px; }
}

/* Cart */
.cart { max-width: var(--maxw); margin: 0 auto; padding: 56px 22px 96px; }
.cart__title { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; margin: 0 0 24px; font-weight: 700; }
.cart__empty { color: var(--ink-soft); font-size: 19px; }
.cart__empty a { color: var(--accent); }
.cart__table { width: 100%; border-collapse: collapse; }
.cart__table th, .cart__table td { text-align: left; padding: 16px 8px; border-bottom: 1px solid rgba(0,0,0,0.08); vertical-align: top; }
.cart__table th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); font-weight: 600; }
.cart__table td strong { display: block; font-size: 17px; font-weight: 600; }
.cart__table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--ink-soft); font-size: 13px; display: block; }
.linkbtn { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }
.linkbtn:hover { text-decoration: underline; }
.cart__total { text-align: right; font-size: 20px; padding: 20px 8px; }
.cart__total strong { font-size: 26px; font-weight: 700; }
.cart__actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid rgba(0,0,0,0.16); }
.btn--ghost:hover { background: var(--bg-soft); opacity: 1; }
.is-disabled { opacity: .45; pointer-events: none; }

/* Checkout */
.checkout { max-width: 640px; margin: 0 auto; padding: 80px 22px 96px; text-align: center; }
.checkout__title { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; font-weight: 700; margin: 8px 0 16px; }
.checkout__body { color: var(--ink-soft); font-size: 19px; margin: 0 auto 16px; }
