/* ═══════════════════════════════════════════════════════
   ENTERPRISE PRODUCT CARDS — Commercial Grade
   TSSCCTV.com — Bootstrap 5.3 Magento-Inspired
   ═══════════════════════════════════════════════════════ */

/* ── CenterBox Container ───────────────── */
.centerBoxWrapper {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 36px;
  overflow: hidden;
}

.centerBoxWrapper .card-header {
  background: linear-gradient(180deg, #f8fafd 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f172a;
  padding: 16px 24px;
}

/* ── Card Grid ─────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 28px;
}

#whatsNew .card-body,
#specialsDefault .card-body,
#featuredProducts .card-body {
  padding: 0 !important;
}

/* ── Product Card — Enterprise ─────────── */
.centerBoxContents.card,
.centerBoxContentsListing.card,
.centerBoxContentsNew,
.centerBoxContentsSpecials,
.centerBoxContentsFeatured {
  background: #fff !important;
  border: 1px solid #e8ecf0 !important;
  border-radius: 10px !important;
  padding: 0 !important;
  text-align: center !important;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.3s ease !important;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
  display: flex !important;
  flex-direction: column !important;
}

.centerBoxContents.card:hover,
.centerBoxContentsListing.card:hover,
.centerBoxContentsNew:hover,
.centerBoxContentsSpecials:hover,
.centerBoxContentsFeatured:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 32px rgba(0,0,0,0.10),
              0 0 0 1px rgba(19,96,124,0.12) !important;
  border-color: #c5d5e0 !important;
}

/* ── Image Container ───────────────────── */
.centerBoxContents.card > a:first-child,
.centerBoxContentsListing.card > a:first-child,
.centerBoxContentsNew > a:first-child,
.centerBoxContentsSpecials > a:first-child,
.centerBoxContentsFeatured > a:first-child {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 230px !important;
  overflow: hidden !important;
  background: #fafbfc !important;
  padding: 24px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

/* ── Product Image ─────────────────────── */
.centerBoxContents.card img,
.centerBoxContentsListing.card img,
.centerBoxContentsNew img,
.centerBoxContentsSpecials img,
.centerBoxContentsFeatured img {
  max-width: 100% !important;
  max-height: 175px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.centerBoxContents.card:hover img,
.centerBoxContentsListing.card:hover img,
.centerBoxContentsNew:hover img,
.centerBoxContentsSpecials:hover img,
.centerBoxContentsFeatured:hover img {
  transform: scale(1.08) !important;
}

/* ── Product Title ─────────────────────── */
.centerBoxContents.card a[title],
.centerBoxContentsListing.card a[title],
.centerBoxContentsNew a[title],
.centerBoxContentsSpecials a[title],
.centerBoxContentsFeatured a[title] {
  display: block !important;
  color: #1e293b !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  padding: 16px 18px 8px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.8rem !important;
  transition: color 0.2s ease !important;
  letter-spacing: -0.01em !important;
}

.centerBoxContents.card a[title]:hover,
.centerBoxContentsListing.card a[title]:hover,
.centerBoxContentsNew a[title]:hover,
.centerBoxContentsSpecials a[title]:hover,
.centerBoxContentsFeatured a[title]:hover {
  color: #13607c !important;
}

/* ── Add to Cart Button (on hover) ─────── */
.centerBoxContents.card::after,
.centerBoxContentsListing.card::after,
.centerBoxContentsNew::after,
.centerBoxContentsSpecials::after,
.centerBoxContentsFeatured::after {
  content: 'View Details' !important;
  display: inline-block !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #13607c !important;
  margin: auto 18px 18px !important;
  padding: 11px 0 !important;
  border: 2px solid #13607c !important;
  border-radius: 8px !important;
  opacity: 0 !important;
  transform: translateY(8px) !important;
  transition: all 0.25s ease !important;
  background: transparent !important;
  cursor: pointer !important;
}

.centerBoxContents.card:hover::after,
.centerBoxContentsListing.card:hover::after,
.centerBoxContentsNew:hover::after,
.centerBoxContentsSpecials:hover::after,
.centerBoxContentsFeatured:hover::after {
  opacity: 1 !important;
  transform: translateY(0) !important;
  background: #13607c !important;
  color: #fff !important;
}

/* ── Sale Badge ────────────────────────── */
.centerBoxContents.card::before,
.centerBoxContentsListing.card::before {
  content: '' !important;
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 2 !important;
}

/* ── Price styling ─────────────────────── */
.productSpecialPrice,
.productPriceDiscount,
.productSalePrice {
  color: #e02b27 !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
}

.normalprice,
.productBasePrice {
  color: #64748b !important;
  text-decoration: line-through !important;
  font-size: 0.85rem !important;
}

/* ── Stars / Rating ────────────────────── */
.rating {
  color: #f59e0b !important;
  font-size: 0.85rem !important;
  letter-spacing: 2px !important;
}

/* ── Responsive Grid ──────────────────── */
@media (max-width: 1199px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px;
  }
  .centerBoxContents.card > a:first-child {
    height: 180px !important;
  }
}

@media (max-width: 991px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 14px;
  }
  .centerBoxContents.card > a:first-child {
    height: 170px !important;
  }
}

@media (max-width: 575px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }
  .centerBoxContents.card > a:first-child {
    height: 140px !important;
    padding: 10px !important;
  }
  .centerBoxContents.card a[title] {
    font-size: 0.78rem !important;
    padding: 8px 8px 4px !important;
  }
}
