/* Свои блоки сайта в стиле образца (план 004, Т2): каталог, карточка, корзина, поиск, язык. */
.aroma-rec, .aroma-korzina, .aroma-poisk { font-family: 'Gilroy', Arial, sans-serif; color: #141210; }
.aroma-rec *, .aroma-korzina *, .aroma-poisk * { box-sizing: border-box; }
.aroma-bez-prokrutki { overflow: hidden; }
.aroma-skryt { visibility: hidden !important; }

/* кнопка как у Tilda */
.aroma-knopka { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 0 28px;
  background: #141210; color: #fff !important; border: 1px solid #141210; border-radius: 6px; font: 600 11px/1 'Gilroy', Arial, sans-serif;
  letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.aroma-knopka:hover { background: #fff; color: #141210 !important; }
.aroma-knopka:disabled { opacity: .6; cursor: default; }

/* переключатель языка — в шапке, рядом с корзиной (Т12) */
.aroma-yazyk { position: absolute; top: 50%; transform: translateY(-50%); right: 175px; z-index: 10; display: flex; gap: 4px;
  font: 600 11px/1 'Gilroy', Arial, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: #000; }
.aroma-yazyk a { color: #9a9a9a; text-decoration: none; }
@media (min-width: 960px) { .aroma-yazyk { top: 40px; right: 120px; } }
.aroma-yazyk a.aroma-yazyk__tek { color: #000; }

/* сетка каталога */
.aroma-setka { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; max-width: 1440px; margin: 0 auto; padding: 0 40px 80px; }
.aroma-k { display: flex; flex-direction: column; }
.aroma-k__foto { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: #f2f2f2; }
.aroma-k__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.aroma-k__foto:hover img { transform: scale(1.03); }
.aroma-k__bejdzh { position: absolute; left: 10px; top: 10px; z-index: 1; background: #cd7925; color: #fff; border-radius: 6px; padding: 6px 10px; font-size: 12px; font-weight: 600; }
.aroma-k__nazv { margin-top: 14px; font-size: 16px; line-height: 1.35; font-weight: 600; color: #141210; text-decoration: none; }
.aroma-k__stil { margin-top: 4px; font-size: 13px; color: #777; }
.aroma-k__cena { margin: 8px 0 14px; font-size: 16px; font-weight: 500; }
.aroma-k .aroma-knopka { margin-top: auto; align-self: flex-start; }
@media (max-width: 959px) { .aroma-setka { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 20px 60px; gap: 30px 14px; } }
@media (max-width: 479px) { .aroma-k__nazv { font-size: 14px; } .aroma-k .aroma-knopka { padding: 0 16px; width: 100%; } }

/* карточка товара (эталон — katalog_kopiya/tovary/<номер>/stranica.png) */
.aroma-tovar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; max-width: 1440px; margin: 0 auto; padding: 40px 40px 100px; }
.aroma-galereya { display: flex; flex-direction: column; gap: 14px; }
.aroma-galereya img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; background: #f2f2f2; display: block; }
.aroma-galereya img[hidden] { display: none; }
.aroma-tovar__info { position: sticky; top: 20px; align-self: start; }
.aroma-nazad { display: inline-block; margin-bottom: 18px; font-size: 13px; color: #777; text-decoration: none; }
.aroma-tovar__nazv { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 600; }
.aroma-tovar__stil { margin-top: 6px; font-size: 15px; color: #777; }
.aroma-tovar__cena { margin: 18px 0 20px; font-size: 22px; font-weight: 600; }
.aroma-pole { display: block; margin-bottom: 16px; font-size: 13px; }
.aroma-pole > span { display: block; margin-bottom: 8px; color: #555; }
.aroma-pole select, .aroma-pole input[type=tel], .aroma-pole input[type=text] { width: 100%; max-width: 420px; height: 42px; padding: 0 12px;
  border: 1px solid #d6d6d6; border-radius: 6px; background: #fff; font: 400 14px 'Gilroy', Arial, sans-serif; color: #141210; }
.aroma-cveta { display: flex; gap: 12px; flex-wrap: wrap; }
.aroma-cvet { width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: inline-block;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; }
.aroma-cvet--tek { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #141210; }
.aroma-cvet--black { background: #000; } .aroma-cvet--silver { background: #d9d9d9; } .aroma-cvet--red { background: #e43b3b; }
.aroma-cvet--blue { background: #1f55e6; } .aroma-cvet--gold { background: #d4b048; }
.aroma-kolvo { display: inline-flex; align-items: center; border: 1px solid #d6d6d6; border-radius: 6px; height: 42px; }
.aroma-kolvo button { width: 40px; height: 100%; border: 0; background: none; font-size: 18px; cursor: pointer; color: #141210; }
.aroma-kolvo input, .aroma-kolvo__chislo { width: 44px; text-align: center; border: 0; font: 500 15px 'Gilroy', Arial, sans-serif; -moz-appearance: textfield; }
.aroma-kolvo input::-webkit-inner-spin-button { -webkit-appearance: none; }
.aroma-lestnica { margin: 4px 0 22px; padding: 16px 18px; background: #f6f5f3; border-radius: 6px; font-size: 13px; line-height: 1.6; }
.aroma-lestnica__zag { font-weight: 600; margin-bottom: 6px; }
.aroma-lestnica ul { margin: 0; padding-left: 18px; }
.aroma-lestnica p { margin: 8px 0 0; color: #555; }
.aroma-dobavleno { margin-top: 14px; font-size: 14px; }
.aroma-dobavleno a { color: #cd7925; }
.aroma-podzag { margin: 40px 0 14px; font-size: 18px; font-weight: 500; }
.aroma-opisanie p, .aroma-sostav { font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
.aroma-opisanie a { color: inherit; }
@media (max-width: 959px) {
  .aroma-tovar { grid-template-columns: 1fr; gap: 24px; padding: 0 0 70px; }
  .aroma-galereya { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; }
  .aroma-galereya img { flex: 0 0 100%; scroll-snap-align: start; border-radius: 0; }
  .aroma-tovar__info { position: static; padding: 0 20px; }
  .aroma-tovar__nazv { font-size: 20px; }
}

/* корзина */
.aroma-korzina[hidden], .aroma-poisk[hidden] { display: none; }
.aroma-korzina { position: fixed; inset: 0; z-index: 99999; }
.aroma-korzina__fon { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.aroma-korzina__okno { position: absolute; right: 0; top: 0; bottom: 0; width: 100%; max-width: 560px; background: #fff; overflow-y: auto; padding: 30px 40px 40px; }
.aroma-korzina__shapka { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.aroma-korzina__zag { font-size: 22px; font-weight: 600; }
.aroma-zakryt { border: 0; background: none; font-size: 20px; cursor: pointer; color: #141210; padding: 6px; }
.aroma-korzina__pusto { margin: 30px 0 20px; font-size: 16px; }
.aroma-stroka { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid #eee; }
.aroma-stroka img { width: 70px; height: 93px; object-fit: cover; border-radius: 6px; background: #f2f2f2; }
.aroma-stroka__nazv { font-size: 14px; font-weight: 600; line-height: 1.35; }
.aroma-stroka__sostav { margin: 4px 0 8px; font-size: 12px; color: #777; line-height: 1.4; }
.aroma-stroka .aroma-kolvo { height: 34px; margin-top: 6px; }
.aroma-stroka .aroma-kolvo button { width: 32px; }
.aroma-stroka__prav { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.aroma-stroka__cena { font-size: 14px; font-weight: 600; white-space: nowrap; }
.aroma-ubrat { border: 0; background: none; color: #999; cursor: pointer; font-size: 14px; }
.aroma-itogi { padding: 18px 0; font-size: 14px; }
.aroma-itogi__ryad { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.aroma-itogi__ryad span:last-child { text-align: right; }
.aroma-itogi__itogo { font-size: 18px; font-weight: 600; margin-top: 12px; }
.aroma-podskazka { margin: 4px 0 8px; color: #cd7925; font-size: 13px; }
.aroma-forma { border-top: 1px solid #eee; padding-top: 22px; }
.aroma-forma__zag { font-size: 18px; font-weight: 500; margin-bottom: 16px; }
.aroma-forma .aroma-pole input { max-width: none; }
.aroma-nevernoe { border-color: #e43b3b !important; }
.aroma-oshibka { display: block; font-style: normal; color: #e43b3b; font-size: 12px; margin-top: 6px; }
.aroma-oshibka:empty { display: none; }
.aroma-lovushka { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.aroma-oplata { background: #f6f5f3; border-radius: 6px; padding: 14px 16px; margin: 6px 0 18px; font-size: 13px; line-height: 1.5; }
.aroma-oplata p { margin: 6px 0 0; }
.aroma-forma .aroma-knopka { width: 100%; }
.aroma-soglasie { font-size: 12px; color: #777; margin: 10px 0 0; line-height: 1.4; }
.aroma-forma-oshibka { color: #e43b3b; font-size: 13px; margin: 10px 0 0; }
.aroma-forma-oshibka:empty { display: none; }
@media (max-width: 639px) { .aroma-korzina__okno { padding: 20px; } }

/* под zero-формой консультации (Tilda рисует форму сама; строку согласия и ошибку добавляет сборка) */
/* элемент zero-формы — display: table; без этого согласие и ошибка становятся узкой ячейкой справа от поля */
[data-aroma-forma] > .aroma-soglasie, [data-aroma-forma] > .aroma-forma-oshibka { display: table-caption; caption-side: bottom; font-family: 'Gilroy', Arial, sans-serif; }
[data-aroma-forma] .aroma-soglasie { color: inherit; opacity: .75; margin-top: 8px; }
[data-aroma-forma] .aroma-forma-oshibka { margin-top: 6px; }
.t-rec .aroma-soglasie a { color: inherit; }

/* поиск */
.aroma-poisk { position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, .45); }
.aroma-poisk__okno { background: #fff; padding: 30px 40px 40px; max-height: 100vh; overflow-y: auto; }
.aroma-poisk__ryad { display: flex; gap: 10px; max-width: 900px; margin: 0 auto; }
.aroma-poisk__pole { flex: 1; height: 48px; border: 0; border-bottom: 1px solid #141210; font: 400 20px 'Gilroy', Arial, sans-serif; outline: none; }
.aroma-poisk__rez { max-width: 900px; margin: 20px auto 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.aroma-poisk__tovar { display: flex; flex-direction: column; gap: 8px; color: #141210; text-decoration: none; font-size: 14px; }
.aroma-poisk__tovar img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.aroma-poisk__pusto { grid-column: 1 / -1; font-size: 15px; }
@media (max-width: 639px) { .aroma-poisk__okno { padding: 20px; } }

/* благодарность */
.aroma-stroka-nomera[hidden] { display: none; }
