
.mkt-body { padding-bottom: 5rem; }
.mkt-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243,246,244,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mkt-nav__inner {
  display: flex; align-items: center; gap: .75rem; padding: .75rem 1.25rem; flex-wrap: wrap;
}
.mkt-search {
  flex: 1; min-width: 180px; display: flex; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden;
}
.mkt-search input {
  border: 0; outline: 0; flex: 1; padding: .55rem 1rem; background: transparent; font: inherit;
}
.mkt-search button {
  border: 0; background: var(--brand); color: #fff; padding: 0 1rem; font-size: 1.1rem;
}
.mkt-nav__actions { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.mkt-hero {
  padding: 2.5rem 0 2rem;
  background:
    linear-gradient(120deg, rgba(13,122,95,.12), transparent 50%),
    radial-gradient(600px 280px at 90% 10%, rgba(232,163,23,.18), transparent);
}
.mkt-hero h1 {
  font-family: var(--display); font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08; max-width: 16ch; margin: .35rem 0 1rem; letter-spacing: -.03em;
}
.mkt-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--brand); font-weight: 700; margin: 0; }
.mkt-lead { color: var(--muted); max-width: 36rem; }
.mkt-stats {
  display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.75rem;
}
.mkt-stats div { display: flex; flex-direction: column; }
.mkt-stats strong { font-family: var(--display); font-size: 1.35rem; }
.mkt-stats span { color: var(--muted); font-size: .8rem; }
.mkt-section-head {
  display: flex; justify-content: space-between; align-items: end; margin: 1.5rem 0 .85rem;
}
.mkt-section-head h2 { font-family: var(--display); font-size: 1.5rem; margin: 0; }
.mkt-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .85rem;
}
.mkt-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem;
  box-shadow: var(--shadow); color: inherit; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column; gap: .35rem; min-height: 160px;
}
.mkt-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15,28,24,.12); color: inherit; }
.mkt-card h3 { font-family: var(--display); font-size: 1.15rem; margin: 0; }
.mkt-card p { color: var(--muted); margin: 0; flex: 1; font-size: .92rem; }
.mkt-card__badge {
  width: 2.2rem; height: 2.2rem; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: .7rem; font-weight: 700;
}
.mkt-card__cta { color: var(--brand); font-weight: 600; font-size: .9rem; }
.mkt-how { margin: 2rem auto; }
.mkt-how h2 { font-family: var(--display); }
.mkt-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
}
@media (max-width: 700px) { .mkt-steps { grid-template-columns: 1fr; } }
.mkt-steps div {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; font-weight: 600;
}
.mkt-providers { display: flex; flex-direction: column; gap: .65rem; }
.mkt-provider {
  display: flex; align-items: center; gap: .85rem; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: .85rem 1rem;
}
.mkt-avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #d9efe7; color: var(--brand);
  display: grid; place-items: center; font-weight: 700;
}
.mkt-list { display: flex; flex-direction: column; gap: .65rem; margin-top: 1rem; }
.mkt-list__item {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem;
}

