/* ============================================================
   Phorestrokes Suite — Frontend Styles
   SeekIT Development
   ============================================================ */

:root {
  --pfs-orange:    #e8550a;
  --pfs-orange-h:  #f06020;
  --pfs-orange-lt: #fff2ec;
  --pfs-dark:      #1a1a1a;
  --pfs-mid:       #666666;
  --pfs-light:     #f7f7f7;
  --pfs-border:    #e8e8e8;
  --pfs-white:     #ffffff;
}

/* ── HERO ────────────────────────────────────────────────── */
.pfs-hero {
  background: var(--pfs-white);
  position: relative;
  overflow: hidden;
}
.pfs-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, #fff5f0 0%, transparent 65%);
  pointer-events: none;
}
.pfs-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px 60px;
  max-width: 1100px;
  margin: 0 auto;
}
.pfs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pfs-orange-lt);
  color: var(--pfs-orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
}
.pfs-hero-title {
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--pfs-dark);
  max-width: 820px;
  margin-bottom: 22px;
}
.pfs-hero-title span { color: var(--pfs-orange); font-style: italic; }
.pfs-hero-sub {
  font-size: 16px;
  color: var(--pfs-mid);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 40px;
}

/* ── SEARCH ──────────────────────────────────────────────── */
.pfs-search-wrap { width: 100%; max-width: 820px; }
.pfs-search-box {
  display: flex;
  height: 56px;
  border: 1.5px solid var(--pfs-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--pfs-white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pfs-search-box:focus-within {
  border-color: var(--pfs-orange);
  box-shadow: 0 4px 20px rgba(232,85,10,0.12);
}
.pfs-search-cat {
  display: flex;
  align-items: center;
  padding: 0 4px 0 14px;
  border-right: 1px solid var(--pfs-border);
  background: var(--pfs-light);
  flex-shrink: 0;
  position: relative;
}
.pfs-search-cat select {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--pfs-dark);
  padding-right: 26px;
  outline: none;
  cursor: pointer;
  min-width: 165px;
}
.pfs-search-cat::after {
  content: '▾';
  font-size: 10px;
  color: var(--pfs-mid);
  position: absolute;
  right: 10px;
  pointer-events: none;
}
.pfs-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}
.pfs-search-field svg { flex-shrink: 0; }
#pfs-search-q {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--pfs-dark);
  background: transparent;
  font-family: inherit;
}
#pfs-search-q::placeholder { color: #bbb; }
.pfs-search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 26px;
  background: var(--pfs-orange);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  font-family: inherit;
  transition: background 0.2s;
  flex-shrink: 0;
}
.pfs-search-btn:hover { background: var(--pfs-orange-h); }

.pfs-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  justify-content: center;
}
.pfs-tags-row > span { font-size: 13px; color: #aaa; }
.pfs-tag {
  font-size: 13px;
  color: var(--pfs-mid);
  border: 1px solid var(--pfs-border);
  padding: 4px 13px;
  border-radius: 20px;
  cursor: pointer;
  text-decoration: none;
  background: var(--pfs-white);
  transition: all 0.2s;
  display: inline-block;
}
.pfs-tag:hover {
  border-color: var(--pfs-orange);
  color: var(--pfs-orange);
  background: var(--pfs-orange-lt);
}

/* Stats */
.pfs-stats {
  display: flex;
  gap: 0;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--pfs-border);
  width: 100%;
  max-width: 580px;
}
.pfs-stat {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  border-right: 1px solid var(--pfs-border);
}
.pfs-stat:last-child { border-right: none; }
.pfs-stat-n {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: var(--pfs-dark);
  font-family: Georgia, serif;
}
.pfs-stat-l {
  display: block;
  font-size: 11px;
  color: var(--pfs-mid);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── MARQUEE ─────────────────────────────────────────────── */
.pfs-marquee {
  background: var(--pfs-orange);
  overflow: hidden;
  padding: 10px 0;
  white-space: nowrap;
}
.pfs-marquee-inner {
  display: inline-block;
  animation: pfs-marquee 30s linear infinite;
}
.pfs-mi {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  padding: 0 28px;
}
.pfs-ms { opacity: 0.4; }
@keyframes pfs-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── CATEGORY CARDS ──────────────────────────────────────── */
.pfs-categories { border-top: 1px solid var(--pfs-border); }
.pfs-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  border-bottom: 1px solid var(--pfs-border);
}
.pfs-cat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pfs-mid);
}
.pfs-cat-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--pfs-orange);
  text-decoration: none;
}
.pfs-cat-link:hover { text-decoration: underline; }
.pfs-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--pfs-border);
}
.pfs-cat-card {
  display: block;
  text-decoration: none;
  border-right: 1px solid var(--pfs-border);
  padding: 32px 24px;
  background: var(--pfs-white);
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.pfs-cat-card:last-child { border-right: none; }
.pfs-cat-card:hover { background: var(--pfs-orange-lt); }
.pfs-cat-overlay { display: none; }
.pfs-cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--pfs-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.pfs-cat-card:hover::before { transform: scaleX(1); }
.pfs-cat-icon {
  width: 48px;
  height: 48px;
  background: var(--pfs-orange-lt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.pfs-cat-n {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pfs-orange);
  margin-bottom: 6px;
}
.pfs-cat-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--pfs-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}
.pfs-cat-desc { font-size: 13px; color: var(--pfs-mid); line-height: 1.6; }
.pfs-cat-count { font-size: 12px; color: #aaa; }
.pfs-cat-go {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--pfs-orange);
  margin-top: 14px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.pfs-cat-card:hover .pfs-cat-go { opacity: 1; transform: translateX(0); }

/* ── LATEST IMAGES ───────────────────────────────────────── */
.pfs-latest-section {
  padding: 72px 0;
  background: var(--pfs-white);
}
.pfs-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.pfs-section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
}
.pfs-section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pfs-orange);
  margin-bottom: 6px;
}
.pfs-section-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--pfs-dark);
  line-height: 1.15;
  font-family: Georgia, serif;
}
.pfs-section-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--pfs-orange);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: border-color 0.2s;
}
.pfs-section-link:hover { border-color: var(--pfs-orange); }

