:root {
  --bg: #101014;
  --surface: #1d2028;
  --muted: #6b6f7a;
  --text: #f4f6ff;
  --accent: #ffcc33;
  --gold: #ffcc33;
  --border: rgba(255, 255, 255, 0.08);
}

html {
  min-height: 100%;
  margin: 0;
  padding: 0;
  scrollbar-gutter: stable;
}

html {
  margin-top: 0 !important;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.admin-bar {
  min-height: calc(100dvh - 32px);
  padding-top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar {
    min-height: calc(100dvh - 46px);
    padding-top: 46px;
  }
}

main {
  flex: 1 0 auto;
  width: 100%;
}

.site-footer {
  margin-top: auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(16, 16, 20, 0.95);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.98rem;
  padding: 22px 40px;
}

.primary-nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.primary-nav .logo-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.primary-nav .logo-wrap img,
.primary-nav .logo-wrap svg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 0 6px rgba(57, 160, 255, 0.8));
}

.primary-nav .logo-wrap .custom-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.primary-nav .brand-text {
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
}

.primary-nav .brand-text .brand-meta,
.primary-nav .brand-text .brand-sub {
  margin: 0;
}

.primary-nav .brand-meta {
  font-size: 1rem;
  font-weight: 600;
}

.primary-nav .brand-sub {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.primary-nav .brand-mark {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.nav-menu {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

.primary-nav .nav-menu a {
  color: var(--text);
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.primary-nav .nav-menu a:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.primary-nav .nav-menu li {
  margin: 0;
}

.primary-nav .nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}

.primary-nav-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 1;
}

.primary-nav .nav-menu {
  margin: 0 auto;
}

.primary-nav .nav-actions {
  margin-left: auto;
}

@media (min-width: 1024px) {
  .primary-nav {
    position: relative;
  }

  .primary-nav .nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
  content: '';
}

.nav-toggle-icon::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.nav-toggle-icon::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.primary-nav.is-open .nav-toggle-icon {
  background: transparent;
}

.primary-nav.is-open .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.primary-nav.is-open .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  min-height: 70vh;
  padding: 80px 40px 60px;
  position: relative;
  overflow: hidden;
  background: #05060a;
  isolation: isolate;
}

.home .hero {
  min-height: 50vh;
  padding: 44px 40px 32px;
}

.hero::before {
  z-index: 0;
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/fai-main.png') center/cover;
  opacity: 0.7;
  filter: blur(2px) saturate(1.2);
  transform-origin: center;
  animation: swell 24s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero::after {
  z-index: 1;
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 16, 20, 0.8) 0%, rgba(16, 16, 20, 0.55) 40%, rgba(16, 16, 20, 0.25) 70%, transparent 100%);
  pointer-events: none;
}

.hero-mobile-bg {
  display: none;
}

.motion-stripe {
  display: none;
}

@keyframes swell {
  0% {
    transform: scale(1) translateY(0);
  }
  100% {
    transform: scale(1.05) translateY(-10px);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero h1 {
  font-size: clamp(2.8rem, 4vw, 3.6rem);
  margin-bottom: 16px;
  line-height: 1.2;
  color: #fdfdfd;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

.hero p {
  color: #ffffff;
  max-width: 630px;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 18px;
}

.btn {
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #05060a;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.section {
  padding: 48px 40px 40px;
  border-bottom: 1px solid var(--border);
}

.home .section {
  padding: 36px 40px 40px;
}

.home .grid-two > article {
  padding: 22px !important;
}

.home .grid-two > article p {
  margin-bottom: 12px !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 32px;
}
.roadmap-summary {
  margin-top: 24px;
}

.roadmap-summary ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
  display: grid;
  gap: 6px;
}

.roadmap-summary li strong {
  color: var(--accent);
}


.section h2 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  min-height: 170px;
}

.feature-grid article::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent);
  pointer-events: none;
}

.feature-grid h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.roadmap-grid article {
  background: linear-gradient(135deg, #14141b, #181c24);
  border-radius: 12px;
  padding: 22px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 170px;
}

.section .link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
}

.site-footer {
  padding: 17px 20px;
  background: #080a0f;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-cta {
  margin: 0;
  line-height: 1.4;
}

.shop-note {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #ffcc33;
}