/* DallolAI */
.dai-fab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, #0d7a5f, #e8a317); color: #fff; font-weight: 800;
  box-shadow: 0 10px 28px rgba(13,122,95,.35); cursor: pointer;
}
.dai-panel {
  position: fixed; right: 1rem; bottom: 4.6rem; z-index: 61;
  width: min(380px, calc(100vw - 1.5rem)); height: min(520px, 70vh);
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15,28,24,.2); display: flex; flex-direction: column; overflow: hidden;
}
.dai-head {
  display: flex; justify-content: space-between; align-items: start;
  padding: .85rem 1rem; background: linear-gradient(135deg, #0d7a5f, #0f2e28); color: #e8fff7;
}
.dai-kicker { margin: 0; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.dai-head-actions button {
  border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 8px; padding: .2rem .5rem; margin-left: .25rem;
}
.dai-chips { display: flex; gap: .35rem; padding: .55rem .75rem; overflow-x: auto; border-bottom: 1px solid var(--line); }
.dai-chips button {
  border: 1px solid var(--line); background: #f7fbf9; border-radius: 999px; padding: .25rem .65rem; white-space: nowrap; font-size: .8rem;
}
.dai-body { flex: 1; overflow: auto; padding: .85rem; display: flex; flex-direction: column; gap: .5rem; }
.dai-hint { color: var(--muted); font-size: .9rem; }
.dai-msg {
  max-width: 90%; padding: .55rem .75rem; border-radius: 12px; background: #eef5f1; margin: 0; white-space: pre-wrap;
}
.dai-me { align-self: flex-end; background: #0d7a5f; color: #fff; }
.dai-hit { color: var(--brand); font-size: .9rem; }
.dai-foot { display: flex; gap: .4rem; padding: .65rem; border-top: 1px solid var(--line); }
.dai-foot input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: .55rem .85rem; font: inherit;
}
.dai-foot button {
  border: 0; border-radius: 999px; background: var(--brand); color: #fff; padding: .55rem .9rem; font-weight: 600;
}
html.dai-open { overflow: hidden; }

/* Theme */
html[data-theme="dark"] {
  --ink: #e8f2ed;
  --muted: #9bb0a6;
  --paper: #0b1512;
  --card: #13201b;
  --line: #24352e;
  --shadow: 0 12px 36px rgba(0,0,0,.35);
}
html[data-theme="dark"] body,
html[data-theme="dark"] .mkt-body {
  background:
    radial-gradient(1000px 480px at 10% -10%, rgba(20,150,122,.16), transparent 55%),
    linear-gradient(180deg, #0b1512 0%, #0f1c18 50%, #0b1512 100%);
  color: var(--ink);
}
html[data-theme="dark"] .mkt-nav,
html[data-theme="dark"] .mkt-card,
html[data-theme="dark"] .mkt-provider,
html[data-theme="dark"] .mkt-list__item,
html[data-theme="dark"] .mkt-steps div,
html[data-theme="dark"] .mkt-tip,
html[data-theme="dark"] .mkt-search,
html[data-theme="dark"] .dai-panel,
html[data-theme="dark"] .auth-card {
  background: var(--card);
  border-color: var(--line);
}
html[data-theme="dark"] .mkt-search input,
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .dai-foot input {
  background: #0f1c18;
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="dark"] .btn-ghost {
  background: rgba(255,255,255,.06);
  color: var(--ink) !important;
  border-color: var(--line);
}
html[data-theme="dark"] .site-footer { background: #07110e; color: #cfe0d8; }

.mkt-userchip {
  font-size: .8rem; padding: .25rem .65rem; border-radius: 999px;
  background: rgba(13,122,95,.12); color: var(--brand); font-weight: 600;
}
.mkt-cart-count {
  display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem;
  border-radius: 999px; background: var(--accent); color: #1a1200; font-size: .7rem; font-weight: 700;
}
.mkt-cart-drawer {
  position: absolute; right: 1rem; top: calc(100% + .35rem); width: min(320px, calc(100vw - 2rem));
  background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 1rem; z-index: 50;
}
.mkt-nav { position: sticky; }
.mkt-search-wrap { position: relative; flex: 1; min-width: 180px; }
.mkt-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + .35rem); z-index: 55;
  background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); max-height: 360px; overflow: auto; padding: .4rem;
}
.mkt-suggest__label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .4rem .6rem; }
.mkt-suggest__item {
  display: flex; justify-content: space-between; gap: .5rem; padding: .55rem .65rem;
  border-radius: 10px; color: inherit; text-decoration: none;
}
.mkt-suggest__item:hover { background: rgba(13,122,95,.1); }
.mkt-suggest__item small { color: var(--muted); }
.mkt-suggest__user { padding: .55rem .65rem; font-weight: 600; border-bottom: 1px solid var(--line); margin-bottom: .25rem; }
.mkt-suggest__empty, .mkt-suggest__hint { padding: .55rem .65rem; color: var(--muted); font-size: .9rem; }

