/* ════════════════════════════════════════════════════════════════════
   Vue textile — catalogue + fiche produit
   Un seul fichier pour les deux pages. Tout est rangé sous .tx-vue :
   rien ne touche le reste de votre site.

   1. Réglages (couleurs, rayons, hauteur de votre en-tête)   ← à adapter
   2. Socle (remise à zéro limitée à .tx-vue)
   3. Catalogue  (catalogue.html)
   4. Fiche produit (article.html)
   ════════════════════════════════════════════════════════════════════ */

/* ── 1. Réglages ─────────────────────────────────────────────────── */
.tx-vue {
  /* Couleur d'action : liens, cases cochées, étapes, bouton panier */
  --tx-accent:        #1681C4;
  --tx-accent-dark:   #1266a2;
  --tx-accent-tint:   #eff6ff;   /* fond d'un élément sélectionné */
  --tx-accent-ring:   color-mix(in srgb, var(--tx-accent) 12%, transparent);

  /* Textes et surfaces */
  --tx-ink:           #1a1a2e;   /* titres */
  --tx-text:          #2c2c3e;   /* texte courant */
  --tx-muted:         #6b7280;   /* texte secondaire */
  --tx-border:        #e5e7eb;
  --tx-bg-soft:       #f8f9fc;
  --tx-radius:        10px;

  /* Teinte d'accompagnement (pastilles « Voir les prix », survols, panneau des filtres) */
  --tx-tint:          #fdf2f8;
  --tx-tint-ink:      #9d174d;
  --tx-tint-strong:   #be185d;
  --tx-tint-border:   #f9a8d4;

  /* Fonds décoratifs */
  --tx-hero-bg:       linear-gradient(135deg, #fff4f9 0%, #f4f5ff 55%, #fff 100%);
  --tx-hero-glow:     radial-gradient(520px 300px at 88% 40%, rgba(236, 72, 153, .18), transparent 70%),
                      radial-gradient(420px 280px at 68% 10%, rgba(99, 102, 241, .16), transparent 70%),
                      radial-gradient(300px 220px at 96% 95%, rgba(245, 158, 11, .16), transparent 70%);
  --tx-banner-bg:     linear-gradient(90deg, #fff7ed, #fdf2f8);
  --tx-banner-border: #fde2e7;
  --tx-panel-head-bg: linear-gradient(135deg, #fff1f7, #eef2ff);
  --tx-title-bar:     linear-gradient(180deg, var(--tx-accent), var(--tx-tint-strong));

  /* Bouton pastel à texte sombre (« Voir le produit », « Voir N produits ») */
  --tx-cta-bg:        linear-gradient(120deg, #ffcfe6 0%, #dcd9ff 52%, #ffe0bd 100%);
  --tx-cta-ink:       #1f2340;
  --tx-cta-ring:      inset 0 0 0 1px rgba(139, 67, 170, .22);

  /* Hauteur de VOTRE en-tête fixe : les colonnes collantes (filtres, photo)
     s'arrêtent dessous. 0 si votre en-tête ne reste pas à l'écran. */
  --tx-sticky-top:    0px;

  --tx-font:          'Inter', system-ui, sans-serif;
}

/* ── 2. Socle ────────────────────────────────────────────────────── */
.tx-vue { font-family: var(--tx-font); color: var(--tx-text); font-size: 15px; line-height: 1.6; }
:where(.tx-vue), :where(.tx-vue) *, :where(.tx-vue) *::before, :where(.tx-vue) *::after { box-sizing: border-box; }
:where(.tx-vue) :where(h1, h2, h3, h4, p, ul, ol, li, figure, table, th, td, button, input, select, textarea) { margin: 0; padding: 0; }
:where(.tx-vue) img { max-width: 100%; height: auto; display: block; }
:where(.tx-vue) a { text-decoration: none; color: inherit; }
:where(.tx-vue) ul { list-style: none; }
:where(.tx-vue) button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
.tx-vue [hidden] { display: none !important; }

.tx-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 1400px) { .tx-container { max-width: 1500px; } }
@media (min-width: 1800px) { .tx-container { max-width: 1760px; } }

.tx-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.tx-section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--tx-ink); position: relative; padding-bottom: 12px; letter-spacing: -.02em; line-height: 1.6; }
.tx-section-head h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 48px; height: 4px; background: linear-gradient(135deg, var(--tx-accent), var(--tx-accent-dark)); border-radius: 2px; }

/* ── 3. Catalogue ────────────────────────────────────────────────── */