.site-footer .btn {
  padding: 10px 20px;
  margin-left: 10px;
}

.footer-meta {
  color: var(--muted);
  margin: 0;
}

@keyframes slide {
  0% { transform: translateX(-20%); }
  50% { transform: translateX(20%); }
  100% { transform: translateX(-20%); }
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-grid figure {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 260px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 160px;
}

.gallery-grid figcaption {
  font-size: 0.9rem;
  color: var(--muted);
}

.capability-subnote {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .primary-nav {
    position: relative;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 12px 16px;
    align-items: center;
  }

  .primary-nav .brand {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 56px);
  }

  .primary-nav .brand-text {
    overflow: hidden;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .primary-nav-panel {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 60;
    background: rgba(16, 16, 20, 0.98);
    border-top: 1px solid var(--border);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 16px 14px;
  }

  .primary-nav.is-open .primary-nav-panel {
    display: flex;
  }

  .primary-nav .nav-menu {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .primary-nav .nav-menu a {
    display: block;
    padding: 10px 12px;
  }

  .primary-nav .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .primary-nav .nav-cta {
    text-align: center;
  }

  /* Android-Chrome defensive hero layout: image under text via grid overlay */
  .hero {
    display: grid;
    min-height: 320px;
    padding: 0;
    background: #05060a;
    overflow: hidden;
    isolation: auto;
  }

  .hero-mobile-media {
    grid-area: 1 / 1;
    display: block;
    position: relative;
    width: 100%;
    min-height: 320px;
    aspect-ratio: 16 / 13;
    margin-top: 0;
    background: #05060a;
    overflow: hidden;
  }

  .hero-mobile-bg {
    display: block;
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: center top;
    vertical-align: top;
    z-index: auto;
    filter: blur(2px) saturate(1.12);
    transform: scale(1.04);
    transform-origin: center;
  }

  .hero-inner {
    grid-area: 1 / 1;
    position: relative;
    z-index: 2;
    max-width: none;
    align-self: end;
    padding: 28px 18px 22px;
  }

  .hero h1,
  .hero p {
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  }

  /* Disable heavy pseudo-layer effects on mobile devices */
  .hero::before {
    display: none;
    animation: none;
    filter: none;
    background: none;
  }

  .hero::after {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: min(56vw, 420px);
    background: linear-gradient(180deg, rgba(16,16,20,0.12) 0%, rgba(16,16,20,0.28) 55%, rgba(16,16,20,0) 100%);
    pointer-events: none;
    z-index: 1;
  }

  .hero-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero-mobile-media,
  .hero-mobile-bg {
    min-height: 280px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10vw, 2.8rem);
  }
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.video-promo {
  background: linear-gradient(135deg, rgba(16, 16, 20, 0.95), rgba(23, 23, 30, 0.9));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.video-wrapper {
  position: relative;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-copy {
  margin-top: 16px;
  color: var(--muted);
}

.blog-list {
  display: grid;
  gap: 16px;
}

.blog-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
}

.blog-card h3 {
  margin: 8px 0;
}

.blog-card .blog-date {
  font-size: 0.8rem;
  color: var(--muted);
}

.blog-card .link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent);
  text-decoration: none;
}

.blog-card h3 a,
.blog-card h3 a:visited,
.blog-card h3 a:hover,
.blog-card .link,
.blog-card .link:hover,
.blog-note a,
.blog-note a:hover {
  color: var(--accent);
  text-decoration: none;
}

.blog-note {
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 120px;
}

.page-content .woocommerce {
  margin-top: 32px;
}

.page-content .products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.page-content .products .product {
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.page-content .products .product .button,
.page-content .woocommerce .products .product .added_to_cart {
  width: 100%;
}

.page-content .products .product img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 18px;
}

.page-content .products .product h2 {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.page-content .products .product .price {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.page-content .products .product p {
  color: var(--muted);
  min-height: 54px;
}

.page-content .products .product .button {
  background: linear-gradient(135deg, #ffcc33, #f9a825);
  color: #111;
  font-weight: 700;
  border: none;
}

.page-content .products .product .button:hover {
  opacity: 0.95;
}


.community-page {
  padding: 40px 24px 80px;
}

.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.community-main {
  background: rgba(16, 16, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  min-height: 600px;
  max-height: 760px;
  overflow: auto;
}

.community-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.community-sidebar article {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
}

.community-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.community-sidebar li a {
  color: var(--text);
  text-decoration: none;
}

.community-sidebar li a:hover {
  color: var(--accent);
}

.community-page .bbp-forum,
.community-page .bbp-topic {
  background: rgba(16, 16, 20, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.community-page .bbp-topic-title a,
.community-page .bbp-forum-title a {
  color: var(--text);
}

.community-page .bbp-topic-title a:hover,
.community-page .bbp-forum-title a:hover {
  color: var(--accent);
}

@media (max-width: 960px) {
  .community-grid {
    grid-template-columns: 1fr;
  }
}

.shop-content {
  max-width: 1300px;
  margin: 0 auto 24px;
  padding: 40px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.shop-content .section-heading {
  text-align: center;
  margin-bottom: 12px;
}

.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce-breadcrumb,
.woocommerce-viewing {
  display: none !important;
}

.shop-grid {
  margin-top: 0;
}

.shop-content .products,
.shop-content .woocommerce .products {
  width: 100%;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 420px));
  justify-content: center;
  gap: 26px;
}

.shop-grid .product {
  background: rgba(14, 14, 18, 0.8);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 26px;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-grid .product:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 45px rgba(0, 0, 0, 0.55);
}

.shop-grid .product .woocommerce-LoopProduct-link img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 20px;
}

.shop-grid .product h2 {
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.shop-grid .product .price {
  font-weight: 600;
  margin-bottom: 14px;
}

.shop-grid .product p {
  color: var(--muted);
  min-height: 50px;
  margin-bottom: 18px;
}

.shop-grid .product .button {
  border-radius: 999px;
  padding: 12px 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffcc33, #f0a500);
  color: #111;
}

.shop-grid .product .button:hover {
  opacity: 0.95;
  color: #111 !important;
}

body.woocommerce-shop .page-content .products .button:hover,
body.woocommerce-shop .page-content .products a.button:hover,
body.woocommerce-shop .page-content .products .added_to_cart:hover {
  color: #111 !important;
}

@media (max-width: 768px) {
  .shop-content {
    padding: 40px 16px 80px;
  }
}

.shop-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.shop-grid .product {
  padding: 32px;
  min-height: 480px;
}

.shop-grid .product .woocommerce-LoopProduct-link img {
  height: 320px;
}

.shop-grid .product h2 {
  font-size: 1.35rem;
}

.shop-grid .product p {
  font-size: 0.95rem;
}


.shop-grid {
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

.shop-grid .product {
  padding: 42px;
  min-height: 520px;
}

.shop-grid .product .woocommerce-LoopProduct-link img {
  height: 340px;
}

@media (min-width: 2000px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(420px, 1fr));
  }
}

.shop-grid .product {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  padding: 40px;
}

.shop-grid .product .woocommerce-LoopProduct-link {
  display: block;
}

.shop-grid .product .woocommerce-LoopProduct-link img {
  height: 380px;
}

.shop-grid .product h2 {
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin-top: 0;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.shop-grid .product .price {
  font-size: 1rem;
}

.shop-grid .product p {
  margin: 0;
  line-height: 1.4;
  color: var(--muted);
}

.shop-grid .product .button {
  padding: 14px 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

@media (max-width: 960px) {
  .shop-grid .product img {
    height: 320px;
  }
}


.shop-grid {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

.shop-grid .product {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 40px;
  min-height: 540px;
}

.shop-grid .product h2 {
  font-size: 1.4rem;
  text-transform: none;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  white-space: nowrap;
}

.shop-grid .product .price {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

.shop-grid .product p {
  margin: 0;
  line-height: 1.5;
  color: var(--muted);
}

.shop-grid .product img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 18px;
}

.shop-grid .product .button,
.shop-grid .product .woocommerce-LoopProduct-link .button,
.shop-grid .product .added_to_cart {
  width: auto;
  align-self: center;
  padding: 14px 32px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .shop-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

  .shop-grid .product {
    min-height: 520px;
  }

  .shop-grid .product img {
    height: 300px;
  }
}


.shop-grid .product h2 {
  white-space: normal;
  word-break: break-word;
}

.shop-grid .product img {
  height: auto;
  min-height: 400px;
  max-height: 420px;
}

.shop-grid .product .button {
  display: inline-flex;
  justify-content: center;
  padding: 12px 34px;
}


.shop-grid .product h2 {
  text-transform: none;
  letter-spacing: 0.04em;
  white-space: normal !important;
}

.shop-grid .product .button,
.shop-grid .product .woocommerce-LoopProduct-link .button,
.shop-grid .product .added_to_cart {
  white-space: nowrap;
}

.community-main,
.community-sidebar article {
  background: linear-gradient(135deg, rgba(17, 18, 24, 0.92), rgba(24, 27, 36, 0.88));
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
}

.community-main {
  font-size: 1rem;
}

.community-main p,
.community-main li,
.community-main label,
.community-main input,
.community-main select,
.community-main textarea,
.community-main button {
  font-family: 'Inter', 'Space Grotesk', system-ui, sans-serif;
}

.community-main a,
.community-sidebar a {
  color: var(--text);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.community-main a:hover,
.community-sidebar a:hover {
  color: var(--accent);
}

.community-main .button,
.community-main button,
.community-main input[type='submit'],
.community-main input[type='button'],
.community-main .bbp-submit-wrapper button,
.community-main .bbp-submit-wrapper input {
  border-radius: 999px;
  border: 1px solid rgba(255, 204, 51, 0.55);
  background: linear-gradient(135deg, #ffcc33, #f0a500);
  color: #101014;
  font-weight: 700;
  padding: 11px 20px;
  text-decoration: none;
  cursor: pointer;
}

.community-main .button:hover,
.community-main button:hover,
.community-main input[type='submit']:hover,
.community-main input[type='button']:hover {
  filter: brightness(1.03);
}

.community-main input[type='text'],
.community-main input[type='email'],
.community-main input[type='url'],
.community-main input[type='password'],
.community-main input[type='search'],
.community-main input[type='number'],
.community-main select,
.community-main textarea {
  width: 100%;
  background: rgba(10, 11, 16, 0.82);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 11px 12px;
  margin-top: 4px;
}

.community-main input:focus,
.community-main select:focus,
.community-main textarea:focus {
  border-color: rgba(255, 204, 51, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 204, 51, 0.15);
  outline: none;
}

.community-main blockquote,
#bbpress-forums blockquote {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  color: #e6e9f2;
}

#bbpress-forums {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-replies {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(7, 8, 12, 0.35);
}

#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
  background: rgba(255, 255, 255, 0.05);
  color: #dce0ee;
  padding: 10px 14px;
}

#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic,
#bbpress-forums li.bbp-body div.reply {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

#bbpress-forums li.bbp-body ul.forum:hover,
#bbpress-forums li.bbp-body ul.topic:hover,
#bbpress-forums li.bbp-body div.reply:hover {
  background: rgba(255, 255, 255, 0.03);
}

#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-title,
#bbpress-forums .bbp-reply-header,
#bbpress-forums .bbp-topic-meta,
#bbpress-forums .bbp-forum-content {
  font-family: 'Inter', 'Space Grotesk', system-ui, sans-serif;
}

#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-title {
  font-size: 1.03rem;
  font-weight: 600;
}

#bbpress-forums .bbp-forum-title a,
#bbpress-forums .bbp-topic-title a,
#bbpress-forums .bbp-topic-permalink {
  color: var(--text);
  text-decoration: none;
}

#bbpress-forums .bbp-forum-title a:hover,
#bbpress-forums .bbp-topic-title a:hover,
#bbpress-forums .bbp-topic-permalink:hover {
  color: var(--accent);
}

#bbpress-forums .bbp-topic-meta,
#bbpress-forums .bbp-forum-content,
#bbpress-forums .bbp-author-role,
#bbpress-forums .bbp-reply-post-date {
  color: var(--muted);
  font-size: 0.9rem;
}

#bbpress-forums .bbp-pagination,
#bbpress-forums .bbp-topic-pagination {
  margin: 18px 0 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

#bbpress-forums .bbp-pagination-links a,
#bbpress-forums .bbp-pagination-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-right: 6px;
  color: var(--text);
  text-decoration: none;
}

