/* =========================
   catalog-sections.css
   - styles for catalog iframe (.cs...)
   - keeps your existing .ccat...
   ========================= */
   
   

/* ---------- iframe размер ---------- */
.catalogFrame{
  width: 100%;
  height: 900px; /* стартовая высота, потом JS заменит */
  border: 0;
  border-radius: 18px;
  background: transparent;
  display:block;
  overflow:hidden;
}

/* ---------- CATALOG (NO JS) base ---------- */
.cs{
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(11,18,32,.92);
  margin: 18px 0 50px;
  padding: 0 2px;
}

.cs__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin: 0 0 12px;
}

.cs__title{
  font-family: "Unbounded", "Manrope", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.cs__note{
  margin: 0;
  font-size: 13px;
  opacity: .75;
  font-weight: 700;
}

/* bar */
.cs__bar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 0 0 18px;
}

.cs__btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(11,18,32,.12);
  background: rgba(255,255,255,.78);
  font-weight: 900;
  text-decoration:none;
  color: rgba(11,18,32,.92);
  transition: .18s ease;
}
.cs__btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,138,26,.55);
  box-shadow: 0 10px 22px rgba(11,18,32,.10);
}
.cs__btn:active{ transform: translateY(0); }

.cs__section{
  margin: 22px 0;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(11,18,32,.08);
  background: rgba(255,255,255,.60);
  box-shadow: 0 14px 34px rgba(11,18,32,.06);
}

.cs__sectionTitle{
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 10px;
}

.cs__sub{
  margin: 18px 0 0 !important;
  padding-bottom: 60px !important;
}

.cs__subTitle{
  font-size: 14px;
  font-weight: 900;
  margin: 0 0 28px !important;
  opacity: .9;
}

.cs__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, 160px);
  gap: 25px;
  align-items: stretch;
  justify-content: center;
}
/* ---------- твои текущие стили категорий (НЕ ТРОГАЮ) ---------- */
.ccat{
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding: 4px 2px 0;
  color: rgba(11,18,32,.92);
}

.ccatGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 12px;
}

@media (max-width:900px){
  .ccatGrid{ grid-template-columns: 1fr; }
}

.ccatGroup{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(11,18,32,.10);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(11,18,32,.08);
  padding: 12px;
}

.ccatTitle{
  font-family: "Unbounded", "Manrope", system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .25px;
  margin-bottom: 10px;
}

.ccatChips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.ccatChip{
  border: 1px solid rgba(11,18,32,.12);
  background: rgba(255,255,255,.88);
  color: rgba(11,18,32,.88);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
  cursor:pointer;
  transition: .14s ease;
  white-space: nowrap;
}

.ccatChip:hover{
  transform: translateY(-1px);
  border-color: rgba(255,138,26,.55);
  box-shadow: 0 10px 22px rgba(11,18,32,.10);
}

.ccatChip:active{ transform: translateY(0); }

.ccatChip--hot{
  border-color: rgba(255,138,26,.45);
  background: rgba(255,138,26,.14);
}

/* ===== CATEGORY TITLES (Алкоголь / Безалкогольное / ...) ===== */

/* Заголовок категории внутри секций */
.cs__sectionTitle{
  font-family: "Unbounded", "Manrope", system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: 22px !important;
  letter-spacing: -0.02em;
  margin: 0 0 12px !important;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(11,18,32,.10);
}

/* Если у тебя остались кнопки категорий сверху (плашки) */
.cs__btn{
  font-family: "Unbounded", "Manrope", system-ui, sans-serif !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: .2px;
}

/* Чуть “акцент” при наведении */
.cs__btn:hover{
  border-color: rgba(238,123,22,.55) !important;
  box-shadow: 0 10px 22px rgba(11,18,32,.10) !important;
}
/* ===== CATALOG SECTION COLORS ===== */
/* Алкоголь — красный */
.cs__section#cat-alco .cs__sectionTitle{ color:#ff2a37 !important; }
.cs__section#cat-alco .cs__sectionTitle::after{
  content:"";
  display:block;
  height:3px;
  width: 140px;
  margin-top: 8px;
  border-radius: 999px;
  background: #ff2a37;
  opacity: .35;
}