/* 3.1 Bandeau de tête */
.tx-hero { background: var(--tx-hero-bg); color: var(--tx-ink); padding: 52px 0 58px; position: relative; overflow: hidden; }
.tx-hero::before { content: ''; position: absolute; inset: 0; background: var(--tx-hero-glow); pointer-events: none; }
.tx-hero__inner { position: relative; z-index: 1; }
.tx-hero__crumb { font-size: 13px; color: var(--tx-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.tx-hero__crumb a { color: var(--tx-muted); }
.tx-hero__crumb a:hover { color: var(--tx-accent); }
.tx-hero__crumb i { font-size: 10px; opacity: .6; }
.tx-hero__title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin: 0 0 10px; line-height: 1.15; color: var(--tx-ink); letter-spacing: -.02em; max-width: 760px; }
.tx-hero__sub { font-size: 17px; margin: 0 0 24px; max-width: 600px; color: #4b5563; }
.tx-hero__pills { display: flex; gap: 10px; flex-wrap: wrap; }
.tx-hero__pill { background: #fff; color: var(--tx-ink); border: 1px solid #f3d3e3; border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 600; box-shadow: 0 2px 8px rgba(180, 60, 130, .08); }
.tx-hero__pill i { color: var(--tx-accent); margin-right: 4px; }

/* 3.2 Bandeau « tarifs réservés » (affiché quand la page n'a pas de prix à montrer) */
.tx-pricebanner { padding: 14px 0; }
.tx-pricebanner__inner { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13.5px; color: var(--tx-muted); flex-wrap: wrap; text-align: center; background: var(--tx-banner-bg); border: 1px solid var(--tx-banner-border); border-radius: 14px; padding: 12px 18px; margin-top: 14px; }
.tx-pricebanner__inner i { color: var(--tx-accent); font-size: 14px; }
.tx-pricebanner__inner strong { color: var(--tx-ink); font-weight: 700; }
.tx-pricebanner__inner a { color: var(--tx-accent); font-weight: 600; border-bottom: 1px dashed; }
.tx-pricebanner__inner a:hover { color: var(--tx-accent-dark); }

/* 3.3 Bande des avantages (chevauche le bas du bandeau de tête) */
.tx-infoband { padding: 0 0 8px; margin-top: -30px; position: relative; z-index: 2; }
.tx-pricebanner + .tx-infoband { margin-top: 0; }
.tx-infoband__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; background: #fff; border: 1px solid #eef0f3; border-radius: 18px; padding: 16px 18px; box-shadow: 0 10px 30px rgba(17, 24, 39, .06); }
.tx-infoband__item { display: flex; align-items: center; gap: 14px; padding: 6px 8px; }
.tx-infoband__item i { width: 42px; height: 42px; border-radius: 12px; font-size: 17px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #fce7f3, #e0e7ff); color: #be185d; }
.tx-infoband__item:nth-child(2) i { background: #e0f2fe; color: #0369a1; }
.tx-infoband__item:nth-child(3) i { background: #dcfce7; color: #15803d; }
.tx-infoband__item:nth-child(4) i { background: #fef3c7; color: #b45309; }
.tx-infoband__item strong { display: block; font-size: 14px; font-weight: 700; color: var(--tx-ink); }
.tx-infoband__item span { font-size: 12px; color: var(--tx-muted); }
@media (max-width: 900px) {
  .tx-infoband { margin-top: 0; padding-top: 18px; }
  .tx-infoband__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) { .tx-infoband__inner { grid-template-columns: 1fr; } }

/* 3.4 Section catalogue */
.tx-catalog { padding: 40px 0 72px; background: linear-gradient(#fff 0%, #f7f8fb 160px, #f7f8fb 100%); }

/* Best-sellers */
.tx-bestsellers { margin: 6px 0 34px; background: var(--tx-banner-bg); border: 1px solid var(--tx-banner-border); border-radius: 18px; padding: 20px 20px 22px; }
.tx-bestsellers__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tx-bestsellers__head h3 { font-size: 19px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; color: var(--tx-ink); }
.tx-bestsellers__head h3 i { color: #f59e0b; width: 30px; height: 30px; border-radius: 9px; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.tx-bestsellers__head span { font-size: 13px; color: var(--tx-muted); }
.tx-bestsellers__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.tx-bestsellers__grid .tx-card { min-width: 0; }
@media (min-width: 1400px) { .tx-bestsellers__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1800px) { .tx-bestsellers__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 900px) { .tx-bestsellers__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; } }
@media (max-width: 640px) {
  .tx-bestsellers__grid { display: flex; overflow-x: auto; gap: 12px; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .tx-bestsellers__grid .tx-card { flex: 0 0 46%; scroll-snap-align: start; }
}

/* Barre de recherche + listes */
.textile-filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; margin: 0 0 24px; align-items: center; background: #fff; border: 1px solid #eef0f3; border-radius: 16px; padding: 12px; box-shadow: 0 6px 20px rgba(17, 24, 39, .04); }
.textile-filters input[type="search"],
.textile-filters select { width: 100%; padding: 12px 14px; font: inherit; font-size: 14.5px; line-height: 1.3; color: var(--tx-text); border: 1px solid #e5e7eb; border-radius: 12px; background-color: #fafafa; min-height: 44px; -webkit-appearance: none; appearance: none; }
.textile-filters select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236b7280' d='M6 8L0 0h12z'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.textile-filters input[type="search"] { padding-left: 40px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>"); background-repeat: no-repeat; background-position: 14px center; }
.textile-filters input[type="search"]:focus,
.textile-filters select:focus { outline: none; background-color: #fff; border-color: var(--tx-accent); box-shadow: 0 0 0 3px var(--tx-accent-ring); }
.textile-filters__chk { font-size: 13.5px; color: var(--tx-muted); display: flex; gap: 8px; align-items: center; white-space: nowrap; padding: 0 4px; min-height: 44px; }
.textile-filters__chk input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--tx-accent); }
@media (max-width: 900px) {
  .textile-filters { grid-template-columns: 1fr 1fr; gap: 10px; }
  .textile-filters input[type="search"] { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .textile-filters { padding: 10px; border-radius: 14px; } }
@media (max-width: 520px) {
  .textile-filters { grid-template-columns: 1fr; gap: 8px; }
  .textile-filters input[type="search"] { grid-column: auto; }
}

/* Deux colonnes : filtres à gauche, résultats à droite */
.textile-catalog { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 30px; align-items: start; }
.textile-catalog.no-facets { grid-template-columns: 1fr; }
@media (min-width: 1400px) { .textile-catalog { grid-template-columns: 290px minmax(0, 1fr); gap: 34px; } }
@media (min-width: 1800px) { .textile-catalog { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; } }
@media (max-width: 900px) { .textile-catalog { grid-template-columns: 1fr; gap: 0; } }
.textile-results { min-width: 0; }
.textile-results__bar { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; min-height: 32px; }
.textile-results__count { font-size: 14px; font-weight: 600; color: #374151; }
.textile-results__count:not(:empty)::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tx-accent); margin-right: 8px; vertical-align: 1px; }
.textile-filters-toggle { display: none; align-items: center; gap: 9px; padding: 10px 16px; min-height: 44px; border: 1px solid var(--tx-border); border-radius: 12px; background: #fff; color: var(--tx-ink); font-size: 14px; font-weight: 700; }
.textile-filters-toggle__n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; background: var(--tx-accent); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; }
@media (max-width: 900px) { .textile-filters-toggle { display: inline-flex; } }

/* Panneau des filtres (colonne collante sur ordinateur, volet sur téléphone) */
.textile-sidebar { position: sticky; top: calc(var(--tx-sticky-top) + 16px); max-height: calc(100vh - var(--tx-sticky-top) - 32px); align-self: start; background: #fff; border: 1px solid #eef0f3; border-radius: 16px; box-shadow: 0 6px 20px rgba(17, 24, 39, .04); overflow-x: hidden; overflow-y: auto; }
.textile-sidebar, .textile-sidebar__body, .tx-acc__body { scrollbar-width: none; -ms-overflow-style: none; }
.textile-sidebar::-webkit-scrollbar, .textile-sidebar__body::-webkit-scrollbar, .tx-acc__body::-webkit-scrollbar { display: none; width: 0; height: 0; }
.textile-sidebar__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #f1e6ee; background: var(--tx-panel-head-bg); }
.textile-sidebar__head h3 { font-size: 15px; font-weight: 800; color: var(--tx-ink); flex: 1; display: flex; align-items: center; gap: 8px; }
.textile-sidebar__head h3::before { content: '\f1de'; font-family: 'Font Awesome 6 Free'; font-weight: 900; width: 28px; height: 28px; border-radius: 8px; background: #fff; color: var(--tx-tint-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.textile-sidebar__n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; background: var(--tx-accent); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; }
.textile-sidebar__clear { color: var(--tx-tint-strong); font-size: 13px; font-weight: 600; }
.textile-sidebar__close { display: none; }
.textile-sidebar__foot { display: none; }
.textile-sidebar__apply { flex: 1; min-height: 48px; background: var(--tx-cta-bg); color: var(--tx-cta-ink); box-shadow: var(--tx-cta-ring); border-radius: 12px; font-size: 15px; font-weight: 700; }
.textile-sidebar__backdrop { position: fixed; inset: 0; z-index: 1200; background: rgba(17, 24, 39, .5); }

.tx-acc { border-bottom: 1px solid #f1f3f5; }
.tx-acc:last-child { border-bottom: none; }
.tx-acc__head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-size: 13.5px; font-weight: 700; color: var(--tx-ink); text-align: left; }
.tx-acc__icon { color: #9ca3af; width: 16px; text-align: center; }
.tx-acc__label { flex: 1; }
.tx-acc__badge { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 6px; background: var(--tx-accent); color: #fff; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.tx-acc__chevron { color: var(--tx-muted); font-size: 12px; transition: transform .18s; }
.tx-acc[data-open="0"] .tx-acc__chevron { transform: rotate(-90deg); }
.tx-acc[data-open="0"] .tx-acc__body { display: none; }
.tx-acc__body { padding: 2px 10px 12px 16px; max-height: 248px; overflow-y: auto;
  /* ombres de défilement : elles n'apparaissent que s'il reste des choix au-dessus ou en dessous */
  background:
    linear-gradient(#fff 35%, rgba(255, 255, 255, 0)) center top / 100% 26px no-repeat local,
    linear-gradient(rgba(255, 255, 255, 0), #fff 65%) center bottom / 100% 26px no-repeat local,
    radial-gradient(farthest-side at 50% 0, rgba(17, 24, 39, .13), transparent) center top / 100% 9px no-repeat scroll,
    radial-gradient(farthest-side at 50% 100%, rgba(17, 24, 39, .13), transparent) center bottom / 100% 9px no-repeat scroll; }
.tx-opt { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 4px; font-size: 13.5px; color: var(--tx-ink); text-align: left; border-radius: 10px; }
.tx-opt:hover { background: var(--tx-tint); }
.tx-opt__box { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #d1d5db; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; }
.tx-opt__box .fa-check { opacity: 0; }
.tx-opt.is-active .tx-opt__box { background: var(--tx-accent); border-color: var(--tx-accent); }
.tx-opt.is-active .tx-opt__box .fa-check { opacity: 1; }
.tx-opt__dot { flex: 0 0 auto; width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); }
.tx-opt__label { flex: 1; line-height: 1.3; }
.tx-opt.is-active .tx-opt__label { font-weight: 600; }
.tx-opt__n { color: var(--tx-muted); font-size: 11px; background: #f3f4f6; border-radius: 999px; padding: 1px 7px; }

@media (max-width: 900px) {
  .textile-sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 1300; width: min(86vw, 360px); max-width: 360px; height: 100dvh; max-height: none; border: none; border-radius: 0; display: flex; flex-direction: column; overflow: hidden; transform: translateX(-100%); transition: transform .25s; box-shadow: 0 0 50px rgba(0, 0, 0, .25); }
  .textile-sidebar.is-open { transform: none; }
  .textile-sidebar__head { flex: 0 0 auto; }
  .textile-sidebar__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 12px; }
  .textile-sidebar__close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--tx-muted); font-size: 20px; }
  .textile-sidebar__foot { display: flex; flex: 0 0 auto; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--tx-border); background: #fff; }
  .tx-acc__body { max-height: none; }
  .tx-opt { padding: 9px 6px; }
}

/* Grille des produits */
.textile-grid__loading, .textile-grid__empty { text-align: center; padding: 48px 12px; color: var(--tx-muted); font-size: 14px; }
.textile-section { margin: 0 0 44px; }
.textile-section__title { font-size: 20px; font-weight: 800; color: var(--tx-ink); margin: 0 0 18px; padding: 0 0 0 14px; display: flex; align-items: center; gap: 10px; letter-spacing: -.01em; position: relative; }
.textile-section__title::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: var(--tx-title-bar); }
.textile-section__count { font-size: 12px; font-weight: 600; color: #6b7280; background: #fff; border: 1px solid #eef0f3; padding: 2px 8px; border-radius: 999px; }
.textile-section__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
@media (min-width: 600px)  { .textile-section__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; } }
@media (min-width: 800px)  { .textile-section__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; } }
@media (min-width: 1400px) { .textile-section__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 20px; } }
@media (min-width: 1800px) { .textile-section__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 22px; } }

/* Carte produit */
.tx-card { min-width: 0; background: #fff; border: 1px solid #eef0f3; border-radius: 18px; padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 10px; color: inherit; cursor: pointer; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.tx-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(17, 24, 39, .09); border-color: var(--tx-tint-border); }
.tx-card:focus-visible { outline: 2px solid var(--tx-accent); outline-offset: 2px; }
.tx-card__img { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(#f8f9fb, #f1f3f6); }
.tx-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; mix-blend-mode: multiply; transition: transform .5s ease; }
.tx-card:hover .tx-card__img img { transform: scale(1.06); }
.tx-card__img > i { font-size: 40px; color: #cdd0d6; }
.tx-card__chip { position: absolute; bottom: 8px; left: 8px; background: #fff; border: 1px solid #eef0f3; color: var(--tx-ink); font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; line-height: 1.6; }
.tx-card__chip i { font-size: 9px; color: var(--tx-accent); }
.tx-card__flag { position: absolute; top: 8px; left: 8px; z-index: 1; background: linear-gradient(135deg, #f59e0b, #ef7d1a); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.tx-card__flag i { font-size: 9px; }
.tx-card__quick { position: absolute; top: 50%; left: 50%; transform: translate(-50%, calc(-50% + 8px)); background: var(--tx-cta-bg); color: var(--tx-cta-ink); box-shadow: var(--tx-cta-ring), 0 8px 18px rgba(139, 67, 170, .22); padding: 9px 18px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; opacity: 0; transition: .25s ease; pointer-events: none; white-space: nowrap; }
.tx-card:hover .tx-card__quick { opacity: 1; transform: translate(-50%, -50%); }
.tx-card__body { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.tx-card__brand { font-size: 10px; text-transform: uppercase; color: #9ca3af; font-weight: 600; letter-spacing: .08em; }
.tx-card__name { font-size: 14px; font-weight: 600; color: var(--tx-ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.tx-card__desc { font-size: 11.5px; color: #9ca3af; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tx-card__price { font-size: 16px; color: var(--tx-ink); font-weight: 700; margin-top: 4px; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.tx-card__price-from { font-size: 11px; font-weight: 400; color: var(--tx-muted); margin-right: 3px; }
.tx-card__price-suffix { font-size: 10.5px; font-weight: 400; color: var(--tx-muted); margin-left: 3px; }
.tx-card__lock { margin-top: 6px; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: var(--tx-tint); color: var(--tx-tint-ink); border-radius: 999px; padding: 5px 11px; }
.tx-card__lock i { color: var(--tx-tint-strong); font-size: 10px; }
.tx-card__lock a { color: var(--tx-tint-ink); font-weight: 600; }
.tx-card__lock a:hover { text-decoration: underline; }
.tx-card__swatches { display: flex; gap: 5px; flex-wrap: nowrap; margin-top: 6px; align-items: center; min-height: 14px; overflow: hidden; }
.tx-card__swatch { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); flex-shrink: 0; }
.tx-card__swatches-more { font-size: 10.5px; color: var(--tx-muted); margin-left: 2px; flex-shrink: 0; }
@media (max-width: 600px) {
  .tx-card { padding: 7px 7px 10px; border-radius: 14px; gap: 6px; }
  .tx-card__body { padding: 0 2px; gap: 3px; }
  .tx-card__brand { font-size: 9.5px; letter-spacing: .06em; }
  .tx-card__name { font-size: 13px; min-height: 34px; }
  .tx-card__desc { font-size: 11px; }
  .tx-card__price { font-size: 14.5px; margin-top: 2px; }
  .tx-card__lock { font-size: 11px; padding: 4px 9px; margin-top: 4px; }
  .tx-card__swatches { margin-top: 4px; gap: 4px; }
  .tx-card__swatch { width: 12px; height: 12px; }
  .tx-card__chip { font-size: 10px; padding: 4px 8px; }
  .tx-card__quick { display: none; }
  .textile-section__title { font-size: 17px; }
}

/* Pagination */
.textile-pager { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 36px; }
.textile-pager button { padding: 10px 18px; border-radius: 999px; border: 1px solid #e5e7eb; background: #fff; font-size: 13.5px; font-weight: 600; transition: .15s; }
.textile-pager button:disabled { opacity: .4; cursor: not-allowed; }
.textile-pager button:not(:disabled):hover { border-color: var(--tx-accent); color: var(--tx-tint-strong); }
.textile-pager span { font-size: 13px; color: var(--tx-muted); background: #fff; border: 1px solid #eef0f3; border-radius: 999px; padding: 8px 14px; }
@media (max-width: 600px) { .textile-pager button { padding: 9px 14px; font-size: 13px; } }

/* 3.5 Onglets de description sous le catalogue */
.tx-tabs-section { background: var(--tx-bg-soft); padding: 0 0 64px; }
.tx-tabs-nav { display: flex; border-bottom: 2px solid var(--tx-border); background: #fff; overflow-x: auto; scrollbar-width: none; border-radius: 14px; }
.tx-tabs-nav::-webkit-scrollbar { display: none; }
.tx-tab-btn { padding: 16px 24px; font-size: 14px; font-weight: 600; color: var(--tx-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: color .22s ease, border-color .22s ease; }
.tx-tab-btn:hover { color: var(--tx-accent); }
.tx-tab-btn.is-active { color: var(--tx-accent); border-bottom-color: var(--tx-accent); }
.tx-tab-panel { display: none; padding: 40px 0 0; }
.tx-tab-panel.is-active { display: block; }
.tx-tab-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.tx-tab-text h3 { font-size: 1.3rem; font-weight: 800; color: var(--tx-ink); margin-bottom: 16px; }
.tx-tab-text h4 { font-size: 15px; font-weight: 700; color: var(--tx-ink); margin: 24px 0 12px; }
.tx-tab-text p { font-size: 14.5px; color: var(--tx-text); line-height: 1.75; margin-bottom: 14px; }
.tx-feature-list { display: flex; flex-direction: column; gap: 10px; }
.tx-feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--tx-text); line-height: 1.5; }
.tx-feature-list li i { color: var(--tx-accent); margin-top: 2px; flex-shrink: 0; }
.tx-info-card { background: #fff; border: 1px solid var(--tx-border); border-radius: var(--tx-radius); padding: 20px; margin-bottom: 16px; }
.tx-info-card h4 { font-size: 13.5px; font-weight: 700; color: var(--tx-ink); margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.tx-info-card h4 i { color: var(--tx-accent); }
.tx-info-card p { font-size: 13px; color: var(--tx-muted); line-height: 1.65; }
@media (max-width: 1100px) { .tx-tab-grid { grid-template-columns: 1fr 280px; } }
@media (max-width: 900px) { .tx-tab-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .tx-tab-btn { padding: 14px 16px; font-size: 13px; } }

/* ── 4. Fiche produit ────────────────────────────────────────────── */

/* 4.1 Mise en page, photos, cartes, coloris, tailles, récapitulatif, prix */
.txa-breadcrumb { display: flex; align-items: center; gap: 10px; padding: 11px 20px; background: #fff; border-bottom: 1px solid var(--tx-border); font-size: 13px; flex-wrap: wrap; }
.txa-breadcrumb a { color: var(--tx-accent); text-decoration: none; display: flex; align-items: center; gap: 5px; }
.txa-breadcrumb span { color: var(--tx-muted); font-size: 12px; }
.txa-layout { display: grid; grid-template-columns: 380px 1fr; gap: 20px; max-width: 1240px; margin: 0 auto; padding: 20px 16px; align-items: start; }
@media(max-width:940px){.txa-layout{grid-template-columns:1fr}}
.txa-col-left { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--tx-sticky-top) + 12px); align-self: start; }
.txa-col-right { display: flex; flex-direction: column; gap: 14px; }
.txa-gallery { background: #fff; border: 1px solid var(--tx-border); border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: 60px 1fr; }
.txa-gallery__thumbs { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--tx-bg-soft); border-right: 1px solid var(--tx-border); overflow-y: auto; max-height: 400px; }
.txa-thumb { width: 50px; height: 50px; border: 2px solid transparent; border-radius: 7px; overflow: hidden; cursor: pointer; background: #fff; padding: 2px; flex-shrink: 0; }
.txa-thumb.is-on { border-color: var(--tx-accent); }
.txa-thumb img { width: 100%; height: 100%; object-fit: contain; }
.txa-gallery__main { display: flex; align-items: center; justify-content: center; min-height: 320px; padding: 16px; }
#txaMainImg { max-width: 100%; max-height: 380px; object-fit: contain; display: block; }
.txa-card { background: #fff; border: 1px solid var(--tx-border); border-radius: 12px; padding: 16px 18px; }
.txa-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.txa-fav-btn { background: none; border: 1.5px solid var(--tx-border); border-radius: 50%; width: 38px; height: 38px; cursor: pointer; font-size: 17px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: border-color .15s,background .15s; margin-top: 2px; }
.txa-fav-btn:hover { border-color: #ef4444; background: #fff1f2; }
.txa-brand { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--tx-muted); font-weight: 600; margin-bottom: 4px; }
.txa-title { font-size: 21px; font-weight: 800; color: var(--tx-text); line-height: 1.2; margin-bottom: 6px; }
.txa-meta { font-size: 12.5px; color: var(--tx-muted); }
.txa-desc { font-size: 13px; color: var(--tx-muted); margin-top: 10px; line-height: 1.6; }
.txa-section-label { font-size: 13px; font-weight: 700; color: var(--tx-text); margin-bottom: 12px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.txa-step { min-width: 22px; height: 22px; background: var(--tx-accent); color: #fff; border-radius: 50%; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.txa-section-count { font-weight: 400; color: var(--tx-muted); font-size: 12px; }
.txa-section-note { font-size: 11.5px; font-weight: 400; color: var(--tx-muted); }
.txa-color-name { margin-left: auto; font-size: 12px; color: var(--tx-accent); font-weight: 700; }
.txa-color-badge { font-size: 12px; font-weight: 500; color: var(--tx-accent); background: var(--tx-accent-tint); padding: 2px 9px; border-radius: 20px; margin-left: auto; white-space: nowrap; }
.txa-hint { font-size: 13px; color: var(--tx-muted); }
.txa-locked { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--tx-bg-soft); border-radius: 8px; font-size: 13px; color: var(--tx-muted); }
.txa-locked a { color: var(--tx-accent); font-weight: 600; }
.txa-colors { display: flex; flex-wrap: wrap; gap: 8px 6px; align-items: flex-start; }
.txa-color { width: 52px; cursor: pointer; border: none; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.txa-color__dot { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid transparent; padding: 2px; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: transform .1s,border-color .15s; }
.txa-color:hover .txa-color__dot { transform: scale(1.12); }
.txa-color.is-on .txa-color__dot { border-color: var(--tx-accent); }
.txa-color img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.txa-swatch-dot { display: block; width: 100%; height: 100%; border-radius: 50%; }
.txa-color__label { font-size: 9.5px; line-height: 1.15; color: var(--tx-muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.txa-color.is-on .txa-color__label { color: var(--tx-accent); font-weight: 700; }
.txa-size-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.txa-size-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--tx-muted); padding: 5px 8px; border-bottom: 1px solid var(--tx-border); }
.txa-size-table td { padding: 6px 8px; border-bottom: 1px solid var(--tx-border); }
.txa-sz-size { font-weight: 700; }
.txa-sz-price { color: var(--tx-accent); font-weight: 600; font-size: 12.5px; }
.txa-stock--ok { color: #16a34a; font-size: 12px; }
.txa-stock--low { color: #d97706; font-size: 12px; }
.txa-stock--none { color: #ef4444; font-size: 12px; }
.txa-stock--blue { color: #7c3aed; font-size: 12px; }
.txa-sz-stock-sup { border-left: 1px dashed var(--tx-border); }
.txa-th-sup { border-left: 1px dashed var(--tx-border); color: #7c3aed!important; }
.txa-qty { width: 68px; padding: 5px 8px; border: 1.5px solid var(--tx-border); border-radius: 7px; font-size: 13px; text-align: center; transition: border-color .15s; }
.txa-qty:focus { outline: none; border-color: var(--tx-accent); box-shadow: 0 0 0 3px var(--tx-accent-ring); }
.txa-qty:disabled { background: #f3f4f6; cursor: not-allowed; color: #9ca3af; }
.txa-recap { border-color: #e0edf7; }
.txa-recap__row { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--tx-border); }
.txa-recap__row:last-child { border-bottom: none; }
.txa-recap__key { min-width: 80px; color: var(--tx-muted); font-size: 11.5px; display: flex; align-items: center; gap: 5px; padding-top: 1px; flex-shrink: 0; }
.txa-recap__key i { width: 14px; text-align: center; color: var(--tx-accent); }
.txa-recap__val { flex: 1; color: var(--tx-text); font-weight: 500; line-height: 1.5; word-break: break-word; }
.txa-recap__missing { color: #9ca3af; font-weight: 400; font-style: italic; }
.txa-recap__vierge { color: #166534; }
.txa-recap__file { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; font-size: 11px; color: var(--tx-accent); background: var(--tx-accent-tint); padding: 1px 6px; border-radius: 4px; font-weight: 500; }
.txa-recap__note { display: block; margin-top: 3px; font-size: 11.5px; color: var(--tx-muted); font-weight: 400; font-style: italic; word-break: break-word; }
.txa-summary { background: var(--tx-bg-soft); border: 1px solid var(--tx-border); border-radius: 12px; padding: 14px 16px; }
.txa-summary__row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 13px; color: var(--tx-muted); }
/* Prix a la piece : mis en avant, c'est le chiffre que le client compare */
.txa-summary__unit { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 10px; margin: -4px -6px 8px; border-radius: 9px; background: color-mix(in srgb, var(--tx-accent) 7%, transparent); border: 1px solid color-mix(in srgb, var(--tx-accent) 20%, transparent); font-size: 13.5px; font-weight: 600; color: var(--tx-ink); }
.txa-summary__unit strong { font-size: 19px; font-weight: 800; color: var(--tx-accent); white-space: nowrap; }
.txa-summary__unit em { display: block; font-style: normal; font-size: 11px; font-weight: 400; color: var(--tx-muted); }
.txa-summary__total-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 15px; font-weight: 700; border-top: 1px solid var(--tx-border); margin-top: 4px; }
.txa-summary__total-row strong { color: var(--tx-accent); }
.txa-summary__ttc strong { font-size: 18px; }
.txa-summary__note { margin: 8px 0 0; font-size: 11px; line-height: 1.5; color: var(--tx-muted); }
.txa-btn-cart { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--tx-accent); color: #fff; border: none; border-radius: 10px; padding: 15px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s,opacity .15s; margin-top: 2px; }
.txa-btn-cart:disabled { opacity: .45; cursor: not-allowed; }
.txa-btn-cart:not(:disabled):hover { background: var(--tx-accent-dark); }
.txa-cart-msg { font-size: 12px; text-align: center; min-height: 18px; margin-top: 4px; }
@media(max-width:940px){
  .txa-col-left { position: static!important; gap: 10px; }
  .txa-layout { padding: 14px 12px; gap: 14px; }
}
@media(max-width:760px){
  .tx-vue--article { padding-bottom: 90px; }
  .txa-layout { padding: 10px 10px 14px; gap: 12px; }
  .txa-card { padding: 12px 14px; border-radius: 10px; }
  .txa-title { font-size: 18px; line-height: 1.25; margin-bottom: 4px; }
  .txa-brand { font-size: 10.5px; }
  .txa-meta { font-size: 12px; }
  .txa-desc { font-size: 12.5px; margin-top: 8px; line-height: 1.5; }
  .txa-section-label { font-size: 12.5px; margin-bottom: 10px; flex-wrap: wrap; row-gap: 4px; }
  .txa-fav-btn { width: 34px; height: 34px; font-size: 15px; }
  .txa-color-name { font-size: 11.5px; }
  .txa-color-badge { font-size: 11.5px; padding: 2px 8px; }
  .txa-gallery { grid-template-columns: 1fr!important; grid-template-rows: auto auto; }
  .txa-gallery__main { order: 1; min-height: 0; padding: 14px; aspect-ratio: 1/1; max-height: 340px; }
  #txaMainImg { max-width: 100%; max-height: 100%; width: auto; height: auto; }
  .txa-gallery__thumbs { order: 2; flex-direction: row!important; overflow-x: auto; overflow-y: hidden; max-height: none!important; border-right: none!important; border-top: 1px solid var(--tx-border); padding: 8px 10px; gap: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .txa-gallery__thumbs::-webkit-scrollbar { display: none; }
  .txa-thumb { width: 46px; height: 46px; flex-shrink: 0; }
  .txa-size-table { font-size: 12.5px; }
  .txa-size-table th,.txa-size-table td { padding: 6px 6px; }
  .txa-sz-size { font-size: 12.5px; }
  .txa-sz-price { font-size: 12px; }
  .txa-qty { width: 64px; font-size: 13px; padding: 6px 6px; min-height: 34px; }
  .txa-recap__row { padding: 5px 0; font-size: 12px; }
  .txa-recap__key { min-width: 64px; font-size: 11px; }
  .txa-summary { padding: 12px 14px; }
  .txa-summary__row { font-size: 12.5px; }
  .txa-summary__total-row { font-size: 14.5px; }
  .txa-summary__ttc strong { font-size: 17px; }
  .txa-btn-cart { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50; width: auto!important; padding: 14px!important; font-size: 15px!important; box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--tx-accent) 45%, transparent); border-radius: 12px!important; }
  .txa-breadcrumb { padding: 8px 10px; font-size: 12.5px; }
}
@media(max-width:400px){
  .txa-card { padding: 10px 12px; }
  .txa-title { font-size: 17px; }
  .txa-color { width: 32px; height: 32px; }
  .txa-size-table { font-size: 12px; }
  .txa-qty { width: 56px; }
}

/* 4.2 Taille d'impression, taille du fichier, résolution, garde-fou de surface */
.txa-dim-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--tx-text); flex-wrap: wrap; }
.txa-dim-key { font-size: 12px; color: var(--tx-muted); }
.txa-zone-max { font-size: 11px; color: var(--tx-muted); }
.txa-file-dims { font-size: 12px; color: var(--tx-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-left: 2px; }
.txa-file-dims strong { color: var(--tx-text); font-weight: 600; }
.txa-file-dims__est { color: #b45309; font-size: 11px; }
.txa-dim-error { margin-top: 2px; font-size: 12.5px; font-weight: 600; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 6px 10px; display: flex; align-items: flex-start; gap: 7px; line-height: 1.4; }
.txa-dim-error i { margin-top: 2px; flex-shrink: 0; }
.txa-dim-error--file { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.txa-dim-error__detail { display: block; margin-top: 4px; font-weight: 500; }
.txa-dim-display { font-size: 13px; font-weight: 500; }
.txa-dim-unlock { background: none; border: none; color: var(--tx-accent); cursor: pointer; font-size: 11.5px; text-decoration: underline; padding: 0; font-family: inherit; }
.txa-dim-input { width: 64px; padding: 4px 7px; border: 1.5px solid var(--tx-border); border-radius: 6px; font-size: 13px; text-align: center; }
.txa-dim-input:focus { outline: none; border-color: var(--tx-accent); }
.txa-dim-ratio { display: inline-flex; align-items: center; gap: 5px; background: #fff; color: var(--tx-muted); border: 1.5px solid var(--tx-border); border-radius: 6px; padding: 3px 8px; cursor: pointer; font-size: 11.5px; font-family: inherit; line-height: 1.3; }
.txa-dim-ratio.is-on { color: var(--tx-accent); border-color: var(--tx-accent); background: var(--tx-accent-tint); }
.txa-dim-ratio i { font-size: 12px; }
.txa-dim-lock-btn { display: inline-flex; align-items: center; gap: 5px; background: var(--tx-accent); color: #fff; border: none; border-radius: 6px; padding: 5px 9px; cursor: pointer; font-size: 12px; font-family: inherit; }
.txa-dpi-tag { font-size: 11px; padding: 1px 7px; border-radius: 20px; font-weight: 600; }
.txa-dpi--ok { background: #dcfce7; color: #166534; }
.txa-dpi--warn { background: #fef9c3; color: #854d0e; }
.txa-dpi--fail { background: #fee2e2; color: #991b1b; }
.txa-dpi--load { color: var(--tx-muted); }
.txa-fit-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; background: #fff; color: #b91c1c; border: 1.5px solid #fca5a5; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 12.5px; font-weight: 600; font-family: inherit; line-height: 1.3; }
.txa-fit-btn:hover { background: #fee2e2; }
.txa-fit-btn + .txa-fit-btn { margin-left: 8px; }
.txa-fit-note { display: inline-flex; align-items: center; gap: 5px; color: #166534; font-size: 12px; }
.txa-fit-note strong { color: #166534; }
.txa-fit-cancel { background: none; border: none; color: var(--tx-muted); cursor: pointer; font-size: 11.5px; text-decoration: underline; padding: 0; font-family: inherit; }

/* 4.3 Marquage : emplacements, envoi des visuels, aperçu, tarif par quantité, BAT et note */
/* BAT fourni par le client + note de production */
.txa-extra { margin-top: 18px; padding: 16px; border: 1px dashed var(--tx-border); border-radius: 12px; background: linear-gradient(180deg,#fbfcfe,#f7f9fc); }
.txa-extra__row { display: flex; gap: 12px; align-items: flex-start; }
.txa-extra__ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; background: var(--tx-accent-tint); color: var(--tx-accent); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.txa-extra__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.txa-extra__txt strong { font-size: 13.5px; color: #111827; }
.txa-extra__txt span { font-size: 12px; line-height: 1.5; color: var(--tx-muted); }
.txa-extra__btn { margin-top: 12px; width: 100%; padding: 10px 14px; border: 1px solid var(--tx-accent); border-radius: 10px; background: #fff; color: var(--tx-accent); font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s,color .15s; }
.txa-extra__btn:hover { background: var(--tx-accent); color: #fff; }
.txa-extra__file { margin-top: 10px; display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid #bbf7d0; border-radius: 10px; background: #f0fdf4; font-size: 12.5px; color: #166534; }
.txa-extra__file i { font-size: 15px; }
.txa-extra__file span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.txa-extra__file em { font-style: normal; font-size: 11px; color: #4d7c57; white-space: nowrap; }
.txa-extra__rm { flex: 0 0 auto; border: none; background: transparent; color: #4d7c57; cursor: pointer; padding: 2px 4px; font-size: 14px; line-height: 1; }
.txa-extra__rm:hover { color: #b91c1c; }
.txa-extra__err { margin-top: 10px; padding: 9px 12px; border: 1px solid #fecaca; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 12.5px; }
.txa-extra__sep { height: 1px; background: var(--tx-border); margin: 16px 0 14px; }
.txa-extra__label { display: block; font-size: 13.5px; font-weight: 600; color: #111827; margin-bottom: 4px; }
.txa-extra__label span { font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--tx-muted); margin-left: 6px; }
.txa-extra__help { margin: 0 0 9px; font-size: 12px; line-height: 1.5; color: var(--tx-muted); }
.txa-extra__ta { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--tx-border); border-radius: 10px; font-family: inherit; font-size: 13px; line-height: 1.55; color: #111827; background: #fff; resize: vertical; min-height: 78px; }
.txa-extra__ta:focus { outline: none; border-color: var(--tx-accent); box-shadow: 0 0 0 3px var(--tx-accent-ring); }
.txa-extra__ta::placeholder { color: #b4bbc6; }
.txa-extra__count { margin-top: 5px; text-align: right; font-size: 11px; color: var(--tx-muted); }
@media (max-width:600px){.txa-extra{padding:14px}}

/* Aperçu marquage */
.txa-preview-card { background: #fff; border: 1px solid var(--tx-border); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.txa-preview-card__head { padding: 10px 14px; background: var(--tx-bg-soft); border-bottom: 1px solid var(--tx-border); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.txa-preview-card__head i { color: var(--tx-accent); }
.txa-preview-card__head span { margin-left: auto; font-weight: 500; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--tx-muted); background: #f3f4f6; padding: 2px 7px; border-radius: 20px; }
.txa-preview-stage { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 14px; background: repeating-conic-gradient(#f6f7f8 0 25%,#fff 0 50%) 50%/18px 18px; min-height: 120px; }
.txa-preview-carousel { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: center; }
.txa-preview-nav { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--tx-border); background: #fff; color: #374151; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.txa-preview-nav:hover { background: #f3f4f6; }
.txa-preview-panel { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1 1 0; min-width: 0; }
.txa-preview-panel img { width: 100%; height: auto; max-height: 320px; object-fit: contain; }
.txa-preview-load { padding: 30px; color: var(--tx-muted); font-size: 12px; text-align: center; width: 100%; }
.txa-preview-panel__lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--tx-muted); background: #fff; border: 1px solid var(--tx-border); border-radius: 20px; padding: 2px 10px; }
.txa-preview-notes { margin-top: 10px; font-size: 12.5px; line-height: 1.4; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 12px; }
.txa-preview-notes i { margin-right: 5px; }
.txa-upload-copy { border: 0; background: none; color: var(--tx-accent); font-size: 12px; cursor: pointer; padding: 2px 6px; text-decoration: underline dotted; }
.txa-cart-block { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 12.5px; font-weight: 600; line-height: 1.4; text-align: left; }
.txa-cart-block i { margin-top: 2px; flex-shrink: 0; }
.txa-preview-cap { padding: 8px 14px 12px; font-size: 11px; color: var(--tx-muted); text-align: center; line-height: 1.4; }
/* Tier card */
.txa-tier-card { background: #fff; border: 1px solid var(--tx-border); border-radius: 12px; overflow: hidden; }
.txa-tier-card__head { padding: 10px 14px; background: var(--tx-bg-soft); border-bottom: 1px solid var(--tx-border); font-size: 12px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.txa-tier-card__head i { color: var(--tx-accent); }
.txa-tier-meta { font-size: 11px; color: var(--tx-muted); font-weight: 400; }
.txa-tier-hint { font-size: 12px; color: var(--tx-muted); padding: 12px 14px; }
.txa-tier-hint a { color: var(--tx-accent); }
.txa-tier-head { display: grid; grid-template-columns: 1fr 1fr 50px; gap: 4px; padding: 6px 14px; font-size: 11px; color: var(--tx-muted); border-bottom: 1px solid var(--tx-border); }
.txa-tier-row { display: grid; grid-template-columns: 1fr 1fr 50px; gap: 4px; padding: 6px 14px; font-size: 12px; border-bottom: 1px solid var(--tx-border); }
.txa-tier-row:hover { background: var(--tx-bg-soft); }
.txa-tier-price { font-weight: 600; }
.txa-tier-disc { font-size: 11px; font-weight: 700; color: var(--tx-accent); background: color-mix(in srgb, var(--tx-accent) 16%, #fff); padding: 1px 5px; border-radius: 4px; text-align: center; }
/* Zones marquage */
.txa-zone { border-bottom: 1px solid var(--tx-border); padding-bottom: 14px; margin-bottom: 14px; }
.txa-zone:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.txa-zone__title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--tx-muted); margin-bottom: 8px; }
.txa-zone__opts { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 6px; }
.txa-zone-opt { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; user-select: none; }
.txa-zone-icon { width: 50px; height: 56px; border: 2px solid var(--tx-border); border-radius: 7px; background: var(--tx-bg-soft); display: flex; align-items: center; justify-content: center; transition: border-color .15s,background .15s; }
.txa-zone-icon svg { width: 40px; height: 46px; }
.txa-zone-opt.is-on .txa-zone-icon { border-color: var(--tx-accent); background: var(--tx-accent-tint); }
.txa-zone-lbl { font-size: 10px; font-weight: 500; color: var(--tx-muted); text-align: center; max-width: 54px; line-height: 1.2; }
.txa-zone-opt.is-on .txa-zone-lbl { color: var(--tx-accent); font-weight: 700; }
/* Upload & dimensions */
.txa-zone-upload { background: var(--tx-bg-soft); border: 1px solid var(--tx-border); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.txa-dim-errors:empty { display: none; }
.txa-upload-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.txa-upload-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--tx-accent); color: #fff; border-radius: 7px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.txa-upload-btn input { display: none; }
.txa-upload-fname { font-size: 12px; color: var(--tx-text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.txa-upload-none { font-size: 11.5px; color: var(--tx-muted); font-style: italic; }
.txa-custom-note { display: flex; flex-direction: column; gap: 5px; padding-top: 8px; border-top: 1px solid var(--tx-border); margin-top: 4px; }
.txa-custom-note__label { font-size: 12px; font-weight: 600; color: var(--tx-text); display: flex; align-items: center; gap: 6px; }
.txa-custom-note__label span { font-weight: 400; color: var(--tx-muted); }
.txa-custom-note__ta { width: 100%; padding: 8px 10px; border: 1.5px solid var(--tx-border); border-radius: 8px; font-size: 13px; font-family: inherit; resize: vertical; line-height: 1.5; color: var(--tx-text); background: #fff; transition: border-color .15s; box-sizing: border-box; }
.txa-custom-note__ta:focus { outline: none; border-color: var(--tx-accent); box-shadow: 0 0 0 3px var(--tx-accent-ring); }
/* Delivery */
.txa-delivery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.txa-delai { border: 2px solid var(--tx-border); border-radius: 10px; padding: 14px; text-align: center; cursor: pointer; transition: border-color .15s,background .15s; position: relative; }
.txa-delai.is-on { border-color: var(--tx-accent); background: var(--tx-accent-tint); }
.txa-delai i { font-size: 20px; color: var(--tx-muted); display: block; margin-bottom: 5px; }
.txa-delai.is-on i { color: var(--tx-accent); }
.txa-delai__label { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.txa-delai__days { font-size: 26px; font-weight: 800; }
.txa-delai--rush .txa-delai__days,.txa-delai--rush .txa-delai__label { color: #f97316; }
.txa-delai--rush.is-on { border-color: #f97316; background: #fff7ed; }
.txa-delai--rush.is-on i { color: #f97316; }
.txa-delai__unit { font-size: 11px; color: var(--tx-muted); }
.txa-delai__badge { position: absolute; top: -9px; right: -9px; background: #f97316; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
/* Mobile overrides spécifiques marquage */
@media(max-width:760px){
  .txa-tier-card__head { padding: 8px 12px; font-size: 11.5px; }
  .txa-tier-head { padding: 5px 12px; font-size: 10.5px; }
  .txa-tier-row { padding: 5px 12px; font-size: 11.5px; }
  .txa-zone-opt { font-size: 11.5px; }
}

