/* ===========================
   SHOP SECTION (usklađeno s weddings)
   =========================== */

.shop-section {
  padding-top: 6rem;
  padding-bottom: 5rem;
}

/* koristi postojeće .upper-italic i .site-section-heading iz weddings.css
   ali ako shop.css učitavaš samostalno, možeš ih i ovdje duplicirati. */

/* ===========================
   GRID S KARTICAMA
   =========================== */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 1.8rem; /* malo više “zraka” kao weddings */
  margin-top: 2.2rem;
}

@media (max-width: 991.98px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.2rem 1.4rem;
  }
}

@media (max-width: 575.98px) {
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===========================
   SHOP CARD (kao wedding-card)
   =========================== */

.shop-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.shop-card-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 4px;

  /* fiksna visina da sve bude “u liniji” */
  height: 400px;
}

@media (max-width: 767.98px) {
  .shop-card-image-wrapper {
    height: 340px;
  }
}

.shop-card-image-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

  filter: none !important; /* pregazi grayscale s ostatka sajta */
  transform: scale(1);
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

.shop-card:hover .shop-card-image-wrapper img {
  transform: scale(1.04);
  opacity: 0.96;
}

.shop-card-body {
  padding-top: 1.2rem;
  transition: transform 0.25s ease;
}

.shop-card:hover .shop-card-body {
  transform: translateY(-2px);
}

/* Meta (SKU / kategorija) */
.shop-card-meta {
  font-family: "Times New Roman", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.35rem;
  opacity: 0.8;
}

/* Naziv proizvoda */
.shop-card-title {
  font-family: "Times New Roman", sans-serif;
  font-size: 22px;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

/* Cijena */
.shop-card-price {
  font-family: "Times New Roman", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9bda3; /* kao wedding-meta */
}

/* Kratki opis (ako ga želiš u gridu) */
.shop-card-description {
  font-family: "Times New Roman", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  max-width: 90%;
  color: #d6d6d6;
  margin-top: 0.6rem;
}

/* ===========================
   SINGLE PRODUCT PAGE (kao wedding single)
   =========================== */

.product-hero {
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.product-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fafafa;
  margin-bottom: 41px;
  text-align: center;
}

.product-meta {
  font-family: "times new roman", sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9bda3;
  margin-bottom: 1.6rem;
  text-align: center;
}

.product-media {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto 3rem;

  overflow: hidden;
  border-radius: 10px;

  /* ISTA LOGIKA KAO wedding-hero-slider */
  height: 60vh;
  max-height: 650px;
  min-height: 380px;
}

.product-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* ključ */
  transform: scale(1);
  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
}

.product-media:hover img {
  transform: scale(1.03);
  opacity: 0.98;
}

/* Mobile tweak */
@media (max-width: 767.98px) {
  .product-media {
    height: 55vh;
    max-height: 520px;
    border-radius: 16px;
  }
}
.product-content {
  padding-bottom: 5rem;
}

.product-short-description {
  font-family: "times new roman", sans-serif;
  font-size: 24px;
  line-height: 1.7;
  font-weight: 400;
  color: #e4e4e4;
  max-width: 720px;
  margin: 0 auto 2.2rem;
  text-align: center;
}

@media (max-width: 768px) {
  .product-short-description {
    line-height: 1.55;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .product-short-description {
    line-height: 1.45;
    font-size: 18px;
  }
}

/* Opis */
.product-body p {
  font-family: "times new roman", sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #e4e4e4;
  margin-bottom: 1.6rem;
  text-align: left;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Forma narudžbe (minimal, elegantno) */
.order-form {
  max-width: 720px;
  margin: 2.5rem auto 0;
}

.order-form .form-row {
  margin-bottom: 14px;
}

.order-form label {
  display: block;
  margin-bottom: 6px;
  opacity: 0.9;
  font-family: "times new roman", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.15);
  padding: 10px 12px;
  color: #fff;
  font-family: "times new roman", sans-serif;
  font-size: 14px;
}

.order-form input:focus,
.order-form textarea:focus {
  outline: none;
  border-color: rgba(216, 197, 153, 0.55); /* #d8c599 vibe */
}

.form-note {
  margin-top: 12px;
  opacity: 0.8;
  font-size: 14px;
  font-family: "times new roman", sans-serif;
}

/* Mobile tweak */
@media (max-width: 767.98px) {
  .shop-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .product-hero {
    padding-top: 4rem;
    padding-bottom: 2.5rem;
  }

  .product-title {
    font-size: 2.2rem;
  }

  .product-content {
    padding-bottom: 4rem;
  }
}
.product-form-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.order-form-wrapper {
  margin-top: 3.5rem;
}

/* ===========================
   CTA ispod opisa
   =========================== */

.product-cta {
  margin-top: 2.8rem;
}

/* ===========================
   ORDER MODAL
   =========================== */

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.order-modal.is-open {
  display: block;
}

.order-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.order-modal-content {
  position: relative;
  z-index: 1;

  width: calc(100% - 2rem);
  max-width: 760px;

  margin: 6vh auto;
  padding: 2.5rem 2.2rem;

  background: #000;
  border-radius: 14px;

  max-height: 88vh;
  overflow: auto;
}

.order-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;

  background: none;
  border: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

/* malo ugodnije na mobu */
@media (max-width: 575.98px) {
  .order-modal-content {
    margin: 4vh auto;
    padding: 2rem 1.4rem;
    border-radius: 16px;
  }
}
body.modal-open {
  overflow: hidden;
}
