.am-navbar .nav-item.has-mega .nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
}
.am-navbar .nav-item.has-mega .nav-link::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5l3 3 3-3' stroke='%23555' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s;
}
.am-navbar .nav-item.has-mega.open .nav-link::after {
  transform: rotate(180deg);
}

/* ── Mega menu container ── */
#am-mega-menu {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: #fff;
  border-top: 2px solid #e8e3d6;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  z-index: 9000;
  display: none;
  animation: mmSlideDown 0.18s ease forwards;
}
#am-mega-menu.open {
  display: block;
}
@keyframes mmSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Inner wrapper: sidebar | divider | product area ── */
.mm-inner {
  max-width: 1312px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  min-height: 440px;
}

/* ── Left sidebar: stacked category tabs ── */
.mm-sidebar {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 20px 20px 24px;
}

/* Wrapper: overflow visible so indicator can poke out to the right */
.mm-cat-tab-wrap {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Hover indicator — circle dot on the RIGHT, outside the card */
.mm-cat-tab-wrap::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #C83A0C;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.18s;
}
.mm-cat-tab-wrap:hover::after {
  opacity: 1;
}

.mm-cat-tab {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  flex: 1;
  border: none;
  text-align: left;
  transition: box-shadow 0.2s;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 90px;
}
.mm-cat-tab:hover,
.mm-cat-tab.active {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.mm-cat-name-1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.15;
  position: relative;
  z-index: 2;
}
.mm-cat-name-2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.15;
  position: relative;
  z-index: 2;
}

/* Person photo on right of category card */
.mm-cat-img {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 115%;
  width: auto;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s ease;
  transform-origin: right bottom;
  z-index: 1;
}
.mm-cat-tab:hover .mm-cat-img {
  transform: scale(1.07);
}

/* ── Vertical divider (hidden) ── */
.mm-sidebar-divider {
  display: none;
}

/* ── Right: product list area ── */
.mm-products-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 24px 16px 20px;
  overflow: hidden;
}

.mm-products-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e8e3d6 transparent;
}
.mm-products-scroll::-webkit-scrollbar { width: 4px; }
.mm-products-scroll::-webkit-scrollbar-track { background: transparent; }
.mm-products-scroll::-webkit-scrollbar-thumb { background: #e8e3d6; border-radius: 4px; }

/* Category heading above product list */
.mm-cat-heading {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #2b2b2b;
  margin: 0 0 12px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8e3d6;
}

/* 2-column grid of horizontal product items */
.mm-products-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  transition: opacity 0.15s, transform 0.15s;
}

/* Horizontal product item */
.mm-pitem {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px 10px 10px;
  text-decoration: none;
  transition: background 0.18s, box-shadow 0.18s;
  cursor: pointer;
}
.mm-pitem:hover {
  background: #FFF3E8;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.mm-pitem-img-wrap {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.mm-pitem-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mm-pitem-info {
  flex: 1;
  min-width: 0;
}
.mm-pitem-name {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2b2b2b;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mm-pitem-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: #C83A0C;
  font-weight: 500;
  margin-top: 3px;
}

/* ── "Lihat Semua Produk" outline card in sidebar ── */
.mm-view-all-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px solid var(--red);
  border-radius: 18px;
  padding: 12px 20px;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
  transition: background 0.18s, color 0.18s;
  min-height: 52px;
}
.mm-view-all-card:hover {
  background: var(--red);
  color: #fff;
}

/* ── Product card (used on produk.html & homepage) ── */
.product-card-figma {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  height: 280px;
  background: #fdf1ea;
  text-decoration: none;
  display: block;
  transition: transform 0.22s, box-shadow 0.22s;
  border: none;
}
.product-card-figma:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}
.product-card-figma .pf-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 28px;
}
.product-card-figma:hover .pf-photo { opacity: 1; }
.product-card-figma .pf-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.08) 60%, rgba(0,0,0,0.22) 100%);
  z-index: 4;
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 28px;
}
.product-card-figma:hover .pf-overlay { opacity: 1; }
.product-card-figma .pf-img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 36px;
  width: 70%;
  height: auto;
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  z-index: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.product-card-figma:hover .pf-img { opacity: 0; transform: translateX(-50%) scale(0.9); }
.product-card-figma .pf-title {
  position: absolute;
  top: 20px;
  left: 22px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.25;
  color: #235541;
  z-index: 5;
  transition: color 0.25s;
}
.product-card-figma .pf-title.light { color: #fff; }
.product-card-figma:hover .pf-title { color: #fff; }
.product-card-figma .pf-arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid #7e8040;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 5;
  transition: background 0.2s, border-color 0.2s;
}
.product-card-figma:hover .pf-arrow { background: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.9); }
.product-card-figma .pf-arrow svg path { stroke: #7e8040; transition: stroke 0.2s; }
.product-card-figma:hover .pf-arrow svg path { stroke: #235541; }
.product-card-figma.dark-card .pf-title { color: #fff; }
.product-card-figma.dark-card .pf-arrow { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.15); }
.product-card-figma.dark-card:hover .pf-arrow { background: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.9); }
.product-card-figma.dark-card .pf-arrow svg path { stroke: rgba(255,255,255,0.9); }
.product-card-figma.dark-card:hover .pf-arrow svg path { stroke: #235541; }