/* Slider — full-bleed card, image always visible */
.mkt-slider { position: relative; overflow: hidden; min-height: clamp(420px, 78vh, 720px); width: 100%; }
.mkt-slides { position: relative; min-height: inherit; width: 100%; }
.mkt-slide {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(8,20,16,.72), rgba(8,20,16,.28)), var(--bg) center/cover no-repeat;
  color: #f4fffa; transition: opacity .8s ease, transform 1.1s ease; transform: scale(1.03);
  display: flex; align-items: end; padding: 2.5rem 0 3.5rem;
  width: 100%; min-height: inherit;
}
.mkt-slide.is-active { opacity: 1; pointer-events: auto; transform: scale(1); position: relative; }
.mkt-slide h1 {
  font-family: var(--display); font-size: clamp(2.1rem, 5.5vw, 3.8rem);
  line-height: 1.05; max-width: 14ch; margin: .35rem 0 1rem; letter-spacing: -.03em; color: #fff;
}
.mkt-slide .mkt-lead { color: rgba(255,255,255,.82); }
.mkt-slide .mkt-kicker { color: #b7f0d8; }
.mkt-slide .btn-ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); color: #fff !important; }
.mkt-slide-dots {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
  display: flex; gap: .4rem; z-index: 2;
}
.mkt-slide-dots button {
  width: .55rem; height: .55rem; border-radius: 999px; border: 0; background: rgba(255,255,255,.4); padding: 0;
}
.mkt-slide-dots button.is-active { background: #fff; width: 1.4rem; }

.mkt-card__media {
  border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; margin: -.25rem -.15rem .35rem;
  background: #d9efe7;
}
.mkt-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.mkt-card:hover .mkt-card__media img { transform: scale(1.06); }
.mkt-hero-img { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.mkt-hero-img img { width: 100%; display: block; }

.mkt-tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
@media (max-width: 800px) { .mkt-tips-grid { grid-template-columns: 1fr; } }
.mkt-tip {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
}
.mkt-tip img { width: 100%; height: 140px; object-fit: cover; display: block; }
.mkt-tip p { margin: 0; padding: .9rem 1rem 1.1rem; font-weight: 500; }

.site-footer {
  margin-top: 3rem; padding: 2.5rem 0 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(13,122,95,.08));
  border-top: 1px solid var(--line);
}
.site-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; padding-bottom: 1.5rem;
}
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer a { display: block; color: var(--muted); margin: .25rem 0; text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer__bar {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }

@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.dai-fab { animation: floaty 3.2s ease-in-out infinite; }

/* Reveal: visible by default so images never stay blank without JS */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal:not(.is-in) { opacity: 0.001; transform: translateY(12px); }
  .reveal.is-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
}

/* Category hero + slider */
.mkt-cat-hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.5rem; align-items: start;
}
@media (max-width: 900px) {
  .mkt-cat-hero { grid-template-columns: 1fr; }
}
.mkt-cat-slider {
  width: 100%;
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 4/3; background: #d9efe7; box-shadow: var(--shadow);
}
.mkt-cat-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
}
.mkt-cat-slide.is-active { opacity: 1; position: relative; }
.mkt-cat-slide img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 240px; }
.mkt-cat-dots {
  position: absolute; left: 50%; bottom: .75rem; transform: translateX(-50%);
  display: flex; gap: .35rem; z-index: 2;
}
.mkt-cat-dots button {
  width: .5rem; height: .5rem; border: 0; border-radius: 999px; background: rgba(255,255,255,.55); padding: 0;
}
.mkt-cat-dots button.is-active { width: 1.2rem; background: #fff; }
.mkt-cat-copy { min-width: 0; }

/* Cart side panel */
.mkt-cart-backdrop {
  position: fixed; inset: 0; background: rgba(8,16,12,.45); z-index: 80;
}
.mkt-cart-panel {
  position: fixed; top: 0; right: 0; z-index: 90;
  width: min(360px, 100vw); height: 100vh; height: 100dvh;
  background: var(--card, #fff); border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px rgba(0,0,0,.18);
  padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .75rem;
}
.mkt-cart-panel__head { display: flex; justify-content: space-between; align-items: center; }
.mkt-cart-panel__body { flex: 1; overflow: auto; }
.mkt-cart-line {
  display: block; padding: .65rem .2rem; border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
html.cart-open { overflow: hidden; }

/* Footer brand */
.site-footer__brand {
  display: flex; align-items: center; gap: .65rem; margin-bottom: .35rem !important;
}
.site-footer__brand img { max-height: 36px; width: auto; object-fit: contain; }

/* Responsive nav */
.mkt-burger { display: none; }
@media (max-width: 960px) {
  .mkt-nav__inner { flex-wrap: wrap; }
  .mkt-burger { display: inline-flex; order: 2; margin-left: auto; }
  .brand-mark { order: 1; }
  .mkt-search-wrap { order: 3; flex: 1 1 100%; }
  .mkt-nav__actions {
    order: 4; display: none; width: 100%;
    flex-wrap: wrap; gap: .45rem; padding: .35rem 0 .15rem;
  }
  .mkt-nav__actions.is-open { display: flex; }
  .mkt-hide-sm { display: none !important; }
  .mkt-userchip { max-width: 100%; }
  .mkt-slide { padding: 2rem 0 3rem; align-items: center; }
  .mkt-slide h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .mkt-tips-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mkt-nav__actions .btn { font-size: .8rem; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn-brand, .cta-row .btn-ghost { text-align: center; }
}
