/*
=========================================
CloudCart Components
=========================================
*/

/* =====================================
Card
===================================== */

.card {
  position: relative;

  background: linear-gradient(
    180deg,
    rgba(32, 40, 61, 0.95),
    rgba(22, 28, 43, 0.95)
  );

  border: 1px solid rgba(255, 255, 255, 0.06);

  border-radius: var(--radius-xl);

  overflow: hidden;

  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-10px);

  border-color: rgba(99, 102, 241, 0.45);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(59, 130, 246, 0.15);
}

/* =====================================
Product Card
===================================== */

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image {
  height: 260px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.product-category {
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 2rem;
  line-height: 1.3;
  min-height: 84px;
  margin: 0 0 1rem;
}

.product-rating {
  min-height: 28px;
  margin-bottom: 1rem;
}

.product-pricing {
  margin-bottom: 1rem;
}

.current-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
}

.usd-price,
.original-price {
  margin-top: 0.35rem;
}

.discount {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-content .btn,
.product-content .btn-primary {
  margin-top: auto;
  width: fit-content;
}

/* =====================================
Badge
===================================== */

.product-badge {
  position: absolute;

  top: 18px;
  left: 18px;

  z-index: 10;

  padding: 0.45rem 0.9rem;

  border-radius: 999px;

  background: var(--gradient-primary);

  color: #ffffff;

  font-size: 0.78rem;

  font-weight: 600;

  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.35);
}

/* =====================================
Category Card
===================================== */

.category-card {
  position: relative;

  height: 320px;

  overflow: hidden;
}

.category-card img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: 0.45s;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-overlay {
  position: absolute;

  inset: 0;

  display: flex;

  align-items: flex-end;

  padding: 2rem;

  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.category-overlay h3 {
  margin-bottom: 0.35rem;
}

.category-overlay p {
  color: #d1d5db;
}

/* =====================================
Statistic Card
===================================== */

.statistic-card {
  padding: 2.2rem;

  text-align: center;
}

.statistic-card h3 {
  font-size: 2.5rem;

  color: var(--color-primary);

  margin-bottom: 0.75rem;
}

.statistic-card p {
  color: var(--color-text-muted);
}

/* =====================================
Review Card
===================================== */

.review-card {
  padding: 2rem;
}

.review-header {
  display: flex;

  align-items: center;

  gap: 1rem;

  margin-bottom: 1.5rem;
}

.review-header img {
  width: 72px;
  height: 72px;

  border-radius: 50%;

  object-fit: cover;

  border: 3px solid rgba(99, 102, 241, 0.35);
}

.review-location {
  color: var(--color-text-muted);

  font-size: 0.9rem;
}

.review-product {
  margin: 1rem 0;

  color: var(--color-text-muted);
}

.review-message {
  line-height: 1.8;

  color: #d6d9e0;

  font-style: italic;
}

/* =====================================
Dashboard Card
===================================== */

.dashboard-card {
  padding: 2rem;
}

.dashboard-icon {
  width: 65px;
  height: 65px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 18px;

  background: rgba(59, 130, 246, 0.12);

  margin-bottom: 1.5rem;
}

.dashboard-icon img {
  width: 34px;
}

.dashboard-value {
  margin: 0.5rem 0;

  font-size: 2rem;

  color: #ffffff;
}

.dashboard-description {
  color: var(--color-text-muted);
}

/* =====================================
   Empty Cart
===================================== */

.empty-cart-card {
  width: 100%;
  min-height: 420px;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  text-align: center;

  padding: 3rem;
}

.empty-cart-card img {
  width: 160px;
  margin-bottom: 1.5rem;
}

.empty-cart-card h2 {
  margin-bottom: 0.75rem;
}

.empty-cart-card p {
  color: var(--text-secondary);
}
