/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #f7f2e9;
  color: #4a3b2a;
  line-height: 1.5;
}

/* HEADER */
header {
  background: linear-gradient(135deg, #fff, #f3e6d4);
  border-bottom: 1px solid #e8dcc5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-circle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c58b55, #e0a96b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.header-text h1 {
  font-size: 26px;
  color: #c58b55;
  margin-bottom: 2px;
}

.slogan {
  font-size: 13px;
  color: #7a6a55;
}

.top-nav {
  display: flex;
  gap: 18px;
}

.top-nav a {
  text-decoration: none;
  color: #7a6a55;
  font-size: 14px;
  transition: .2s;
}

.top-nav a:hover {
  color: #c58b55;
}


/* TOP BAR */
.top-bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px 4px;
}

/* FILTER */
.categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.cat {
  background: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid #e8dcc5;
  transition: .2s;
  white-space: nowrap;
}

.cat:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.cat.active {
  background: #c58b55;
  color: white;
  border-color: #c58b55;
}

/* SEARCH */
.search-wrapper {
  margin-top: 10px;
}

.search-wrapper input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #e0d4c2;
  font-size: 14px;
  outline: none;
  background: #fdf8f0;
}

.search-wrapper input:focus {
  border-color: #c58b55;
  box-shadow: 0 0 0 2px rgba(197,139,85,0.15);
}

/* GRID */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px 80px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* CARD */
.card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, opacity .2s;
  opacity: 1;
}

.card.hide {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.content {
  padding: 16px 16px 18px;
}

.content h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.content p {
  font-size: 13px;
  color: #7a6a55;
}

.badges {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.badge {
  background: #f0e6d8;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  color: #6b5844;
}

.nutri-badge {
  background: #e0a96b;
  color: #fff;
}

.arrow {
  margin-top: 10px;
  color: #c58b55;
  font-size: 13px;
}

/* DETAIL PAGE */
#detail {
  display: none;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  animation: fadeIn .25s ease;
}

.back-btn {
  border: none;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  color: #c58b55;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  margin-bottom: 18px;
}

.back-btn:hover {
  transform: translateY(-1px);
}

.detail-card {
  background: #fff;
  border-radius: 22px;
  padding: 18px 18px 22px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.1);
}

.detail-image-wrapper {
  background: #f3e6d4;
  border-radius: 18px;
  padding: 10px;
  margin-bottom: 14px;
}

.detail-image-wrapper img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  border-radius: 14px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.detail-header h2 {
  font-size: 20px;
}

.detail-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.desc {
  margin: 12px 0 18px;
  font-size: 14px;
  color: #6b5844;
}

/* SECTIONS */
.section {
  background: #fdf8f0;
  padding: 14px 14px 10px;
  border-radius: 16px;
  margin-bottom: 14px;
  border: 1px solid #e8dcc5;
}

.section h4 {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #e8dcc5;
  font-size: 13px;
}

.row:last-child {
  border-bottom: none;
}

/* ALLERGEN LIST */
.allergen-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* FOOTER */
footer {
  background: #fff;
  border-top: 1px solid #e8dcc5;
  padding-top: 30px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-section h4 {
  font-size: 15px;
  color: #c58b55;
  margin-bottom: 8px;
}

.footer-section a,
.footer-section p {
  display: block;
  font-size: 13px;
  color: #7a6a55;
  margin-bottom: 4px;
  text-decoration: none;
}

.footer-section a:hover {
  color: #c58b55;
}

.footer-bottom {
  text-align: center;
  padding: 12px;
  font-size: 12px;
  color: #7a6a55;
  border-top: 1px solid #e8dcc5;
  background: #fdf8f0;
}


/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

.baker-card .content h3 {
    font-size: 17px;
    color: #4a3b2a;
    margin-bottom: 6px;
}

.baker-card .content p {
    font-size: 13px;
    color: #7a6a55;
    margin-bottom: 10px;
}

.baker-card .badge {
    background: #f0e6d8;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    color: #6b5844;
    display: inline-block;
}
}
#bakerFilters {
    justify-content: center;
}

#bakerFilters .cat {
    text-align: center;
}

.bakery-banner {
  text-align: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, #f7e7c1, #f3d9a4);
  border-bottom: 2px solid #e0c48c;
  margin-bottom: 10px;
  border-radius: 20px;
}

.bakery-banner h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: #5a3e1b;
}

.bakery-banner p {
  margin: 5px 0 0;
  font-size: 1rem;
  color: #7a5a2e;
  font-weight: 500;
}

.card.hide {
    display: none !important;
}


