/* DH Software - Modern Storefront & Grid Styles (Chuẩn sàn thương mại số) */
.shop-tabs-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid #F1F5F9;
  padding-bottom: 8px;
}
.shop-tab-btn {
  font-family: var(--dh-font-heading, inherit);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: #64748B;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.shop-tab-btn:hover {
  color: #0F172A;
}
.shop-tab-btn.active {
  background: #D70018;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(215, 0, 24, 0.25);
}

.shop-sub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.shop-filter-pill {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.shop-filter-pill:hover {
  border-color: #0291F9;
  color: #0291F9;
}
.shop-filter-pill.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

/* 4-column responsive product grid */
.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) {
  .shop-product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .shop-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.shop-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  border-color: #CBD5E1;
}

.shop-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #0F172A;
}
.shop-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.shop-card:hover .shop-card-img {
  transform: scale(1.035);
}

/* Dark tech banner for products without photo */
.shop-card-banner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(145deg, #1E1B4B 0%, #0F172A 100%);
  color: #FFFFFF;
  box-sizing: border-box;
}
.shop-card-banner.theme-media {
  background: linear-gradient(145deg, #4A044E 0%, #1E1B4B 100%);
}
.shop-card-banner.theme-ai {
  background: linear-gradient(145deg, #31104B 0%, #0F172A 100%);
}
.shop-card-banner.theme-social {
  background: linear-gradient(145deg, #172554 0%, #0F172A 100%);
}
.shop-card-banner.theme-mail {
  background: linear-gradient(145deg, #064E3B 0%, #0F172A 100%);
}

.shop-banner-icon-box {
  width: 42px;
  height: 42px;
  background: #FFFFFF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F172A;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.shop-banner-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  margin: 10px 0 6px;
}
.shop-banner-features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 11px;
  opacity: 0.9;
  line-height: 1.4;
}
.shop-banner-features li {
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-badge-kind {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

.shop-badge-soldout {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #F87171;
  border: 1px solid #DC2626;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

.shop-card-body {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.shop-card-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #0F172A;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.shop-card-price {
  font-size: 16px;
  font-weight: 800;
  color: #D70018;
  margin-top: auto;
}
.shop-card-price.contact {
  color: #0284C7;
  font-size: 14.5px;
}
