body {
  font-family: 'Inter', sans-serif;
}

/* ===== LAYOUT: sidebar + grid ===== */
.catalog-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-top: 10px;
}

/* ===== SIDEBAR: заголовок + категории ===== */
.catalog-sidebar {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 160px;
  position: sticky;
  top: 180px;
  gap: 8px;
  align-items: flex-start;
}

/* ===== HEADER ===== */
.catalog-mobile-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-title {
  font-family: 'Zero Cool', sans-serif !important;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.2;
  color: #000;
  margin: 0;
  align-items: flex-start;
}

/* Стрелка — только на мобилке */
.catalog-mobile-toggle {
  display: none;
}

.catalog-mobile-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: #0a5b59;
}

/* ===== DESKTOP CATEGORIES ===== */
.desktop-categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: flex-start; 
}

.desktop-categories a {
  font-family: 'Zero Cool', sans-serif;
  font-weight: 400;
  font-size: 30px;
  color: #0a5b59;
  text-decoration: none;
  line-height: 1.5;
  text-transform: uppercase;
  transition: opacity 0.2s;
  margin-left: 25px;
}

.desktop-categories a:hover {
  opacity: 0.6;
}

/* ===== КАТЕГОРИИ ПОПАП ===== */
.mobile-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
}

.mobile-popup.active {
  display: block;
}

.mobile-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.mobile-popup__sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50vh;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-popup__title {
  font-family: 'Zero Cool', sans-serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.2;
  margin: 0;
  color: #000;
}

.mobile-popup__close {
  width: 40px;
  height: 40px;
  background: #efeff4;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-popup__close:hover {
  background: #0a5b59;
}

.mobile-popup__close:hover svg path {
  stroke: #fff;
}

.mobile-popup__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-popup__nav a {
  font-family: 'Zero Cool', sans-serif;
  font-weight: 400;
  font-size: 32px;
  color: #0a5b59;
  text-decoration: none;
  padding: 8px 0;
  line-height: 1.3;
}

.mobile-popup__nav a:hover {
  opacity: 0.7;
}

/* ===== GRID ===== */
.product-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 20px;
}

/* ===== CARD ===== */
.product-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===== IMAGE ===== */
.card-top {
  position: relative;
}

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

/* ===== CONTENT ===== */
.card-bottom {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-bottom h3 {
  font-family: inherit;
  font-size: 1rem;
  color: #0a5b59;
  margin: 0;
  text-align: left;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== CONTROLS ===== */
.bottom-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.bottom-controls p {
  font-family: inherit;
  font-weight: 500;
  color: #000;
}

.product-card .product-weight {
  display: none;
}

/* ===== BUTTON ===== */
.add-btn {
  width: 36px;
  height: 36px;
  border: 2px solid #0a5b59;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #0a5b59;
  cursor: pointer;
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  .catalog-layout {
    display: block;
    margin-top: 0;
  }

  .catalog-sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 15px;
  }

  .catalog-title {
    font-size: 38px;
  }

  /* Стрелка видна на планшете и мобилке */
  .catalog-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  /* Категории в сайдбаре скрыты — только попап */
  .desktop-categories {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .mobile-popup__title {
    font-size: 28px;
  }

  .mobile-popup__nav a {
    font-size: 24px;
  }

  .product-grid {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 600px) {
  .catalog-title {
    font-size: 28px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-left: 0;
    padding-right: 0;
  }

  .card-top {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .card-top img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    display: block;
  }
}

.catalog-section-title {
  width: 100%;
  font-family: 'Zero Cool', sans-serif;
  font-size: 48px;
  font-weight: 400;
  color: #000;
  margin: 20px 0 10px;
  grid-column: 1 / -1; /* растягивается на всю ширину грида */
}

.catalog-section-title:first-of-type {
  margin-top: -10px;
}

@media (max-width: 1024px) {
  .catalog-section-title {
    font-size: 32px;
    margin-left: 10px;
  }
}

@media (max-width: 600px) {
  .catalog-section-title {
    font-size: 28px;
    margin-left: 20px;
  }
}

.catalog-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-mobile-toggle svg {
  transform: translateY(2px);
}

@media (min-width: 1025px) {
  .catalog-mobile-toggle {
    display: none;
  }
}