/* ============================================================
   produs.css — Product Card (folosit pe home, produse, categorie, etc.)
   ============================================================ */

/* ---------- Card ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow:
    0 4px 16px rgba(15, 23, 42, 0.06),
    0 1px 3px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  text-decoration: none;
  color: #0f172a;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.10),
    0 4px 8px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.product-card:active { transform: scale(0.98); }

html[data-theme="dark"] .product-card {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---------- Imagine ---------- */
.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0.65));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
html[data-theme="dark"] .product-image {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02));
  border-bottom-color: rgba(255, 255, 255, 0.05);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-image img { transform: scale(1.06); }

.product-image > i {
  font-size: 48px;
  color: #22c55e;
  opacity: 0.3;
}

/* Badge reducere */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.4);
  z-index: 2;
}
.product-badge i { font-size: 10px; }

/* Favorite */
.product-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
  transition: color .15s, transform .15s, background .15s;
}
.product-fav:hover {
  color: #ef4444;
  transform: scale(1.1);
  background: #fff;
}
.product-fav:active { transform: scale(0.92); }
.product-fav.active { color: #ef4444; }
.product-fav.active i { font-weight: 900; }
html[data-theme="dark"] .product-fav {
  background: rgba(15, 23, 42, 0.8);
  color: #cbd5e1;
}

/* ---------- Info ---------- */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  flex: 1;
}

.product-info h3 {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  letter-spacing: -0.01em;
}

.product-brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #94a3b8;
}
.product-brand i {
  font-size: 10px;
  color: #22c55e;
}

/* ---------- Preț ---------- */
.product-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}
.product-price .price-current {
  font-size: 17px;
  font-weight: 800;
  color: #16a34a;
  letter-spacing: -0.02em;
  line-height: 1;
}
.product-price .price-old {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
}
html[data-theme="dark"] .product-price .price-current { color: #22c55e; }

/* ---------- Stoc ---------- */
.product-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 999px;
  width: fit-content;
  letter-spacing: 0.02em;
}
.product-status i { font-size: 9px; }

.product-status.in-stock {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #15803d;
}
html[data-theme="dark"] .product-status.in-stock { color: #4ade80; }

.product-status.out-stock {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}

/* ---------- Buton coș ---------- */
.product-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 36px;
  padding: 8px 14px;
  margin-top: 4px;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 4px 12px rgba(34, 197, 94, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform .15s, filter .15s;
}
.product-add:hover { filter: brightness(1.06); }
.product-add:active { transform: scale(0.96); }
.product-add i { font-size: 12px; }
.product-add:disabled {
  background: rgba(148, 163, 184, 0.3);
  box-shadow: none;
  cursor: not-allowed;
  color: #64748b;
}
html[data-theme="dark"] .product-add:disabled { color: #94a3b8; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .product-info { padding: 14px; gap: 7px; }
  .product-info h3 { font-size: 14px; }
  .product-price .price-current { font-size: 18px; }
  .product-add { min-height: 40px; font-size: 13px; }
  .product-fav { width: 36px; height: 36px; font-size: 15px; }
}

@media (min-width: 960px) {
  .product-info { padding: 16px; gap: 8px; }
  .product-info h3 { font-size: 14.5px; }
  .product-price .price-current { font-size: 19px; }
  .product-badge { top: 12px; left: 12px; padding: 6px 11px; font-size: 11.5px; }
  .product-fav { top: 12px; right: 12px; }
}

/* ============================================================
   produs.css — pagina detalii produs
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #94a3b8;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: #475569;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s;
}
.breadcrumb a:hover { color: #16a34a; }
.breadcrumb i { font-size: 10px; opacity: 0.6; }
html[data-theme="dark"] .breadcrumb { color: #7f8ba3; }
html[data-theme="dark"] .breadcrumb a { color: #cbd5e1; }

/* ---------- Layout ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* ---------- Imagine mare ---------- */
.product-detail-image {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0.65));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow:
    0 8px 32px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
html[data-theme="dark"] .product-detail-image {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}
.product-detail-image > i {
  font-size: 96px;
  color: #22c55e;
  opacity: 0.25;
}

.product-detail-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

/* ---------- Info ---------- */
.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-detail-info h1 {
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.2;
  margin: 0;
  color: #0f172a;
}
html[data-theme="dark"] .product-detail-info h1 { color: #f1f5f9; }

.product-detail-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #16a34a;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
}
.product-detail-category:hover { text-decoration: underline; }
.product-detail-category i { font-size: 11px; }