/* Безалкогольное — серый */
.cs__section#cat-na .cs__sectionTitle{ color:#6b7280 !important; }
.cs__section#cat-na .cs__sectionTitle::after{
  content:"";
  display:block;
  height:3px;
  width: 170px;
  margin-top: 8px;
  border-radius: 999px;
  background: #6b7280;
  opacity: .35;
}

/* Еда и дополнения — жёлтый */
.cs__section#cat-food .cs__sectionTitle{ color:#f59e0b !important; }
.cs__section#cat-food .cs__sectionTitle::after{
  content:"";
  display:block;
  height:3px;
  width: 190px;
  margin-top: 8px;
  border-radius: 999px;
  background: #f59e0b;
  opacity: .35;
}

/* Табак — коричневый */
.cs__section#cat-18 .cs__sectionTitle{
  color:#8b5e34 !important;
}

.cs__section#cat-18 .cs__sectionTitle::after{
  content:"";
  display:block;
  height:3px;
  width: 120px;
  margin-top: 8px;
  border-radius: 999px;
  background:#8b5e34;
  opacity:.35;
}
/* ===== BETTER TYPOGRAPHY (catalog sections) ===== */

/* Заголовки категорий: Алкоголь / Безалкогольное / ... */
.cs__sectionTitle{
  font-family: "Unbounded","Manrope",system-ui,sans-serif !important;
  font-weight: 700 !important;
  font-size: 24px !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;

  margin: 0 0 12px !important;
  padding-bottom: 10px;

  /* визуально “дороже” */
  text-transform: none;
  text-wrap: balance;
}

/* Подкатегории: Пиво / Вино / ... */
.cs__subTitle{
  font-family: "Unbounded","Manrope",system-ui,sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
  margin: 0 0 28px !important;
  opacity: .92 !important;
}


/* Мобильная коррекция */
@media (max-width: 480px){
  .cs__sectionTitle{ font-size: 22px !important; }
  .cs__subTitle{ font-size: 14px !important; }
}
/* ===== Bigger subcategory titles (Пиво/Водка/...) ===== */

/* ПК/планшет */
.cs__subTitle{
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

/* мобилка */
@media (max-width: 520px){
  .cs__subTitle{
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }
}

/* =========================
   PRODUCT CARDS — FINAL PREMIUM
   ========================= */

.cs .product{
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(238,123,22,.34);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(242,246,250,.96));
  box-shadow:
    0 18px 38px rgba(11,18,32,.13),
    0 6px 16px rgba(238,123,22,.08),
    inset 0 1px 0 rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background .22s ease;
}
.cs .product::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height: 110px;
  background:
    radial-gradient(circle at top center, rgba(238,123,22,.24), rgba(238,123,22,0) 74%);
  pointer-events:none;
}

.cs .product::after{
  content:"";
  position:absolute;
  inset:1px;
  border-radius: 19px;
  border: 1px solid rgba(255,255,255,.46);
  pointer-events:none;
}

.cs .product:hover{
  transform: translateY(-4px);
  border-color: rgba(238,123,22,.34);
  box-shadow:
    0 22px 44px rgba(11,18,32,.14),
    0 8px 18px rgba(238,123,22,.10),
    inset 0 1px 0 rgba(255,255,255,.8);
}

.cs .product__img{
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 10 / 9;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(238,242,247,.97));
  border: 1px solid rgba(11,18,32,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    0 10px 20px rgba(11,18,32,.06);
}

.cs .product__img::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,0) 42%);
  pointer-events:none;
}

.cs .product__img img{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .25s ease;
}

.cs .product:hover .product__img img{
  transform: scale(1.045);
}

.cs .product__title{
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  font-family: "Manrope", system-ui, sans-serif !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
  color: #09111f;
  letter-spacing: -0.035em;
  text-transform: uppercase;

  display: block;
  overflow: visible;
  min-height: 38px;

  overflow-wrap: anywhere;
  word-break: break-word;
}

