.cif, .cif * { box-sizing: border-box; }
.cif {
  display: grid; grid-template-columns: minmax(0, 36.5%) minmax(0, 1fr);
  background: #fff; color: #111; width: 100%;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.cif button { font-family: inherit; }
.cif-hero { position: relative; background: #eceff3; min-height: 100%; overflow: hidden; }
.cif-hero img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top center; transition: opacity .35s ease; }
.cif-hero img.is-fading { opacity: 0; }
.cif-body { min-width: 0; padding: 0 0 24px 12px; position: relative; }
.cif-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 18px; padding: 4px 0 0; line-height: 1.3; }
.cif-tabs { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; padding: 0; }
.cif-tabs li { margin: 0; padding: 0; list-style: none; }
.cif-tab { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-size: .85rem; color: #666; box-shadow: none; }
.cif-tab:hover { color: #111; background: none; }
.cif-tab.is-active { color: #000; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cif-track-wrap { position: relative; }
.cif-track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cif-track::-webkit-scrollbar { display: none; }
.cif-card { flex: 0 0 calc((100% - 24px) / 3.3); scroll-snap-align: start; min-width: 0; }
.cif-card a { color: inherit; text-decoration: none; }
.cif-media { position: relative; aspect-ratio: 3 / 4; background: #eceff3; overflow: hidden; }
.cif-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: opacity .3s; }
.cif-media .cif-img-hover { opacity: 0; }
.cif-card:hover .cif-img-hover { opacity: 1; }
.cif-add {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; border: 0; border-radius: 0;
  display: flex; align-items: center; justify-content: space-between; padding: 8px 10px;
  background: rgba(255,255,255,.92); color: #111; font-size: .65rem; cursor: pointer;
  transform: translateY(100%); transition: transform .25s ease;
}
.cif-card:hover .cif-add, .cif-add:focus-visible { transform: none; }
.cif-add svg { width: 12px; height: 12px; }
.cif-info { padding: 8px 8px 0; }
.cif-name { font-size: .62rem; text-transform: uppercase; margin: 0 0 3px; line-height: 1.3; }
.cif-fit { font-size: .5rem; text-transform: uppercase; color: #3a6ea5; margin: 0 0 3px; }
.cif-price { font-size: .65rem; font-weight: 700; margin: 0 0 6px; }
.cif-colors { display: flex; gap: 4px; }
.cif-swatch { width: 9px; height: 9px; min-width: 0; min-height: 0; border: 1px solid rgba(0,0,0,.25); border-radius: 0; padding: 0; cursor: pointer; position: relative; }
.cif-swatch.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: #000; }
.cif-arrow { position: absolute; top: 40%; transform: translateY(-50%); z-index: 3; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; background: #fff; color: #111; box-shadow: 0 2px 10px rgba(0,0,0,.25); display: grid; place-items: center; }
.cif-arrow svg { width: 16px; height: 16px; }
.cif-prev { left: 8px; } .cif-next { right: 8px; }
.cif-arrow[disabled] { display: none; }
@media (max-width: 1024px) { .cif-card { flex-basis: calc((100% - 8px) / 2.3); } }
@media (max-width: 700px) {
  .cif { grid-template-columns: 1fr; }
  .cif-hero { height: 70svh; min-height: 0; }
  .cif-body { padding: 18px 0 24px 12px; }
  .cif-tabs { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
  .cif-card { flex-basis: 62%; }
  .cif-add { transform: none; }
  .cif-arrow { display: none; }
  .cif-name { font-size: .68rem; } .cif-price { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) { .cif-hero img, .cif-media img, .cif-add { transition: none; } }
