/* ── Design tokens ──────────────────────────────────────────────────── */
:root {
    --bg:             #0c0804;
    --bg-deep:        #050302;
    --bg-warm:        #1d1205;
    --gold:           #c9a84c;
    --gold-light:     #e8c97a;
    --gold-dim:       rgba(201, 168, 76, 0.22);
    --gold-glow:      rgba(201, 168, 76, 0.08);
    --text:           #f0e4c8;
    --text-muted:     #9e8e70;
    --text-dim:       #6e6050;
    --card-bg:        rgba(255, 255, 255, 0.035);
    --border-card:    1px solid var(--gold-dim);
    --font-display:   'Playfair Display', Georgia, serif;
    --font-body:      'Cormorant Garamond', Georgia, serif;
    --max-width:      660px;
    --radius:         4px;
}

/* ── Reset + base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background:            radial-gradient(ellipse at 30% 5%, var(--bg-warm) 0%, var(--bg) 55%, var(--bg-deep) 100%);
    background-attachment: fixed;
    color:                 var(--text);
    font-family:           var(--font-body);
    font-size:             17px;
    line-height:           1.6;
    min-height:            100vh;
}

/* ── Layout ─────────────────────────────────────────────────────────── */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 36px 22px 90px; }

/* ── Typography ─────────────────────────────────────────────────────── */
.h-display { font-family: var(--font-display); font-weight: 900; color: var(--gold-light); line-height: 1.1; }
.h-section  { font-family: var(--font-display); font-weight: 700; color: var(--gold-light); line-height: 1.15;
              border-bottom: 1px solid var(--gold-dim); padding-bottom: 8px; margin-bottom: 6px; }
.h-sub      { font-family: var(--font-display); font-weight: 400; color: var(--text-muted); font-style: italic; }
.text-muted { color: var(--text-muted); font-style: italic; }
.text-small { font-size: 13px; color: var(--text-muted); font-style: italic; }
.text-gold  { color: var(--gold-light); }

/* ── Divider ────────────────────────────────────────────────────────── */
.divider {
    display:    block;
    width:      100%;
    height:     1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.45), transparent);
    border:     none;
    margin:     28px 0;
}

/* ── Button ─────────────────────────────────────────────────────────── */
.btn-gold {
    display:         block;
    width:           100%;
    background:      linear-gradient(135deg, #c9a84c, #8b6914);
    color:           #0c0804;
    font-family:     var(--font-display);
    font-weight:     700;
    font-size:       16px;
    letter-spacing:  0.07em;
    border:          none;
    border-radius:   var(--radius);
    padding:         15px 34px;
    cursor:          pointer;
    transition:      filter 0.18s, transform 0.18s;
}
.btn-gold:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.btn-gold:disabled              { opacity: 0.38; cursor: not-allowed; }

/* ── Card ───────────────────────────────────────────────────────────── */
.card {
    background:  var(--card-bg);
    border:      var(--border-card);
    border-radius: var(--radius);
    padding:     18px 22px;
    cursor:      pointer;
    transition:  border-color 0.2s, background 0.2s;
}
.card:hover, .card.selected {
    border-color: var(--gold);
    background:   var(--gold-glow);
}

/* ── Form inputs ────────────────────────────────────────────────────── */
.field-label {
    display:       block;
    font-size:     13px;
    color:         var(--text-muted);
    font-style:    italic;
    margin-bottom: 5px;
}
.field-input {
    background:    rgba(255,255,255,0.055);
    border:        1px solid rgba(201,168,76,0.28);
    border-radius: var(--radius);
    color:         var(--text);
    padding:       10px 14px;
    font-size:     15px;
    font-family:   var(--font-body);
    width:         100%;
    outline:       none;
    transition:    border-color 0.2s;
}
.field-input:focus { border-color: var(--gold); }

/* ── Step dots ──────────────────────────────────────────────────────── */
.step-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 36px; }
.step-dot  { height: 8px; border-radius: 4px; background: var(--gold-dim); transition: all 0.3s; }
.step-dot.active { width: 24px; background: var(--gold); }
.step-dot:not(.active) { width: 8px; }

/* ── Upload zone ────────────────────────────────────────────────────── */
.upload-zone {
    border:        2px dashed rgba(201,168,76,0.38);
    border-radius: var(--radius);
    padding:       48px 24px;
    text-align:    center;
    cursor:        pointer;
    background:    rgba(255,255,255,0.02);
    transition:    border-color 0.25s, background 0.25s;
}
.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--gold-light);
    background:   rgba(201,168,76,0.04);
}
.upload-zone img { max-height: 210px; max-width: 100%; border-radius: var(--radius);
                   border: 2px solid rgba(201,168,76,0.45); display: block; margin: 0 auto 12px; }

/* ── Pet type buttons ───────────────────────────────────────────────── */
.pet-btn {
    background:    rgba(255,255,255,0.04);
    border:        1px solid rgba(201,168,76,0.18);
    border-radius: var(--radius);
    color:         var(--text-muted);
    padding:       8px 15px;
    font-family:   var(--font-body);
    font-size:     14px;
    cursor:        pointer;
    transition:    all 0.15s;
}
.pet-btn:hover, .pet-btn.selected {
    background:    rgba(201,168,76,0.1);
    border-color:  var(--gold);
    color:         var(--gold-light);
}