.cs .product__desc{
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.3;
  color: #4f617d;

  display: block;
  overflow: visible;
  min-height: 42px;

  overflow-wrap: anywhere;
  word-break: break-word;
}

.cs .product__meta{
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.cs .price{
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-family: "Unbounded","Manrope",system-ui,sans-serif;
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #09111f;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}

.cs .btn.btn--ghost{
  width: 100%;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  border: 1px solid rgba(238,123,22,.34);
  background:
    linear-gradient(180deg, rgba(255,252,249,.99), rgba(255,238,222,.99));
  color: #bf5706;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow:
    0 12px 22px rgba(238,123,22,.14),
    inset 0 1px 0 rgba(255,255,255,.76);
  transition:
    transform .18s ease,
    background .18s ease,
    color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.cs .btn.btn--ghost:hover{
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ee7b16, #d86709);
  color: #fff;
  border-color: #ee7b16;
  box-shadow:
    0 16px 26px rgba(238,123,22,.24),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.cs .btn.btn--ghost:active{
  transform: translateY(0);
}

/* ===== tablet ===== */
@media (max-width: 900px){
  .cs__head{
    flex-direction: column;
    align-items: flex-start;
  }

  .cs__grid{
  grid-template-columns: repeat(auto-fit, 160px);
  gap: 20px;
  justify-content: center;
}
  .cs .product{
    padding: 12px;
    border-radius: 20px;
  }

  .cs .product__img{
    border-radius: 16px;
    margin-bottom: 12px;
  }

  .cs .product__title{
  font-size: 16px !important;
  min-height: 38px;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}

  .cs .product__desc{
  font-size: 13px;
  line-height: 1.35;
  min-height: 54px;
  margin-bottom: 12px;

  display: block;
  overflow: visible;

  overflow-wrap: anywhere;
  word-break: break-word;
}

  .cs .price{
    font-size: 19px;
  }

  .cs .btn.btn--ghost{
    height: 40px;
    font-size: 13px;
    border-radius: 12px;
  }
}

/* ===== mobile ===== */
@media (max-width: 640px){
  .cs__section{
  padding: 10px;
}

.cs__grid{
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 8px;
  row-gap: 14px;
  justify-content: stretch;
  align-items: start;
}

  .cs .product{
  height: auto;
  padding: 10px;
  border-radius: 18px;
}

.cs .product__img{
  border-radius: 14px;
  margin-bottom: 8px;
}

.cs .product__title{
  font-size: 15px !important;
  line-height: 1.15 !important;
  margin-bottom: 4px;
  min-height: 52px;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cs .product__desc{
  font-size: 11px;
  line-height: 1.22;
  min-height: 42px;
  margin-bottom: 8px;
  display: block;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cs .product__meta{
  gap: 6px;
}

.cs .price{
  font-size: 18px;
}

.cs .btn.btn--ghost{
  height: 36px;
  font-size: 12px;
  border-radius: 11px;
  padding: 0 8px;
}
}

/* ===== tiny phones ===== */
@media (max-width: 420px){
  .cs__section{
  padding: 8px;
}

.cs__grid{
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 6px;
  row-gap: 12px;
  justify-content: stretch;
  align-items: start;
}

 .cs .product{
  height: auto;
  padding: 9px;
  border-radius: 16px;
}

.cs .product__img{
  border-radius: 12px;
  margin-bottom: 8px;
}

.cs .product__title{
  font-size: 14px !important;
  line-height: 1.12 !important;
  min-height: 48px;
  margin-bottom: 4px;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cs .product__desc{
  font-size: 10px;
  line-height: 1.2;
  min-height: 38px;
  margin-bottom: 8px;
  display: block;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cs .product__meta{
  gap: 6px;
}

.cs .price{
  font-size: 16px;
}

.cs .btn.btn--ghost{
  height: 34px;
  font-size: 11px;
  border-radius: 10px;
}
}
@media (min-width: 421px) and (max-width: 480px){
  .cs__section{
    padding: 8px;
  }

  .cs__grid{
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 6px;
    row-gap: 14px;
    justify-content: stretch;
    align-items: start;
  }
}