/* WebOrder Portfolio Slider
   Shortcode: [weborder_portfolio]
   3 slides desktop · 2 slides tablet · 1 slide mobile
*/

.wo-pf-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: 12px 0 24px;
  box-sizing: border-box;
}
.wo-pf-wrap * { box-sizing: border-box; }

/* ── Heading ── */
.wo-pf-heading { margin-bottom: 24px; }
.wo-pf-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.5px;
  color: #1d1d1f;
  margin: 0;
  line-height: 1.2;
}

/* ── Outer: positions arrows + track ── */
.wo-pf-outer {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

/* ── Arrow buttons ── */
.wo-pf-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #e5e5ea;
  background: #ffffff;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .18s;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.wo-pf-arrow:hover {
  border-color: #0071e3;
  color: #0071e3;
  box-shadow: 0 4px 12px rgba(0,113,227,.18);
}
.wo-pf-arrow:disabled {
  opacity: .3;
  cursor: not-allowed;
  box-shadow: none;
  border-color: #e5e5ea;
  color: #aeaeb2;
}

/* ── Track wrapper (clips overflow) ── */
.wo-pf-track-wrap {
  flex: 1;
  overflow: hidden;
  margin: 0 10px;
}

/* ── Track (slides in here) ── */
.wo-pf-track {
  display: flex;
  transition: transform .38s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

/* ── Single slide ── */
.wo-pf-slide {
  /* Desktop: 3 visible → each takes 1/3 width */
  flex: 0 0 calc(33.333% - 10px);
  margin-right: 15px;
}
.wo-pf-slide:last-child { margin-right: 0; }

/* ── Card ── */
.wo-pf-card {
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1.5px solid #f0f0f5;
  transition: box-shadow .2s, transform .2s;
}
.wo-pf-card:hover {
  box-shadow: 0 10px 32px rgba(0,0,0,.10);
  transform: translateY(-2px);
}

/* ── Image / preview area ── */
.wo-pf-img {
  position: relative;
  height: 190px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wo-pf-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.wo-pf-card:hover .wo-pf-img img { transform: scale(1.03); }

/* Placeholder mockup */
.wo-pf-mock {
  width: 78%;
  padding: 10px 0;
}
.wo-pf-mock-bar {
  height: 7px;
  border-radius: 4px;
  margin-bottom: 7px;
}
.wo-pf-mock-bar.short { width: 50%; }
.wo-pf-mock-hero {
  height: 40px;
  border-radius: 6px;
  margin-top: 10px;
}

/* Badge */
.wo-pf-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #1d1d1f;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

/* Hover overlay */
.wo-pf-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .22s;
  text-decoration: none;
}
.wo-pf-card:hover .wo-pf-overlay { opacity: 1; }
.wo-pf-overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 20px;
  font-family: inherit;
}

/* ── Card info ── */
.wo-pf-info {
  padding: 14px 16px;
}
.wo-pf-name {
  font-size: 14px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wo-pf-cat {
  font-size: 11px;
  color: #8e8e93;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wo-pf-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wo-pf-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #aeaeb2;
}
.wo-pf-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #0071e3;
  text-decoration: none;
}
.wo-pf-demo-link:hover { text-decoration: underline; }

/* ── Dots ── */
.wo-pf-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}
.wo-pf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d1d1d6;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all .2s;
}
.wo-pf-dot.active {
  background: #0071e3;
  width: 22px;
  border-radius: 4px;
}

/* ── Tablet: 2 slides ── */
@media (max-width: 900px) {
  .wo-pf-slide {
    flex: 0 0 calc(50% - 8px);
    margin-right: 14px;
  }
}

/* ── Mobile: 1 slide ── */
@media (max-width: 560px) {
  .wo-pf-slide {
    flex: 0 0 100%;
    margin-right: 0;
  }
  .wo-pf-arrow {
    width: 34px;
    height: 34px;
  }
  .wo-pf-track-wrap {
    margin: 0 6px;
  }
  .wo-pf-img {
    height: 200px;
  }
}
