/* PREMART — Public Marketing Homepage Stylesheet */

:root {
  --mk-ink: #1a1330;
  --mk-violet-900: #2e1065;
  --mk-violet-700: #4c1d95;
  --mk-violet-600: #6d28d9;
  --mk-violet-400: #a78bfa;
  --mk-violet-100: #ede9fe;
  --mk-gold-600: #d4a40f;
  --mk-gold-500: #f5c518;
  --mk-gold-300: #fde047;
  --mk-cream: #fbf9f5;
  --mk-paper: #ffffff;
  --mk-text-soft: #5d5573;
  --mk-border: #e8e3f3;
  --mk-radius: 20px;
  --mk-font-display: 'Fraunces', Georgia, serif;
  --mk-font-body: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.mk-body {
  font-family: var(--mk-font-body);
  background: var(--mk-cream);
  color: var(--mk-ink);
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.mk-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.mk-nav {
  position: sticky; top: 0; z-index: 500;
  background: rgba(251,249,245,0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mk-border);
}
.mk-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }

/* Desktop search bar, front and center in the header (search-first
   pattern) — hidden below 980px in favor of the compact bar shown on
   its own row underneath the logo row. */
.mk-nav-search {
  flex: 1; max-width: 560px; display: flex; align-items: center; gap: 10px;
  background: var(--mk-cream); border: 1.5px solid var(--mk-border); border-radius: 10px;
  padding: 10px 16px; margin: 0 12px;
}
.mk-nav-search i { color: var(--mk-violet-600); font-size: 1rem; }
.mk-nav-search input { flex: 1; border: none; background: transparent; outline: none; font-size: 0.9rem; color: var(--mk-ink); font-family: inherit; }
.mk-nav-search button { display: none; }
.mk-nav-search-mobile { display: none; max-width: none; margin: 0 0 10px; }

/* Circular category icon strip under the header (desktop) */
.mk-cat-strip-wrap { border-top: 1px solid var(--mk-border); background: var(--mk-paper); }
.mk-cat-strip { display: flex; gap: 28px; overflow-x: auto; padding: 14px 4px; }
.mk-cat-strip::-webkit-scrollbar { display: none; }
.mk-cat-strip-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0;
  text-decoration: none; color: var(--mk-ink); width: 76px; text-align: center;
}
.mk-cat-strip-item img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--mk-border); }
.mk-cat-strip-item .mk-cat-strip-emoji {
  width: 52px; height: 52px; border-radius: 50%; background: var(--mk-violet-100);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.mk-cat-strip-item span { font-size: 0.74rem; font-weight: 700; line-height: 1.2; }
.mk-cat-strip-item:hover img, .mk-cat-strip-item:hover .mk-cat-strip-emoji { border-color: var(--mk-violet-600); }

.mk-nav-brand { display: flex; align-items: center; gap: 10px; }
.mk-nav-brand img { height: 38px; width: auto; }
.mk-nav-brand span { font-family: var(--mk-font-display); font-weight: 600; font-size: 1.3rem; color: var(--mk-violet-900); }
.mk-nav-links { display: flex; align-items: center; gap: 32px; }
.mk-nav-links a { font-size: 0.92rem; font-weight: 600; color: var(--mk-text-soft); transition: color 0.2s; }
.mk-nav-links a:hover { color: var(--mk-violet-700); }
.mk-nav-cta { display: flex; align-items: center; gap: 10px; }
.mk-menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--mk-violet-900); }

.mk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 30px; font-weight: 700; font-size: 0.88rem;
  border: 1.5px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.mk-btn:active { transform: scale(0.97); }
