/**
 * Homepage — Material-style header/footer + category icons + i8 fallbacks
 */

/* ── Header (material elevation) ── */
body.home-catalog.home-storefront .site-header {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08) !important;
}

body.home-catalog.home-storefront .header-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
}

body.home-catalog.home-storefront .catalog-search {
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06) !important;
  border-color: #dbeafe !important;
}

body.home-catalog.home-storefront .catalog-header-actions .catalog-action-link > i.bi,
body.home-catalog.home-storefront .catalog-header-actions .cart-btn > i.bi {
  width: 42px;
  height: 42px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #f8fafc, #eff6ff);
  border: 1px solid #e2e8f0;
  font-size: 1.15rem !important;
  color: #1d4ed8 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.home-catalog.home-storefront .catalog-action-link:hover > i.bi,
body.home-catalog.home-storefront .cart-btn:hover > i.bi {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
}

body.home-catalog.home-storefront .btn-all-categories {
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35) !important;
  border-radius: 12px !important;
}

/* ── Footer material depth ── */
body.home-catalog.home-storefront .site-footer.jp-foot {
  margin-top: 3rem !important;
  box-shadow: 0 -16px 48px rgba(10, 37, 64, 0.18) !important;
}

body.home-catalog.home-storefront .jp-foot-soc {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

body.home-catalog.home-storefront .jp-foot-soc:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
}

body.home-catalog.home-storefront .jp-foot-logo-plate {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
}

/* ── Trust ribbon icons always visible ── */
body.home-catalog.home-storefront .hc-feature-ribbon .hc-feature-ico {
  min-width: 48px !important;
  min-height: 48px !important;
}

body.home-catalog.home-storefront .hc-feature-ribbon .hc-feature-ico .i8-icon,
body.home-catalog.home-storefront .hc-feature-ribbon .hc-feature-ico svg {
  width: 32px !important;
  height: 32px !important;
}

/* ── Category tiles: white Icons8 on brand gradient ── */
body.home-catalog.home-storefront .ml-cat-icon--ios-white {
  width: 56px !important;
  height: 56px !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(
    145deg,
    var(--cat-accent, #2563eb) 0%,
    var(--cat-accent-dark, #1d4ed8) 100%
  ) !important;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--cat-accent, #2563eb) 35%, transparent) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  position: relative;
}

body.home-catalog.home-storefront .ml-cat-icon--ios-white .i8-icon,
body.home-catalog.home-storefront .ml-cat-icon--ios-white svg {
  width: 28px !important;
  height: 28px !important;
  display: block !important;
}

body.home-catalog.home-storefront .ml-cat-icon--ios-white svg,
body.home-catalog.home-storefront .ml-cat-icon--ios-white svg path {
  fill: #ffffff !important;
}

body.home-catalog.home-storefront .jp-cat-icon-fa {
  display: none;
  color: #fff !important;
  font-size: 1.4rem !important;
  line-height: 1;
}

body.home-catalog.home-storefront .jp-cat-use-fa .jp-cat-icon-fa {
  display: block !important;
}

body.home-catalog.home-storefront .ml-cat-icon--ios-white > i:not(.jp-cat-icon-fa) {
  display: none !important;
}

/* legacy i8-only fallbacks removed — use jp-cat-use-fa */

/* Shop by Category section polish */
body.home-catalog.home-storefront .home-category-section {
  background: #fff !important;
  padding: 2.5rem 0 3rem !important;
}

body.home-catalog.home-storefront .home-category-section .ml-cat-card {
  border-radius: 18px !important;
  border: 1px solid #e8edf5 !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

body.home-catalog.home-storefront .home-category-section .ml-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1) !important;
}

/* FAQ full width after sidebar removed */
body.home-catalog.home-storefront .home-faq-layout {
  display: block !important;
}

body.home-catalog.home-storefront .home-faq-main {
  max-width: 820px;
  margin: 0 auto;
}

@supports not (color: color-mix(in srgb, red, blue)) {
  body.home-catalog.home-storefront .ml-cat-icon--ios-white {
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.25) !important;
  }
}
