.card-hover {
  transition: all 0.2s;
  cursor: pointer;
}

.card-hover:hover {
  border-color: var(--cta) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08);
}

/* Product Card */
.product-card {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  transition: all 0.2s;
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--cta);
  transform: translateY(-3px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08);
}

.product-card--promoted {
  border-color: rgba(217, 119, 6, 0.3);
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.1), 0 4px 6px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .product-card--promoted {
  border-color: rgba(251, 146, 60, 0.4);
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.12);
}

.product-card__image {
  aspect-ratio: 4/3;
  background: var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.product-card__body {
  padding: 1rem;
}

.product-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cta);
  margin-bottom: 8px;
}

.product-card__price-unit {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.product-card__badges {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.product-card__location {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Category Card */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--cta);
  transform: translateY(-3px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08);
}

.category-card--cta {
  background: rgba(249, 115, 22, 0.04);
  border-color: var(--cta);
}

.category-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-heading);
}

.category-card__count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Category page — larger grid */
.grid-categories--page {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.category-card--large {
  padding: 2rem 1.25rem;
  gap: 0.5rem;
}

.category-card__icon--lg {
  width: 56px;
  height: 56px;
  margin-bottom: 0.25rem;
}

.category-card__children {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 0.25rem;
}

.category-card__child-tag {
  padding: 2px 8px;
  background: var(--bg);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.category-card__child-tag--more {
  color: var(--cta);
  font-weight: 600;
}

/* ============================================
   Category Page — Redesigned Cards
   ============================================ */
.cat-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.cat-page-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.cat-page-card:hover {
  border-color: var(--cta);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.cat-page-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cat-page-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-page-card__arrow {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.cat-page-card:hover .cat-page-card__arrow {
  background: var(--cta);
  color: #fff;
  transform: translateX(2px);
}

.cat-page-card__body {
  flex: 1;
  margin-bottom: 0.75rem;
}

.cat-page-card__name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.cat-page-card__count {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.cat-page-card__subs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.cat-page-card__sub {
  padding: 3px 10px;
  background: var(--bg);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.cat-page-card:hover .cat-page-card__sub {
  background: rgba(249, 115, 22, 0.06);
  color: var(--text);
}

.cat-page-card__sub--more {
  color: var(--cta);
  font-weight: 600;
}

.cat-page-card__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.2s;
}

.cat-page-card:hover .cat-page-card__bar {
  opacity: 1;
}

/* Stat Card */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.stat-card__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stat-card__value {
  font-size: 1.75rem;
  font-weight: 800;
}

.stat-card__change {
  font-size: 0.6875rem;
  margin-top: 4px;
}

/* Stats Bar */
.stats-bar {
  padding: 1.5rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.stats-bar__grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stats-bar__item {
  text-align: center;
}

.stats-bar__number {
  font-size: 1.5rem;
  font-weight: 800;
}

.stats-bar__text {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================
   Skeleton shimmer loading
   ============================================ */
.skeleton-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  pointer-events: none;
}

.skeleton-card__image {
  aspect-ratio: 4/3;
  background: var(--border);
}

.skeleton-card__body {
  padding: 1rem;
}

.skeleton-line {
  border-radius: 4px;
  background: var(--border);
}

@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton-pulse {
  background: linear-gradient(90deg, var(--border) 25%, rgba(255,255,255,0.15) 50%, var(--border) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite ease-in-out;
}

[data-theme="dark"] .skeleton-pulse {
  background: linear-gradient(90deg, var(--border) 25%, rgba(255,255,255,0.05) 50%, var(--border) 75%);
  background-size: 800px 100%;
}

/* ============================================
   Card enter animation (staggered fade-in)
   ============================================ */
@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-enter {
  opacity: 0;
  animation: cardEnter 0.3s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-pulse { animation: none; }
  .card-enter { animation: none; opacity: 1; }
}

/* ============================================
   Carousel product cards — fixed uniform size
   ============================================ */
.product-card--carousel {
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.product-card--carousel .product-card__image {
  height: 160px;
  aspect-ratio: auto;
}

.product-card--carousel .product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card--carousel .product-card__title {
  font-size: 0.875rem;
}

.product-card--carousel .product-card__price {
  font-size: 1rem;
}

.product-card--carousel .product-card__location {
  margin-top: auto;
}