.mk-btn-primary { background: var(--mk-violet-700); color: #fff; box-shadow: 0 6px 18px rgba(76,29,149,0.28); }
.mk-btn-primary:hover { background: var(--mk-violet-900); box-shadow: 0 8px 22px rgba(76,29,149,0.36); }
.mk-btn-gold { background: var(--mk-gold-500); color: #2b2206; box-shadow: 0 6px 18px rgba(212,164,15,0.3); }
.mk-btn-gold:hover { background: var(--mk-gold-600); }
.mk-btn-outline { background: transparent; border-color: var(--mk-violet-700); color: var(--mk-violet-700); }
.mk-btn-outline:hover { background: var(--mk-violet-100); }
.mk-btn-ghost-light { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); color: #fff; }
.mk-btn-ghost-light:hover { background: rgba(255,255,255,0.25); }
.mk-btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.mk-btn-block { width: 100%; }

.mk-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--mk-violet-900) 0%, var(--mk-violet-700) 55%, var(--mk-violet-600) 100%);
}
.mk-hero-noise {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(circle at 15% 20%, rgba(245,197,24,0.18), transparent 40%),
                     radial-gradient(circle at 85% 75%, rgba(167,139,250,0.25), transparent 45%);
}

/* The admin-managed banner carousel IS the hero visual — full width,
   generously tall, with its own title/subtitle/button overlaid large. */
.mk-hero-banner-scroll { position: relative; z-index: 2; }
.mk-hero-banner-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.mk-hero-banner-track::-webkit-scrollbar { display: none; }
.mk-hero-banner-slide {
  min-width: 100%; scroll-snap-align: start; flex-shrink: 0;
  display: flex; align-items: center; min-height: 460px;
  padding: 40px max(24px, calc((100% - 1180px) / 2 + 24px));
  text-decoration: none;
}
.mk-hero-banner-content { max-width: 620px; position: relative; z-index: 1; }
.mk-hero-banner-content h1 {
  font-family: var(--mk-font-display); font-weight: 600; color: #fff;
  font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.1; letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.mk-hero-banner-content p {
  color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 24px;
}
.mk-hero-banner-content .mk-btn { pointer-events: none; }

.mk-banner-dots { display: flex; gap: 5px; justify-content: center; padding: 10px 0 4px; position: relative; z-index: 2; }
.mk-banner-dot { width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.3); transition: all 0.3s; }
.mk-banner-dot.active { width: 16px; background: var(--mk-gold-500); }

