/* Recce NI Storefront 1.1 premium experience foundation */

/* Desktop mega navigation */
@media (min-width: 1025px) {
  .rni-storefront-primary-nav .rni-storefront-container { position: relative; }
  .rni-storefront-mega-panel {
    position: absolute;
    z-index: 1000;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #d9ded7;
    border-top: 0;
    box-shadow: 0 22px 52px rgba(12, 22, 15, .22);
  }
  .rni-storefront-mega-panel[hidden] { display: none !important; }
  .rni-mega-premium {
    display: grid;
    grid-template-columns: minmax(235px, .8fr) minmax(0, 2.2fr);
    min-height: 310px;
  }
  .rni-mega-premium-intro {
    padding: 34px;
    background: linear-gradient(145deg, #0c1710, #1c3021);
    color: #fff;
  }
  .rni-mega-premium-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    margin-bottom: 24px;
    border: 1px solid rgba(187, 199, 96, .55);
    color: #becb71;
    font-size: 1.8rem;
  }
  .rni-mega-kicker {
    margin: 0 0 6px;
    color: #b9c76c;
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .rni-mega-premium-intro h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 2rem;
    line-height: 1.05;
  }
  .rni-mega-premium-intro > p:not(.rni-mega-kicker) {
    margin: 0 0 26px;
    color: rgba(255,255,255,.72);
  }
  .rni-mega-shop-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
  }
  .rni-mega-shop-all:hover { color: #c9d77a; }
  .rni-storefront-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 0;
    padding: 24px;
    background: #fff;
  }
  .rni-storefront-mega-link {
    position: relative;
    display: flex;
    min-height: 76px;
    flex-direction: column;
    justify-content: center;
    padding: 14px 44px 14px 16px;
    border-bottom: 1px solid #e7ebe5;
    color: #172019;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, padding-left .18s ease;
  }
  .rni-storefront-mega-link:nth-last-child(-n+3) { border-bottom: 0; }
  .rni-storefront-mega-link:hover,
  .rni-storefront-mega-link:focus-visible {
    padding-left: 21px;
    background: #f1f4ed;
    color: #354c2f;
  }
  .rni-storefront-mega-link span { font-weight: 850; }
  .rni-storefront-mega-link small { margin-top: 4px; color: #747d74; }
  .rni-storefront-mega-link b {
    position: absolute;
    top: 50%;
    right: 16px;
    translate: 0 -50%;
    color: #7e8c54;
    font-size: 1.1rem;
  }
}

/* Premium mobile navigation */
.rni-mobile-category-accordion > summary {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
}
.rni-mobile-category-accordion > summary::after {
  content: "+";
  grid-column: 3;
  grid-row: 1;
  color: #c0ce75;
  font-size: 1.45rem;
  font-weight: 500;
  text-align: center;
}
.rni-mobile-category-accordion[open] > summary::after { content: "−"; }
.rni-mobile-category-accordion > summary i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(190, 205, 113, .45);
  color: #c2cf79;
  font-style: normal;
  font-size: 1.05rem;
}
.rni-mobile-category-accordion > summary > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.rni-mobile-category-accordion > summary b {
  color: #fff;
  font-size: .9rem;
  letter-spacing: .02em;
}
.rni-mobile-category-accordion > summary small {
  color: #9fa99f;
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.25;
}
.rni-mobile-category-children {
  animation: rni-nav-reveal .2s ease both;
}
@keyframes rni-nav-reveal {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .rni-mobile-category-children { animation: none; }
}

/* Rich live search */
.rni-storefront-search-results {
  max-height: min(70vh, 590px);
  overflow-y: auto;
  border: 1px solid #d7ddd4;
  box-shadow: 0 16px 36px rgba(15, 25, 17, .2);
}
.rni-storefront-search-result {
  grid-template-columns: 64px minmax(0, 1fr) !important;
  min-height: 84px;
  padding: 10px 12px !important;
}
.rni-storefront-search-result img {
  width: 64px !important;
  height: 64px !important;
  object-fit: contain;
  background: #fff;
}
.rni-storefront-search-result span { min-width: 0; }
.rni-storefront-search-result strong {
  display: block;
  overflow: hidden;
  color: #182119;
  font-size: .92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rni-storefront-search-result small { display: block; }
.rni-search-meta {
  margin-top: 3px;
  overflow: hidden;
  color: #707a70;
  font-size: .7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rni-search-price {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  color: #253a29;
  font-size: .82rem;
  font-weight: 850;
}
.rni-search-price em {
  color: #317343;
  font-size: .68rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

/* Product-card premium status system */
.rni-card-badges {
  max-width: calc(100% - 1.3rem);
  flex-wrap: wrap;
}
.rni-card-badge { box-shadow: 0 2px 7px rgba(0,0,0,.15); }
.rni-badge-new { background: #315f3c; }
.rni-badge-limited { background: #b15a18; }
.rni-badge-deposit { background: #53642d; }
.rni-home-product-card {
  isolation: isolate;
  overflow: hidden;
}
.rni-home-product-image {
  position: relative;
  transition: background .2s ease;
}
.rni-home-product-image img {
  transition: transform .28s ease;
}
.rni-home-product-card:hover .rni-home-product-image { background: #f7f8f5; }
.rni-home-product-card:hover .rni-home-product-image img { transform: scale(1.035); }
.rni-home-product-body .rni-button {
  transition: background .18s ease, transform .18s ease;
}
.rni-home-product-card:hover .rni-home-product-body .rni-button { transform: translateY(-1px); }

@media (max-width: 1024px) {
  .rni-storefront-mega-panel { display: none !important; }
}


/* Live search polish — beta.2.2 */
.rni-search-results-head {
  padding: 10px 12px;
  border-bottom: 1px solid #d7ddd4;
  background: #f4f6f2;
  color: #344338;
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rni-storefront-search-empty {
  padding: 18px 14px;
  color: #677068;
  text-align: center;
}
.rni-search-condition {
  display: inline-block;
  margin-right: 7px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #6a3f27;
  color: #fff;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rni-search-price > span {
  color: #53642d;
  font-size: .9rem;
  font-weight: 900;
}
.rni-search-results-footer {
  display: block;
  padding: 12px 14px;
  background: #1f321f;
  color: #fff !important;
  font-size: .78rem;
  font-weight: 850;
  text-align: center;
  text-decoration: none !important;
}
.rni-search-results-footer:hover,
.rni-search-results-footer:focus-visible { background: #304b31; }
@media (max-width: 600px) {
  .rni-storefront-search-results { max-height: min(62vh, 540px); overflow-y: auto; }
  .rni-storefront-search-result { grid-template-columns: 68px minmax(0, 1fr) !important; }
  .rni-storefront-search-result img { width: 68px !important; height: 68px !important; }
  .rni-storefront-search-result strong { white-space: normal; line-height: 1.2; }
}

/* Stage 3 variable-product discovery shared by homepage and search */
.rni-home-product-card .rni-variable-insight,
.rni-storefront-search-result .rni-search-options {
    color: var(--rni-colour-olive-700, #556b2f);
    font-weight: 750;
}
.rni-home-product-card .rni-variable-insight {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: .35rem 0 .55rem;
    font-size: .8rem;
    line-height: 1.35;
}
.rni-home-product-card .rni-variable-insight span { font-size: .55rem; }
.rni-search-options { display:block; margin-top:.18rem; font-size:.74rem; line-height:1.3; }
@media (max-width:720px) {
    .rni-home-product-card .rni-variable-insight { font-size:.7rem; }
}
