/* ============================================================
   MB Enterprise — Main Stylesheet
   Forest Green & Gold Theme
   ============================================================ */

:root {
  --primary:       #2d6a4f;
  --primary-dark:  #1b4332;
  --primary-light: #40916c;
  --primary-pale:  #d8f3dc;
  --gold:          #b5924c;
  --gold-light:    #f5e6c8;
  --cream:         #faf8f3;
  --dark:          #1a1a1a;
  --mid:           #4a6357;
  --border:        #d4e8dc;
  --radius:        12px;
  --shadow:        0 4px 20px rgba(45,106,79,.1);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ── TOP BAR ─────────────────────────────────────────────── */
.top-bar {
  background: var(--primary-dark);
  color: #b7e4c7;
  font-size: .76rem;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: .3px;
  line-height: 1.6;
}
.top-bar a { color: #b7e4c7; text-decoration: none; }
.top-bar a:hover { color: #fff; }

/* ── HEADER ──────────────────────────────────────────────── */
header {
  background: #fff;
  border-bottom: 1.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(45,106,79,.08);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 2px 8px rgba(45,106,79,.3);
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
  line-height: 1.2;
  color: var(--primary-dark);
}

.logo-text span {
  font-size: .68rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--gold);
  font-weight: 600;
  display: block;
  letter-spacing: 2px;
  text-transform: uppercase;
}


.search-wrap { flex: 1; position: relative; }
.search-wrap form { display: flex; position: relative; }

.header-call-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff;
  border-radius: 30px; padding: 10px 20px;
  font-size: .84rem; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
  transition: background .2s;
}
.header-call-btn:hover { background: var(--primary-dark); }

.search-wrap input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 30px;
  padding: 10px 20px 10px 44px;
  font-family: inherit;
  font-size: .88rem;
  background: var(--cream);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,.12);
}
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--primary-light); font-size: 1.05rem;
  pointer-events: none;
}


/* ── NAV BAR ─────────────────────────────────────────────── */
.nav-bar { background: #fff; border-bottom: 1.5px solid var(--border); }
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }

.nav-item {
  padding: 13px 16px;
  font-size: .83rem; font-weight: 500; color: var(--mid);
  white-space: nowrap; cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: color .2s, border-color .2s;
  display: inline-block;
}
.nav-item:hover, .nav-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ── HERO BANNER ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 55%, #40916c 100%);
  color: #fff;
  min-height: 390px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero::after {
  content: '🛒';
  position: absolute; right: 80px; bottom: -10px;
  font-size: 14rem; opacity: .06; line-height: 1;
  pointer-events: none;
}

.hero-inner {
  max-width: 1280px; margin: 0 auto; padding: 64px 24px;
  display: flex; align-items: center; gap: 60px;
  width: 100%; position: relative;
}
.hero-text { flex: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(181,146,76,.2);
  border: 1px solid rgba(181,146,76,.4);
  border-radius: 20px; padding: 5px 16px;
  font-size: .75rem; letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 18px; color: #f5e6c8;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.18; margin-bottom: 16px;
}
.hero h1 em { color: #b7e4c7; font-style: normal; }

.hero p { font-size: .95rem; opacity: .85; max-width: 460px; margin-bottom: 30px; line-height: 1.7; }

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-outline {
  border: 2px solid rgba(255,255,255,.65); color: #fff;
  border-radius: 30px; padding: 12px 28px;
  font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: border-color .2s, background .2s;
  display: inline-block;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.12); }