/* Fallback hero content shown only when no banners are configured yet */
.mk-hero-fallback { position: relative; z-index: 2; padding: 80px 0 40px; text-align: center; }
.mk-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,197,24,0.16); border: 1px solid rgba(245,197,24,0.4);
  color: var(--mk-gold-300); font-size: 0.78rem; font-weight: 700;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 22px;
}
.mk-hero-fallback h1 {
  font-family: var(--mk-font-display); font-weight: 600; color: #fff;
  font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.mk-hero-fallback p.mk-lead { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

.mk-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.mk-trust-strip { background: var(--mk-paper); border-bottom: 1px solid var(--mk-border); padding: 22px 0; }
.mk-trust-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mk-trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; font-weight: 700; color: var(--mk-text-soft); }
.mk-trust-item i { color: var(--mk-violet-600); font-size: 1.1rem; }

.mk-section { padding: 88px 0; }
.mk-section-alt { background: var(--mk-violet-100); }
.mk-section-head { max-width: 620px; margin-bottom: 48px; }
.mk-section-eyebrow { font-size: 0.78rem; font-weight: 800; color: var(--mk-violet-600); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.mk-section-head h2 { font-family: var(--mk-font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; color: var(--mk-ink); margin-bottom: 14px; }
.mk-section-head p { color: var(--mk-text-soft); font-size: 1.02rem; }
.mk-section-head.mk-center { margin-left: auto; margin-right: auto; text-align: center; }

.mk-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mk-path-card { border-radius: var(--mk-radius); padding: 40px; position: relative; overflow: hidden; }
.mk-path-card.mk-path-member { background: linear-gradient(155deg, var(--mk-violet-700), var(--mk-violet-600)); color: #fff; }
.mk-path-card.mk-path-seller { background: linear-gradient(155deg, #92660a, var(--mk-gold-600)); color: #2b2206; }
.mk-path-card .mk-path-icon { font-size: 2.4rem; margin-bottom: 18px; display: block; }
.mk-path-card h3 { font-family: var(--mk-font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 10px; }
.mk-path-card p { font-size: 0.92rem; opacity: 0.88; margin-bottom: 24px; max-width: 320px; }
.mk-path-card ul { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.mk-path-card li { font-size: 0.86rem; display: flex; align-items: center; gap: 10px; opacity: 0.92; }
.mk-path-card li i { font-size: 0.9rem; }
.mk-path-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.mk-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mk-feature-card { background: var(--mk-paper); border: 1px solid var(--mk-border); border-radius: 18px; padding: 28px; transition: transform 0.2s, box-shadow 0.2s; }
.mk-feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(76,29,149,0.1); }
.mk-feature-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 16px; background: var(--mk-violet-100); color: var(--mk-violet-700); }
.mk-feature-card h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; color: var(--mk-ink); }
.mk-feature-card p { font-size: 0.86rem; color: var(--mk-text-soft); }

.mk-cat-tile-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.mk-cat-tile {
  position: relative; display: flex; align-items: flex-end; aspect-ratio: 1;
  border-radius: 18px; overflow: hidden; background: linear-gradient(150deg, var(--mk-violet-100), #fff);
  box-shadow: 0 6px 18px rgba(76,29,149,0.08); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mk-cat-tile:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(76,29,149,0.18); }
.mk-cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mk-cat-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,19,48,0.72) 0%, rgba(26,19,48,0.15) 55%, transparent 100%);
}
.mk-cat-tile-emoji { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.mk-cat-tile-label {
  position: relative; z-index: 1; width: 100%; padding: 14px 12px 12px;
  color: #fff; font-size: 0.85rem; font-weight: 800; text-align: center; line-height: 1.2;
}

.mk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.mk-step-num { font-family: var(--mk-font-display); font-size: 2.6rem; font-weight: 600; color: var(--mk-violet-400); margin-bottom: 12px; line-height: 1; }
.mk-step h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; color: var(--mk-ink); }
.mk-step p { font-size: 0.86rem; color: var(--mk-text-soft); }

.mk-cta-band { background: linear-gradient(135deg, var(--mk-violet-900), var(--mk-violet-700)); border-radius: 28px; padding: 56px; text-align: center; position: relative; overflow: hidden; }
.mk-cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(245,197,24,0.25), transparent 50%); }
.mk-cta-band h2 { font-family: var(--mk-font-display); color: #fff; font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 600; margin-bottom: 14px; position: relative; }
.mk-cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 28px; position: relative; }
.mk-cta-band .mk-hero-actions { justify-content: center; position: relative; }

.mk-footer { background: var(--mk-ink); color: rgba(255,255,255,0.7); padding: 56px 0 28px; }
.mk-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.mk-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mk-footer-brand img { height: 32px; }
.mk-footer-brand span { font-family: var(--mk-font-display); color: #fff; font-size: 1.15rem; font-weight: 600; }
.mk-footer p.mk-footer-tag { font-size: 0.86rem; max-width: 260px; }
.mk-footer h5 { color: #fff; font-size: 0.84rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.mk-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.mk-footer a { font-size: 0.86rem; transition: color 0.2s; }
.mk-footer a:hover { color: var(--mk-gold-500); }
.mk-footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; justify-content: space-between; font-size: 0.78rem; flex-wrap: wrap; gap: 10px; }

/* Mobile dropdown menu (toggled by .mk-menu-toggle) */
.mk-mobile-menu {
  display: none; flex-direction: column; background: var(--mk-paper);
  border-top: 1px solid var(--mk-border); padding: 8px 24px 20px;
  max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
}
.mk-mobile-menu.open { display: flex; max-height: 400px; }
.mk-mobile-menu a { padding: 12px 0; font-size: 0.95rem; font-weight: 700; color: var(--mk-ink); border-bottom: 1px solid var(--mk-border); }
.mk-mobile-menu-cta { display: flex; gap: 10px; margin-top: 14px; }
.mk-mobile-menu-cta .mk-btn { flex: 1; }

@media (max-width: 980px) {
  .mk-nav-links { display: none; }
  .mk-nav-cta { display: none; }
  .mk-nav-search { display: none; }
  .mk-nav-search-mobile { display: flex; }
  .mk-cat-strip-wrap { display: none; }
  .mk-menu-toggle { display: block; }
  .mk-hero-banner-slide { min-height: 320px; padding: 28px 24px; }
  .mk-cat-tile-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .mk-paths { grid-template-columns: 1fr; }
  .mk-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .mk-steps { grid-template-columns: 1fr; gap: 24px; }
  .mk-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .mk-container { padding: 0 18px; }
  .mk-hero-banner-slide { min-height: 260px; padding: 22px 18px; }
  .mk-hero-banner-content h1 { font-size: 1.6rem; }
  .mk-hero-fallback { padding: 56px 0 32px; }
  .mk-hero-fallback h1 { font-size: 1.7rem; }
  .mk-cat-tile-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .mk-cat-tile-label { font-size: 0.72rem; padding: 10px 6px 8px; }
  .mk-feature-grid { grid-template-columns: 1fr; }
  .mk-section { padding: 56px 0; }
  .mk-cta-band { padding: 36px 22px; }
  .mk-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .mk-feature-card, .mk-cat-tile { transition: none; }
}

a:focus-visible, button:focus-visible, .mk-btn:focus-visible {
  outline: 2.5px solid var(--mk-gold-500); outline-offset: 2px;
}


/* =========================================================
   TRENDING PRODUCTS SHOWCASE — real catalogue products shown to
   logged-out visitors as a teaser; clicking any leads to registration
   since product detail pages require a member account.
   ========================================================= */
.mk-product-carousel {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 4px 14px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.mk-product-carousel::-webkit-scrollbar { display: none; }
.mk-product-card {
  min-width: 168px; max-width: 168px; flex-shrink: 0; scroll-snap-align: start;
  background: var(--mk-paper); border: 1px solid var(--mk-border); border-radius: 16px;
  overflow: hidden; text-decoration: none; color: var(--mk-ink); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.mk-product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(76,29,149,0.16); border-color: var(--mk-violet-400); }
.mk-product-card .mk-product-img-wrap { position: relative; height: 130px; background: var(--mk-violet-100); overflow: hidden; }
.mk-product-card .mk-product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.mk-product-card:hover .mk-product-img-wrap img { transform: scale(1.08); }
.mk-product-discount-badge {
  position: absolute; top: 8px; left: 8px; background: #16a34a; color: #fff;
  font-size: 0.66rem; font-weight: 800; padding: 2px 6px; border-radius: 4px;
}
.mk-product-body { padding: 10px 12px 14px; }
.mk-product-body .mk-product-name { font-size: 0.82rem; font-weight: 700; margin-bottom: 4px; height: 2.2em; overflow: hidden; }
.mk-product-body .mk-product-rating { display: inline-flex; align-items: center; gap: 3px; background: #16a34a; color: #fff; font-size: 0.65rem; font-weight: 800; padding: 1px 5px; border-radius: 4px; margin-bottom: 4px; }
.mk-product-body .mk-product-price { font-weight: 900; font-size: 0.95rem; color: var(--mk-ink); }
.mk-product-body .mk-product-mrp { font-size: 0.75rem; color: var(--mk-text-soft); text-decoration: line-through; margin-left: 4px; }
.mk-product-body .mk-product-pp { display: inline-block; background: var(--mk-gold-500); color: #2b2206; font-size: 0.62rem; font-weight: 800; padding: 1px 5px; border-radius: 4px; margin-left: 4px; }