/* Filter tabs */
.pfs-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.pfs-tab {
  font-size: 13px;
  font-weight: 500;
  color: var(--pfs-mid);
  background: var(--pfs-white);
  border: 1.5px solid var(--pfs-border);
  padding: 7px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.pfs-tab:hover { border-color: var(--pfs-orange); color: var(--pfs-orange); }
.pfs-tab.active {
  background: var(--pfs-orange);
  border-color: var(--pfs-orange);
  color: #fff;
}

/* Masonry grid */
.pfs-img-grid {
  columns: 4;
  column-gap: 16px;
  min-height: 200px;
  position: relative;
}
.pfs-cols-3 { columns: 3; }
.pfs-cols-2 { columns: 2; }

/* Loading state */
.pfs-img-grid.pfs-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Product card */
.pfs-img-card {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--pfs-border);
  background: var(--pfs-white);
  transition: box-shadow 0.25s, transform 0.25s;
}
.pfs-img-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}
.pfs-h-sm .pfs-card-thumb { height: 170px; }
.pfs-h-md .pfs-card-thumb { height: 230px; }
.pfs-h-lg .pfs-card-thumb { height: 290px; }
.pfs-h-xl .pfs-card-thumb { height: 350px; }

.pfs-card-link { display: block; text-decoration: none; }
.pfs-card-thumb {
  position: relative;
  overflow: hidden;
  background: var(--pfs-light);
}
.pfs-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.pfs-img-card:hover .pfs-card-thumb img { transform: scale(1.04); }

.pfs-img-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.45);
  padding: 3px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.pfs-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.pfs-img-card:hover .pfs-watermark { opacity: 1; }
.pfs-watermark span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.18);
  padding: 5px 14px;
  border-radius: 3px;
  transform: rotate(-18deg);
  border: 1px solid rgba(255,255,255,0.2);
}
.pfs-img-actions {
  position: absolute;
  bottom: 10px;
  right: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s;
}
.pfs-img-card:hover .pfs-img-actions { opacity: 1; transform: translateY(0); }
.pfs-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(255,255,255,0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.2s, color 0.2s;
  color: var(--pfs-dark);
}
.pfs-action-btn:hover { background: var(--pfs-orange); color: #fff; }

/* Card meta */
.pfs-card-meta { padding: 12px 14px 14px; }
.pfs-card-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--pfs-dark);
  line-height: 1.4;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pfs-card-bottom { display: flex; align-items: center; justify-content: space-between; }
