:root {
  --apf-primary: #1268e8;
  --apf-primary-dark: #0a4fb8;
  --apf-ink: #0b2343;
  --apf-muted: #61718a;
  --apf-border: #dce5f1;
  --apf-surface: #ffffff;
  --apf-shadow: 0 12px 35px rgba(11, 35, 67, 0.09);
}
.apf-grid {
  display: grid;
  gap: 24px;
  margin: 24px 0;
}
.apf-cols-1 { grid-template-columns: 1fr; }
.apf-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.apf-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.apf-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.apf-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.apf-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.apf-card {
  overflow: hidden;
  border: 1px solid var(--apf-border);
  border-radius: 16px;
  background: var(--apf-surface);
  box-shadow: 0 4px 18px rgba(11, 35, 67, 0.05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.apf-card:hover {
  transform: translateY(-5px);
  border-color: rgba(18, 104, 232, .35);
  box-shadow: var(--apf-shadow);
}
.apf-card-image {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f5f8fc;
}
.apf-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.apf-card-body { padding: 22px; }
.apf-card-body h3 { margin: 0 0 10px; color: var(--apf-ink); font-size: 1.15rem; }
.apf-card-body p { color: var(--apf-muted); }
.apf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 9px;
  background: var(--apf-primary);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .2s ease, transform .2s ease;
}
.apf-button:hover { background: var(--apf-primary-dark); transform: translateY(-1px); }
.apf-text-link { color: var(--apf-primary); font-weight: 700; text-decoration: none; }
.apf-logo-grid { align-items: stretch; }
.apf-logo-card {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border: 1px solid var(--apf-border);
  border-radius: 14px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.apf-logo-card:hover { transform: translateY(-4px); box-shadow: var(--apf-shadow); }
.apf-logo-card img { max-width: 100%; max-height: 82px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .25s ease; }
.apf-logo-card:hover img { filter: grayscale(0); opacity: 1; }
.apf-product-actions { margin: 28px 0; }
.apf-product-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0; }
.apf-product-gallery a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--apf-border); }
.apf-product-gallery img { width: 100%; height: auto; display: block; }
.apf-empty { padding: 18px; border-radius: 10px; background: #f5f8fc; color: var(--apf-muted); }
@media (max-width: 1024px) {
  .apf-cols-4, .apf-cols-5, .apf-cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .apf-cols-2, .apf-cols-3, .apf-cols-4, .apf-cols-5, .apf-cols-6 { grid-template-columns: 1fr; }
  .apf-product-gallery { grid-template-columns: 1fr; }
}