#bbpress-forums .bbp-pagination-links a:hover,
#bbpress-forums .bbp-pagination-links span.current {
  border-color: rgba(255, 204, 51, 0.7);
  background: rgba(255, 204, 51, 0.16);
  color: var(--accent);
}

#bbpress-forums .bbp-reply-header,
#bbpress-forums .bbp-topic-header {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
}

#bbpress-forums .bbp-reply-content,
#bbpress-forums .bbp-topic-content {
  padding: 14px;
}

#bbpress-forums .bbp-template-notice,
.community-main .wpas,
.community-main .wpas-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
}

.community-main table,
#bbpress-forums table,
.community-main .wpas table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.community-main th,
.community-main td,
#bbpress-forums th,
#bbpress-forums td,
.community-main .wpas th,
.community-main .wpas td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.community-main thead th,
#bbpress-forums thead th,
.community-main .wpas thead th {
  background: rgba(255, 255, 255, 0.04);
  color: #e9ebf5;
}

.community-main,
.community-main table {
  min-height: 640px;
}

.community-main {
  min-height: 720px;
}

#bbpress-forums {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  letter-spacing: 0.01em;
  min-height: 700px;
  display: block;
}

#bbpress-forums .bbp-search-form {
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#bbpress-forums .bbp-search-form form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#bbpress-forums .bbp-search-form input[type="text"] {
  flex: 1 1 280px;
}