.pfs-card-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--pfs-orange);
}
.pfs-card-price span { font-size: 11px; font-weight: 400; color: var(--pfs-mid); }
.pfs-btn-license {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--pfs-orange);
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}
.pfs-btn-license:hover { background: var(--pfs-orange-h); color: #fff; }

.pfs-no-products { text-align: center; color: var(--pfs-mid); padding: 48px 0; }

/* Load more */
.pfs-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--pfs-border);
}
.pfs-load-btn {
  font-size: 14px;
  font-weight: 600;
  color: var(--pfs-orange);
  background: var(--pfs-white);
  border: 2px solid var(--pfs-orange);
  padding: 12px 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  transition: all 0.2s;
}
.pfs-load-btn:hover { background: var(--pfs-orange); color: #fff; }
.pfs-load-btn:disabled { opacity: 0.5; cursor: default; }

/* ── HOW IT WORKS ────────────────────────────────────────── */
.pfs-how-section {
  background: var(--pfs-light);
  border-top: 1px solid var(--pfs-border);
  border-bottom: 1px solid var(--pfs-border);
  padding: 72px 0;
}
.pfs-how-header {
  text-align: center;
  margin-bottom: 48px;
}
.pfs-how-sub {
  font-size: 15px;
  color: var(--pfs-mid);
  max-width: 460px;
  margin: 12px auto 0;
  line-height: 1.7;
}
.pfs-how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pfs-how-card {
  background: var(--pfs-white);
  border: 1px solid var(--pfs-border);
  border-radius: 10px;
  padding: 28px 22px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pfs-how-card:hover {
  border-color: var(--pfs-orange);
  box-shadow: 0 4px 18px rgba(232,85,10,0.08);
}
.pfs-how-icon {
  width: 48px;
  height: 48px;
  background: var(--pfs-orange-lt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.pfs-how-step {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pfs-orange);
  margin-bottom: 8px;
}
.pfs-how-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--pfs-dark);
  margin-bottom: 8px;
}
.pfs-how-card p { font-size: 13.5px; color: var(--pfs-mid); line-height: 1.65; }

/* ── QUICK VIEW MODAL ────────────────────────────────────── */
.pfs-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.pfs-modal-overlay.pfs-open { opacity: 1; pointer-events: auto; }
.pfs-modal {
  background: var(--pfs-white);
  border-radius: 12px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  gap: 0;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s;
}
.pfs-modal-overlay.pfs-open .pfs-modal { transform: translateY(0); }
.pfs-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--pfs-light);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--pfs-dark);
  line-height: 1;
  transition: background 0.2s;
  z-index: 2;
}
.pfs-modal-close:hover { background: var(--pfs-border); }
.pfs-modal-body {
  display: flex;
  flex: 1;
  min-height: 0;
}
.pfs-qv-img {
  flex: 1;
  background: var(--pfs-light);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
}
.pfs-qv-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pfs-qv-info {
  flex: 0 0 300px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pfs-qv-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pfs-orange);
  background: var(--pfs-orange-lt);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
}
.pfs-qv-title { font-size: 22px; font-weight: 700; color: var(--pfs-dark); line-height: 1.3; }
.pfs-qv-price { font-size: 20px; font-weight: 700; color: var(--pfs-orange); }
.pfs-qv-price span { font-size: 13px; font-weight: 400; color: var(--pfs-mid); }
.pfs-qv-desc { font-size: 13.5px; color: var(--pfs-mid); line-height: 1.65; }
.pfs-btn-primary {
  display: inline-block;
  background: var(--pfs-orange);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}
.pfs-btn-primary:hover { background: var(--pfs-orange-h); color: #fff; }
.pfs-qv-note {
  font-size: 12px;
  color: var(--pfs-mid);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pfs-img-grid, .pfs-cols-4 { columns: 3; }
  .pfs-how-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pfs-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .pfs-hero-inner { padding: 56px 20px 40px; }
  .pfs-cat-header { padding: 20px; }
  .pfs-cat-grid { grid-template-columns: 1fr 1fr; }
  .pfs-cat-card:last-child { grid-column: span 2; border-right: none; }
  .pfs-cat-card { border-right: none; border-bottom: 1px solid var(--pfs-border); }
  .pfs-section-inner { padding: 0 20px; }
  .pfs-latest-section, .pfs-how-section { padding: 48px 0; }
  .pfs-img-grid, .pfs-cols-4 { columns: 2; }
  .pfs-search-cat { display: none; }
  .pfs-section-title { font-size: 26px; }
  .pfs-modal-body { flex-direction: column; }
  .pfs-qv-info { flex: none; }
}
@media (max-width: 480px) {
  .pfs-img-grid { columns: 1; }
  .pfs-how-grid { grid-template-columns: 1fr; }
  .pfs-stats { gap: 0; }
}
