/* Tecidos page — overrides on top of storefront.css */

body { background: var(--ink-800); }

/* ---------- intro / hero ---------- */
.tecidos-hero {
  position: relative;
  margin: 0;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px);
  border-radius: 0;
  background-color: var(--ink-300);
  background-image: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 100%), url("../../assets/banners/banner-tecidos.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
  overflow: hidden;
  min-height: 480px;
}
.tecidos-hero .eyebrow,
.tecidos-hero__title,
.tecidos-hero__sub { color: #fff; }
.tecidos-hero .eyebrow { color: rgba(255,255,255,0.85); }
.tecidos-hero__sub { color: rgba(255,255,255,0.9); }
.tecidos-hero__chip {
  background: rgba(255,255,255,0.18);
  color: #fff;
  backdrop-filter: blur(8px);
}
.tecidos-hero__chip:hover,
.tecidos-hero__chip.is-active { background: #fff; color: var(--brand-ink); }
.tecidos-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: none;
  margin: 0;
}
.tecidos-hero__sub {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.5;
  margin: 18px 0 0;
}
.tecidos-hero__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tecidos-hero__chip {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  color: var(--brand-ink);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 220ms var(--ease-out);
}
.tecidos-hero__chip:hover,
.tecidos-hero__chip.is-active { background: var(--brand-ink); color: #fff; }

/* ---------- fabric panel ---------- */
.fabric {
  margin: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 64px) 0;
  background: var(--brand-paper);
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  box-shadow: var(--shadow-1);
}

.fabric__info { padding: 0; }

.fabric__head {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 14px clamp(28px, 3.5vw, 48px);
  border-bottom: 1px solid var(--line-1);
  margin-bottom: 0;
}
.fabric__body {
  padding: clamp(24px, 3vw, 36px) clamp(28px, 3.5vw, 48px) clamp(28px, 3.5vw, 48px);
}
.fabric__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}
.fabric__tm { font-size: 0.6em; vertical-align: super; opacity: 0.6; margin-left: 2px; }
.fabric__comp { display: flex; gap: 18px; align-items: center; }

/* Circular progress ring around each composition % */
.fabric__ring {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}
.fabric__ring svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.fabric__ring .track {
  fill: none;
  stroke: var(--brand-blue);
  stroke-width: 4;
}
.fabric__ring .fill {
  fill: none;
  stroke: var(--brand-orange);
  stroke-width: 9;
  stroke-linecap: round;
  /* circumference of r=45 ≈ 282.74 — pct set via inline CSS var */
  stroke-dasharray: calc(var(--pct) * 2.8274) 282.74;
  transition: stroke-dasharray 420ms var(--ease-out);
}

.fabric__ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--brand-ink);
}
.fabric__ring-label sup {
  font-size: 10px;
  font-weight: 500;
  margin-left: 2px;
  top: -0.6em;
  vertical-align: super;
}
.fabric__ring-mat {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  font-weight: 500;
  margin-top: 4px;
  text-align: center;
}
.fabric__ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 0; }

.fabric__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}
.fabric__cell h4 {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brand-ink);
  margin: 0 0 8px;
}
.fabric__cell p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  color: var(--fg-2);
}

.fabric__split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-1);
}
.fabric__perf h4,
.fabric__tech h4 {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brand-ink);
  margin: 0 0 12px;
}

.perf-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  padding: 6px 0;
  font-size: 12px;
  color: var(--fg-2);
}
.dots { display: inline-flex; gap: 4px; }
.dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--ink-700);
}
.dot.on { background: var(--brand-ink); }

.tech-row {
  display: grid;
  grid-template-columns: 40px 130px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  font-size: 12px;
  border-top: 1px solid var(--ink-800);
}
.tech-row--noicon { grid-template-columns: 130px 1fr; }
.tech-row:first-of-type { border-top: 0; }
.tech-row__icon {
  width: 28px; height: 28px;
  color: var(--brand-ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.tech-row__icon svg { width: 100%; height: 100%; }
.tech-row__name {
  font-family: var(--font-ui);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--brand-ink);
}
.tech-row__desc { color: var(--fg-2); line-height: 1.45; }

/* ---------- 3 vertical photo strips ---------- */
.fabric__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  min-height: 540px;
}
.fabric__photo {
  position: relative;
  overflow: hidden;
  background: var(--ink-700);
  background-size: cover;
  background-position: center;
}

/* ---------- products carousel ---------- */
.fabric-products {
  margin: 24px clamp(20px, 4vw, 64px) 0;
  padding: 32px 0 0;
}
.fabric-products__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 24px;
  gap: 18px;
}
.fabric-products__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0;
}
.fabric-products__sub { color: var(--fg-3); font-size: 13px; margin-left: 12px; }
.fabric-products__see {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--brand-ink);
  cursor: pointer;
}
.fabric-products__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