.product-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.product-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-size: 12px;
  color: #475569;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.product-detail-meta i { font-size: 11px; color: #94a3b8; }
html[data-theme="dark"] .product-detail-meta span {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.product-detail-desc {
  color: #475569;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}
html[data-theme="dark"] .product-detail-desc { color: #cbd5e1; }

/* ---------- Preț mare ---------- */
.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.product-detail-price .price-current {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 800;
  color: #16a34a;
  letter-spacing: -0.03em;
  line-height: 1;
}
.product-detail-price .price-old {
  font-size: 16px;
  color: #94a3b8;
  text-decoration: line-through;
}
.product-detail-price .price-save {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 999px;
  color: #15803d;
  font-size: 13px;
  font-weight: 800;
}
html[data-theme="dark"] .product-detail-price .price-current { color: #22c55e; }
html[data-theme="dark"] .product-detail-price .price-save { color: #4ade80; }

.product-detail-saving {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 14px;
  color: #15803d;
  font-size: 13.5px;
  font-weight: 600;
  width: fit-content;
}
html[data-theme="dark"] .product-detail-saving { color: #4ade80; }

/* ---------- Stoc ---------- */
.product-detail-stock {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-detail-stock .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid transparent;
}
.badge-success {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.28);
  color: #15803d;
}
.badge-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
  color: #b91c1c;
}
.badge-info {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.28);
  color: #0369a1;
}
html[data-theme="dark"] .badge-success { color: #4ade80; }
html[data-theme="dark"] .badge-info { color: #38bdf8; }

/* ---------- Acțiuni ---------- */
.product-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.product-detail-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform .15s, filter .15s;
}
.product-detail-actions .btn-primary {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow:
    0 8px 20px rgba(34, 197, 94, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.product-detail-actions .btn-primary:hover { filter: brightness(1.05); }
.product-detail-actions .btn-primary:active { transform: scale(0.97); }
.product-detail-actions .btn-primary:disabled {
  background: rgba(148, 163, 184, 0.3);
  box-shadow: none;
  cursor: not-allowed;
  color: #64748b;
}
.product-detail-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.product-detail-actions .btn-ghost:hover {
  border-color: rgba(34, 197, 94, 0.4);
  color: #16a34a;
}
html[data-theme="dark"] .product-detail-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

/* ---------- Oferte ---------- */
.product-detail-offers {
  margin-top: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.product-detail-offers h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
}
html[data-theme="dark"] .product-detail-offers h3 { color: #f1f5f9; }
.product-detail-offers h3 i { color: #22c55e; font-size: 14px; }

.offers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.offer-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color .15s, transform .15s;
}
.offer-item:hover { border-color: rgba(34, 197, 94, 0.4); }
.offer-item.best {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.08);
}
html[data-theme="dark"] .offer-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.offer-best-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.4);
  letter-spacing: 0.03em;
}
.offer-best-badge i { font-size: 10px; }

.offer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.offer-head strong {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
html[data-theme="dark"] .offer-head strong { color: #f1f5f9; }
.offer-price {
  font-size: 15.5px;
  font-weight: 800;
  color: #16a34a;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
html[data-theme="dark"] .offer-price { color: #22c55e; }

.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #94a3b8;
  font-size: 12px;
}
.offer-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.offer-meta i { font-size: 10px; }

.offer-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #16a34a;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
}
.offer-cta:hover { text-decoration: underline; }
.offer-cta i { font-size: 10px; }

/* ---------- Empty state ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 60px 20px;
}
.empty-state i {
  font-size: 48px;
  color: #22c55e;
  opacity: 0.4;
}
.empty-state h2 { font-size: 18px; font-weight: 700; margin: 0; }
.empty-state p { color: #94a3b8; font-size: 14px; margin: 0; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .product-detail { gap: 32px; }
  .product-detail-actions { flex-direction: row; }
  .product-detail-actions .btn { flex: 1; }
  .offers-list { gap: 12px; }
  .offer-item { padding: 16px 18px; }
}

@media (min-width: 960px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
  .product-detail-image {
    position: sticky;
    top: 96px;
  }
  .product-detail-info { gap: 16px; }
  .product-detail-price { padding: 22px 0; }
  .product-detail-actions .btn { min-height: 56px; font-size: 16px; }
}

@media (min-width: 1280px) {
  .product-detail { grid-template-columns: 1.05fr 0.95fr; }
}