/* ==========================================================================
   LIUTONG FOUNTAIN - products page styles (split from content.css)
   ========================================================================== */

/* ---------- Project Grid ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.project-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.project-card-media {
  overflow: hidden;
  height: 260px;
}
.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.project-card:hover .project-card-media img {
  transform: scale(1.05);
}
.project-card-body {
  padding: 24px;
}
.project-card-body .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-3);
  background: rgba(0,136,255,0.08);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.project-card-body h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--brand);
}
.project-card-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}@media (max-width: 1024px) {
.project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
.project-grid {
    grid-template-columns: 1fr;
  }
}


/* ---------- Products Main — Sidebar + Grid ---------- */
.products-main {
  padding: 60px 0 80px;
  background: var(--bg-1);
}
.products-main-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

/* Sidebar */
.products-sidebar {
  position: sticky;
  top: 120px;
}
.sidebar-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--brand);
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  border-top: 1px solid var(--line);
}
.sidebar-nav li {
  border-bottom: 1px solid var(--line);
}
.sidebar-nav a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s var(--ease);
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover {
  color: var(--brand-3);
  background: rgba(0,136,255,0.04);
  border-left-color: var(--brand-3);
}
.sidebar-nav a.is-active {
  color: var(--brand-3);
  background: rgba(0,136,255,0.06);
  border-left-color: var(--brand-3);
  font-weight: 600;
}

/* Sidebar Consult Block */
.sidebar-consult {
  background: var(--bg-0);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  color: #fff;
}
.sidebar-consult h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 18px;
  line-height: 1.4;
}
.sidebar-consult .btn-cta {
  display: block;
  text-align: center;
  padding: 12px 20px;
  font-size: 12px;
}

/* ---------- Product Card Grid ---------- */
.products-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.p-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  text-decoration: none;
  color: inherit;
}
.p-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.p-card-media {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.p-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.p-card:hover .p-card-media img {
  transform: scale(1.06);
}
.p-card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--brand-3);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 2px;
}
.p-card-body {
  padding: 22px;
}
.p-card-body h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 10px;
  color: var(--brand);
}
.p-card-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}
.p-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.p-card:hover .p-card-link {
  color: var(--brand);
}

/* ---------- Products Pagination ---------- */
.products-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.pp-btn:hover:not(:disabled) {
  border-color: var(--brand-3);
  color: var(--brand-3);
}
.pp-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pp-btn svg {
  width: 16px;
  height: 16px;
}
.pp-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 4px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
}
.pp-page:hover {
  color: var(--brand-3);
  background: rgba(0,136,255,0.06);
}
.pp-page.is-active {
  background: var(--brand-3);
  color: #fff;
}
.pp-dots {
  color: var(--muted);
  font-size: 14px;
  padding: 0 4px;
}

/* ---------- Related Projects Dots ---------- */
.related-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.rdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.2s;
}
.rdot.is-active {
  background: var(--brand-3);
}
.sp-form {
  text-align: left;
}
.sp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.sp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sp-field.sp-full {
  grid-column: span 2;
}
.sp-lb {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sp-lb em {
  color: #ff6b6b;
  font-style: normal;
}
.sp-field input,
.sp-field select,
.sp-field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.sp-field input::placeholder,
.sp-field textarea::placeholder {
  color: rgba(255,255,255,0.35);
}
.sp-field input:focus,
.sp-field select:focus,
.sp-field textarea:focus {
  outline: none;
  border-color: var(--brand-3);
}
.sp-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.sp-field select option {
  background: var(--bg-0);
  color: #fff;
}
.sp-field textarea {
  resize: vertical;
}
.sp-row-actions {
  justify-content: center;
  margin-top: 8px;
}
.sp-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  background: var(--brand-3);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.sp-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,136,255,0.35);
}
.sp-submit svg {
  width: 18px;
  height: 18px;
}
.sp-note {
  margin-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}@media (max-width: 1024px) {
.products-main-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 1024px) {
.products-sidebar {
    position: static;
  }
}
@media (max-width: 1024px) {
.sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-top: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
  }
}
@media (max-width: 1024px) {
.sidebar-nav li {
    border-bottom: none;
  }
}
@media (max-width: 1024px) {
.sidebar-nav a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 8px 12px;
    font-size: 13px;
  }
}
@media (max-width: 1024px) {
.sidebar-nav a.is-active {
    border-left: none;
    border-bottom-color: var(--brand-3);
  }
}
@media (max-width: 1024px) {
.products-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1024px) {
.sp-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1024px) {
.sp-field.sp-full {
    grid-column: span 1;
  }
}
@media (max-width: 768px) {
.products-card-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
.sidebar-consult {
    padding: 20px;
  }
}

/* ==========================================================================
   Related Projects slider (JS-driven, infinite, one-card steps)
   ========================================================================== */
.related-viewport { overflow: hidden; }
.related-slider .project-grid {
  display: flex;
  gap: 24px;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.related-slider .project-card { flex: 0 0 calc((100% - 48px) / 3); box-sizing: border-box; }
.related-slider.no-anim .project-grid { transition: none; }
.related-dots .rdot { cursor: pointer; }
@media (max-width: 1024px) {
  .related-slider .project-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
  .related-slider .project-card { flex-basis: 100%; }
}
