
.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;
    flex-wrap: wrap;
  }

  .primary-nav .nav-cta {
    text-align: center;
  }

  /* Android-Chrome defensive hero layout: image under text via grid overlay */
  .hero {
    display: block;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: #05060a;
    overflow: hidden;
    isolation: isolate;
  }

  .hero-mobile-media {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    margin-top: 0;
    background: #05060a;
    overflow: hidden;
  }

  .hero-mobile-bg {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    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 {
    position: relative;
    z-index: 2;
    max-width: none;
    padding: 36px 20px 32px;
  }

  .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;
    width: 100%;
    height: 100%;
    background: rgba(5, 6, 10, 0.72);
    pointer-events: none;
    z-index: 1;
  }

  .hero-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero-mobile-media,
  .hero-mobile-bg {
    min-height: 0;
  }

  .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;
}
