:root {
  --bf-bg: #dff2df;
  --bf-card: #ffffff;
  --bf-soft: #f6f8fb;
  --bf-dark: #101827;
  --bf-text: #111827;
  --bf-muted: #64748b;
  --bf-blue: #2563eb;
  --bf-green: #22c55e;
  --bf-border: #e5e7eb;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.9), transparent 32%),
    var(--bf-bg);
  color: var(--bf-text);
}

.site-main,
.entry-content {
  margin-top: 0 !important;
}

.bifrost-shell {
  max-width: 1380px;
  margin: 42px auto;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 34px;
  padding: 28px;
  box-shadow: 0 35px 90px rgba(15, 23, 42, .12);
  backdrop-filter: blur(20px);
}

.bf-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 34px;
}

.bf-sidebar {
  background: #f8fafc;
  border: 1px solid var(--bf-border);
  border-radius: 28px;
  padding: 24px 18px;
  min-height: 720px;
}

.bf-sidebar h2 {
  font-size: 1.35rem;
  font-weight: 900;
  margin: 0 0 28px 8px;
  letter-spacing: -.04em;
}

.bf-sidebar a {
  display: flex;
  align-items: center;
  padding: 13px 15px;
  margin-bottom: 8px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--bf-text);
  font-weight: 700;
  transition: .18s ease;
}

.bf-sidebar a:hover,
.bf-sidebar a:first-of-type {
  background: var(--bf-dark);
  color: #fff;
  transform: translateX(3px);
}

.bf-main {
  min-width: 0;
}

.bf-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  gap: 20px;
}

.bf-kicker {
  display: inline-flex;
  background: #eef2ff;
  color: var(--bf-blue);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.bf-top h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: .95;
  letter-spacing: -.07em;
  margin: 0;
  max-width: 820px;
}

.bf-btn,
.bf-card a,
.bf-custom a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bf-dark);
  color: #fff !important;
  padding: 13px 23px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(17,24,39,.18);
  transition: .18s ease;
}

.bf-btn:hover,
.bf-card a:hover,
.bf-custom a:hover {
  transform: translateY(-2px);
}

.bf-hero-grid {
  display: grid;
  grid-template-columns: 1.55fr .95fr;
  gap: 20px;
  margin-bottom: 36px;
}

.bf-card {
  position: relative;
  overflow: hidden;
  background: var(--bf-soft);
  border: 1px solid var(--bf-border);
  border-radius: 30px;
  padding: 30px;
  min-height: 190px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.bf-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(37,99,235,.09);
}

.bf-large {
  grid-row: span 2;
  min-height: 405px;
  background:
    radial-gradient(circle at 82% 18%, rgba(37,99,235,.22), transparent 28%),
    radial-gradient(circle at 80% 90%, rgba(34,197,94,.24), transparent 32%),
    linear-gradient(135deg, #ecfdf5, #dbeafe 70%);
}

.bf-card span {
  position: relative;
  z-index: 2;
  display: inline-block;
  background: #ffffffb8;
  color: var(--bf-blue);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.bf-card h2 {
  position: relative;
  z-index: 2;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: .95;
  letter-spacing: -.06em;
  max-width: 650px;
  margin: 22px 0;
}

.bf-card h3 {
  position: relative;
  z-index: 2;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin: 20px 0;
}

.bf-card a {
  position: relative;
  z-index: 2;
}

.bf-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 34px 0 18px;
}

.bf-section-head h2 {
  font-size: 2.1rem;
  letter-spacing: -.05em;
  margin: 0;
}

.bf-section-head a {
  color: var(--bf-blue);
  font-weight: 900;
  text-decoration: none;
}

.wc-block-grid {
  margin-bottom: 64px;
}

.wc-block-grid__products {
  gap: 18px !important;
}

.wc-block-grid__product {
  background: #fff;
  border: 1px solid var(--bf-border);
  border-radius: 26px;
  padding: 18px !important;
  box-shadow: 0 12px 34px rgba(15,23,42,.06);
  transition: .18s ease;
}

.wc-block-grid__product:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 45px rgba(15,23,42,.11);
}

.wc-block-grid__product-image img {
  border-radius: 20px;
  background: #f8fafc;
}

.wc-block-grid__product-title {
  color: var(--bf-text);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.2;
  margin-top: 12px;
}

.wc-block-grid__product-price {
  color: #ef4444;
  font-weight: 950;
  font-size: 1.08rem;
}

.wc-block-grid__product-add-to-cart a {
  background: var(--bf-dark) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  font-weight: 850 !important;
}

.bf-custom {
  margin-top: 30px;
  background:
    radial-gradient(circle at 12% 20%, rgba(37,99,235,.28), transparent 28%),
    linear-gradient(135deg, #0f172a, #111827);
  color: white;
  border-radius: 30px;
  padding: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.bf-custom h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  letter-spacing: -.05em;
}

.bf-custom p {
  color: #cbd5e1;
  margin: 0;
}

.bf-custom a {
  background: #fff;
  color: var(--bf-dark) !important;
  box-shadow: none;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .bifrost-shell {
    margin: 16px;
    padding: 18px;
    border-radius: 26px;
  }

  .bf-layout {
    grid-template-columns: 1fr;
  }

  .bf-sidebar {
    display: none;
  }

  .bf-top,
  .bf-custom {
    flex-direction: column;
    align-items: flex-start;
  }

  .bf-hero-grid {
    grid-template-columns: 1fr;
  }

  .bf-large {
    min-height: auto;
  }
}