#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#bbpress-forums li.bbp-forum,
#bbpress-forums li.bbp-topic,
#bbpress-forums li.bbp-reply {
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#bbpress-forums .bbp-reply-header,
#bbpress-forums .bbp-topic-header {
  font-size: 0.95rem;
}

#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-title,
#bbpress-forums .bbp-paragraph,
#bbpress-forums .bbp-topic-content,
#bbpress-forums .bbp-reply-content {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.5;
}

#bbpress-forums .bbp-topic-meta,
#bbpress-forums .bbp-forum-content,
#bbpress-forums .bbp-author-role,
#bbpress-forums .bbp-reply-post-date {
  font-size: 0.95rem;
}

#bbpress-forums .bbp-topic-meta span,
#bbpress-forums .bbp-reply-post-date {
  color: var(--muted);
}

.tickets-main .wpas,
.tickets-main .wpas-form,
.tickets-main .wpas-ticket-list {
  color: var(--text);
}

/* v0.1.1 shop listing cleanup */
.shop-content .woocommerce-result-count,
.shop-content .woocommerce-ordering,
.shop-content .woocommerce-breadcrumb,
.shop-content .woocommerce-viewing {
  display: none !important;
}

.shop-content .shop-grid > .products,
.shop-content .woocommerce .shop-grid > .products,
.shop-content ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-content ul.products li.product,
.shop-content .shop-grid > .products > li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(14, 14, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.3);
}

