/* ----------------------------- */
/* Shop: tabs                    */
/* ----------------------------- */

.shop-section {
  background-color: #fff;
}

.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.shop-tab-btn {
  border-radius: 999px;
  border: 1px solid #2525251a;
  background-color: #f5f5f5;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--text-color);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.shop-tab-btn:hover {
  background-color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.shop-tab-btn.is-active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 10px 30px rgba(234, 90, 36, 0.35);
}

.shop-tab-content {
  display: none;
}

.shop-tab-content.is-active {
  display: block;
}

/* ----------------------------- */
/* Shop: products grid           */
/* ----------------------------- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-column-gap: 30px;
  grid-row-gap: 30px;
}

.product-card {
  background-color: #ffffff;
  border-radius: 18px;
  border: 1px solid #2525251a;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image-wrap {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
}

.product-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-name {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  color: var(--black);
  margin-top: 4px;
  margin-bottom: 10px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.product-stars {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1px;
}

.product-stars .star {
  color: #ccd0d5;
}

.product-stars .star.is-filled,
.product-stars .star.is-half {
  color: #ffb400;
}

.product-rating-count {
  font-size: 13px;
  line-height: 18px;
  color: #737b86;
}

.product-price {
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  color: var(--primary-color);
  margin-bottom: 14px;
}

.product-cta {
  margin-top: auto;
}

.product-btn {
  width: 100%;
  text-align: center;
}

/* ----------------------------- */
/* Burger active state           */
/* ----------------------------- */

.hamburger-menu {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.hamburger-menu.is-open {
  transform: rotate(90deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  background-color: #f3f3f3;
}

/* ----------------------------- */
/* Responsive: shop grid & tabs  */
/* ----------------------------- */

@media screen and (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 991px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    padding: 16px;
  }

  .product-name {
    font-size: 16px;
    line-height: 24px;
  }

  .product-price {
    font-size: 17px;
  }
}

@media screen and (max-width: 767px) {
  .shop-tabs {
    gap: 8px;
  }

  .shop-tab-btn {
    font-size: 15px;
    padding: 8px 18px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column-gap: 20px;
    grid-row-gap: 20px;
  }
}

@media screen and (max-width: 479px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .shop-tab-btn {
    width: auto;
  }
}
