/* ===== Product Card Info (Commercial) ===== */
.hx-gallery .hx-track .hx-card {
  position: relative;
  overflow: hidden;
  flex-direction: column;
  background: transparent;
}

.hx-gallery .hx-track .hx-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  display: block;
  background: transparent;
  position: relative;
  z-index: 1;
}

.hx-gallery .hx-track .hx-card .product-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(255,255,255,0.95), rgba(245,245,240,0.85) 35%, rgba(230,230,220,0.4) 70%, transparent);
  padding: 0;
  color: #2d3440;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 1;
  transition: opacity 0.3s ease;
  justify-content: flex-end;
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
  z-index: 10;
  margin: 0;
  border-radius: 0;
}

.hx-gallery .hx-track .hx-card:hover .product-info {
  opacity: 1;
}

.hx-gallery .hx-track .hx-card .product-info h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #2d3440;
}

.hx-gallery .hx-track .hx-card .rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #5e6f6c;
}

.hx-gallery .hx-track .hx-card .stars {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 2px;
}

.hx-gallery .hx-track .hx-card .rating-text {
  color: #6e7c92;
  font-size: 12px;
}

.hx-gallery .hx-track .hx-card .product-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.hx-gallery .hx-track .hx-card .btn-download,
.hx-gallery .hx-track .hx-card .btn-visit {
  flex: 1;
  padding: 10px 12px;
  background: rgba(66,102,125,0.15);
  color: #42667d;
  border: 1px solid rgba(66,102,125,0.3);
  border-radius: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.hx-gallery .hx-track .hx-card .btn-download:hover {
  background: #42667d;
  color: white;
  border-color: #42667d;
  transform: translateY(-2px);
}

.hx-gallery .hx-track .hx-card .btn-visit:hover {
  background: #006d77;
  color: white;
  border-color: #006d77;
  transform: translateY(-2px);
}

.hx-gallery .hx-track .hx-card .btn-download span,
.hx-gallery .hx-track .hx-card .btn-visit span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

@media (max-width: 768px) {
  .hx-gallery .hx-track .hx-card .product-info {
    padding-bottom: 16px;
    padding-left: 16px;
    padding-right: 16px;
    opacity: 1;
  }

  .hx-gallery .hx-track .hx-card .product-info h3 {
    font-size: 16px;
  }

  .hx-gallery .hx-track .hx-card .btn-download,
  .hx-gallery .hx-track .hx-card .btn-visit {
    font-size: 11px;
    padding: 8px 10px;
  }
}

/* ========================= IT Products (products.html only) ========================= */
.hx-gallery.it-products{
  padding: clamp(18px, 3vw, 34px) 0;
}

.hx-gallery.it-products .it-products__header{
  text-align: center;
  margin-bottom: 18px;
}

.hx-gallery.it-products .it-products__title{
  margin: 8px 0 6px;
}

.hx-gallery.it-products .it-products__subtitle{
  margin: 0;
  color: var(--muted);
}

.hx-gallery.it-products .it-products__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 980px){
  .hx-gallery.it-products .it-products__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .hx-gallery.it-products .it-products__grid{
    grid-template-columns: 1fr;
  }
}

.hx-gallery.it-products .it-product-card{
  position: relative;
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.hx-gallery.it-products .it-product-card::before{
  content: "";
  position: absolute;
  inset: -60% -40% auto -40%;
  height: 220px;
  transform: rotate(12deg);
  border-radius: 999px;
  opacity: .95;
  pointer-events: none;
}

.hx-gallery.it-products .it-product-top{
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: center;
}

.hx-gallery.it-products .it-product-badge{
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: 0 12px 22px rgba(15,23,42,.16);
}

.hx-gallery.it-products .it-product-badge span{
  font-size: 14px;
}

.hx-gallery.it-products .it-product-badge img{
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(15,23,42,.14));
}

.hx-gallery.it-products .it-product-head h3{
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.hx-gallery.it-products .it-product-head p{
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hx-gallery.it-products .it-product-bottom{
  position: relative;
  z-index: 1;
  margin-top: 16px;
}

.hx-gallery.it-products .rating{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.hx-gallery.it-products .stars{
  color: color-mix(in srgb, var(--accent) 70%, var(--brand) 30%);
  font-size: 16px;
  letter-spacing: 2px;
}

.hx-gallery.it-products .rating-text{
  font-size: 12px;
  color: var(--muted);
}

.hx-gallery.it-products .product-actions{
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.hx-gallery.it-products .btn-download,
.hx-gallery.it-products .btn-visit{
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,.06);
}

.hx-gallery.it-products .btn-download{
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--brand) 14%, var(--surface) 86%),
    var(--surface)
  );
  color: var(--ink);
}

.hx-gallery.it-products .btn-visit{
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--accent) 14%, var(--surface) 86%),
    var(--surface)
  );
  color: var(--ink);
}

.hx-gallery.it-products .btn-download:hover,
.hx-gallery.it-products .btn-visit:hover{
  transform: translateY(-1px);
}

/* Colour themes per card (uses only existing theme tokens via color-mix) */
.hx-gallery.it-products .it-product-card.it-accounts::before{
  background: radial-gradient(circle at 18% 28%,
    color-mix(in srgb, var(--danger) 55%, var(--surface) 45%),
    transparent 64%
  );
}
.hx-gallery.it-products .it-product-card.it-accounts .it-product-badge{
  box-shadow:
    0 12px 22px rgba(15,23,42,.16),
    0 0 0 3px color-mix(in srgb, var(--danger) 22%, transparent);
}

.hx-gallery.it-products .it-product-card.it-voxagraph::before{
  background:
    radial-gradient(circle at 18% 24%,
      color-mix(in srgb, var(--h1_colour) 55%, var(--surface) 45%),
      transparent 62%
    ),
    radial-gradient(circle at 58% 10%,
      color-mix(in srgb, var(--accent) 55%, var(--surface) 45%),
      transparent 58%
    ),
    radial-gradient(circle at 85% 40%,
      color-mix(in srgb, var(--brand) 55%, var(--surface) 45%),
      transparent 60%
    );
}
.hx-gallery.it-products .it-product-card.it-voxagraph .it-product-badge{
  box-shadow:
    0 12px 22px rgba(15,23,42,.16),
    0 0 0 3px color-mix(in srgb, var(--h1_colour) 22%, transparent),
    0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent);
}

.hx-gallery.it-products .it-product-card.it-cloudkitchen::before{
  background: radial-gradient(circle at 20% 30%,
    color-mix(in srgb, var(--accent) 60%, var(--surface) 40%),
    transparent 64%
  );
}
.hx-gallery.it-products .it-product-card.it-cloudkitchen .it-product-badge{
  box-shadow:
    0 12px 22px rgba(15,23,42,.16),
    0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