.shop-content ul.products li.product > a,
.shop-content ul.products li.product .woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.shop-content ul.products li.product img,
.shop-content .shop-grid > .products > li.product img {
  display: block;
  width: 80%;
  max-width: 80%;
  height: 420px;
  min-height: 420px;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  margin: 0 auto;
}

.shop-content .products a,
.shop-content .products .woocommerce-LoopProduct-link,
.shop-content .products .woocommerce-loop-product__title,
.shop-content .products .price,
.shop-content .products .amount {
  color: var(--text) !important;
  text-decoration: none;
}

.shop-content .products .woocommerce-loop-product__title {
  margin: 0;
  text-align: center;
  line-height: 1.35;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  color: var(--text) !important;
}

.shop-content .products .price {
  margin: 0;
  text-align: center;
}

.shop-content .products .button,
.shop-content .products a.button,
.shop-content .products button,
.shop-content .products .added_to_cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  text-align: center;
  white-space: nowrap;
}

.shop-content ul.products li.product .button,
.shop-content ul.products li.product .added_to_cart,
.shop-content ul.products li.product .woocommerce-loop-product__link + .button {
  align-self: center;
}

.shop-content .products a:hover,
.shop-content .products .woocommerce-LoopProduct-link:hover,
.shop-content .products .woocommerce-loop-product__title:hover {
  color: var(--accent) !important;
}

@media (max-width: 800px) {
  .shop-content .shop-grid > .products,
  .shop-content .woocommerce .shop-grid > .products,
  .shop-content ul.products {
    grid-template-columns: 1fr;
  }

  .shop-content ul.products li.product img,
  .shop-content .shop-grid > .products > li.product img {
    height: 280px;
  }
}

