/* Base Styles (Desktop) - existing styles kept primarily for desktop view */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Soulcraft";
  src: url("../fonts/soulcraftgx.ttf");
}

@font-face {
  font-family: "Bilo, sans-serif";
  src: url("../fonts/bilo.otf");
}

body {
  /* font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; */
  line-height: 1.6;
  color: #333;
  background-color: #f9f7f4;
}

.desktop-view {
  padding-top: 100px;
}

@media (max-width: 1100px) {
  .desktop-view {
    padding-top: 0px;
  }
}

/* Visibility Control */
.mobile-view {
  display: none;
}

@media (max-width: 1000px) {
  .desktop-view {
    display: none;
  }

  .mobile-view {
    display: block;
  }
}

/* --- Desktop Specific Styles (moved/adapted from original) --- */
/* (Keeping original selectors as they apply globally or to desktop structure) */

.hero {
  background: linear-gradient(135deg, #9a2929 0%, #6b2727 100%);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.hero__title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-family: "soulcraft", sans-serif;
}

/* TABS BLOCK*/
.tabs {
  background-color: #fff;
  border-bottom: 2px solid #e0e0e0;
}

.tabs__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.tabs__item {
  padding: 1rem 2rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #5f0202;
}

.tabs__item:hover {
  color: #6b2323;
  background-color: #f9f7f4;
}

.tabs__item--active {
  color: #6b2323;
  border-bottom-color: #d47474;
  background-color: #f9f7f4;
    font-size: 15px;
  font-family: "soulcraft";
}

/* CONTENT BLOCK */
.content {
  margin: 2rem auto;
  padding: 0 2rem;
}

/* SEARCH BLOCK */
.search {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.search__input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: 'bilo', sans-serif ;
}

.search__input:focus {
  outline: none;
  border-color: #d47474;
}

.search__input::placeholder {
  color: #999;
}

/* NOTICE BLOCK (Allergen Warnings) */
.notice {
  background-color: #fff4e6;
  border-left: 4px solid #d47474;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 2rem;
}

.notice__title {
  font-size: 30px;
  font-weight: 600;
  color: #6b2323;
  margin-bottom: 1rem;
  font-family: 'soulcraft', sans-serif;
}

.notice__text {
  color: #555;
  margin-bottom: 0.8rem;
  line-height: 1.3;
  font-size: 16px;
  font-weight: 400;
  font-family: 'bilo', sans-serif;
}



/*FILTERS BLOCK */
.filters {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.filters__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.filters__title {
  font-size: 20px;
  font-weight: 400;
  color: #2c1810;
  font-family: 'soulcraft', sans-serif;
}

/* Toggle Switch Styles */
.toggle {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.toggle__label {
  font-size: 15px;
  color: #555;
  font-weight: 500;
  font-family: 'bilo', sans-serif;
}

.toggle__switch {
  position: relative;
  width: 60px;
  height: 30px;
  background-color: #d4a574;
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggle__switch--allergen {
  background-color: #6b4423;
}

.toggle__slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle__switch--allergen .toggle__slider {
  transform: translateX(30px);
}

.filters__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.filters__item {
  padding: 0.6rem 1.2rem;
  background-color: #f9f7f4;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  font-family: 'bilo', sans-serif;
}

.filters__item:hover {
  background-color: #d4a574;
  color: #fff;
  border-color: #d4a574;
}

.filters__item--active {
  background-color: #6b4423;
  color: #fff;
  border-color: #6b4423;
}

.filters__clear {
  padding: 0.6rem 1.2rem;
  background-color: transparent;
  border: 2px solid #d4a574;
  color: #d4a574;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filters__clear:hover {
  background-color: #d4a574;
  color: #fff;
}

/* PRODUCTS GRID BLOCK */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: #777;
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

/*  PRODUCT CARD BLOCK */
.product-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.product-card__header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.product-card__title {
  font-size: 20px;
  font-weight: 500;
  color: #2c1810;
  margin-bottom: 0.5rem;
  font-family: 'soulcraft', sans-serif;
}

.product-card__size {
  font-size: 0.9rem;
  color: #777;
}

.product-card__nutrition {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.product-card__nutrition-item {
  display: flex;
  flex-direction: column;
}

.product-card__nutrition-label {
  font-size: 16px;
  color: #777;
  margin-bottom: 0.2rem;
  font-family: 'bilo', sans-serif ;
}

.product-card__nutrition-value {
  font-size: 1.1rem;
  font-weight: 500;
  color: #2c1810;
  font-family: 'bilo', sans-serif;
  font-size: 15px;
}

.product-card__allergens {
  padding-top: 1rem;
  border-top: 2px solid #f0f0f0;
}

.product-card__allergens-title {
  font-size: 15px;
  font-weight: 500;
  color: #d4a574;
  margin-bottom: 0.5rem;
  font-family: 'soulcraft', sans-serif    ;
}

.product-card__allergens-list {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  font-family: 'bilo', sans-serif ;
}

/* --- Mobile Specific Styles --- */
.mobile-view .mobile-content {
  padding: 1rem;
}

.mobile-view .hero {
  padding: 1.5rem 1rem;
}

.mobile-view .hero__title {
  font-size: 30px;
}

@media (max-width: 480px) {
  .mobile-view .hero__title {
    font-size: 22px;
  }
}

.mobile-view .mobile-search {
  padding: 0;
  margin-bottom: 1rem;
  box-shadow: none;
  background: transparent;
}

.mobile-view .mobile-search .search__input {
  padding: 0.8rem;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.mobile-view .filters-mobile {
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.mobile-view .filters__list {
  gap: 0.5rem;
}

.mobile-view .filters__item {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

.mobile-view .mobile-products {
  grid-template-columns: 1fr;
  /* Single column for mobile */
  gap: 0.8rem;
}

/* Mobile Expandable Card Styles */
.mobile-view .mobile-product-card {
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  /* For smooth transitions if we added height animation */
}

.mobile-product-card__header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  transition: background-color 0.2s ease;
}

.mobile-product-card__header:active {
  background-color: #f9f9f9;
}

.mobile-product-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mobile-view .product-card__title {
  font-size: 1.1rem;
  margin: 0;
}

.mobile-product-card__cal {
  font-size: 0.85rem;
  color: #888;
  font-weight: 500;
  font-family: 'bilo', sans-serif ;
}

.mobile-product-card__toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  border-radius: 50%;
  color: #6b2323;
  font-weight: 600;
  font-size: 28px;
  transition: all 0.3s ease;
}

.mobile-product-card.is-expanded .mobile-product-card__toggle {
  background-color: #d47474;
  color: #fff;
  transform: rotate(180deg);
}

/* Hidden details by default */
.mobile-product-card__details {
  display: none;
  padding: 0 1rem 1rem 1rem;
  background-color: #fff;
  border-top: 1px solid #f0f0f0;
  animation: slideDown 0.3s ease-out;
}

.mobile-product-card.is-expanded .mobile-product-card__details {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Adjust nutrition grid for mobile details */
.mobile-view .product-card__nutrition {
  grid-template-columns: repeat(3, 1fr);
  /* 3 cols for nutrition looks better in wide mobile card */
  gap: 0.8rem;
  margin-top: 1rem;
}

.mobile-view .product-card__nutrition-value {
  font-size: 0.95rem;
}

.mobile-view .product-card__nutrition-label {
  font-size: 0.75rem;
}

.mobile-view .mobile-notice {
  margin-top: 2rem;
  background-color: #f0f0f0;
  border-left: 4px solid #999;
}

.mobile-view .notice__title {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.mobile-view .notice__text {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
