/* ============================================
   AS MEDIA HUB — Services Page CSS
   assets/css/services.css
   ============================================ */

/* ── LAYOUT ── */
.services-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

/* ── SIDEBAR ── */
.services-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.cat-filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
  margin-bottom: 2px;
}

.cat-filter-link:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.cat-filter-link.active {
  background: var(--green-xpale);
  color: var(--green);
}

.cat-count {
  font-size: 0.74rem;
  background: var(--bg-secondary);
  border-radius: 100px;
  padding: 2px 8px;
  color: var(--text-muted);
}

/* ── CURRENCY TOGGLE ── */
.currency-toggle {
  display: inline-flex;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cur-btn {
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: none;
  font-family: var(--font-body);
  border-right: 1.5px solid var(--border-color);
}

.cur-btn:last-child { border-right: none; }
.cur-btn.active { background: var(--green); color: #fff; }
.cur-btn:not(.active):hover { background: var(--bg-secondary); }

/* ── PRODUCTS HEADER ── */
.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.products-count {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* ── PRODUCT GRID ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card-wrap { position: relative; }

.product-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  border-color: rgba(45, 106, 79, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.04);
}

.product-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-cat {
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}

.product-card-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  flex: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1.5px solid var(--border-color);
  margin-top: auto;
}

.product-card-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.product-featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--green); }

/* ── MOBILE FILTERS ── */
.cat-filters-mobile {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  grid-column: 1 / -1;
  color: var(--text-muted);
}

.empty-state-icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1rem; color: var(--text-secondary); margin-bottom: 6px; font-weight: 700; }
.empty-state p { font-size: 0.85rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .services-layout { grid-template-columns: 1fr; }
  .services-sidebar { position: static; }
  .sidebar-card { display: none; }
  .cat-filters-mobile { display: flex; }
}

@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .products-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 500px) {
  .products-grid { grid-template-columns: 1fr; }
}