/* fallback for shop listing when the custom wrapper isn't rendered */
body.woocommerce-shop .page-content .woocommerce-result-count,
body.woocommerce-shop .page-content .woocommerce-ordering,
body.woocommerce-shop .page-content .woocommerce-breadcrumb,
body.woocommerce-shop .page-content .woocommerce-viewing {
  display: none !important;
}

body.woocommerce-shop .page-content :is(.shop-grid > .products, .woocommerce .shop-grid > .products, ul.products) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.woocommerce-shop .page-content :is(.shop-grid > .products > li.product, ul.products > li.product) {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(14, 14, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.3);
}

body.woocommerce-shop .page-content :is(ul.products li.product > a, .shop-grid > .products > li.product > a, ul.products li.product .woocommerce-LoopProduct-link) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

body.woocommerce-shop .page-content :is(ul.products li.product img, .shop-grid > .products > li.product img) {
  display: block;
  width: 80%;
  max-width: 80%;
  height: 420px;
  min-height: 420px;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  margin: 0 auto;
}

body.woocommerce-shop .page-content .products a,
body.woocommerce-shop .page-content .products .woocommerce-LoopProduct-link,
body.woocommerce-shop .page-content .products .woocommerce-loop-product__title,
body.woocommerce-shop .page-content .products .price,
body.woocommerce-shop .page-content .products .amount {
  color: var(--text) !important;
  text-decoration: none;
}

body.woocommerce-shop .page-content .products .woocommerce-loop-product__title {
  margin: 0;
  text-align: center;
  line-height: 1.35;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  color: var(--text) !important;
}

body.woocommerce-shop .page-content .products .price {
  margin: 0;
  text-align: center;
}

body.woocommerce-shop .page-content .products .button,
body.woocommerce-shop .page-content .products a.button,
body.woocommerce-shop .page-content .products button,
body.woocommerce-shop .page-content .products .added_to_cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  text-align: center;
  white-space: nowrap;
}

body.woocommerce-shop .page-content ul.products li.product .button,
body.woocommerce-shop .page-content ul.products li.product .added_to_cart,
body.woocommerce-shop .page-content ul.products li.product .woocommerce-loop-product__link + .button {
  align-self: center;
  margin-top: auto;
}

body.woocommerce-shop .page-content .products a:hover,
body.woocommerce-shop .page-content .products .woocommerce-LoopProduct-link:hover,
body.woocommerce-shop .page-content .products .woocommerce-loop-product__title:hover {
  color: var(--accent) !important;
}

@media (max-width: 800px) {
  body.woocommerce-shop .page-content :is(.shop-grid > .products, .woocommerce .shop-grid > .products, ul.products) {
    grid-template-columns: 1fr;
  }

  body.woocommerce-shop .page-content :is(ul.products li.product img, .shop-grid > .products > li.product img) {
    height: 280px;
    min-height: 280px;
  }
}

/* Force exact casing on shop titles instead of uppercase */
body.woocommerce-shop .page-content .products .woocommerce-loop-product__title,
.shop-grid .product h2,
.page-content .products .product h2 {
  text-transform: none !important;
}

/* Fix for WooCommerce clearfix pseudo-elements becoming grid items and pushing products to the right */
body.woocommerce-shop .page-content ul.products::before,
body.woocommerce-shop .page-content ul.products::after {
  display: none !important;
  content: none !important;
}

/* Ensure the grid items are centered if the row isn't fully populated */
body.woocommerce-shop .page-content :is(.shop-grid > .products, .woocommerce .shop-grid > .products, ul.products) {
  justify-content: center;
}

/* WooCommerce Notices (Success, Error, Info) Dark Theme Styling */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  background: rgba(14, 14, 18, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: 3px solid var(--accent) !important;
  color: var(--text) !important;
  border-radius: 14px;
  margin-bottom: 32px !important;
  padding: 16px 24px !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
  color: var(--accent) !important;
}

