/* MenuItem — desktop hover mega (anchored dropdown) + mobile accordion.
   Each rule is a single selector (the ikas scoper drops scope from the first
   selector of a comma group). */

/* ---- shared ---- */
.cc_oe6aXTYiT2_bZWA21jhQF .menu-item__label {
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.25s var(--ease);
}
/* a collapsible header is a <button> — strip native chrome, keep label styling */
.cc_oe6aXTYiT2_bZWA21jhQF .menu-item__label--toggle {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.cc_oe6aXTYiT2_bZWA21jhQF .menu-item__col-title {
  font-family: var(--mono);
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin: 0 0 16px;
}
/* A level-2 column heading that is itself a link (has an href). */
.cc_oe6aXTYiT2_bZWA21jhQF .menu-item__col-title--link {
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.cc_oe6aXTYiT2_bZWA21jhQF .menu-item__col-title--link:hover {
  color: var(--hd-ac, var(--accent));
}
.cc_oe6aXTYiT2_bZWA21jhQF .menu-item__col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
}
.cc_oe6aXTYiT2_bZWA21jhQF .menu-item__col-list a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s var(--ease);
}
/* Sublink hover follows the header accent the merchant set (--hd-ac), falling back
   to the brand accent when unset — so the mega-panel items react to the accent. */
.cc_oe6aXTYiT2_bZWA21jhQF .menu-item__col-list a:hover {
  color: var(--hd-ac, var(--accent));
}
.cc_oe6aXTYiT2_bZWA21jhQF .menu-item__feature {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--paper-2);
  overflow: hidden;
}
.cc_oe6aXTYiT2_bZWA21jhQF .menu-item__feature-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.cc_oe6aXTYiT2_bZWA21jhQF .menu-item__feature-img--empty {
  background: repeating-linear-gradient(135deg, rgba(45, 59, 255, 0.08) 0 2px, transparent 2px 12px), var(--accent-soft);
}
.cc_oe6aXTYiT2_bZWA21jhQF .menu-item__feature-meta {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cc_oe6aXTYiT2_bZWA21jhQF .menu-item__feature-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hd-ac, var(--accent));
}
.cc_oe6aXTYiT2_bZWA21jhQF .menu-item__feature-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---- desktop: nav link + hover mega ---- */
@media (min-width: 861px) {
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item {
    position: relative;
    display: inline-flex;
    align-items: center;
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item__bar {
    display: inline-flex;
    align-items: center;
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item__toggle {
    display: none;
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item__label {
    position: relative;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 0;
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item__label::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 0;
    /* per-link colour if the merchant set one, else the header accent */
    background: var(--mi-label, var(--hd-ac, var(--accent)));
    transition: width 0.3s var(--ease);
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item:hover .menu-item__label {
    color: var(--ink);
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item:hover .menu-item__label::after {
    width: 100%;
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item__panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    display: flex;
    align-items: flex-start;
    gap: 44px;
    padding: 36px 40px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    z-index: 70;
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item:hover .menu-item__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item__cols {
    display: flex;
    gap: 48px;
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item__feature {
    width: 220px;
    flex: none;
  }
}

/* ---- mobile: accordion row inside the drawer ---- */
@media (max-width: 860px) {
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item {
    display: block;
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item__label {
    flex: 1;
    font-family: var(--display);
    font-weight: 600;
    font-size: 26px;
    letter-spacing: -0.02em;
    padding: 15px 0;
    color: var(--ink);
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item__toggle {
    display: grid;
    place-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 4px;
    font-family: var(--mono);
    font-size: 24px;
    line-height: 1;
    /* Colour precedence: per-item "Link Rengi" (labelColor → --mi-label) wins;
       otherwise the header accent colour (--hd-ac); otherwise the brand accent. */
    color: var(--mi-label, var(--hd-ac, var(--accent)));
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item__toggle span {
    display: block;
    transition: transform 0.3s var(--ease);
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item.is-open .menu-item__toggle span {
    transform: rotate(45deg);
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item__panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s var(--ease);
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item.is-open .menu-item__panel {
    max-height: 1600px;
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item__cols {
    padding: 6px 0 14px;
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item__col {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item__col-list a {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 16px;
    color: var(--ink-2);
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item__feature {
    margin-top: 16px;
  }
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item__featured {
    margin-top: 18px;
  }
}

/* ---- per-item badge (next to the label) ---- */
.cc_oe6aXTYiT2_bZWA21jhQF .menu-item__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border: 1px solid var(--hd-ac, var(--accent));
  background: var(--hd-ac, var(--accent));
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.45;
  vertical-align: middle;
}

/* ---- featured products in the mega panel ---- */
.cc_oe6aXTYiT2_bZWA21jhQF .menu-item__featured-title {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cc_oe6aXTYiT2_bZWA21jhQF .menu-item__featured-grid {
  display: grid;
  /* Column count is merchant-controlled (default 2) via the --mi-feat-cols var. */
  grid-template-columns: repeat(var(--mi-feat-cols, 2), minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 861px) {
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item__featured {
    /* Scale the panel with the column count (2 cols ≈ 300px, as before). */
    width: calc(150px * var(--mi-feat-cols, 2));
    flex: none;
  }
}
@media (max-width: 860px) {
  .cc_oe6aXTYiT2_bZWA21jhQF .menu-item__featured-grid {
    gap: 12px;
  }
}
