/* ================================================================
   Baby Go Around — main stylesheet
   Editorial aesthetic: Fraunces (display) + Plus Jakarta Sans (body)
   Palette: cream / ink / terracotta / sage
   ================================================================ */

:root {
  --bg:         #FBF5EB;
  --bg-alt:     #F3EADC;
  --ink:        #1F1915;
  --ink-soft:   #4A3F36;
  --ink-mute:   #8A7D70;
  --line:       #E4D8C5;
  --brand:      #C04E3B;
  --brand-deep: #9E3A28;
  --sage:       #5C7A5A;
  --pink:       #E8B6A6;
  --yellow:     #E5B94A;
  --white:      #FFFFFF;
  --shadow-sm:  0 1px 2px rgba(31,25,21,.04), 0 1px 1px rgba(31,25,21,.02);
  --shadow-md:  0 4px 16px rgba(31,25,21,.08), 0 2px 4px rgba(31,25,21,.04);
  --shadow-lg:  0 12px 32px rgba(31,25,21,.12), 0 4px 8px rgba(31,25,21,.06);
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand); }

img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea {
  font: inherit; color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
textarea { resize: vertical; min-height: 6rem; font-family: inherit; }
label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .35rem; color: var(--ink-soft); }

/* ---------- layout ---------- */
.wrap          { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow   { max-width: 880px;  margin: 0 auto; padding: 0 1.25rem; }
.section       { padding: 5rem 0; }
.section-sm    { padding: 3rem 0; }
.divider       { height: 1px; background: var(--line); margin: 2.5rem 0; }
.muted         { color: var(--ink-mute); }
.mono          { font-family: ui-monospace, 'SF Mono', 'Menlo', monospace; }
.serif         { font-family: 'Fraunces', Georgia, serif; }
.italic        { font-style: italic; }
.uppercase     { text-transform: uppercase; letter-spacing: .12em; }
.small         { font-size: .85rem; }
.xs            { font-size: .75rem; }

.grid          { display: grid; gap: 1.5rem; }
.flex          { display: flex; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.flex-gap      { display: flex; align-items: center; gap: .5rem; }
.gap-1         { gap: .5rem; }
.gap-2         { gap: 1rem; }
.gap-3         { gap: 1.5rem; }

.mt-1 { margin-top: .5rem; }  .mt-2 { margin-top: 1rem; }   .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 500; font-size: .95rem;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary   { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-deep); color: var(--white); }
.btn-ink       { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #000; color: var(--white); }
.btn-outline   { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ghost     { color: var(--ink-soft); }
.btn-ghost:hover { color: var(--brand); }
.btn-sage      { background: var(--sage); color: var(--white); }
.btn-sage:hover{ background: #4A6549; color: var(--white); }
.btn-block     { width: 100%; }
.btn-sm        { padding: .55rem 1rem; font-size: .85rem; }
.btn-lg        { padding: 1.1rem 2rem; font-size: 1.05rem; }

/* ---------- cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #CFBE9E; }
.card-body  { padding: 1.25rem; }
.card-flat  { box-shadow: none; }

/* ---------- header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(1.2) blur(6px);
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 1rem; }
.brand-mark { display: flex; align-items: center; gap: .7rem; font-family: 'Fraunces', Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.brand-mark .horse { width: 44px; height: 44px; background: var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.brand-tag { font-size: .7rem; letter-spacing: .18em; color: var(--ink-mute); text-transform: uppercase; }
.nav-main { display: none; gap: 2rem; }
.nav-main a { font-size: .92rem; font-weight: 500; }
.nav-main a.active { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-actions .icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-alt); display: flex; align-items: center; justify-content: center;
  position: relative; transition: background .2s;
}
.header-actions .icon-btn:hover { background: var(--line); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--brand); color: var(--white); font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.menu-toggle { display: flex; }

@media (min-width: 900px) {
  .nav-main { display: flex; }
  .menu-toggle { display: none; }
}

/* ---------- mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; background: var(--bg); z-index: 50;
  padding: 2rem 1.25rem;
  display: none; flex-direction: column; gap: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Fraunces', Georgia, serif; font-size: 1.6rem; }

/* ---------- hero ---------- */
.hero { padding: 4rem 0 5rem; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.hero h1 { margin: 1rem 0 1.5rem; }
.hero h1 em { font-style: italic; color: var(--brand); font-weight: 300; }
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 36rem; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual svg { width: 70%; height: auto; }

.hero-stats { display: flex; gap: 2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-stats .stat { }
.hero-stats .stat-num { font-family: 'Fraunces', Georgia, serif; font-size: 2rem; color: var(--brand); }
.hero-stats .stat-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-mute); }

/* ---------- brand strip ---------- */
.brand-strip { background: var(--ink); color: var(--bg); padding: 2rem 0; overflow: hidden; }
.brand-strip-inner { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; justify-content: center; font-family: 'Fraunces', Georgia, serif; font-size: 1.4rem; opacity: .85; }

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-tile {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: background .2s, transform .2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.cat-tile:hover { background: var(--white); border-color: var(--line); transform: translateY(-2px); }
.cat-tile svg { width: 64px; height: 64px; margin: 0 auto .75rem; }
.cat-tile .cat-name { font-family: 'Fraunces', Georgia, serif; font-size: 1.05rem; }
.cat-tile .cat-count { font-size: .78rem; color: var(--ink-mute); margin-top: .2rem; }

/* ---------- product card ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}
.prod-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: transform .2s, box-shadow .2s; cursor: pointer; }
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.prod-media { aspect-ratio: 1/1; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; position: relative; }
.prod-media svg { width: 62%; height: auto; }
.prod-media img { width: 100%; height: 100%; object-fit: cover; }
.prod-body { padding: 1.15rem; }
.prod-brand { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-mute); }
.prod-name { font-family: 'Fraunces', Georgia, serif; font-size: 1.1rem; margin: .35rem 0 .5rem; line-height: 1.25; }
.prod-meta { display: flex; align-items: center; justify-content: space-between; margin-top: .75rem; }
.prod-price { font-family: 'Fraunces', Georgia, serif; font-size: 1.25rem; color: var(--brand); font-weight: 500; }
.prod-was { font-size: .85rem; color: var(--ink-mute); text-decoration: line-through; margin-left: .35rem; }

.cond-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .6rem; border-radius: 999px;
  font-size: .7rem; font-weight: 600; letter-spacing: .04em;
}
.cond-excellent { background: #E8F0E5; color: var(--sage); }
.cond-good      { background: #FCE8DC; color: var(--brand); }
.cond-display   { background: var(--line); color: var(--ink-soft); }

.badge-featured { position: absolute; top: .75rem; left: .75rem; background: var(--ink); color: var(--white); padding: .3rem .7rem; border-radius: 999px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.badge-sold { position: absolute; top: .75rem; left: .75rem; background: var(--ink-mute); color: var(--white); padding: .3rem .7rem; border-radius: 999px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- shop ---------- */
.shop-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) { .shop-layout { grid-template-columns: 260px 1fr; } }

.filter-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.25rem; }
.filter-group { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-title { font-family: 'Fraunces', Georgia, serif; font-size: 1.05rem; margin-bottom: .75rem; }
.filter-group label { display: flex; align-items: center; gap: .55rem; font-weight: 400; padding: .3rem 0; color: var(--ink-soft); cursor: pointer; font-size: .92rem; margin-bottom: 0; }
.filter-group label:hover { color: var(--ink); }
.filter-group input[type="radio"], .filter-group input[type="checkbox"] { width: auto; accent-color: var(--brand); }

.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.shop-toolbar .result-count { color: var(--ink-mute); font-size: .88rem; }
.view-toggle { display: flex; gap: .3rem; background: var(--bg-alt); border-radius: 999px; padding: .2rem; }
.view-toggle button { padding: .4rem .7rem; border-radius: 999px; color: var(--ink-mute); display: flex; }
.view-toggle button.active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- product page ---------- */
.prod-page { display: grid; grid-template-columns: 1fr; gap: 3rem; padding: 2rem 0 4rem; }
@media (min-width: 900px) { .prod-page { grid-template-columns: 1.1fr 1fr; } }
.prod-hero-media { background: var(--bg-alt); border-radius: var(--radius-lg); aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center; padding: 3rem; }
.prod-hero-media svg { width: 70%; height: auto; }
.prod-hero-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.prod-info h1 { font-size: 2.2rem; margin: .75rem 0 1rem; }
.prod-price-big { font-family: 'Fraunces', Georgia, serif; font-size: 2.4rem; color: var(--brand); font-weight: 500; }
.prod-price-big .was { font-size: 1.2rem; color: var(--ink-mute); text-decoration: line-through; margin-left: .75rem; font-weight: 400; }
.prod-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; }
.prod-feature { padding: .9rem; background: var(--bg-alt); border-radius: var(--radius-sm); }
.prod-feature .lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); }
.prod-feature .val { font-weight: 500; margin-top: .2rem; }

.condition-explain { background: var(--bg-alt); padding: 1.25rem; border-radius: var(--radius-md); margin: 1.5rem 0; }
.condition-explain h4 { font-family: 'Fraunces', Georgia, serif; margin-bottom: .5rem; }
.condition-explain p { color: var(--ink-soft); font-size: .92rem; }

/* ---------- cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 380px; } }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 1rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.cart-item .thumb { aspect-ratio: 1/1; background: var(--bg-alt); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.cart-item .thumb svg { width: 70%; }
.cart-item .qty-ctrl { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.cart-item .qty-ctrl button { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.cart-item .qty-ctrl .q { width: 32px; text-align: center; font-weight: 500; }

.summary-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.5rem; position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .95rem; color: var(--ink-soft); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: 1rem; font-family: 'Fraunces', Georgia, serif; font-size: 1.3rem; color: var(--ink); font-weight: 500; }

.checkout-steps { display: flex; gap: .5rem; margin-bottom: 2rem; }
.checkout-step { flex: 1; padding: .9rem; border-radius: var(--radius-sm); background: var(--bg-alt); text-align: center; font-size: .88rem; color: var(--ink-mute); }
.checkout-step.active { background: var(--ink); color: var(--white); }
.checkout-step.done   { background: var(--sage); color: var(--white); }

.radio-group { display: flex; flex-direction: column; gap: .75rem; }
.radio-card { padding: 1rem 1.2rem; border: 2px solid var(--line); border-radius: var(--radius-md); display: flex; align-items: center; gap: 1rem; cursor: pointer; transition: border-color .2s, background .2s; }
.radio-card:hover { border-color: #CFBE9E; }
.radio-card.selected { border-color: var(--brand); background: #FDF8F5; }
.radio-card input { width: auto; accent-color: var(--brand); }

/* ---------- services ---------- */
.service-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 700px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.75rem; transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.service-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--brand); }
.service-card h3 { font-family: 'Fraunces', Georgia, serif; margin-bottom: .5rem; }
.service-card p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- visit section ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1fr 1.2fr; } }
.map-stylized { background: var(--bg-alt); border-radius: var(--radius-lg); aspect-ratio: 4/3; padding: 1.5rem; display: flex; align-items: center; justify-content: center; }
.map-stylized svg { width: 100%; height: 100%; }
.visit-detail { display: flex; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.visit-detail:last-child { border-bottom: 0; }
.visit-detail .ico { flex-shrink: 0; color: var(--brand); }

/* ---------- testimonials ---------- */
.testimonial {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  text-align: center;
  color: var(--ink);
  line-height: 1.35;
  max-width: 52rem; margin: 0 auto;
}
.testimonial-author { font-family: 'Plus Jakarta Sans', sans-serif; font-style: normal; font-size: .9rem; color: var(--ink-mute); margin-top: 1.5rem; text-transform: uppercase; letter-spacing: .15em; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--bg); padding: 4rem 0 2rem; margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { color: var(--bg); font-family: 'Fraunces', Georgia, serif; margin-bottom: 1rem; font-size: 1.05rem; }
.site-footer a { display: block; padding: .25rem 0; color: rgba(251,245,235,.7); font-size: .9rem; }
.site-footer a:hover { color: var(--white); }
.footer-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; color: rgba(251,245,235,.5); font-size: .82rem; flex-wrap: wrap; gap: 1rem; }

