/* =============================================================
   TamedBlox — PREMIUM CARD SYSTEM (Perfect Shine Edition)
============================================================= */

.product-grid {
  max-width: 1380px;
  margin: 60px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 36px;
}

/* =============================================================
   CARD BASE
============================================================= */
.card {
  background: rgba(15, 20, 26, 0.82);
  border-radius: 22px;
  padding: 20px 20px 26px;

  border: 1px solid rgba(78, 245, 138, 0.45);

  box-shadow:
    0 0 22px rgba(78,245,138,0.30),
    0 0 10px rgba(78,245,138,0.20),
    inset 0 0 12px rgba(255,255,255,0.05);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  transition: all 0.25s ease;
  overflow: hidden;
  position: relative;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(78, 245, 138, 0.85);

  box-shadow:
    0 0 34px rgba(78,245,138,0.55),
    0 0 18px rgba(78,245,138,0.38),
    inset 0 0 18px rgba(255,255,255,0.08);
}

/* =============================================================
   PRODUCT IMAGE
============================================================= */
.product-img {
  width: 100%;
  height: 250px;
  border-radius: 14px;

  object-fit: contain;
  background: rgba(255,255,255,0.06);

  box-shadow:
    inset 0 0 30px rgba(78,245,138,0.4),
    0 0 35px rgba(78,245,138,0.23);

  padding: 12px;
  margin-bottom: 18px;

  transition: transform 0.25s ease;
}

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

/* =============================================================
   BADGES ROW
============================================================= */
.card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =============================================================
   TAG BASE — shared
============================================================= */
.tag-secret,
.tag-god,
.tag-og,
.discount-tag {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  padding: 8px 20px;

  font-size: 13px;
  font-weight: 900;

  /* Outer glow */
  box-shadow:
    0 0 22px currentColor,
    inset 0 0 12px rgba(255,255,255,0.22);
}

/* =============================================================
   TAG COLORS (filled neon)
============================================================= */

.tag-secret {
  background: #00eaff;
  color: #00171d;
}

.tag-god {
  background: #ff37ff;
  color: #1d001d;
}

.tag-og {
  background: #ffc65a;
  color: #2d1d00;
}

.discount-tag {
  background: #4ef58a;
  color: #001d0b;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  box-shadow:
    0 0 22px rgba(78,245,138,1),
    inset 0 0 12px rgba(255,255,255,0.2);
}

.discount-tag svg {
  width: 16px;
  height: 16px;
}

/* =============================================================
   SHINE EFFECT — TAGS ONLY (Perfect 1.6s speed)
============================================================= */
.tag-secret::after,
.tag-god::after,
.tag-og::after,
.discount-tag::after {
  content: "";
  position: absolute;
  top: 0;
  left: -160%;
  width: 140%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.85) 50%,
    transparent 100%
  );

  filter: blur(4px);
  transform: skewX(-25deg);
  opacity: 0.9;

  animation: tagShine 1.6s ease-in-out infinite;
}

@keyframes tagShine {
  0%   { left: -160%; }
  50%  { left: 160%; }
  100% { left: 160%; }
}

/* =============================================================
   PRODUCT NAME
============================================================= */
.card h3 {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 900;
  color: #f8fff6;

  text-shadow:
    0 0 6px rgba(78,245,138,0.32),
    0 0 2px rgba(78,245,138,0.15);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================================
   PRICE SECTION
============================================================= */
.price-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 22px;
}

.price {
  font-size: 22px;
  font-weight: 900;
  color: #4ef58a;

  text-shadow:
    0 0 12px rgba(78,245,138,0.75),
    0 0 4px rgba(78,245,138,0.55);
}

.old-price {
  font-size: 14px;
  opacity: 0.7;
  text-decoration: line-through;
}

/* =============================================================
   ADD TO CART BUTTON
============================================================= */
.buy-btn {
  width: 100%;
  padding: 15px 0;

  background: #4ef58a;
  color: #0c1117;

  border-radius: 12px;
  border: none;

  font-size: 15px;
  font-weight: 900;

  box-shadow: 0 0 18px rgba(78,245,138,0.55);
  transition: all 0.18s ease;
}

.buy-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 28px rgba(78,245,138,0.75);
}

.buy-btn:active {
  transform: scale(0.97);
}
