/* ===================== Аромабоксы ===================== */

/* Состав набора (под карточкой) */
.ab-composition {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px;
}
.ab-composition__item {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
.ab-composition__img { width: 80px; border-radius: 6px; overflow: hidden; background: #f5f3f0; }
.ab-composition__img img { width: 100%; height: auto; display: block; }
.ab-composition__name { font-size: 11px; font-weight: 500; letter-spacing: .03em; line-height: 1.2; }
/* Расширенный состав набора (карточки ароматов с нотами) */
.ab-composition-full {
  display: flex; flex-direction: column; gap: 16px;
}
.ab-frag-card {
  display: flex; gap: 16px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s;
  cursor: pointer;
}
.ab-frag-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.ab-frag-card__img { width: 80px; min-width: 80px; overflow: hidden; }
.ab-frag-card__img img { width: 100%; height: auto; display: block; }
.ab-frag-card__body { flex: 1; min-width: 0; }
.ab-frag-card__name {
  font-family: var(--font-heading); font-size: 15px; font-weight: 400;
  letter-spacing: .06em; margin-bottom: 4px; color: var(--primary);
}
.ab-frag-card__group {
  font-size: 11px; font-weight: 300; letter-spacing: .06em; text-transform: uppercase;
  color: #999; margin-bottom: 8px;
}
.ab-frag-card__notes { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.ab-note { font-size: 12px; font-weight: 300; color: #666; line-height: 1.4; }
.ab-note__k { font-weight: 500; color: #888; margin-right: 4px; }
.ab-frag-card__accords {
  font-size: 11px; font-weight: 300; color: #aaa; font-style: italic; line-height: 1.3;
}

@media (max-width: 1023px) {
  .ab-frag-card { padding: 12px; gap: 12px; }
  .ab-frag-card__img { width: 60px; min-width: 60px; }
  .ab-frag-card__name { font-size: 13px; }
}

/* Описание набора */
.product-description {
  font-size: 14px; font-weight: 300; line-height: 1.6; color: #555;
  margin: 12px 0 16px; max-width: 480px;
}


/* Слоты (выбранные ароматы — «собери свой») */
.ab-slots { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.ab-slot {
  width: 80px; height: 100px; border: 1px dashed var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; transition: border-color .2s;
}
.ab-slot--filled { border-style: solid; border-color: var(--primary); }
.ab-slot__num { font-size: 20px; color: var(--muted); font-weight: 300; }
.ab-slot__img { width: 50px; height: 50px; border-radius: 4px; overflow: hidden; }
.ab-slot__img img { width: 100%; height: 100%; object-fit: cover; }
.ab-slot__name { font-size: 10px; text-align: center; line-height: 1.2; margin-top: 4px; padding: 0 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 76px; }
.ab-slot__remove {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--primary); color: #fff; border: none;
  font-size: 14px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* Пикер ароматов */
.ab-picker__search {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  font-size: 14px; margin-bottom: 12px; background: transparent;
  font-family: var(--font-body);
}
.ab-picker__search:focus { outline: none; border-color: var(--primary); }
.ab-picker__list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px;
  max-height: 320px; overflow-y: auto; padding: 4px 0;
}
.ab-picker__item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 1px solid var(--border); cursor: pointer; transition: all .2s;
}
.ab-picker__item:hover { border-color: var(--primary); }
.ab-picker__item-img { width: 36px; height: 36px; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.ab-picker__item-img img { width: 100%; height: 100%; object-fit: cover; }
.ab-picker__item-name { font-size: 12px; font-weight: 500; line-height: 1.2; }

/* Ячейки выбора ароматов — 3 в ряд, на всю ширину */
.cb-vols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 12px;
}
.cb-vol {
  padding: 8px 8px; border: 1px solid var(--border); background: #fff;
  font-family: var(--font-body); cursor: pointer; transition: all var(--fast);
  font-size: 13px; font-weight: 400; color: var(--primary);
  text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
  min-width: 0; text-align: left;
}
.cb-vol--empty { color: #999; }
.cb-vol:hover { border-color: #333; }

/* Настроение (mood) */
.product-mood {
  font-family: var(--font-body); font-size: 13px; font-weight: 300;
  font-style: italic; color: var(--secondary); margin-bottom: 16px;
}

/* Кнопка disabled */
.product-btn:disabled { opacity: .4; cursor: default; }

/* Шторка — состав набора (полный, без обрезки) */
.sheet-item__fragrances {
  font-size: 11px; color: var(--muted); line-height: 1.4; margin-top: 2px;
}

/* Модалка выбора аромата — теперь использует .fs-modal, стили позиционирования убраны */
.frag-picker__search {
  width: 100%; padding: 10px 12px; margin-bottom: 12px;
  border: 1px solid var(--border); background: #fafafa;
  font-family: var(--font-body); font-size: 16px;
  outline: none; box-sizing: border-box;
}
.frag-picker__search:focus { border-color: var(--primary); background: #fff; }
.frag-picker__list {
  padding: 0;
}
.frag-picker__item {
  padding: 10px 0; border-bottom: 1px solid var(--border-light, #f0ede8);
  font-size: 14px; cursor: pointer; transition: background var(--fast);
}
.frag-picker__item:hover { background: #fafafa; }
.frag-picker__item--current {
  font-weight: 500; color: var(--accent, #b8b0a4);
}
.frag-picker__item--disabled {
  color: #ccc; cursor: default;
}
.frag-picker__item--disabled:hover { background: none; }
.frag-picker__item--remove {
  color: #e53e3e; border-bottom: none; margin-top: 8px;
}

/* Мобильная адаптация аромабоксов */
@media (max-width: 1023px) {
  .ab-slot { width: 64px; height: 84px; }
  .ab-slot__img { width: 40px; height: 40px; }
  .ab-picker__list { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .ab-composition { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
}

/* Кастомная кнопка загрузки фото */
.modal-file-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 20px;
  border: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--fast);
}
.modal-file-btn:hover { border-color: var(--primary); }
.modal-file-names {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
