/* Urban Flower — demo store styles */
:root {
  --pink: #e05c79;
  --pink-soft: #ffd9e0;
  --green: #5f8e58;
  --ink: #2c2630;
  --muted: #8a8392;
  --bg: #fffdfb;
  --card: #ffffff;
  --line: #f0e6ea;
  --shadow: 0 10px 30px rgba(80, 40, 60, 0.08);
  --radius: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
h1, h2, h3, h4 { font-family: 'Georgia', 'Times New Roman', serif; font-weight: 600; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.section { margin: 64px 0; }
.section h2 { font-size: 1.9rem; margin: 0 0 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pink); color: #fff; border: none; cursor: pointer;
  padding: 11px 20px; border-radius: 40px; font-size: 0.95rem; font-weight: 600;
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
}
.btn:hover { background: #cd4868; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(224,92,121,.3); }
.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 30px; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; margin-top: 14px; }
.link-btn { background: none; border: none; color: var(--muted); cursor: pointer; padding: 0; font-size: .85rem; text-decoration: underline; }
.link-center { display: block; text-align: center; margin-top: 12px; color: var(--muted); }

/* Header */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(255,253,251,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { font-family: Georgia, serif; font-size: 1.4rem; font-weight: 700; letter-spacing: -.3px; }
.brand span { color: var(--pink); }
.brand-mark { color: var(--pink); margin-right: 2px; }
.brand-light { color: #fff; }
.brand-light span { color: var(--pink-soft); }
.nav-links { display: flex; gap: 22px; margin-left: 12px; flex: 1; }
.nav-links a { color: var(--ink); font-size: .95rem; font-weight: 500; opacity: .82; }
.nav-links a:hover { opacity: 1; color: var(--pink); }
.cart-btn { position: relative; font-size: 1.35rem; }
.cart-count {
  position: absolute; top: -7px; right: -10px; background: var(--pink); color: #fff;
  font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 10px;
  display: none; align-items: center; justify-content: center; padding: 0 5px; font-family: system-ui;
}

/* Hero */
.hero { background: linear-gradient(135deg, #fff5f7, #ffe8ef 60%, #f3ecff); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; padding: 64px 0 56px; }
.hero h1 { font-size: 3.1rem; margin: 0 0 16px; letter-spacing: -1px; }
.hero p { font-size: 1.12rem; color: #6b6470; max-width: 460px; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; box-shadow: var(--shadow); }
.hero-img { position: relative; }
.hero-img img { border-radius: 24px; box-shadow: var(--shadow); width: 100%; }
.hero-pill { position: absolute; bottom: 18px; left: -14px; background: #fff; border-radius: 14px; padding: 10px 16px; box-shadow: var(--shadow); font-size: .9rem; font-weight: 600; }
.hero-pill small { display: block; color: var(--muted); font-weight: 400; }

/* Trust bar */
.trust { display: flex; justify-content: space-around; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-bottom: 1px solid var(--line); text-align: center; }
.trust div { font-size: .92rem; color: #5a535f; }
.trust b { display: block; color: var(--ink); }

/* Grid + cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 1; overflow: hidden; background: #faf3f5; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; letter-spacing: .3px; text-transform: uppercase; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .8px; color: var(--pink); font-weight: 700; }
.card-title { font-family: Georgia, serif; font-size: 1.08rem; font-weight: 600; }
.card-title:hover { color: var(--pink); }
.stars { font-size: .82rem; color: #f0b429; display: flex; align-items: center; gap: 6px; }
.star-dim { color: #e6ddd0; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.price { font-weight: 700; font-size: 1.15rem; font-family: Georgia, serif; }

/* Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-tile { position: relative; aspect-ratio: 1; border-radius: var(--radius); background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 18px; overflow: hidden; }
.cat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.45)); }
.cat-tile span { position: relative; z-index: 1; color: #fff; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 600; }
.cat-tile:hover { box-shadow: var(--shadow); }

/* Section header */
.sec-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.sec-head a { color: var(--pink); font-weight: 600; }

/* Filters (shop) */
.shop-head { padding: 40px 0 10px; }
.shop-head h1 { font-size: 2.4rem; margin: 0 0 6px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.filters button { background: #fff; border: 1px solid var(--line); color: #5a535f; padding: 8px 18px; border-radius: 30px; cursor: pointer; font-size: .9rem; font-weight: 500; transition: all .12s; }
.filters button:hover { border-color: var(--pink); color: var(--pink); }
.filters button.active { background: var(--pink); border-color: var(--pink); color: #fff; }
.result-count { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }

/* Product detail */
.crumbs { color: var(--muted); font-size: .88rem; margin: 24px 0; }
.crumbs a:hover { color: var(--pink); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 30px; }
.pd-img { position: relative; border-radius: 20px; overflow: hidden; background: #faf3f5; box-shadow: var(--shadow); }
.pd-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pd-info h1 { font-size: 2.3rem; margin: 6px 0 10px; }
.pd-price { font-size: 1.9rem; font-weight: 700; font-family: Georgia, serif; margin: 16px 0; color: var(--pink); }
.pd-desc { color: #5a535f; font-size: 1.02rem; }
.pd-perks { list-style: none; padding: 0; margin: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-perks li { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.pd-perks li:last-child { border-bottom: none; }
.pd-actions { display: flex; gap: 14px; align-items: center; margin-top: 8px; }

/* Qty stepper */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 30px; overflow: hidden; }
.qty button { background: #fff; border: none; width: 40px; height: 44px; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--pink-soft); }
.qty input { width: 48px; height: 44px; border: none; text-align: center; font-size: 1rem; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm button { width: 32px; height: 34px; font-size: 1rem; }
.qty-sm span { min-width: 30px; text-align: center; font-weight: 600; }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1.6fr .9fr; gap: 36px; align-items: start; margin: 20px 0 60px; }
.cart-line { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 90px; height: 90px; object-fit: cover; border-radius: 12px; }
.cl-name { font-family: Georgia, serif; font-size: 1.08rem; font-weight: 600; }
.cl-info { display: flex; flex-direction: column; gap: 3px; }
.cl-price { font-weight: 700; font-family: Georgia, serif; min-width: 70px; text-align: right; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: sticky; top: 90px; }
.summary h3 { margin: 0 0 16px; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .95rem; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.2rem; font-weight: 700; font-family: Georgia, serif; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; margin: 24px 0 60px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: .95rem; font-family: inherit; }
.field input:focus, .field select:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(224,92,121,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.form-card h3 { margin: 0 0 18px; }
.form-card + .form-card { margin-top: 20px; }

/* Empty / success states */
.empty { text-align: center; padding: 70px 20px; }
.empty-emoji { font-size: 3.5rem; margin-bottom: 10px; }
.empty h2 { margin: 0 0 8px; }
.empty .btn { margin-top: 20px; }
.success p { font-size: 1.05rem; }

/* Newsletter strip */
.cta-strip { background: linear-gradient(135deg, var(--pink), #b8456a); color: #fff; border-radius: 22px; padding: 46px; text-align: center; }
.cta-strip h2 { color: #fff; font-size: 2rem; margin: 0 0 8px; }
.cta-strip p { opacity: .9; margin: 0 0 22px; }
.cta-strip .btn { background: #fff; color: var(--pink); }
.cta-strip .btn:hover { background: #fff5f7; }

/* Footer */
footer.site { background: #2c2630; color: #d8cfdc; margin-top: 70px; padding: 50px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 30px; }
footer.site h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
footer.site a { display: block; color: #c5bccb; font-size: .92rem; padding: 4px 0; }
footer.site a:hover { color: #fff; }
footer.site .muted { color: #9b91a6; }
.news { display: flex; gap: 8px; margin-top: 10px; }
.news input { flex: 1; padding: 10px 12px; border: none; border-radius: 8px; font-family: inherit; }
.news button { background: var(--pink); color: #fff; border: none; padding: 0 16px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.copyright { margin-top: 36px; padding-top: 20px; border-top: 1px solid #443c4c; font-size: .85rem; color: #9b91a6; text-align: center; }

/* Content pages (about / delivery / contact) */
.page-hero { background: linear-gradient(135deg, #fff5f7, #ffe8ef 60%, #f3ecff); padding: 30px 0 48px; }
.page-hero .crumbs { margin: 6px 0 22px; }
.page-hero h1 { font-size: 2.7rem; margin: 0 0 14px; letter-spacing: -.5px; }
.lede { font-size: 1.18rem; color: #6b6470; max-width: 620px; margin: 0; }
.prose { max-width: 760px; margin: 50px auto; }
.prose h2 { font-size: 1.6rem; margin: 36px 0 12px; }
.prose p { color: #5a535f; font-size: 1.04rem; margin: 0 0 16px; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.value-card h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.value-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.value-ic { font-size: 2rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 20px; box-shadow: var(--shadow); }
.stat-row b { display: block; font-family: Georgia, serif; font-size: 2rem; color: var(--pink); }
.stat-row span { color: var(--muted); font-size: .9rem; }
.info-table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; }
.info-table th, .info-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.info-table th { font-weight: 700; color: var(--ink); background: #faf3f5; }
.info-table td { color: #5a535f; }
.field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: .95rem; font-family: inherit; resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(224,92,121,.12); }
.contact-info h4 { margin: 18px 0 4px; }
.contact-info p { margin: 0 0 6px; color: #5a535f; }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 30px; font-size: .92rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 100; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 980px) {
  .grid, .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .product-detail, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid, .cat-tiles { grid-template-columns: 1fr 1fr; gap: 14px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 64px 1fr; grid-template-areas: 'img info' 'img qty' 'price price'; }
  .cart-line img { width: 64px; height: 64px; }
  .cta-strip { padding: 30px 20px; }
}
