/* Martvill-style home chrome for Shopeezyy */
:root {
  --mv-yellow: #f5c518;
  --mv-yellow-dark: #e0b100;
  --mv-text: #2b2f36;
  --mv-muted: #6b7280;
  --mv-border: #e8eaee;
  --mv-bg: #f7f8fa;
}

body.home-page {
  background: var(--mv-bg);
}

/* ===== Yellow top bar ===== */
.home-page .topbar {
  background: var(--mv-yellow);
  color: #1a1a1a;
  font-size: 13px;
  padding: 9px 0;
}
.home-page .topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.home-page .topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.home-page .topbar-left a,
.home-page .topbar-right a {
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.home-page .topbar-left a:hover,
.home-page .topbar-right a:hover { opacity: .75; }
.home-page .topbar svg { width: 14px; height: 14px; flex-shrink: 0; }
.home-page .topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.home-page .topbar select {
  background: transparent;
  border: 0;
  color: #1a1a1a;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

/* ===== White main header ===== */
.home-page .header-main {
  background: #fff;
  padding: 16px 0;
  border-bottom: 1px solid var(--mv-border);
}
.home-page .header-main .container {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 28px;
  align-items: center;
}
.home-page .header-main .brand { color: var(--mv-text); }
.home-page .header-main .brand-mark {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--mv-yellow); overflow: hidden;
}
.home-page .header-main .brand-text strong {
  font-size: 26px; color: var(--mv-text); text-transform: uppercase; letter-spacing: .02em;
}
.home-page .header-main .brand-text span {
  color: var(--mv-muted); font-size: 11px; letter-spacing: .02em; font-weight: 500; text-transform: none;
}

.home-page .search-form {
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--mv-border);
  background: #f3f4f6;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.home-page .search-form .search-ico {
  width: 48px; border: 0; background: transparent; color: var(--mv-muted);
  display: grid; place-items: center; flex-shrink: 0;
}
.home-page .search-form .search-ico svg { width: 18px; height: 18px; }
.home-page .search-form select { display: none; }
.home-page .search-form input {
  background: transparent; padding: 0 8px 0 0; font-size: 14px;
}
.home-page .search-form .filter-btn {
  width: 48px; border: 0; background: transparent; color: var(--mv-muted);
  display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
}
.home-page .search-form .filter-btn:hover { color: var(--mv-text); }
.home-page .search-form button[type="submit"] { display: none; }

.home-page .header-actions {
  display: flex; align-items: stretch; gap: 6px;
}
.home-page .header-action {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 72px;
  color: var(--mv-text);
  padding: 4px 8px;
  border-radius: 8px;
}
.home-page .header-action:hover { background: #f3f4f6; }
.home-page .header-action .ico {
  width: 28px; height: 28px; border: 0; position: relative;
  color: var(--mv-text);
}
.home-page .header-action .ico svg { width: 22px; height: 22px; }
.home-page .header-action .meta {
  display: block; text-align: center;
}
.home-page .header-action .meta small { display: none; }
.home-page .header-action .meta b {
  font-size: 12px; font-weight: 600; color: var(--mv-text);
}
.home-page .header-action .badge {
  background: var(--mv-yellow); color: #111; top: -6px; right: -8px;
}

/* ===== Categories + Hero band ===== */
.home-page .nav-bar { display: none; } /* replaced by home-stage */

.home-stage {
  padding: 18px 0 8px;
}
.home-stage .container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items: start;
}

