/* ── Ürün sayfası ek stilleri ── */

.page-hero {
  padding: calc(var(--nav-h) + 60px) 0 60px;
  background: var(--dark2);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.page-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
}
.page-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
#productCount {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--light);
}
#lastUpdated {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Brand bar ── */
.brand-bar {
  background: var(--dark2);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 20px 0;
}
.brand-bar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand-bar-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: var(--r);
  padding: 6px 12px;
  flex-shrink: 0;
}
.brand-bar p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Toolbar ── */
.toolbar {
  padding: 24px 0;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  backdrop-filter: blur(12px);
}
.toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--light);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--trans);
}
.filter-btn:hover   { border-color: var(--red); color: var(--white); }
.filter-btn.active  { background: var(--red); border-color: var(--red); color: #fff; }

#refreshBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--light);
  padding: 8px 18px;
  border-radius: var(--r);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--trans);
}
#refreshBtn:hover:not(:disabled) {
  border-color: var(--red);
  color: var(--red);
}
#refreshBtn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Product grid ── */
.products-section { padding: 64px 0 120px; background: var(--dark); }

#productGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
  border-color: rgba(232,0,14,0.3);
}

.product-img-wrap {
  aspect-ratio: 4/3;
  background: var(--dark3);
  overflow: hidden;
  position: relative;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-img-wrap.no-img::after {
  content: '📷';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; opacity: 0.2;
}
.product-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--dark3), var(--mid));
}

.product-info { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-brand {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
}
.product-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--white);
}
.product-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}
.product-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}
.product-cta {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  transition: letter-spacing var(--trans);
}
.product-card:hover .product-cta { letter-spacing: 0.16em; }

/* ── States ── */
.loading-state,
.empty-state,
.error-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-state small { color: var(--muted); font-size: 0.75rem; }

/* ── Responsive ── */
@media (max-width: 1100px) { #productGrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { #productGrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { #productGrid { grid-template-columns: 1fr; } }