/* ---------- floating ---------- */
.floating-wa, .floating-admin {
  position: fixed; bottom: 1.5rem;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); z-index: 30; color: var(--white);
}
.floating-wa    { left: 1.5rem;  background: var(--sage); }
.floating-admin { right: 1.5rem; background: var(--ink); opacity: .4; transition: opacity .2s; width: 44px; height: 44px; }
.floating-admin:hover { opacity: 1; }

/* ---------- alerts ---------- */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .92rem; }
.alert-ok  { background: #E8F0E5; color: var(--sage); border-left: 3px solid var(--sage); }
.alert-err { background: #FDECEA; color: var(--brand-deep); border-left: 3px solid var(--brand); }
.alert-info{ background: var(--bg-alt); color: var(--ink-soft); border-left: 3px solid var(--ink); }

/* ---------- empty states ---------- */
.empty { text-align: center; padding: 4rem 1rem; color: var(--ink-mute); }
.empty h3 { font-family: 'Fraunces', Georgia, serif; color: var(--ink); margin: 1rem 0 .5rem; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; color: var(--ink-mute); padding: 1.5rem 0 .5rem; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span { margin: 0 .4rem; }

/* ---------- tables (checkout summary, admin lite) ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .8rem .5rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.table th { font-family: 'Fraunces', Georgia, serif; font-weight: 500; color: var(--ink-soft); }
.table tr:hover td { background: var(--bg); }

/* ---------- utility ---------- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.hidden      { display: none !important; }
.sr-only     { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- loading spinner ---------- */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms extra ---------- */
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 600px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

.price-note { color: var(--brand); font-size: .85rem; font-weight: 500; }
