:root {
  --fp-accent: #1e73be;
  --fp-border: #e8e8e8;
  --fp-text: #202020;
  --fp-muted: #6b7280;
  --fp-bg: #ffffff;
}

.fp-archive,
.fp-single {
  width: min(1200px, calc(100% - 32px));
  margin: 40px auto;
}

.fp-archive__header {
  margin-bottom: 28px;
}

.fp-archive__title,
.fp-single__title {
  margin: 0 0 10px;
  line-height: 1.1;
}

.fp-grid {
  display: grid;
  gap: 24px;
}

.fp-grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fp-grid--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fp-grid--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fp-grid--cols-1 {
  grid-template-columns: 1fr;
}

.fp-card {
  background: var(--fp-bg);
  border: 1px solid var(--fp-border);
  border-radius: 18px;
  overflow: hidden;
}

.fp-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
}

.fp-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp-card__body {
  padding: 18px;
}

.fp-card__brand,
.fp-single__brand {
  color: var(--fp-accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fp-card__title,
.fp-card__title a {
  color: var(--fp-text);
  text-decoration: none;
}

.fp-card__title {
  font-size: 1.15rem;
  margin: 8px 0;
}

.fp-card__price,
.fp-single__price {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.fp-card__excerpt,
.fp-single__subtitle,
.fp-single__short-description {
  color: var(--fp-muted);
}

.fp-product-header {
  background: var(--fp-header-gradient, transparent);
  border-radius: 22px;
  padding: 24px;
}

.fp-single__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: start;
}

.fp-single__hero {
  width: 100%;
  display: block;
  border-radius: 22px;
}

.fp-single__section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--fp-border);
}

.fp-prose p {
  margin: 0 0 1em;
}

.fp-button {
  display: inline-block;
  background: var(--fp-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
}

.fp-badge {
  display: inline-block;
  background: rgba(30, 115, 190, 0.12);
  color: var(--fp-accent);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.fp-gallery,
.fp-shortcode-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fp-specs-table-wrap {
  overflow-x: auto;
}

.fp-feature-list {
  margin: 0;
  padding-left: 1.25rem;
}

.fp-feature-list li + li {
  margin-top: 0.5rem;
}

.fp-specs-display {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--fp-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--fp-bg);
}

.fp-specs-display th,
.fp-specs-display td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--fp-border);
  text-align: left;
  background: var(--fp-bg);
}

.fp-specs-display th {
  width: 34%;
  color: var(--fp-text);
  font-weight: 700;
}

.fp-specs-display > tbody > tr.fp-specs-display__group > th {
  width: auto;
  background-color: var(--fp-spec-category, #f3f4f6) !important;
  border-bottom: 1px solid var(--fp-text);
  padding-top: 22px;
  padding-bottom: 22px;
}

.fp-specs-display > tbody > tr.fp-specs-display__row--odd > th,
.fp-specs-display > tbody > tr.fp-specs-display__row--odd > td {
  background-color: var(--fp-spec-odd, rgba(30, 115, 190, 0.06)) !important;
}

.fp-specs-display > tbody > tr.fp-specs-display__row--even > th,
.fp-specs-display > tbody > tr.fp-specs-display__row--even > td {
  background-color: var(--fp-spec-even, #f3f4f6) !important;
}

.fp-specs-display tr:last-child th,
.fp-specs-display tr:last-child td {
  border-bottom: 0;
}

.fp-gallery img,
.fp-shortcode-gallery img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

.fp-pagination {
  margin-top: 28px;
}

.fp-featured-product-carousel {
  position: relative;
}

.fp-featured-product-carousel__track {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  min-height: 320px;
}

.fp-featured-product-carousel__slides,
.fp-featured-product-carousel__track .swiper-wrapper {
  height: 100%;
}

.fp-featured-product-carousel__slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform var(--fp-carousel-speed, 600ms) ease;
  will-change: transform;
}

.fp-featured-product-carousel__slide {
  flex: 0 0 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.fp-featured-product-carousel__link,
.fp-featured-product-carousel__image {
  display: block;
  width: 100%;
  height: 100%;
}

.fp-featured-product-carousel__link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-featured-product-carousel__image {
  object-fit: contain;
  object-position: center;
  max-width: 100%;
  max-height: 100%;
}

.fp-featured-product-carousel.is-effect-fade .fp-featured-product-carousel__slides {
  display: block;
  position: relative;
  transform: none !important;
}

.fp-featured-product-carousel.is-effect-fade .fp-featured-product-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--fp-carousel-speed, 600ms) ease;
  pointer-events: none;
}

.fp-featured-product-carousel.is-effect-fade .fp-featured-product-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.fp-featured-product-carousel__button {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.fp-featured-product-carousel__button.is-clicked {
  filter: brightness(0.96);
}

.fp-featured-product-carousel__button:disabled {
  opacity: 0.45;
  cursor: default;
}

.fp-featured-product-carousel__button--prev {
  left: 16px;
}

.fp-featured-product-carousel__button--next {
  right: 16px;
}

.fp-featured-product-carousel__pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 4;
  text-align: center;
  display: flex;
  gap: 8px;
  justify-content: center;
  pointer-events: none;
}

.fp-featured-product-carousel__pagination-button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
}

.fp-featured-product-carousel__pagination-button.is-active {
  background: #fff;
}

.fp-featured-product-carousel__thumbs {
  --fp-thumb-columns: 3;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--fp-thumb-columns) - 1) * 12px) / var(--fp-thumb-columns));
  gap: 12px;
}

.fp-featured-product-carousel__thumbs-viewport {
  margin-top: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.fp-featured-product-carousel__thumbs-viewport::-webkit-scrollbar {
  display: none;
}

.fp-featured-product-carousel__thumb {
  appearance: none;
  border: 0;
  padding: 8px;
  margin: 0;
  background: #f5f5f5;
  border-radius: 0;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.12);
  pointer-events: auto;
  position: relative;
  box-sizing: border-box;
  scroll-snap-align: start;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.fp-featured-product-carousel__thumb-image {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: contain;
  object-position: center;
}

.fp-featured-product-carousel__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(107, 114, 128, 0.38);
  transition: background-color 0.2s ease;
  pointer-events: none;
}

.fp-featured-product-carousel__thumb.is-active {
  box-shadow: inset 0 0 0 2px var(--fp-accent);
}

.fp-featured-product-carousel__thumb.is-active::after {
  background: transparent;
}

@media (max-width: 960px) {
  .fp-grid--cols-3,
  .fp-grid--cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-single__wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fp-grid,
  .fp-gallery,
  .fp-shortcode-gallery {
    grid-template-columns: 1fr;
  }

  .fp-featured-product-carousel__track {
    min-height: 240px;
  }

  .fp-featured-product-carousel__button {
    width: 40px;
    height: 40px;
  }

  .fp-featured-product-carousel__thumbs {
    gap: 8px;
    grid-auto-columns: calc((100% - (var(--fp-thumb-columns) - 1) * 8px) / var(--fp-thumb-columns));
  }

  .fp-featured-product-carousel__thumb-image {
    height: 84px;
  }

  .fp-archive,
  .fp-single {
    width: min(100%, calc(100% - 24px));
  }

  .fp-specs-display,
  .fp-specs-display tbody,
  .fp-specs-display tr,
  .fp-specs-display th,
  .fp-specs-display td {
    display: block;
    width: 100%;
  }

  .fp-specs-display th,
  .fp-specs-display td {
    box-sizing: border-box;
  }
}
