/* =====================================================================
   Fiche produit — accordéon Description / Tissu / Lavage
   ===================================================================== */

.woocommerce-tabs.wc-tabs-wrapper,
.woostify-accordion-title,
.modern-tabs-horizontal {
  display: none !important;
}

.modern-accordion-vertical {
  --medi-tab-teal: #48aa9d;
  --medi-tab-teal-dark: #2d6f65;
  --medi-tab-teal-soft: #e8f6f3;
  --medi-tab-border: #e2ece9;
  --medi-tab-text: #1f2937;
  --medi-tab-muted: #5b6b78;
  position: relative;
  margin-top: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(160deg, #f8fcfb 0%, #ffffff 55%, #f4faf8 100%);
  border-radius: 18px;
  border: 1px solid var(--medi-tab-border);
  box-shadow:
    0 4px 24px rgba(72, 170, 157, 0.08),
    0 1px 3px rgba(15, 46, 42, 0.04);
  overflow: hidden;
}

.modern-accordion-vertical::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(72, 170, 157, 0.07) 0%, transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(45, 111, 101, 0.05) 0%, transparent 38%);
  pointer-events: none;
}

/* ----------------- Tabs ----------------- */
.accordion-tab {
  position: relative;
  border-bottom: 1px solid var(--medi-tab-border);
  transition: background 0.3s ease;
}

.accordion-tab:last-child {
  border-bottom: none;
}

.accordion-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  background: transparent;
  transition: background 0.25s ease, padding 0.25s ease;
  position: relative;
  z-index: 1;
}

.accordion-header:hover {
  background: rgba(72, 170, 157, 0.04);
}

.accordion-tab.active .accordion-header {
  background: linear-gradient(90deg, rgba(72, 170, 157, 0.1) 0%, rgba(255, 255, 255, 0) 72%);
}

.accordion-tab.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--medi-tab-teal) 0%, #5ec7b8 100%);
  border-radius: 0 4px 4px 0;
}

/* Icon badge in header */
.medi-tab-icon-badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, var(--medi-tab-teal-soft) 100%);
  border: 1px solid rgba(72, 170, 157, 0.22);
  box-shadow: 0 4px 12px rgba(72, 170, 157, 0.12);
  color: var(--medi-tab-teal-dark);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.accordion-tab.active .medi-tab-icon-badge {
  background: linear-gradient(135deg, var(--medi-tab-teal) 0%, #5ec7b8 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(72, 170, 157, 0.35);
  transform: scale(1.03);
}

.medi-tab-icon-badge svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.accordion-header-text {
  flex: 1;
  min-width: 0;
}

.tab-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--medi-tab-text);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.tab-subtitle {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--medi-tab-muted);
  line-height: 1.3;
}

.accordion-tab.active .tab-title {
  color: var(--medi-tab-teal-dark);
}

.medi-tab-chevron {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--medi-tab-border);
  color: var(--medi-tab-muted);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease, color 0.25s ease;
}

.medi-tab-chevron svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.accordion-tab.active .medi-tab-chevron {
  transform: rotate(180deg);
  background: var(--medi-tab-teal);
  border-color: var(--medi-tab-teal);
  color: #fff;
}

/* ----------------- Content ----------------- */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-tab.active .accordion-content {
  max-height: 2400px;
}

.tab-inner {
  position: relative;
  z-index: 1;
  padding: 8px 22px 24px;
  animation: mediTabFadeIn 0.35s ease forwards;
}

@keyframes mediTabFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------- Highlights (Description) ----------------- */
.product-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.product-highlights .highlight-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 14px 16px;
  background: #fff;
  border: 1px solid var(--medi-tab-border);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(15, 46, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-highlights .highlight-item:hover {
  transform: translateY(-2px);
  border-color: rgba(72, 170, 157, 0.35);
  box-shadow: 0 8px 20px rgba(72, 170, 157, 0.1);
}

.highlight-icon-wrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--medi-tab-teal-soft);
  color: var(--medi-tab-teal-dark);
}

.highlight-icon-wrap svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-highlights .highlight-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--medi-tab-text);
  line-height: 1.35;
}

/* ----------------- Description body ----------------- */
.product-description-container {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--medi-tab-border);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tab-inner p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--medi-tab-muted);
  line-height: 1.7;
}

.tab-inner p:last-child {
  margin-bottom: 0;
}

/* ----------------- Fabric composition ----------------- */
.fabric-composition-list {
  display: grid;
  gap: 12px;
}

.fabric-composition-list .fabric-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--medi-tab-border);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(15, 46, 42, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fabric-composition-list .fabric-item:hover {
  border-color: rgba(72, 170, 157, 0.3);
  box-shadow: 0 6px 18px rgba(72, 170, 157, 0.08);
}

.fabric-icon-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--medi-tab-teal-soft) 0%, #fff 100%);
  color: var(--medi-tab-teal);
  border: 1px solid rgba(72, 170, 157, 0.18);
}

.fabric-icon-wrap svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fabric-composition-list .fabric-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--medi-tab-text);
  line-height: 1.45;
}

.washing-instructions {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--medi-tab-border);
  border-radius: 14px;
  font-size: 0.95rem;
  color: var(--medi-tab-muted);
  line-height: 1.7;
}

/* ----------------- Care / washing cards ----------------- */
.default-washing-instructions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.care-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 14px 16px;
  background: #fff;
  border: 1px solid var(--medi-tab-border);
  border-radius: 14px;
  min-height: 100%;
  box-shadow: 0 2px 8px rgba(15, 46, 42, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.care-item:hover {
  transform: translateY(-2px);
  border-color: rgba(72, 170, 157, 0.32);
}

.care-icon-wrap {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #f0f9f7;
  color: var(--medi-tab-teal-dark);
}

.care-icon-wrap svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.care-text {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--medi-tab-text);
  line-height: 1.45;
}

/* ----------------- Responsive ----------------- */
@media (min-width: 768px) {
  .product-highlights {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .default-washing-instructions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .default-washing-instructions .care-item:last-child:nth-child(odd) {
    grid-column: span 1;
  }
}

@media (max-width: 767px) {
  .modern-accordion-vertical {
    margin-top: 1.5rem;
    border-radius: 14px;
  }

  .accordion-header {
    padding: 16px 16px;
    gap: 12px;
  }

  .medi-tab-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .tab-inner {
    padding: 6px 16px 20px;
  }

  .product-highlights {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .default-washing-instructions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .product-highlights {
    grid-template-columns: 1fr;
  }

  .tab-title {
    font-size: 0.92rem;
  }

  .tab-subtitle {
    font-size: 0.72rem;
  }
}