.cat-panel {
  background: #fff;
  border: 1px solid var(--mv-border);
  border-radius: 10px;
  overflow: visible;
  position: relative;
  z-index: 20;
}
.cat-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid var(--mv-border);
  background: #fff;
  border-radius: 10px 10px 0 0;
}
.cat-panel-head svg { width: 18px; height: 18px; }
.cat-list { padding: 6px 0; }
.cat-item { position: relative; }
.cat-item > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: var(--mv-text);
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s;
}
.cat-item > a:hover,
.cat-item:hover > a {
  background: #fff8e1;
  color: #111;
}
.cat-item .cat-ico {
  width: 22px; height: 22px; display: grid; place-items: center; color: var(--mv-muted); flex-shrink: 0;
}
.cat-item .cat-ico svg { width: 18px; height: 18px; }
.cat-item .cat-arrow {
  margin-left: auto; color: #9ca3af; font-size: 14px;
}
.cat-item:hover .submenu,
.cat-item:focus-within .submenu { display: block; }

.submenu {
  display: none;
  position: absolute;
  left: calc(100% - 2px);
  top: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--mv-border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15,21,36,.12);
  padding: 10px 0;
  z-index: 40;
}
.submenu a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--mv-text);
}
.submenu a:hover { background: #fff8e1; color: #111; }
.submenu-title {
  padding: 6px 16px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--mv-muted);
}

.cat-see-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-top: 1px solid var(--mv-border);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--mv-text);
}
.cat-see-all:hover { color: #c9a000; }

.stage-right { min-width: 0; }
.stage-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 0 4px;
}
.stage-nav .links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.stage-nav .links a {
  padding: 8px 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--mv-text);
  border-radius: 6px;
}
.stage-nav .links a:hover,
.stage-nav .links a.active {
  color: #111;
}
.stage-nav .links a.active {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--mv-yellow);
}
.stage-nav .app-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  color: var(--mv-text);
  white-space: nowrap;
}
.stage-nav .app-link svg { width: 18px; height: 18px; color: var(--mv-yellow-dark); }

/* Hero beside categories */
.home-hero {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 420px;
  background: #efe6d8 center/cover no-repeat;
  color: #2b2f36;
}
.home-hero-slide {
  display: none;
  min-height: 420px;
  padding: 48px 48px 56px;
  background-size: cover;
  background-position: center right;
  position: relative;
}
.home-hero-slide.active { display: grid; align-items: center; }
.home-hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245,240,232,.96) 0%, rgba(245,240,232,.82) 42%, rgba(245,240,232,.15) 72%, transparent 100%);
}
.home-hero-content { position: relative; z-index: 1; max-width: 420px; }
.home-hero-content h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #4b5563;
}
.home-hero-content h1 em {
  font-style: normal;
  font-weight: 800;
  color: #374151;
  text-transform: uppercase;
}
.home-hero-content p {
  font-size: 18px;
  margin-bottom: 22px;
  color: #6b7280;
}
.home-hero-content p strong {
  color: #ec4899;
  font-weight: 800;
}
.home-hero .btn {
  background: var(--mv-yellow);
  color: #111;
  border-radius: 8px;
  padding: 12px 22px;
}
.home-hero .btn:hover { background: var(--mv-yellow-dark); }
.home-hero-controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.home-hero-controls button {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.9);
  cursor: pointer;
  display: grid; place-items: center;
  color: #374151;
}
.home-hero-controls button:hover { background: var(--mv-yellow); }

/* Keep lower sections on white cards feel */
.home-page .features-strip,
.home-page .section .container > .section-head,
.home-page .cat-grid,
.home-page .split-section .deal-card,
.home-page .bestsellers {
  /* inherited */
}
.home-page .section { background: transparent; }

@media (max-width: 1100px) {
  .home-page .header-main .container {
    grid-template-columns: 1fr;
  }
  .home-stage .container {
    grid-template-columns: 1fr;
  }
  .cat-panel { order: 2; }
  .stage-right { order: 1; }
  .submenu {
    position: static;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding-left: 40px;
    display: none;
  }
  .cat-item.open .submenu { display: block; }
}
@media (max-width: 760px) {
  .home-page .header-action .meta b { font-size: 11px; }
  .home-page .header-actions { gap: 0; }
  .stage-nav { flex-direction: column; align-items: flex-start; }
  .home-hero-slide { padding: 32px 24px 64px; min-height: 340px; }
}