/* ── Progress bar ───────────────────────────────────────────────────── */
.progress-track { background: rgba(255,255,255,0.07); border-radius: 3px; height: 5px; overflow: hidden; }
.progress-fill  { height: 100%; background: linear-gradient(90deg, #7a5a0e, #e8c97a, #c9a84c);
                  border-radius: 3px; transition: width 0.4s ease; width: 0%; }

/* ── Variation grid ─────────────────────────────────────────────────── */
.variation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.var-card {
    border:        2px solid rgba(201,168,76,0.18);
    border-radius: var(--radius);
    overflow:      hidden;
    cursor:        pointer;
    transition:    border-color 0.2s;
}
.var-card.selected { border-color: var(--gold-light); }
.var-card-img-wrap { position: relative; padding-bottom: 100%; background: #0a0702; overflow: hidden; }
.var-card-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
                          filter: sepia(0.4) contrast(1.1) brightness(0.92); }
.var-card-vignette { position: absolute; inset: 0;
                     background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.55) 100%); }
.var-card-corner {
    position: absolute; width: 18px; height: 18px; opacity: 0.7;
    border-color: var(--gold);
    border-style: solid;
}
.var-card-corner.tl { top: 6px; left: 6px;  border-width: 2px 0 0 2px; }
.var-card-corner.tr { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.var-card-corner.bl { bottom: 6px; left: 6px;  border-width: 0 0 2px 2px; }
.var-card-corner.br { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }
.var-card-check {
    position: absolute; top: 9px; right: 9px;
    background: var(--gold); color: #0c0804;
    border-radius: 50%; width: 24px; height: 24px;
    display: none; align-items: center; justify-content: center;
    font-weight: 900; font-size: 13px;
}
.var-card.selected .var-card-check { display: flex; }
.var-card-title-bar { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 12px 10px;
                       background: linear-gradient(transparent, rgba(0,0,0,0.82)); }
.var-card-title { font-family: var(--font-display); font-size: 15px; font-style: italic;
                  color: var(--text); }
.var-card-sub   { padding: 10px 14px; border-top: 1px solid rgba(201,168,76,0.12);
                  background: rgba(0,0,0,0.3); font-size: 12px; color: var(--text-dim); font-style: italic; }

/* ── Order badge ────────────────────────────────────────────────────── */
.order-badge {
    display:      inline-block;
    background:   rgba(201,168,76,0.07);
    border:       1px solid rgba(201,168,76,0.28);
    border-radius: var(--radius);
    padding:      18px 36px;
    text-align:   center;
}
.order-badge-ref  { font-family: var(--font-display); font-size: 24px; color: var(--gold-light); letter-spacing: 0.1em; }
.order-badge-note { font-size: 13px; color: var(--text-muted); font-style: italic; margin-top: 4px; }

/* ── How it works ───────────────────────────────────────────────────── */
.how-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; text-align: center; }
.how-icon { font-size: 22px; color: var(--gold); margin-bottom: 7px; }
.how-title { font-family: var(--font-display); font-size: 14px; color: var(--gold-light); margin-bottom: 5px; }
.how-desc  { font-size: 13px; color: var(--text-dim); font-style: italic; line-height: 1.4; }

/* ── Animations ─────────────────────────────────────────────────────── */
@keyframes crownOscillate { 0%,100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes crownPulse     { 0%,100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes fadeUp         { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer        { 0%,100% { opacity: 0.65; } 50% { opacity: 1; } }

.anim-crown-osc   { display: inline-block; animation: crownOscillate 3s ease-in-out infinite alternate; }
.anim-crown-pulse { display: inline-block; animation: crownPulse 2.5s ease-in-out infinite; }
.anim-fade-up     { animation: fadeUp 0.65s ease both; }
.anim-shimmer     { animation: shimmer 1.8s ease-in-out infinite; }

/* ── Product address grid ───────────────────────────────────────────── */
.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.col-span-2   { grid-column: 1 / 3; }

/* ── Back link ──────────────────────────────────────────────────────── */
.back-btn {
    background:  none;
    border:      none;
    color:       var(--text-dim);
    cursor:      pointer;
    font-size:   13px;
    font-style:  italic;
    padding:     0 0 22px;
    display:     block;
}
.back-btn:hover { color: var(--text-muted); }

/* ── Next steps checklist ───────────────────────────────────────────── */
.next-steps { background: rgba(255,255,255,0.025); border: var(--border-card);
              border-radius: var(--radius); padding: 18px 22px; }
.next-steps-title { font-family: var(--font-display); font-size: 15px; color: var(--gold-light); margin-bottom: 12px; }
.next-step-row  { display: flex; gap: 10px; margin-bottom: 8px; align-items: flex-start; }
.next-step-icon { color: var(--gold); font-size: 13px; margin-top: 3px; flex-shrink: 0; }
.next-step-text { font-size: 15px; color: #c0b090; line-height: 1.4; }

/* ── Footer note ────────────────────────────────────────────────────── */
.footer-note { text-align: center; font-size: 13px; color: var(--text-dim); font-style: italic; margin-top: 40px; opacity: 0.7; }

/* ── Pet type row ───────────────────────────────────────────────────── */
.pet-type-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }

/* ── Centred block ──────────────────────────────────────────────────── */
.centre-stack { text-align: center; }