.hero-image {
  flex-shrink: 0; font-size: 9rem; line-height: 1;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.25));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.hero-dots {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.hero-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.35); cursor: pointer;
  transition: background .2s, transform .2s;
}
.hero-dots span.active { background: #fff; transform: scale(1.3); }

/* ── FEATURES STRIP ──────────────────────────────────────── */
.features-strip { background: var(--primary); color: #fff; }
.features-inner {
  max-width: 1280px; margin: 0 auto; padding: 32px 24px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}
.feature-item { display: flex; align-items: flex-start; gap: 14px; }
.feature-item .icon { font-size: 2rem; flex-shrink: 0; }
.feature-item h4 { font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.feature-item p  { font-size: .78rem; opacity: .8; }

/* ── SECTION ─────────────────────────────────────────────── */
.section { max-width: 1280px; margin: 0 auto; padding: 48px 24px; }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.section-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--dark); }
.section-sub   { font-size: .82rem; color: var(--mid); margin-top: 2px; }

.view-all {
  font-size: .82rem; font-weight: 600;
  color: var(--primary); border: 1.5px solid var(--primary);
  border-radius: 20px; padding: 6px 16px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.view-all:hover { background: var(--primary); color: #fff; }

.divider { max-width: 1280px; margin: 0 auto; padding: 0 24px; border-top: 1px solid var(--border); }

/* ── CATEGORY GRID ───────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}
.cat-card {
  background: #fff; border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 22px 12px 18px;
  text-align: center; cursor: pointer;
  display: block;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}
.cat-card .emoji  { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.cat-card .label  { font-size: .8rem; font-weight: 600; color: var(--dark); }

/* ── PROMO BANNERS ───────────────────────────────────────── */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.banner-card {
  border-radius: 16px; overflow: hidden;
  min-height: 160px; position: relative;
  display: flex; align-items: flex-end;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.banner-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.15); }
.banner-card .bg { position: absolute; inset: 0; }
.banner-card .content { position: relative; padding: 20px; z-index: 1; }
.banner-card .tag {
  font-size: .7rem; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; padding: 3px 10px;
  border-radius: 10px; display: inline-block; margin-bottom: 8px;
}
.banner-card h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; }
.banner-card p  { font-size: .8rem; opacity: .85; margin-top: 4px; }

.banner-emoji {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 4rem; opacity: .3;
}

.banner-1 .bg  { background: linear-gradient(135deg, #1b4332, #40916c); }
.banner-1      { color: #fff; }
.banner-1 .tag { background: rgba(255,255,255,.2); color: #b7e4c7; }

.banner-2 .bg  { background: linear-gradient(135deg, #5c3a00, #b5924c); }
.banner-2      { color: #fff; }
.banner-2 .tag { background: rgba(255,255,255,.2); color: #f5e6c8; }

.banner-3 .bg  { background: linear-gradient(135deg, #1a2a1a, #2d5a2d); }
.banner-3      { color: #fff; }
.banner-3 .tag { background: rgba(181,146,76,.3); color: #f5e6c8; }

/* ── PRODUCT CARDS ───────────────────────────────────────── */
.product-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  display: block;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 28px rgba(45,106,79,.15); }

.product-img-wrap {
  height: 180px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
  display: block;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}
.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--primary); color: #fff;
  font-size: .65rem; font-weight: 700; letter-spacing: .5px;
  padding: 3px 8px; border-radius: 6px;
}
.product-badge.gold { background: var(--gold); }

.product-info   { padding: 14px; }
.product-brand  { font-size: .7rem; color: var(--mid); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px; }
.product-name   { font-size: .88rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; line-height: 1.35; }
.product-weight { font-size: .75rem; color: var(--mid); }

.view-detail {
  display: block; margin: 10px 14px 14px;
  background: var(--primary-pale); color: var(--primary);
  border: 1.5px solid var(--border);
  border-radius: 8px; padding: 7px;
  font-size: .78rem; font-weight: 600;
  text-align: center;
  transition: background .2s, color .2s, border-color .2s;
}
.product-card:hover .view-detail {
  background: var(--primary); color: #fff; border-color: var(--primary);
}


/* ── L1 CATEGORY GRID ────────────────────────────────────── */
.l1-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}
.l1-card {
  border-radius: 14px; overflow: hidden; cursor: pointer;
  position: relative; height: 180px; display: block;
  transition: transform .25s, box-shadow .25s;
}
.l1-card:hover { transform: scale(1.03); box-shadow: 0 10px 28px rgba(0,0,0,.15); }
.l1-card .l1-bg { position: absolute; inset: 0; }
.l1-card .l1-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.6) 0%, transparent 100%);
  color: #fff; padding: 28px 14px 14px;
  font-size: .85rem; font-weight: 600;
}
.l1-card .l1-emoji {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-60%);
  font-size: 3.5rem;
}
.l1-c1 .l1-bg { background: linear-gradient(135deg, #d8f3dc, #b7e4c7); }
.l1-c2 .l1-bg { background: linear-gradient(135deg, #f5e6c8, #e8c97e); }
.l1-c3 .l1-bg { background: linear-gradient(135deg, #fff3b0, #ffda77); }
.l1-c4 .l1-bg { background: linear-gradient(135deg, #fde8e0, #f9b8a0); }
.l1-c5 .l1-bg { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { background: #111a14; color: #ccc; }

.footer-top {
  max-width: 1280px; margin: 0 auto; padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 40px;
}
.footer-brand p {
  font-size: .83rem; opacity: .7;
  margin-top: 12px; max-width: 280px; line-height: 1.7;
}
.footer-col h5 {
  color: #fff; font-size: .85rem; font-weight: 600;
  letter-spacing: .5px; margin-bottom: 16px;
}
.footer-col ul  { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .82rem; color: #aaa; transition: color .2s; }
.footer-col ul li a:hover { color: #b7e4c7; }

.footer-contact p { font-size: .82rem; color: #aaa; margin-bottom: 8px; line-height: 1.7; }
.footer-contact strong { color: #ddd; }


.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 24px;
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; color: #666;
  flex-wrap: wrap; gap: 10px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #666; }
.footer-links a:hover { color: #aaa; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-image { display: none; }
  .hero-inner { gap: 0; }
  .header-inner { gap: 10px; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .banner-grid { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: repeat(2, 1fr); }
  .l1-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .product-row { grid-template-columns: 1fr; }
}
