/* ====================== RESET & PALETA ====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0f0f10;
  --bg-2: #141414;
  --text: #e6e6e6;
  --muted: #a8a8a8;
  --gold: burlywood;
  --gold-weak: #d2b48c33;
  --shadow: 0 10px 30px #0006;
}

/* ====================== OSNOVA ====================== */
html,
body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s ease;
}

/* ====================== SHOP ====================== */
.shop-main {
  background: var(--bg);
  color: var(--text);
  min-height: calc(100vh - 2.5cm - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 72px);
}

.shop-wrap {
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

.shop-header h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(40px, 5vw, 64px);
  color: var(--gold);
}

.shop-sub {
  color: var(--muted);
  margin-top: 6px;
  margin-bottom: 24px;
}

/* ====================== GRID ====================== */
.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 3vw, 28px);
}

/* ====================== PROIZVOD KARTICA ====================== */
.product-card {
  background: #0f0f0f;
  border: 1px solid var(--gold-weak);
  border-radius: 18px;
  overflow: hidden;
  width: 360px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 14px 34px #0008;
}

/* Slika */
.product-media {
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 4 / 5;
  border-bottom: 1px solid var(--gold-weak);
}

.product-media img {
  width: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

/* ====================== TEKST PROIZVODA ====================== */
.product-body {
  padding: 14px 16px 18px;
  text-align: left; /* da naslov, opis i cene budu poravnati ulevo */
}

.product-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-desc {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.45;
}

/* ====================== CENA + POPUST ====================== */
.product-cta {
  display: flex;
  flex-direction: column; /* default: sve ispod svega (na mobilnom) */
  gap: 10px;
  align-items: flex-start;
}

.price-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.old-price {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 14px;
}

.new-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}

/* značka -15% */
.discount-badge {
  background: linear-gradient(135deg, var(--gold), #c7a15c);
  color: #1a1207;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  font-family: "Playfair Display", serif;
}

/* ako negde ostane stara klasa .product-price */
.product-price {
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
}

/* ====================== DODAJ U KORPU ====================== */
.btn-add {
  background: linear-gradient(180deg, var(--gold), #cda862);
  color: #1a1207;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
  align-self: flex-end; /* stoji elegantno desno u kartici */
}

.btn-add:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-add:active {
  transform: scale(0.96);
}

.btn-add:disabled {
  background: #222;
  color: #888;
  border-color: #555;
  cursor: not-allowed;
  opacity: 0.7;
}

/* ====================== REVEAL ANIMACIJA ====================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====================== RESPONSIVE ====================== */
@media (min-width: 640px) {
  .product-cta {
    flex-direction: row;              /* levo cene, desno dugme */
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 520px) {
  .product-card {
    width: 230px;
  }
  .product-title {
    font-size: 15px;
  }
  .product-desc {
    font-size: 12px;
  }

  .product-cta {
    align-items: flex-start;
  }

  .btn-add {
    width: 100%;
    text-align: center;
    align-self: stretch;
  }
}

