.fsg-wrap {
  clear: both;
  margin: 32px 0;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.18);
  background: #0b0b0b;
  color: #fff;
}
.fsg-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.fsg-wrap h2 { margin: 0 0 6px; color: #fff; }
.fsg-wrap p { margin: 0; color: rgba(255,255,255,.72); }
.fsg-locked,
.fsg-current {
  padding: 16px 18px;
  border: 1px solid rgba(129,255,133,.35);
  background: rgba(129,255,133,.08);
}
.fsg-current { margin-bottom: 18px; }
.fsg-current span { color: #81ff85; font-weight: 700; }

.fsg-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
}
.fsg-search,
.fsg-variation-select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 0;
  box-sizing: border-box;
}
.fsg-search {
  max-width: 420px;
  background: #fff;
  color: #000;
}
.fsg-search::placeholder { color: #666; }

/* Force readable variation text even when the active theme overrides WooCommerce selects. */
.fsg-wrap .fsg-variation-select,
.fsg-wrap .fsg-variation-select:focus,
.fsg-wrap .fsg-variation-select:hover,
.fsg-wrap .fsg-variation-select option {
  background: #fff !important;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

.fsg-carousel-nav {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}
.fsg-carousel-nav .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* One horizontal row. Exactly four product cards fit in the visible desktop area. */
.fsg-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 54px) / 4);
  grid-template-columns: none;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(129,255,133,.8) rgba(255,255,255,.12);
}
.fsg-grid::-webkit-scrollbar { height: 9px; }
.fsg-grid::-webkit-scrollbar-track { background: rgba(255,255,255,.12); }
.fsg-grid::-webkit-scrollbar-thumb {
  background: rgba(129,255,133,.8);
  border-radius: 999px;
}
.fsg-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: #111;
  scroll-snap-align: start;
}
.fsg-image { aspect-ratio: 1 / 1; overflow: hidden; background: #080808; }
.fsg-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fsg-card h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.fsg-card .button { width: 100%; margin-top: auto; }
.fsg-simple-label { min-height: 44px; display: flex; align-items: center; color: rgba(255,255,255,.62); }
.fsg-cart-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 2px;
  background: #81ff85;
  color: #000;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}
.fsg-fixed-quantity { font-weight: 700; }

@media (max-width: 1024px) {
  .fsg-grid {
    grid-auto-columns: calc((100% - 24px) / 2.5);
    gap: 12px;
  }
}
@media (max-width: 767px) {
  .fsg-wrap { padding: 16px; }
  .fsg-heading-row { display: block; }
  .fsg-heading-row .button { margin-top: 14px; }
  .fsg-toolbar { align-items: stretch; }
  .fsg-search { min-width: 0; }
  .fsg-grid { grid-auto-columns: calc((100% - 12px) / 1.55); }
}
@media (max-width: 430px) {
  .fsg-toolbar { gap: 8px; }
  .fsg-carousel-nav .button {
    width: 40px;
    min-width: 40px;
    height: 44px;
  }
  .fsg-grid { grid-auto-columns: 84%; }
}
