/* ===== PAGE ===== */
.shop-page {
  max-width: 1240px;
  margin: 46px auto 78px;
  padding: 0 22px;
}

.shop-heading {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.shop-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: #899D31;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===== TITLE ===== */
.shop-title {
  color: #5B7917;
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  letter-spacing: 0;
  line-height: 1.08;
}

.shop-heading p {
  max-width: 580px;
  margin: 12px auto 0;
  color: #607437;
  font-size: 1.03rem;
}

/* ===== FILTER ===== */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  justify-content: center;
  margin-bottom: 36px;
  padding: 8px;
  border: 1px solid rgba(133, 152, 100, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 30px rgba(65, 83, 33, 0.07);
}

.filter-btn {
  background-color: #FFFFFF;
  border: 1px solid rgba(133, 152, 100, 0.28);
  color: #5B7917;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 8px 18px rgba(65, 83, 33, 0.06);
}

.filter-btn.active,
.filter-btn:hover {
  background-color: #899D31;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(91, 121, 23, 0.18);
}

/* ===== GRID ===== */
.product-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 26px;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(133, 152, 100, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: #607437;
  text-align: center;
  box-shadow: 0 12px 30px rgba(65, 83, 33, 0.08);
}

/* ===== CARD ===== */
.product-card {
  position: relative;
  overflow: hidden;
  background-color: #FFFFFF;
  border: 1px solid rgba(133, 152, 100, 0.22);
  border-radius: 22px;
  padding: 14px;
  text-align: left;

  box-shadow: 0 12px 30px rgba(65, 83, 33, 0.11);
  transition: all 0.3s ease;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(137, 157, 49, 0.09), transparent 34%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 42px rgba(65, 83, 33, 0.18);
}

.product-card:hover::before {
  opacity: 1;
}

/* ===== IMAGE ===== */
.product-image-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 205px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(133, 152, 100, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 16%, rgba(137, 157, 49, 0.1), transparent 46%),
    #FBFAF5;
}

.product-card img {
  max-width: 100%;
  height: 175px;
  object-fit: contain;
  margin: 0;
  border-radius: 12px;
  transition: transform 0.28s ease;
}

.product-card:hover img {
  transform: scale(1.03);
}

.product-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0 4px 4px;
}

.product-category {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(137, 157, 49, 0.12);
  color: #5B7917;
  font-size: 0.76rem;
  font-weight: 800;
}

/* ===== TEXT ===== */
.product-card h3 {
  font-size: 1.12rem;
  margin: 0 0 8px;
  color: #5B7917;
  line-height: 1.25;
}

.product-description {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 18px;
  color: #607437;
  flex: 1;
}

/* ===== PRICE ===== */
.product-price {
  font-weight: 800;
  color: #5B7917;
  font-size: 1.06rem;
  white-space: nowrap;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(133, 152, 100, 0.14);
}

/* ===== BUTTON ===== */
.details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  background: linear-gradient(135deg, #5B7917, #899D31);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.94rem;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 12px 24px rgba(91, 121, 23, 0.22);
}

.details-btn:hover {
  background: linear-gradient(135deg, #4E6815, #819529);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(91, 121, 23, 0.28);
}

.details-btn i {
  font-size: 0.82rem;
  transition: transform 0.25s ease;
}

.details-btn:hover i {
  transform: translateX(3px);
}

/* ===== TABLET ===== */
@media (max-width: 900px) {
  .shop-page {
    margin: 32px auto 56px;
  }

  .product-card img {
    height: 155px;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .shop-title {
    font-size: 1.6rem;
  }

  .filter-btn {
    padding: 8px 13px;
    font-size: 0.9rem;
  }

  .product-container {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-card {
    padding: 12px;
  }

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

  .product-image-frame {
    min-height: 176px;
    padding: 14px;
  }

  .product-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .details-btn {
    width: 100%;
  }
}
