* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #0f172a;
  line-height: 1.5;
}

.container {
  width: 92%;
  max-width: 1120px;
  margin: 0 auto;
}

/* Header */
.header {
  background-color: #ffffff;
  border-bottom: 4px solid #323D25;
  padding: 18px 0;
  box-shadow: 0 3px 10px rgba(29, 78, 216, 0.08);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.header h1 {
  font-size: 1.55rem;
  color: #323D25;
  letter-spacing: -0.3px;
}

.subtitle {
  font-size: 0.92rem;
  color: #475569;
  margin-top: 4px;
}

.header-links {
  display: flex;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 6px;
  transition: background-color 0.2s ease, transform 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-call {
  background-color: #28301C;
  color: #ffffff;
}

.btn-call:hover {
  background-color: #9A7E3B;
}

.btn-whatsapp {
  background-color: #9A7E3B;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: #28301C;
}

/* Search & Category Bar */
.controls-section {
  background-color: #e2e8f0;
  padding: 18px 0 14px;
  border-bottom: 1px solid #cbd5e1;
}

.search-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  border: 2px solid #94a3b8;
  border-radius: 6px;
  background-color: #ffffff;
  color: #0f172a;
  margin-bottom: 12px;
}

.search-input:focus {
  outline: none;
  border-color: #323D25;
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-btn {
  background-color: #ffffff;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.86rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-btn:hover {
  border-color: #D2CF9A;
  color: #0f172a;
}

.cat-btn.active {
  background-color: #323D25;
  color: #ffffff;
  border-color: #D2CF9A;
}

/* Main Grid */
.main-content {
  padding: 20px 0 40px;
}

.section-top {
  background:#323D25;
  color: #ffffff;
  padding: 11px 16px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-top h2 {
  font-size: 1.15rem;
  color: #ffffff;
}

#productCount {
  font-size: 0.88rem;
  color: #e0f2fe;
  font-weight: bold;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

/* Card */
.card {
  background-color: #ffffff;
  border: 1.5px solid #dbeafe;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  border-color: #D2CF9A;
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.12);
  transform: translateY(-2px);
}

.card-image {
  width: 100%;
  height: 175px;
  object-fit: cover;
  background-color: #e2e8f0;
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  display: inline-block;
  align-self: flex-start;
  background-color: #808679;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.card-title {
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 0.86rem;
  color: #475569;
  margin-bottom: 10px;
  flex: 1;
}

.card-price {
  font-size: 1.15rem;
  font-weight: bold;
  color: #1d4ed8;
  margin-bottom: 12px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.no-results {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  color: #475569;
}

.hidden {
  display: none;
}

/* Footer */
.footer {
  background-color: #1e293b;
  color: #f1f5f9;
  padding: 20px 0;
  font-size: 0.9rem;
  border-top: 4px solid #e11d48;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: bold;
}