/* =========================================
   ALL PRODUCTS PAGE – GLOBAL
   ========================================= */

body {
  margin: 0;
  background-color: #000;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Page wrapper (reuse your layout style) */
.all-products-page,
.top-products-section {
  padding: 40px 20px 80px;
}

.tp-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Page title */
.tp-title,
.all-products-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}

/* =========================================
   PRODUCTS GRID
   ========================================= */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* =========================================
   PRODUCT CARD
   ========================================= */

.product-card {
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.7);
}

/* =========================================
   PRODUCT IMAGE
   ========================================= */

.product-card .card-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
}

.product-card .card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* =========================================
   PRODUCT BODY
   ========================================= */

.product-card .card-body {
  flex-grow: 1;
}

.product-card .rating {
  color: #ff3b3b;
  font-size: 13px;
  margin-bottom: 6px;
}

.product-card .card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #fff;
}

.product-card .card-sub {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 12px;
}

/* =========================================
   PRICE + ACTIONS
   ========================================= */

.product-card .card-footer {
  margin-top: auto;
}

/* ===============================
   PRICE STYLING (NEW vs OLD)
   =============================== */

.price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

/* New price */
.price .current {
  font-size: 18px;
  font-weight: 700;
  color: #ff3b3b;
}

/* Old price */
.price .old {
  font-size: 14px;
  color: #9a9a9a;
  text-decoration: line-through;
  opacity: 0.8;
}


/* =========================================
   BUTTONS
   ========================================= */

.product-card .btn-add,
.product-card .add-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: #ff3b3b;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.product-card .btn-add:hover,
.product-card .add-btn:hover {
  background: #e63232;
}

/* Optional view button (if used) */
.product-card .view-btn {
  width: 100%;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  color: #bbb;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.product-card .view-btn:hover {
  color: #fff;
  border-color: #fff;
}

/* =========================================
   EMPTY / NO RESULTS STATE
   ========================================= */

.products-grid .muted {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  padding: 60px 0;
}

/* =========================================
   RESPONSIVE TWEAKS
   ========================================= */

@media (max-width: 600px) {
  .tp-title {
    font-size: 22px;
  }

  .product-card {
    padding: 14px;
  }

  .product-card .card-thumb {
    height: 150px;
  }
}