/* product card — quick-buy variant pulled from preview/components-product-card */
.pc { display: flex; flex-direction: column; gap: 8px; position: relative; }
.pc__img {
  width: 100%; aspect-ratio: 3 / 4; position: relative; overflow: hidden;
  border-radius: 2px;
}
.pc__img::after {
  content: ""; position: absolute; inset: 30% 25%;
  border: 1px dashed rgba(0,0,0,0.18); border-radius: 50% 50% 45% 50% / 60% 60% 40% 40%;
}
.pc__badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--font-ui); font-weight: 500;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 2px;
  background: var(--brand-ink); color: #fff;
}
.pc__heart {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 28px; height: 28px; border-radius: 999px;
  background: rgba(255,255,255,0.92);
  display: grid; place-items: center; border: 0;
}
.pc__heart svg { width: 14px; height: 14px; }
.pc__qbuy {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 4px; z-index: 2;
}
.pc__qbuy-size {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  background: rgba(255,255,255,0.92);
  color: var(--brand-ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background 120ms var(--ease-out), color 120ms var(--ease-out);
}
.pc__qbuy-size:hover { background: var(--brand-ink); color: #fff; }
.pc__qbuy-size.is-disabled {
  color: var(--fg-3); text-decoration: line-through;
  background: rgba(255,255,255,0.55); cursor: not-allowed;
}
.pc__chip {
  font-family: var(--font-ui); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-ink); font-weight: 500;
}
.pc__name { font-size: 13px; line-height: 1.35; color: var(--fg-1); }
.pc__prices { display: flex; gap: 8px; align-items: baseline; }
.pc__strike { font-size: 12px; color: var(--fg-3); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.pc__price { font-family: var(--font-display); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.pc__price--sale { color: var(--brand-orange-deep); }
.pc__install { font-size: 10.5px; color: var(--fg-3); letter-spacing: 0.04em; }
.pc__swatches { display: flex; gap: 4px; margin-top: 2px; }
.pc__sw { width: 10px; height: 10px; border-radius: 999px; border: 1px solid var(--line-2); }

/* ============================================================
   Footer HARDYN — based on live storefront reference
   ============================================================ */
.footer-h { font-family: var(--font-ui); color: var(--brand-ink); margin-top: clamp(64px, 8vw, 120px); }

/* --- 1. social / app band --- */
.footer-h__social-band {
  background: var(--ink-700);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 22px clamp(24px, 5vw, 72px);
  gap: 24px;
}
.footer-h__social { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-h__social .label,
.footer-h__app .label {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-h__social .icons { display: flex; gap: 12px; }
.footer-h__social .icons a {
  width: 36px; height: 36px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.05);
  color: var(--brand-ink);
}
.footer-h__social .icons a:hover { background: var(--brand-ink); color: #fff; }
.footer-h__social .icons svg { width: 16px; height: 16px; }

.footer-h__app {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-ink);
  cursor: pointer;
}
.footer-h__app svg { width: 24px; height: 24px; }
.footer-h__app--center { justify-content: center; }
.footer-h__app--right  { justify-content: flex-end; }

/* --- 2. black benefits band --- */
.footer-h__benefits {
  background: var(--brand-ink);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 26px clamp(24px, 5vw, 72px);
}
.footer-h__benefit { display: flex; align-items: center; gap: 18px; justify-content: center; }
.footer-h__benefit svg { width: 38px; height: 38px; flex-shrink: 0; }
.footer-h__benefit strong {
  display: block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-h__benefit span {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-top: 2px;
}
.footer-h__benefit b { color: var(--brand-orange); font-weight: 700; }

/* --- 3. main columns --- */
.footer-h__main {
  background: var(--ink-800);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding: clamp(40px, 5vw, 64px) clamp(24px, 5vw, 72px);
}
.footer-h__col h4 {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-ink);
  margin: 0 0 14px;
}
.footer-h__col h4 + h4 { margin-top: 36px; }
.footer-h__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-h__col li,
.footer-h__col a {
  font-family: var(--font-ui);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-ink);
  text-decoration: none;
}
.footer-h__col a:hover { color: var(--brand-orange-deep); }

.footer-h__news p {
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-2);
  margin: 0 0 22px;
  max-width: 320px;
}
.footer-h__news label {
  display: block;
  font-size: 12px;
  margin-top: 18px;
  margin-bottom: 4px;
  color: var(--fg-2);
}
.footer-h__news input {
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--brand-ink);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 14px;
  outline: none;
  color: var(--brand-ink);
}
.footer-h__news input:focus { border-bottom-color: var(--brand-orange-deep); }
.footer-h__news-email { position: relative; }
.footer-h__news-email button {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; color: var(--brand-ink);
  padding: 4px;
}
.footer-h__news-email button svg { width: 18px; height: 18px; }
.footer-h__news small {
  display: block;
  margin-top: 16px;
  font-size: 10px;
  color: var(--fg-3);
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: none;
}
.footer-h__news small a { font-size: 10px; letter-spacing: 0.02em; text-transform: none; border-bottom: 1px solid currentColor; }

/* contact */
.footer-h__contact { display: flex; flex-direction: column; gap: 10px; }
.footer-h__contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-h__contact svg { width: 14px; height: 14px; }

/* security badge */
.footer-h__ra1000 {
  width: 120px; aspect-ratio: 1;
  background: var(--ink-700);
  border-radius: 999px;
  display: grid; place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--brand-ink);
  line-height: 1.05;
  margin-top: 14px;
  position: relative;
}
.footer-h__ra1000 small {
  display: block;
  font-family: var(--font-ui);
  font-size: 8px;
  letter-spacing: 0.18em;
  margin-top: 2px;
  color: var(--fg-2);
  font-weight: 500;
}

