{%- import '../../css/variable/_variables.css' -%}

/* ============================================================
   Product Tab Section — module.css
   Uses design tokens from _variables.css
   BEM naming: .product-tab-section
   No inline styles; all colours via 
   ============================================================ */

/* ── Section Header ──────────────────────────────────────── */

.product-tab-section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 64px;
}

.product-tab-section__heading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.product-tab-section__title {
  color: ;
}

.product-tab-section__description {
  color: ;
  font-size: ;
  line-height: ;
}

.product-tab-section__description p {
  margin: 0;
}

/* ── Tab Widget ──────────────────────────────────────────── */

.product-tab-section__tab-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* ── Tab List (pill bar) ─────────────────────────────────── */

.product-tab-section__tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

/* ── Individual Tab Button ───────────────────────────────── */

.product-tab-section__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 999px;
  border: 1px solid ;
  background-color: ;
  color: ;
  font-family: ;
  font-size: ;
  font-weight: 400;
  line-height: ;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Active / selected tab */
.product-tab-section__tab--active,
.product-tab-section__tab[aria-selected="true"] {
  background-color: ;
  border-color: ;
  color: #ffffff;
}

/* Hover for inactive tabs */
.product-tab-section__tab:not([aria-selected="true"]):hover {
  background-color: ;
  border-color: ;
  color: #ffffff;
}

/* Focus ring — WCAG 2.4.7 */
.product-tab-section__tab:focus-visible {
  outline: 2px solid ;
  outline-offset: 3px;
}

.product-tab-section__tab:focus:not(:focus-visible) {
  outline: none;
}

/* ── Tab Panels Container ────────────────────────────────── */

.product-tab-section__panels {
  width: 100%;
}

/* Hidden panels */
.product-tab-section__panel[hidden] {
  display: none;
}

/* Panel focus ring — allows keyboard Tab to move into panel */
.product-tab-section__panel:focus-visible {
  outline: 2px solid ;
  outline-offset: 4px;
  border-radius: 16px;
}

.product-tab-section__panel:focus:not(:focus-visible) {
  outline: none;
}

/* ── Content Card ────────────────────────────────────────── */

.product-tab-section__card {
  position: relative;
  background-color: #ffffff;
  border: 1px solid ;
  border-radius: 16px;
  padding: 24px;
  overflow: hidden;
}

.product-tab-section__card-row {
  position: relative;
  z-index: 1;
  align-items: center;
}

/* ── Floating Decorative Icon ────────────────────────────── */

.product-tab-section__floating-icon {
  position: absolute;
  top: -119px;
  left: -141px;
  width: 438px;
  height: 433px;
  pointer-events: none;
  z-index: 0;
}

.product-tab-section__floating-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Left Column ─────────────────────────────────────────── */

.product-tab-section__col-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* Icon + Product Name row */
.product-tab-section__icon-name {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Dark circle icon wrapper */
.product-tab-section__icon-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 4px;
  background-color: ;
  border-radius: 999px;
}

.product-tab-section__icon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background-color: ;
  border-radius: 999px;
  overflow: hidden;
}

.product-tab-section__icon-img {
  display: block;
  width: auto;
  height: 30px;
  object-fit: contain;
}

/* Product Name H3 */
.product-tab-section__product-name {
  flex: 1 1 auto;
  margin: 0;
  font-family: ;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  color: ;
}

/* Best For section */
.product-tab-section__best-for {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-tab-section__best-for-label {
  margin: 0;
  font-family: ;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: ;
}

/* Tags list — rendered as a proper <ul> for accessibility */
.product-tab-section__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-tab-section__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  background-color: ;
  border: 1px solid ;
  border-radius: 999px;
  font-family: ;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: ;
  white-space: nowrap;
}

/* ── Center Column: Image ────────────────────────────────── */

.product-tab-section__col-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-tab-section__image-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.product-tab-section__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
}

/* ── Right Column ────────────────────────────────────────── */

.product-tab-section__col-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Feature text block */
.product-tab-section__feature-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-tab-section__feature-title {
  margin: 0;
  font-family: ;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: ;
}

.product-tab-section__feature-desc {
  font-family: ;
  font-size: ;
  font-weight: 400;
  line-height: ;
  color: ;
}

.product-tab-section__feature-desc p {
  margin: 0;
}

/* Divider */
.product-tab-section__divider {
  height: 1px;
  background-color: ;
  width: 100%;
}

/* Capabilities section */
.product-tab-section__capabilities {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-tab-section__capabilities-label {
  margin: 0;
  font-family: ;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: ;
}

/* Capabilities list — rendered as proper <ul> */
.product-tab-section__capabilities-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-tab-section__capability-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-tab-section__capability-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  color: ;
}

.product-tab-section__capability-text {
  font-family: ;
  font-size: ;
  font-weight: 400;
  line-height: ;
  color: ;
}

/* CTA wrapper */
.product-tab-section__cta {
  display: flex;
}

/* ── Responsive: Tablet ──────────────────────────────────── */

@media (max-width: 991px) {
  .product-tab-section__header {
    margin-bottom: 40px;
  }

  .product-tab-section__tab-widget {
    gap: 24px;
  }

  .product-tab-section__product-name {
    font-size: 22px;
  }
}

/* ── Responsive: Mobile ──────────────────────────────────── */

@media (max-width: 767px) {
  .product-tab-section__header {
    margin-bottom: 32px;
  }

  .product-tab-section__tablist {
    gap: 8px;
  }

  .product-tab-section__tab {
    padding: 10px 20px;
    font-size: 14px;
  }

  .product-tab-section__card {
    padding: 20px 16px;
  }

  .product-tab-section__floating-icon {
    opacity: 0.5;
    width: 250px;
    height: 247px;
    top: -60px;
    left: -80px;
  }

  .product-tab-section__product-name {
    font-size: 20px;
  }

  .product-tab-section__col-left,
  .product-tab-section__col-center,
  .product-tab-section__col-right {
    width: 100%;
  }

  .product-tab-section__tag {
    font-size: 13px;
  }
}

/* ── Reduced-Motion Support — WCAG 2.3.3 ────────────────── */

@media (prefers-reduced-motion: reduce) {
  .product-tab-section__tab {
    transition: none;
  }
}