/* "View cart" or other buttons inside the notice */
.woocommerce-message .button,
.woocommerce-error .button,
.woocommerce-info .button {
  background: linear-gradient(135deg, #ffcc33, #f0a500) !important;
  color: #111 !important;
  border-radius: 999px !important;
  border: none !important;
  font-weight: 700 !important;
  padding: 10px 24px !important;
  box-shadow: none !important;
  text-transform: none !important;
  line-height: 1.2 !important;
  float: right; /* To align with the native layout correctly */
  margin-top: -4px !important; /* Visual vertical center adjust */
}

.woocommerce-message .button:hover,
.woocommerce-error .button:hover,
.woocommerce-info .button:hover {
  opacity: 0.95 !important;
}


/* Enforce absolute link colors sitewide - kill WP default blues */
main a:not(.btn):not(.button) {
    color: var(--accent) !important;
    text-decoration: none !important;
}

main a:not(.btn):not(.button):hover {
    filter: brightness(1.15);
    text-decoration: underline !important;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: var(--text) !important;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
    color: var(--accent) !important;
}


/* Force responsive resizing on all raw iframes */
.post-content iframe {
  max-width: 100% !important;
  border-radius: 12px;
}


/* =========================================================================
   SupportCandy Dark Mode Variables & Overrides
   ========================================================================= */

/* Strip background blocks and force dark panels */
.wpsc-ticket-list,
.wpsc-ticket-container,
.wpsc-form,
.wpsc-frontend-wrap,
#wpsc_tickets_container {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--text) !important;
}

/* Force dark panels for actual cards/headers inside SupportCandy */
.wpsc-panel, 
.wpsc-ticket-reply, 
.wpsc-ticket-history,
.wpsc-ticket-header,
.wpsc-tabs .wpsc-tab-nav {
    background: rgba(14, 14, 18, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    color: var(--text) !important;
}

/* Headings and labels */
.wpsc-frontend-wrap h1,
.wpsc-frontend-wrap h2,
.wpsc-frontend-wrap h3,
.wpsc-frontend-wrap h4,
.wpsc-frontend-wrap label,
.wpsc-frontend-wrap span.wpsc-label,
.wpsc-frontend-wrap .wpsc-title,
.wpsc-frontend-wrap .wpsc-staff-name {
    color: var(--text) !important;
}

/* Inputs, Textareas, Selects */
.wpsc-frontend-wrap input[type=text],
.wpsc-frontend-wrap input[type=email],
.wpsc-frontend-wrap input[type=password],
.wpsc-frontend-wrap input[type=number],
.wpsc-frontend-wrap input[type=search],
.wpsc-frontend-wrap select,
.wpsc-frontend-wrap textarea,
.wpsc-input-tag,
.wpsc-frontend-wrap .select2-container--default .select2-selection--single,
.wpsc-frontend-wrap .select2-container--default .select2-selection--multiple {
    background-color: #0a0b10 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
}

.wpsc-frontend-wrap input:focus,
.wpsc-frontend-wrap select:focus,
.wpsc-frontend-wrap textarea:focus {
    border-color: rgba(255, 204, 51, 0.85) !important;
    box-shadow: 0 0 0 3px rgba(255, 204, 51, 0.15) !important;
    outline: none !important;
}

/* Buttons */
.wpsc-frontend-wrap button,
.wpsc-frontend-wrap input[type=submit],
.wpsc-btn,
.wpsc-button {
    background: linear-gradient(135deg, #ffcc33, #f0a500) !important;
    color: #111 !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    border: none !important;
    padding: 10px 24px !important;
    cursor: pointer !important;
    transition: filter 0.2s ease !important;
    text-shadow: none !important;
}

.wpsc-frontend-wrap button:hover,
.wpsc-frontend-wrap input[type=submit]:hover,
.wpsc-btn:hover,
.wpsc-button:hover {
    filter: brightness(1.08) !important;
}

/* Ticket List Table Rows */
.wpsc-frontend-wrap table, 
.wpsc-frontend-wrap th, 
.wpsc-frontend-wrap td {
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--text) !important;
}

.wpsc-frontend-wrap table th {
    background: rgba(255, 255, 255, 0.04) !important;
}

.wpsc-frontend-wrap table tbody tr {
    background: transparent !important;
}
.wpsc-frontend-wrap table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02) !important;
}
.wpsc-frontend-wrap table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Thread Replies */
.wpsc-ticket-reply.wpsc-staff-reply {
    border-left: 4px solid var(--accent) !important;
}

/* Status Badges */
.wpsc-status-badge {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 4px !important;
}

/* Modal and Drawers */
.wpsc-modal-content {
    background-color: rgba(20, 20, 25, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text) !important;
}

