/* iCareFix Homepage: independent product video clips section. */
.icf-clips-section {
  --icf-clips-green: #24b33f;
  --icf-clips-dark: #073d18;
  --icf-clips-muted: #64776b;
  --icf-clips-gap: 14px;
  --icf-clips-visible: 5;
  position: relative;
  padding: clamp(44px, 5.5vw, 78px) 0;
  color: #10231a;
  background: linear-gradient(135deg, #ecf9f0 0%, #f8fcfa 65%, #eaf7ed 100%);
  overflow: hidden;
}
.icf-clips-section *, .icf-clips-modal * { box-sizing: border-box; }
.icf-clips-container { width: min(1370px, calc(100% - 80px)); margin: 0 auto; }
.icf-clips-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.icf-clips-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.14; letter-spacing: -.035em; color: #092a17; }
.icf-clips-heading p { margin: 7px 0 0; font-size: 14px; line-height: 1.6; color: var(--icf-clips-muted); }
.icf-clips-all { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; border: 1px solid #b6dfc1; border-radius: 100px; background: #fff; color: var(--icf-clips-dark); font-size: 13px; font-weight: 750; line-height: 1.15; text-decoration: none; white-space: nowrap; transition: color .2s, background .2s, border-color .2s, transform .2s; }
.icf-clips-all:hover, .icf-clips-all:focus-visible { color: #fff; background: var(--icf-clips-green); border-color: var(--icf-clips-green); transform: translateY(-2px); }
.icf-clips-slider-shell { position: relative; }
.icf-clips-track { display: flex; gap: var(--icf-clips-gap); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 0; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 3px 1px 10px; }
.icf-clips-track::-webkit-scrollbar { display: none; }
.icf-clips-track:focus-visible { outline: 2px solid var(--icf-clips-green); outline-offset: 5px; }
.icf-clips-card { flex: 0 0 calc((100% - (var(--icf-clips-visible) - 1) * var(--icf-clips-gap)) / var(--icf-clips-visible)); min-width: 0; align-self: stretch; display: flex; flex-direction: column; overflow: hidden; scroll-snap-align: start; border: 1px solid #d9eddf; border-radius: 19px; background: #fff; box-shadow: 0 7px 24px rgba(9, 59, 23, .055); transition: transform .24s ease, border-color .24s ease; }
.icf-clips-card:hover { border-color: #a6dbb6; transform: translateY(-3px); }
.icf-clips-visual { position: relative; aspect-ratio: 9 / 12; background: radial-gradient(circle at 50% 40%, #d5f6df 0%, #e9f5ec 80%); }
.icf-clips-cover { width: 100%; height: 100%; display: block; object-fit: cover; }
.icf-clips-video-badge { position: absolute; top: 10px; left: 10px; padding: 5px 10px; border: 1px solid #e8f8ee; border-radius: 30px; background: rgba(255,255,255,.93); color: var(--icf-clips-dark); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.icf-clips-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; padding: 0; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; color: #fff; background: rgba(4, 43, 19, .84); cursor: pointer; box-shadow: 0 9px 30px rgba(0,0,0,.22); transition: background .2s, scale .2s; }
.icf-clips-play:hover, .icf-clips-play:focus-visible { scale: 1.1; background: var(--icf-clips-green); }
.icf-clips-play svg { display: block; width: 25px; height: 25px; margin-left: 3px; }
.icf-clips-product-circle { position: absolute; z-index: 2; width: 64px; height: 64px; left: 50%; bottom: -31px; transform: translateX(-50%); padding: 4px; border: 4px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 3px 15px rgba(0,48,18,.15); overflow: hidden; }
.icf-clips-product-circle img { width: 100%; height: 100%; display: block; object-fit: contain; border-radius: 50%; }
.icf-clips-body { display: flex; flex: 1; flex-direction: column; padding: 44px 13px 14px; min-height: 142px; }
.icf-clips-body h3 { margin: 0 0 18px; font-size: 14px; font-weight: 700; line-height: 1.4; min-height: 39px; }
.icf-clips-body h3 a { color: #0c391d; text-decoration: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.icf-clips-body h3 a:hover { color: var(--icf-clips-green); }
.icf-clips-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 6px; }
.icf-clips-price { color: var(--icf-clips-dark); line-height: 1.3; font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.icf-clips-price del { display: block; font-size: 11px; font-weight: 500; color: #96a199; opacity: 1; }
.icf-clips-price ins { background: none; text-decoration: none; }
.icf-clips-cart { width: 39px; height: 39px; flex: 0 0 39px; padding: 0; display: grid; place-items: center; border: 1px solid #c5ebd0; border-radius: 50%; background: var(--icf-clips-green); color: #fff; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.icf-clips-cart svg { width: 20px; height: 20px; }
.icf-clips-cart:hover, .icf-clips-cart:focus-visible { color: #fff; background: var(--icf-clips-dark); transform: translateY(-2px); }
.icf-clips-cart:disabled { opacity: .65; cursor: wait; }
.icf-clips-cart.is-added { background: var(--icf-clips-dark); }
/* WooCommerce normally inserts a text "View cart" link after add-to-cart; keep it hidden only here. */
.icf-clips-card .added_to_cart.wc-forward:not(.icf-clips-cart) { display: none !important; }
.icf-clips-cart.is-just-added { animation: icf-clip-cart-success .42s cubic-bezier(.25,.8,.3,1.3) both; }
.icf-clips-cart.is-just-added svg path { stroke-dasharray: 27; stroke-dashoffset: 27; animation: icf-clip-check-draw .42s ease-out .12s forwards; }
@keyframes icf-clip-cart-success { 0% { transform: scale(.8); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes icf-clip-check-draw { to { stroke-dashoffset: 0; } }
.icf-clips-nav { position: absolute; z-index: 4; top: calc(50% - 35px); width: 46px; height: 46px; padding: 0; display: grid; place-items: center; border: 1px solid #bfdfc6; border-radius: 50%; background: #fff; color: var(--icf-clips-dark); box-shadow: 0 5px 15px rgba(0,50,25,.10); cursor: pointer; transform: translateY(-50%); }
.icf-clips-nav svg { width: 22px; height: 22px; }
.icf-clips-nav:hover:not(:disabled) { background: var(--icf-clips-green); color: #fff; }
.icf-clips-nav:disabled { opacity: .35; cursor: default; }
.icf-clips-nav[hidden] { display: none !important; }
.icf-clips-prev { left: -24px; }
.icf-clips-next { right: -24px; }
.icf-clips-dots { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; min-height: 20px; margin-top: 13px; }
.icf-clips-dots:empty { display: none; }
.icf-clips-dot { width: 7px; height: 7px; border: 0; border-radius: 99px; padding: 0; background: #bed8c6; cursor: pointer; transition: width .2s, background .2s; }
.icf-clips-dot.is-active { width: 24px; background: var(--icf-clips-green); }
/* Portrait video modal: separate from product-video functionality. */
.icf-clips-modal[hidden] { display: none !important; }
.icf-clips-modal { position: fixed; inset: 0; z-index: 1000001; display: flex; justify-content: center; align-items: center; padding: 24px 76px; }
.icf-clips-modal-backdrop { position: absolute; inset: 0; background: rgba(0,14,7,.83); backdrop-filter: blur(9px); }
.icf-clips-modal-inner { position: relative; z-index: 2; height: min(800px, calc(100dvh - 58px)); width: min(445px, calc((100dvh - 58px) * .5625), calc(100vw - 130px)); overflow: hidden; border-radius: 22px; background: #0a2514; box-shadow: 0 18px 66px rgba(0,0,0,.4); }
.icf-clips-player { position: absolute; inset: 0; }
.icf-clips-player video { display: block; width: 100%; height: 100%; object-fit: cover; background: #061d0e; }
.icf-clips-player::after { pointer-events: none; content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(0deg, rgba(1, 17, 7, .94), rgba(1, 17, 7, 0)); }
.icf-clips-modal-info { position: absolute; z-index: 2; bottom: 0; left: 0; right: 0; display: grid; gap: 12px; padding: 20px 19px 22px; color: #fff; }
.icf-clips-modal-summary { display: flex; align-items: center; gap: 11px; min-width: 0; }
.icf-clips-modal-thumb { flex: 0 0 55px; width: 55px; height: 55px; border-radius: 13px; border: 2px solid rgba(255,255,255,.85); background: #fff; object-fit: contain; }
.icf-clips-modal-summary > div { min-width: 0; display: grid; gap: 3px; }
.icf-clips-modal-counter { color: #c6e9cf; font-size: 11px; }
.icf-clips-modal-title { font-size: 15px; font-weight: 800; line-height: 1.3; }
.icf-clips-modal-price { font-size: 16px; font-weight: 800; color: #c1f3ca; }
.icf-clips-details { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 10px 15px; border: 0; border-radius: 11px; background: var(--icf-clips-green, #24b33f); color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; }
.icf-clips-details:hover, .icf-clips-details:focus-visible { background: #168e30; color: #fff; }
.icf-clips-close, .icf-clips-modal-arrow { position: absolute; z-index: 4; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(255,255,255,.17); color: #fff; cursor: pointer; }
.icf-clips-close { top: 17px; right: 20px; width: 38px; height: 38px; font-size: 29px; line-height: 1; }
.icf-clips-modal-arrow { top: 50%; width: 42px; height: 42px; transform: translateY(-50%); }
.icf-clips-modal-arrow svg { width: 23px; height: 23px; }
.icf-clips-modal-prev { left: max(20px, calc(50% - 315px)); }
.icf-clips-modal-next { right: max(20px, calc(50% - 315px)); }
.icf-clips-close:hover, .icf-clips-modal-arrow:hover { background: #24b33f; }
body.icf-clips-modal-open { overflow: hidden !important; }
@media (max-width: 1100px) { .icf-clips-section { --icf-clips-visible: 3; } }
@media (max-width: 680px) {
  .icf-clips-section { --icf-clips-visible: 2; --icf-clips-gap: 12px; padding: 36px 0; }
  .icf-clips-container { width: calc(100% - 32px); }
  .icf-clips-heading { margin-bottom: 16px; gap: 10px; }
  .icf-clips-heading h2 { font-size: 25px; }
  .icf-clips-heading p { font-size: 12px; }
  .icf-clips-all { padding: 9px 11px; font-size: 11px; }
  .icf-clips-card { border-radius: 14px; }
  .icf-clips-visual { aspect-ratio: 9 / 13; }
  .icf-clips-play { width: 45px; height: 45px; }
  .icf-clips-play svg { width: 20px; height: 20px; }
  .icf-clips-product-circle { width: 55px; height: 55px; bottom: -28px; }
  .icf-clips-body { padding: 37px 10px 12px; min-height: 124px; }
  .icf-clips-body h3 { font-size: 12px; margin-bottom: 14px; }
  .icf-clips-price { font-size: 12px; }
  .icf-clips-cart { width: 34px; height: 34px; flex-basis: 34px; }
  .icf-clips-cart svg { width: 18px; height: 18px; }
  .icf-clips-nav { width: 34px; height: 34px; top: 40%; }
  .icf-clips-prev { left: -9px; }
  .icf-clips-next { right: -9px; }
  .icf-clips-modal { padding: 10px; }
  .icf-clips-modal-inner { width: min(calc(100vw - 24px), calc((100dvh - 42px) * .5625)); height: min(800px, calc(100dvh - 42px), calc((100vw - 24px) * 16 / 9)); }
  .icf-clips-close { right: 15px; top: 15px; width: 34px; height: 34px; }
  .icf-clips-modal-arrow { width: 34px; height: 34px; }
  .icf-clips-modal-prev { left: 4px; }
  .icf-clips-modal-next { right: 4px; }
  .icf-clips-modal-info { padding: 16px 14px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .icf-clips-track { scroll-behavior: auto; }
  .icf-clips-card, .icf-clips-play, .icf-clips-all, .icf-clips-cart, .icf-clips-dot { transition: none; }
  .icf-clips-cart.is-just-added, .icf-clips-cart.is-just-added svg path { animation: none; stroke-dashoffset: 0; }
}
