/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.phone_form_container {
    display: none;
    align-items: center;
    gap: 8px;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f8f8;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}
.tproduct{
    justify-items: end;
    padding-right:2rem;
}
/* Back button */
#backbtn {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background-color: #0f5937;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#backbtn:hover {
  background-color: #0c4b2f;
}

/* Section Heading */
.heading {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: #0f5937;
  text-align: center;
}

/* Product Grid */
.product-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-section .container > .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 2fr));
  gap: 1.5rem;
  width: 100%;
}

/* Card Styles */
.card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
      width: -webkit-fill-available;;
}

.card:hover {
  transform: translateY(-5px);
}

.card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-title {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 0.5rem;
}

/* View Button */
.view-btn {
  padding: 0.4rem 0.8rem;
  background-color: #0f5937;
  color: white;
  border: none;
  border-radius: 4px;
  width: 5rem;
  margin: 0 auto;
  cursor: pointer;
  transition: background-color 0.3s;
}

.view-btn:hover {
  background-color: #0c4b2f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .heading {
    font-size: 1.5rem;
  }

  .card-img-top {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .heading {
    font-size: 1.25rem;
  }

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