/* Hide default SupportCandy user-profile & logout elements */
.wpsc-ticket-list .wpsc-user-profile-menu,
.wpsc-header .wpsc-user-menu,
.wpsc-user-icon,
.wpsc-user-menu-item-logout,
.wpsc-logout-btn,
.wpsc-my-profile-link {
    display: none !important;
}

/* Nuke SupportCandy's "header action container" if it just houses profile links */
.wpsc-header-right > .wpsc-user-profile {
    display: none !important;
}

/* Also kill standard CSS selectors SupportCandy uses for top-right logout options */
ul.wpsc-user-menu {
    display: none !important;
}





/* Robust bbPress Container Clear Fix */
#bbpress-forums,
#bbpress-forums ul,
#bbpress-forums li {
  overflow: visible !important;
}
#bbpress-forums ul.bbp-lead-topic::after,
#bbpress-forums ul.bbp-topics::after,
#bbpress-forums ul.bbp-forums::after,
#bbpress-forums ul.bbp-replies::after,
#bbpress-forums ul.bbp-search-results::after,
#bbpress-forums li.bbp-header::after,
#bbpress-forums li.bbp-body::after,
#bbpress-forums li.bbp-footer::after {
  content: "";
  display: table;
  clear: both;
}
.bbp-forum-info, .bbp-topic-title { float: left; width: 55%; box-sizing: border-box; }
.bbp-topic-voice-count, .bbp-topic-reply-count, .bbp-forum-topic-count, .bbp-forum-reply-count { float: left; width: 10%; box-sizing: border-box; text-align: center; }
.bbp-topic-freshness, .bbp-forum-freshness { float: left; width: 25%; box-sizing: border-box; text-align: center; }
gn: center; }

/* Final stabilizers: homepage first frame + shop card width */
body.home .hero {
  min-height: 72vh !important;
  padding: 72px 40px 56px !important;
}

body.home .section {
  padding: 48px 40px 40px !important;
}

body.woocommerce-shop .shop-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 360px)) !important;
  justify-content: center !important;
}

body.woocommerce-shop .shop-grid .product {
  width: 100% !important;
  max-width: 360px !important;
}

body.woocommerce-shop .shop-grid .product img {
  height: 300px !important;
  min-height: 0 !important;
  max-height: 320px !important;
}

@media (max-width: 960px) {
  body.home .hero {
    min-height: 62vh !important;
    padding: 56px 24px 40px !important;
  }

  body.woocommerce-shop .shop-grid {
    grid-template-columns: minmax(280px, 360px) !important;
  }
}

/* Shop: single product should stay compact, not stretched */
body.woocommerce-shop ul.products li.product:only-child,
body.woocommerce-shop .shop-grid > .products > li.product:only-child {
  width: min(360px, 92vw) !important;
  max-width: 360px !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 24px !important;
}

body.woocommerce-shop ul.products li.product:only-child .button,
body.woocommerce-shop .shop-grid > .products > li.product:only-child .button,
body.woocommerce-shop ul.products li.product:only-child .added_to_cart,
body.woocommerce-shop .shop-grid > .products > li.product:only-child .added_to_cart {
  width: auto !important;
  align-self: center !important;
  padding: 12px 28px !important;
}

/* Final home hero viewport fit: keep Explore below fold on first frame */
body.home .hero {
  min-height: calc(100dvh - 100px) !important;
  padding: 64px 40px 48px !important;
}

body.admin-bar.home .hero {
  min-height: calc(100dvh - 132px) !important;
}

@media (max-width: 782px) {
  body.home .hero {
    min-height: calc(100dvh - 88px) !important;
    padding: 48px 24px 36px !important;
  }

  body.admin-bar.home .hero {
    min-height: calc(100dvh - 134px) !important;
  }
}

/* Shop final: true single-item centering + compact size */
body.woocommerce-shop ul.products {
  justify-content: center !important;
  justify-items: center !important;
}

body.woocommerce-shop ul.products li.product:only-child {
  justify-self: center !important;
  width: min(320px, 92vw) !important;
  max-width: 320px !important;
  padding: 18px !important;
  margin: 0 auto !important;
}

body.woocommerce-shop ul.products li.product:only-child img {
  height: 260px !important;
  max-height: 280px !important;
}