/* payments */
.footer-h__payments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 220px;
}
.footer-h__payment {
  background: #fff;
  border: 1px solid var(--line-1);
  border-radius: 4px;
  height: 28px;
  display: grid; place-items: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--fg-2);
}

/* --- 4. legal bottom bar --- */
.footer-h__legal {
  background: var(--ink-700);
  padding: 22px clamp(24px, 5vw, 72px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}
.footer-h__legal-logo { display: flex; align-items: center; gap: 12px; }
.footer-h__legal-logo .crown { height: 28px; width: auto; }
.footer-h__legal-logo .word  { height: 16px; width: auto; }
.footer-h__legal-copy {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.55;
  color: var(--fg-2);
}
.footer-h__legal-copy strong {
  display: block;
  color: var(--brand-ink);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .fabric { grid-template-columns: 1fr; }
  .fabric__photos { min-height: 360px; }
  .fabric__grid { grid-template-columns: repeat(2, 1fr); }
  .fabric__split { grid-template-columns: 1fr; }
  .fabric-products__grid { grid-template-columns: repeat(3, 1fr); }
  .tecidos-hero { grid-template-columns: 1fr; }

  .footer-h__social-band { grid-template-columns: 1fr; text-align: left; }
  .footer-h__app--center, .footer-h__app--right { justify-content: flex-start; }
  .footer-h__benefits { grid-template-columns: 1fr; }
  .footer-h__main { grid-template-columns: 1fr 1fr; }
  .footer-h__legal { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fabric-products__grid { grid-template-columns: repeat(2, 1fr); }
  .footer-h__main { grid-template-columns: 1fr; }

  /* ---------- mobile accordion for fabric info ---------- */
  .fabric__body { padding: 0; }

  .fabric__grid {
    display: block;
    gap: 0;
  }
  .fabric__split {
    display: block;
    gap: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  /* every accordion item shares a top divider */
  .fabric__cell,
  .fabric__perf,
  .fabric__tech {
    border-top: 1px solid var(--line-1);
  }

  /* the h4 becomes the trigger */
  .fabric__cell > h4,
  .fabric__perf > h4,
  .fabric__tech > h4 {
    margin: 0;
    padding: 18px clamp(20px, 5vw, 28px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
  }
  .fabric__cell > h4::after,
  .fabric__perf > h4::after,
  .fabric__tech > h4::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--brand-ink);
    border-bottom: 1.5px solid var(--brand-ink);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 220ms var(--ease-out);
    flex-shrink: 0;
  }
  .fabric__cell.is-open > h4::after,
  .fabric__perf.is-open > h4::after,
  .fabric__tech.is-open > h4::after {
    transform: rotate(-135deg) translateY(2px);
  }

  /* content is hidden until the item is open */
  .fabric__cell > p,
  .fabric__perf > .perf-row,
  .fabric__tech > .tech-row {
    display: none;
  }
  .fabric__cell.is-open > p {
    display: block;
    padding: 0 clamp(20px, 5vw, 28px) 18px;
  }
  .fabric__perf.is-open > .perf-row {
    display: grid;
    padding-left: clamp(20px, 5vw, 28px);
    padding-right: clamp(20px, 5vw, 28px);
  }
  .fabric__perf.is-open > .perf-row:last-of-type { padding-bottom: 14px; }
  .fabric__tech.is-open > .tech-row {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-areas:
      "icon name"
      ".    desc";
    column-gap: 12px;
    row-gap: 6px;
    padding-left: clamp(20px, 5vw, 28px);
    padding-right: clamp(20px, 5vw, 28px);
  }
  .fabric__tech.is-open > .tech-row .tech-row__icon { grid-area: icon; }
  .fabric__tech.is-open > .tech-row .tech-row__name { grid-area: name; }
  .fabric__tech.is-open > .tech-row .tech-row__desc { grid-area: desc; }

  /* variants without icons just stack name → desc */
  .fabric__tech.is-open > .tech-row--noicon {
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "desc";
  }
  .fabric__tech.is-open > .tech-row:last-of-type { padding-bottom: 18px; }

  /* first cell in each fabric body has no top divider (sits flush under fabric__head) */
  .fabric__body .fabric__cell:first-child { border-top: 0; }
}
