/**
 * Второй этап: характеристики и «Поделиться», точки самовывоза, шапка
 * (подпись, кабинет, избранное), сердечки, избранное, витрина с вкладками,
 * рецепты, форма отзыва с модерацией, кабинет. Цвета только из palettes.css.
 */

/* -------------------------------------------------------------------------
   1. Карточка товара: характеристики, «Поделиться», сердечко
   ---------------------------------------------------------------------- */

.sf .sf-specs {
	margin: 24px 0 0;
}

.sf .sf-specs__title {
	margin: 0 0 8px;
	font-size: 1.25rem;
}

.sf .sf-specs__table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

.sf .sf-specs__table th,
.sf .sf-specs__table td {
	padding: 9px 0;
	border: 0;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
	font-size: 0.92rem;
	line-height: 1.45;
	text-align: left;
}

.sf .sf-specs__table th {
	width: 38%;
	padding-right: 16px;
	font-weight: 600;
	color: var(--muted);
}

.sf .sf-specs__table td {
	color: var(--ink);
}

.sf .sf-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0 0;
}

.sf .sf-share__label {
	margin-right: 4px;
	font-size: 0.9rem;
	color: var(--muted);
}

.sf .sf-share__btn,
.sf .woocommerce .sf-share__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--paper);
	color: var(--ink);
	cursor: pointer;
	transition: border-color 0.12s, color 0.12s, background 0.12s;
}

.sf .sf-share__btn svg {
	width: 20px;
	height: 20px;
}

.sf .sf-share__btn:hover {
	border-color: var(--ink);
	background: var(--frost);
	color: var(--ink);
}

.sf .sf-share__btn.is-done {
	border-color: var(--sea);
	color: var(--sea);
}

.sf .sf-share__hint {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 6px);
	transform: translateX(-50%);
	white-space: nowrap;
	padding: 4px 8px;
	border-radius: 6px;
	background: var(--ink);
	color: var(--paper);
	font-size: 0.75rem;
}

.sf .sf-share__hint:empty {
	display: none;
}

.sf .sf-fav,
.sf .woocommerce .sf-fav,
.sf button.sf-fav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--paper);
	color: var(--muted);
	box-shadow: var(--sf-shadow);
	cursor: pointer;
	transition: color 0.15s, transform 0.15s;
}

.sf .sf-fav svg {
	width: 22px;
	height: 22px;
}

.sf .sf-fav:hover {
	color: var(--coral);
}

.sf .sf-fav.is-on {
	color: var(--coral);
}

.sf .sf-fav.is-on svg {
	fill: currentColor;
}

.sf .sf-fav.is-bump {
	transform: scale(1.2);
}

.sf .sf-fav--card {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	width: 36px;
	height: 36px;
}

.sf .sf-fav--single {
	position: absolute;
	top: 0;
	right: 0;
}

.sf .woocommerce div.product .summary,
.sf div.product .summary {
	position: relative;
}

.sf .sf-fav--single + .product_title,
.sf div.product .summary .product_title {
	padding-right: 52px;
}

/* -------------------------------------------------------------------------
   2. Точки самовывоза на оформлении
   ---------------------------------------------------------------------- */

.sf .sf-pickup__label {
	margin: 0 0 10px;
	font-weight: 700;
	color: var(--ink);
}

.sf .sf-pickup__tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.sf .sf-pickup__tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-height: 96px;
	margin: 0;
	padding: 12px 14px;
	border: 2px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	cursor: pointer;
	transition: border-color 0.12s;
}

.sf .sf-pickup__tile input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	opacity: 0;
}

.sf .sf-pickup__tile:hover {
	border-color: var(--ink);
}

.sf .sf-pickup__tile.is-active,
.sf .sf-pickup__tile:has(input:checked) {
	border-color: var(--coral);
	background: var(--paper);
}

.sf .sf-pickup__title {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--ink);
}

.sf .sf-pickup__address {
	font-size: 0.88rem;
	color: var(--ink);
}

.sf .sf-pickup__hours {
	font-size: 0.8rem;
	color: var(--muted);
}

@media (max-width: 782px) {
	.sf .sf-pickup__tiles {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------
   3. Шапка: подпись, кабинет, избранное, верхнее меню
   ---------------------------------------------------------------------- */

.sf .sf-logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
}

.sf .sf-logo__tagline {
	margin-top: 3px;
	font-family: var(--font-text);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: rgba(var(--paper-rgb), 0.7);
}

.sf .sf-hbtn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	height: 48px;
	padding: 0 12px;
	border-radius: 10px;
	color: var(--paper);
	text-decoration: none;
	transition: background 0.15s;
}

.sf .sf-hbtn:hover {
	background: rgba(var(--paper-rgb), 0.1);
	color: var(--paper);
}

.sf .sf-hbtn .sf-icon {
	width: 24px;
	height: 24px;
}

.sf .sf-hbtn__text {
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.9rem;
	font-weight: 600;
}

.sf .sf-hbtn__badge,
.sf .sf-tabbar__badge {
	position: absolute;
	top: 6px;
	right: 4px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--coral);
	color: var(--paper);
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.sf .sf-tabbar a {
	position: relative;
}

.sf .sf-tabbar__badge {
	top: 4px;
	right: 22px;
}

/* Верхнее меню с выпадающим списком */
.sf .sf-topnav,
.sf .sf-topnav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sf .sf-topnav {
	display: flex;
	gap: 22px;
}

.sf .sf-topnav > li {
	position: relative;
}

.sf .sf-topnav a {
	color: var(--c-on-dark-muted);
	white-space: nowrap;
}

.sf .sf-topnav a:hover {
	color: var(--coral);
}

.sf .sf-topnav > .menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 0 2px 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.sf .sf-topnav .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: -12px;
	z-index: 120;
	min-width: 220px;
	padding: 8px;
	border-radius: 10px;
	background: var(--paper);
	box-shadow: 0 12px 32px rgba(var(--ink-rgb), 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s, transform 0.15s, visibility 0s 0.15s;
}

.sf .sf-topnav .sub-menu::before {
	content: '';
	position: absolute;
	top: -8px;
	left: 0;
	right: 0;
	height: 8px;
}

.sf .sf-topnav > li:hover > .sub-menu,
.sf .sf-topnav > li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.sf .sf-topnav .sub-menu a {
	display: block;
	padding: 8px 12px;
	border-radius: 6px;
	color: var(--ink);
	font-size: 0.9rem;
}

.sf .sf-topnav .sub-menu a:hover {
	background: var(--frost);
	color: var(--ocean);
}

.sf .sf-drawer__nav .sub-menu {
	list-style: none;
	margin: 0 0 4px 16px;
	padding: 0;
}

.sf .sf-catlist--showcase {
	margin-bottom: 6px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--line);
}

.sf .sf-catlist--showcase .sf-icon {
	color: var(--coral);
}

@media (max-width: 921px) {
	.sf .sf-hbtn--account,
	.sf .sf-hbtn--fav {
		display: none;
	}

	.sf .sf-logo__tagline {
		display: none;
	}
}

/* -------------------------------------------------------------------------
   4. Избранное и витрина с вкладками
   ---------------------------------------------------------------------- */

.sf .sf-favorites__empty,
.sf .sf-favorites__loading {
	padding: 40px 24px;
	border-radius: var(--sf-radius);
	background: var(--frost);
	text-align: center;
	color: var(--muted);
}

.sf .sf-tabs__bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
}

.sf .sf-tabs__tab {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 18px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.sf .sf-tabs__tab:hover {
	border-color: var(--ink);
}

.sf .sf-tabs__tab.is-active {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--paper);
}

.sf .sf-tabs__more {
	margin: 20px 0 0;
	text-align: center;
}

.sf .sf-badge--own {
	background: var(--sand);
	color: var(--ink);
}

/* Под заголовком витрины внутри карточки шапки. Был отрицательный отступ
   сверху, и строка наезжала на H1. */
.sf .sf-showcase__subtitle {
	margin: 8px 0 0;
	color: var(--muted);
}

/* -------------------------------------------------------------------------
   5. Рецепты
   ---------------------------------------------------------------------- */

.sf .sf-recipes__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

@media (max-width: 921px) {
	.sf .sf-recipes__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.sf .sf-recipes__grid {
		grid-template-columns: 1fr;
	}
}

.sf .sf-recipe {
	display: flex;
	flex-direction: column;
	background: var(--paper);
	border-radius: var(--sf-radius);
	box-shadow: var(--sf-shadow);
	overflow: hidden;
}

.sf .sf-recipe__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--frost);
}

.sf .sf-recipe__media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.sf .sf-recipe__ph {
	object-fit: contain;
	padding: 18%;
	background: var(--frost);
}

.sf .sf-recipe__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 8px;
	padding: 16px 18px 18px;
}

.sf .sf-recipe__title,
.sf .entry-content a.sf-recipe__title {
	font-family: var(--font-heading);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none !important;
}

.sf .sf-recipe__excerpt {
	flex: 1 1 auto;
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--muted);
}

.sf .sf-recipe__time {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ink);
}

.sf .sf-recipe__time svg {
	width: 16px;
	height: 16px;
	color: var(--ocean);
}

.sf .sf-recipe-info {
	margin: 0 0 24px;
	padding: 18px 22px;
	border-radius: var(--sf-radius);
	background: var(--frost);
}

.sf .sf-recipe-info__time {
	margin: 0 0 10px;
}

.sf .sf-recipe-info__title {
	margin: 0 0 8px;
	font-size: 1.15rem;
}

.sf .sf-recipe-info__list {
	margin: 0;
	padding-left: 20px;
}

.sf .sf-recipe-products {
	margin: 36px 0 0;
}

.sf .sf-recipe-products h2 {
	margin: 0 0 16px;
}

.sf .sf-product-recipes {
	margin-top: 40px;
}

/* -------------------------------------------------------------------------
   6. Форма отзыва, «Мои отзывы»
   ---------------------------------------------------------------------- */

.sf .sf-review-form {
	max-width: 720px;
	margin: 36px 0 0;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--paper);
}

.sf .sf-review-form__title {
	margin: 0 0 14px;
	font-size: 1.4rem;
}

.sf .sf-review-form__ok,
.sf .sf-review-form__err {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--aqua);
	color: var(--ink);
}

.sf .sf-review-form__err {
	background: var(--sand);
}

.sf .sf-review-form__row {
	display: block;
	margin: 0 0 14px;
}

.sf .sf-review-form__row > span,
.sf .sf-review-form__row label > span {
	display: block;
	margin-bottom: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--muted);
}

.sf .sf-review-form__row--2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.sf .sf-review-form input[type="text"],
.sf .sf-review-form input[type="email"],
.sf .sf-review-form textarea {
	width: 100%;
	box-sizing: border-box;
}

.sf .sf-review-form__product {
	position: relative;
}

.sf .sf-suggest {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 10;
	max-height: 220px;
	overflow: auto;
	border: 1px solid var(--line);
	border-radius: 0 0 10px 10px;
	background: var(--paper);
	box-shadow: var(--sf-shadow-hover);
}

.sf .sf-suggest div {
	padding: 8px 12px;
	font-size: 0.9rem;
	cursor: pointer;
}

.sf .sf-suggest div:hover {
	background: var(--frost);
}

.sf .sf-hp {
	position: absolute;
	left: -9999px;
}

.sf .sf-review-form__rating {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 2px;
	margin: 0 0 12px;
	font-size: 1.8rem;
	line-height: 1;
}

.sf .sf-review-form__rating input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.sf .sf-review-form__rating label {
	margin: 0;
	color: var(--line);
	cursor: pointer;
	transition: color 0.1s;
}

.sf .sf-review-form__rating input:checked ~ label,
.sf .sf-review-form__rating label:hover,
.sf .sf-review-form__rating label:hover ~ label {
	color: var(--coral);
}

.sf .sf-review__product,
.sf .entry-content a.sf-review__product {
	display: inline-block;
	margin: 12px 0 0;
	font-size: 0.85rem;
	color: var(--ocean);
	text-decoration: none;
}

.sf .sf-review__photos {
	display: flex;
	gap: 6px;
	margin: 12px 0 0;
}

.sf .sf-review__photos img {
	width: 56px;
	height: 56px;
	margin: 0;
	border-radius: 8px;
	object-fit: cover;
}

.sf .sf-myreview {
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

.sf .sf-myreview__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.sf .sf-myreview__stars {
	color: var(--coral);
	letter-spacing: 2px;
}

.sf .sf-myreview__status {
	padding: 2px 10px;
	border-radius: 10px;
	font-size: 0.8rem;
	font-weight: 600;
	background: var(--frost);
	color: var(--muted);
}

.sf .sf-myreview__status.is-ok {
	background: var(--aqua);
	color: var(--ink);
}

.sf .sf-myreview__status.is-wait {
	background: var(--sand);
	color: var(--ink);
}

.sf .sf-myreview__date {
	font-size: 0.85rem;
	color: var(--muted);
}

.sf .sf-myreview__product {
	font-size: 0.88rem;
	color: var(--ocean);
}

.sf .sf-myreview__text p {
	margin: 4px 0 0;
}

/* -------------------------------------------------------------------------
   7. Кабинет: сумма покупок, состав заказов, регистрация
   ---------------------------------------------------------------------- */

.sf .sf-account-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 20px;
}

.sf .sf-account-summary > div {
	flex: 1 1 160px;
	padding: 14px 18px;
	border-radius: 12px;
	background: var(--frost);
}

.sf .sf-account-summary > div > span {
	display: block;
	font-size: 0.85rem;
	color: var(--muted);
}

.sf .sf-account-summary strong {
	display: block;
	margin-top: 2px;
	font-family: var(--font-heading);
	font-size: 1.4rem;
	color: var(--ink);
	white-space: nowrap;
}

.sf .sf-orders__items {
	font-size: 0.88rem;
	line-height: 1.5;
}

.sf .sf-orders__qty {
	color: var(--muted);
	white-space: nowrap;
}

@media (max-width: 782px) {
	.sf .sf-review-form__row--2 {
		grid-template-columns: 1fr;
	}
}

/* Сумма покупок: внутренние span цены — строчные, без переноса «₽». */
.sf .sf-account-summary strong span {
	display: inline;
	white-space: nowrap;
}

/* Рецепт: колонка записи узкая — товары в 3 колонки, на телефоне 2; строку «От / дата» не показываем. */
.sf .sf-recipe-products .woocommerce ul.products,
.sf .sf-recipe-products ul.products {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 782px) {
	.sf .sf-recipe-products .woocommerce ul.products,
.sf .sf-recipe-products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.sf.sf-recipe-single .entry-meta,
.sf.sf-recipe-single .ast-single-post-featured-section {
	display: none;
}

/* Поле выбора фото в форме отзыва: рамка-поле со значком, а не вторая кнопка.
   Сам input прозрачный поверх рамки: нажатие открывает выбор файлов, фокус
   с клавиатуры виден на рамке. Названия выбранных файлов пишет stage2.js. */
.sf .sf-review-form__row > .sf-review-form__files {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	margin: 0;
	padding: 10px 14px;
	border: 1px dashed #c5d0dc;
	border-radius: 10px;
	background: #fff;
	font-size: 0.95rem;
	font-weight: 400;
	color: var(--muted);
	cursor: pointer;
}

.sf .sf-review-form__files::before {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	background: var(--ocean);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sf .sf-review-form__files input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	cursor: pointer;
}

.sf .sf-review-form__files-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sf .sf-review-form__files:hover {
	border-color: var(--ocean);
}

.sf .sf-review-form__files:focus-within {
	outline: 2px solid var(--ocean);
	outline-offset: 2px;
}

.sf .sf-review-form__files.has-files {
	border-style: solid;
	color: var(--ink);
}

/* -------------------------------------------------------------------------
   8. Единая разметка новых страниц: рецепты, избранное, отзывы, самовывоз
   ---------------------------------------------------------------------- */

/* 8.1 Вводный абзац страницы — как подзаголовок разделов каталога. */
.sf .sf-lead {
	max-width: 820px;
	margin: -4px 0 28px;
	font-size: 1.05rem;
	line-height: 1.55;
	color: var(--muted);
}

/* 8.2 Карточка рецепта: одинаковая высота, обрезка текста, наведение. */
.sf .sf-recipe {
	border: 1px solid var(--line);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sf .sf-recipe:hover {
	transform: translateY(-2px);
	border-color: var(--aqua);
	box-shadow: 0 10px 24px rgba(11, 42, 74, 0.1);
}

.sf .sf-recipe:hover .sf-recipe__media img:not(.sf-recipe__ph) {
	transform: scale(1.03);
}

.sf .sf-recipe__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.25;
}

.sf .sf-recipe__title:hover {
	color: var(--ocean);
}

.sf .sf-recipe__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sf .sf-recipe__time {
	align-self: flex-start;
	margin-top: 4px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--frost);
}

/* 8.3 Страница рецепта: текст в читаемой колонке, блоки на всю ширину. */
.sf.sf-recipe-single .entry-content > p,
.sf.sf-recipe-single .entry-content > ul,
.sf.sf-recipe-single .entry-content > ol,
.sf.sf-recipe-single .sf-recipe-info {
	max-width: 820px;
}

.sf.sf-recipe-single .entry-header {
	margin-bottom: 22px;
}

.sf.sf-recipe-single .sf-recipe-info {
	border: 1px solid var(--line);
}

.sf.sf-recipe-single .sf-recipe-info__time {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--paper);
	font-size: 0.95rem;
}

.sf.sf-recipe-single .post-navigation,
.sf.sf-recipe-single .ast-single-post-navigation,
.sf.sf-recipe-single nav.navigation {
	display: none;
}

.sf .sf-recipe-products,
.sf .sf-recipe-more {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

.sf .sf-recipe-more__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.sf .sf-recipe-more__head h2 {
	margin: 0;
}

.sf .sf-recipe-more__all {
	font-weight: 600;
	white-space: nowrap;
}

/* Продукты к рецепту — четыре в ряд, как в каталоге без фильтров. */
.sf .sf-recipe-products .woocommerce ul.products,
.sf .sf-recipe-products ul.products {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 0;
}

@media (max-width: 1100px) {
	.sf .sf-recipe-products .woocommerce ul.products,
	.sf .sf-recipe-products ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.sf .sf-recipe-products .woocommerce ul.products,
	.sf .sf-recipe-products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* 8.4 Пустые состояния: избранное, «Мои отзывы». */
.sf .sf-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 48px 24px 52px;
	border: 1px solid var(--line);
	border-radius: var(--sf-radius);
	background: var(--paper);
	text-align: center;
}

.sf .sf-empty__icon {
	width: 44px;
	height: 44px;
	margin-bottom: 6px;
	color: var(--aqua);
}

.sf .sf-empty__title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 1.3rem;
	color: var(--ink);
}

.sf .sf-empty__text {
	margin: 0 0 18px;
	color: var(--muted);
}

.sf .sf-favorites__loading {
	padding: 40px 0;
	color: var(--muted);
	text-align: center;
}

/* 8.5 Форма отзыва: на всю ширину колонки, поля как на оформлении. */
.sf .sf-review-form {
	max-width: none;
	padding: 28px 30px 30px;
}

.sf .sf-review-form__row--2 {
	gap: 18px;
}

.sf .sf-review-form input[type="text"],
.sf .sf-review-form input[type="email"],
.sf .sf-review-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--paper);
	font-size: 1rem;
	color: var(--ink);
}

.sf .sf-review-form input[type="text"]:focus,
.sf .sf-review-form input[type="email"]:focus,
.sf .sf-review-form textarea:focus {
	border-color: var(--ocean);
	outline: none;
	box-shadow: 0 0 0 3px rgba(30, 120, 190, 0.12);
}

.sf .sf-review-form textarea {
	min-height: 130px;
	resize: vertical;
}

.sf .sf-review-form input[type="file"] {
	padding: 14px;
	border: 1px dashed var(--aqua);
	border-radius: 10px;
	background: var(--frost);
	color: var(--muted);
	cursor: pointer;
}

.sf .sf-review-form__rating {
	margin-bottom: 16px;
}

.sf .sf-review-form__submit {
	margin-top: 4px;
}

/* 8.6 Страница «Самовывоз»: карточки магазинов как на главной. */
.sf .seafood-stores {
	margin: 8px 0 24px;
}

.sf .seafood-store {
	border-left-color: var(--coral);
}

/* 8.7 «Вопросы и ответы»: блоки «Подробности» как аккордеон. */
.sf .entry-content .wp-block-details {
	margin: 0 0 12px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	overflow: hidden;
}

.sf .entry-content .wp-block-details summary {
	position: relative;
	padding: 18px 52px 18px 22px;
	font-family: var(--font-heading);
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--ink);
	cursor: pointer;
	list-style: none;
	transition: background 0.15s ease;
}

.sf .entry-content .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.sf .entry-content .wp-block-details summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 22px;
	width: 10px;
	height: 10px;
	margin-top: -6px;
	border-right: 2px solid var(--ocean);
	border-bottom: 2px solid var(--ocean);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.sf .entry-content .wp-block-details[open] summary::after {
	margin-top: -2px;
	transform: rotate(-135deg);
}

.sf .entry-content .wp-block-details summary:hover {
	background: var(--frost);
}

.sf .entry-content .wp-block-details[open] summary {
	background: var(--frost);
}

.sf .entry-content .wp-block-details p {
	margin: 0;
	padding: 16px 22px 20px;
	color: var(--muted);
	line-height: 1.6;
}

/* 8.8 Мелкие правки после проверки кадров. */
/* Текст рецепта прижат влево (Astra центрирует узкие блоки). */
.sf.sf-recipe-single .entry-content > p,
.sf.sf-recipe-single .entry-content > ul,
.sf.sf-recipe-single .entry-content > ol {
	margin-left: 0;
	margin-right: 0;
}

/* Звёзды в форме отзыва: Astra задаёт свой размер меткам, поэтому явно. */
.sf .sf-review-form__rating label {
	font-size: 1.9rem;
	line-height: 1;
}

.sf .sf-review-form__rating {
	gap: 4px;
	margin-bottom: 18px;
}

/* Сетка товаров внутри текста страницы (избранное, рецепт): Astra подчёркивает
   ссылки в .entry-content — карточкам это не нужно. */
.sf .entry-content ul.products a,
.sf .entry-content ul.products a:hover,
.sf .entry-content .sf-recipe a {
	text-decoration: none;
}

/* -------------------------------------------------------------------------
   9. Общая форма (.sf-form): заявка оптовика и другие простые формы
   ---------------------------------------------------------------------- */

.sf .sf-form {
	max-width: 760px;
	margin: 8px 0 32px;
	padding: 28px 30px 30px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--paper);
}

.sf .sf-form__ok,
.sf .sf-form__err {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--aqua);
	color: var(--ink);
}

.sf .sf-form__err {
	background: var(--sand);
}

.sf .sf-form__row {
	display: block;
	margin: 0 0 14px;
}

.sf .sf-form__row > span,
.sf .sf-form__row label > span {
	display: block;
	margin-bottom: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--muted);
}

.sf .sf-form__row span b {
	color: var(--coral);
	font-weight: 700;
}

.sf .sf-form__row--2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 18px;
}

.sf .sf-form input[type="text"],
.sf .sf-form input[type="tel"],
.sf .sf-form input[type="email"],
.sf .sf-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--paper);
	font-size: 1rem;
	color: var(--ink);
}

.sf .sf-form input:focus,
.sf .sf-form textarea:focus {
	border-color: var(--ocean);
	outline: none;
	box-shadow: 0 0 0 3px rgba(30, 120, 190, 0.12);
}

.sf .sf-form textarea {
	min-height: 110px;
	resize: vertical;
}

.sf .sf-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 4px 0 18px;
	font-size: 0.9rem;
	color: var(--muted);
}

.sf .sf-form__consent input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--coral);
}

.sf .sf-form__consent a {
	color: var(--ocean);
}

/* Подсветка незаполненных обязательных полей после попытки отправки. */
.sf .sf-form.is-checked input:invalid,
.sf .sf-form.is-checked textarea:invalid {
	border-color: var(--coral);
}

@media (max-width: 600px) {
	.sf .sf-form {
		padding: 20px 18px 22px;
	}

	.sf .sf-form__row--2 {
		grid-template-columns: 1fr;
	}

	.sf .sf-form__submit {
		width: 100%;
	}
}

/* -------------------------------------------------------------------------
   10. Карта места вылова в карточке товара
   ---------------------------------------------------------------------- */

.sf .sf-catch-map {
	margin: 24px 0 0;
}

.sf .sf-catch-map__box {
	position: relative;
	aspect-ratio: 13 / 6;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--frost);
}

.sf .sf-catch-map__canvas {
	position: absolute;
	inset: 0;
}

.sf .sf-catch-map__canvas img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sf .sf-catch-map__note {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 20px;
	font-size: 0.9rem;
	color: var(--muted);
	text-align: center;
	pointer-events: none;
	transition: opacity 0.3s;
}

.sf .sf-catch-map.is-loading .sf-catch-map__note::after {
	content: "…";
}

.sf .sf-catch-map.is-ready .sf-catch-map__note {
	opacity: 0;
}

.sf .sf-catch-map__caption {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin: 10px 0 0;
	font-size: 0.9rem;
	color: var(--muted);
}

.sf .sf-catch-map__caption strong {
	color: var(--ink);
}

.sf .sf-catch-map__pin {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--coral);
	box-shadow: 0 0 0 3px rgba(255, 107, 61, 0.25);
}

.sf .sf-catch-map__link {
	margin-left: auto;
	color: var(--ocean);
	white-space: nowrap;
}

.sf .sf-catch-map__route-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	margin: 9px 0 0;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--frost);
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--muted);
}

.sf .sf-catch-map__route-destination,
.sf .sf-catch-map__route-disclaimer {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.sf .sf-catch-map__route-destination {
	color: var(--ink);
}

.sf .sf-catch-map__route-pin {
	width: 10px;
	height: 10px;
	flex: 0 0 10px;
	border-radius: 50%;
	background: #2686d9;
	box-shadow: 0 0 0 3px rgba(38, 134, 217, 0.16);
}

.sf .sf-catch-map__route-line {
	width: 28px;
	flex: 0 0 28px;
	border-top: 3px dashed #ff8a3d;
}

@media (max-width: 600px) {
	.sf .sf-catch-map__box {
		aspect-ratio: 4 / 3;
	}

	.sf .sf-catch-map__link {
		margin-left: 0;
	}

	.sf .sf-catch-map__route-meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
	}
}

/* -------------------------------------------------------------------------
   11. Лайки: палец вверх со счётчиком рядом с сердечком
   ---------------------------------------------------------------------- */

.sf .sf-like,
.sf .woocommerce .sf-like,
.sf button.sf-like {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 40px;
	min-width: 40px;
	min-height: 0;
	padding: 0 10px;
	border: 0;
	border-radius: 20px;
	background: var(--paper);
	color: var(--muted);
	font-family: var(--font-text);
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1;
	box-shadow: var(--sf-shadow);
	cursor: pointer;
	transition: color 0.15s, transform 0.15s;
}

.sf .sf-like svg {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
}

.sf .sf-like__count:empty {
	display: none;
}

.sf .sf-like[data-count="0"],
.sf .sf-like:not([data-count]) {
	padding: 0;
	width: 40px;
}

.sf .sf-like:hover,
.sf .sf-like.is-on {
	color: var(--ocean);
}

.sf .sf-like.is-on svg {
	fill: rgba(30, 136, 207, 0.18);
}

.sf .sf-like.is-bump {
	transform: scale(1.15);
}

/* В сетке: слева от сердечка, в верхнем правом углу фото. */
.sf .sf-like--card {
	position: absolute;
	top: 10px;
	right: 52px;
	z-index: 3;
	height: 36px;
	min-width: 36px;
	font-size: 0.8rem;
}

.sf .sf-like--card[data-count="0"],
.sf .sf-like--card:not([data-count]) {
	width: 36px;
}

.sf .sf-like--card svg {
	width: 18px;
	height: 18px;
}

/* На странице товара — рядом с сердечком в шапке описания. */
.sf .sf-like--single {
	position: absolute;
	top: 0;
	right: 48px;
}

.sf .sf-fav--single + .product_title,
.sf div.product .summary .product_title {
	padding-right: 120px;
}

@media (max-width: 600px) {
	.sf div.product .summary .product_title {
		padding-right: 0;
		padding-top: 44px;
	}
}

/* Крошки в шапке описания не заходят под кнопки лайка и избранного. */
.sf div.product .summary .woocommerce-breadcrumb,
.sf.woocommerce div.product .summary .woocommerce-breadcrumb {
	padding-right: 120px;
}

@media (max-width: 600px) {
	.sf div.product .summary .woocommerce-breadcrumb,
	.sf.woocommerce div.product .summary .woocommerce-breadcrumb {
		padding-right: 100px;
		min-height: 40px;
	}

	.sf div.product .summary .product_title {
		padding-top: 0;
	}

	/* Узкая карточка: лайк под сердечком, чтобы не закрывать бейджи. */
	.sf .sf-like--card {
		top: 52px;
		right: 10px;
	}
}

/* -------------------------------------------------------------------------
   12. Мобильное меню: пункт с подменю («Покупателям») свёрнут, раскрывается по нажатию
   ---------------------------------------------------------------------- */

.sf .sf-drawer__nav > .menu-item-has-children > a {
	position: relative;
	padding-right: 44px;
}

.sf .sf-drawer__nav > .menu-item-has-children > a::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 18px;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.sf .sf-drawer__nav > .menu-item-has-children.is-open > a::after {
	margin-top: -2px;
	transform: rotate(-135deg);
}

/* Пункт — сетка из двух строк: ссылка и подменю; вторая строка свёрнута до 0fr
   и плавно растёт до 1fr без фиксированной высоты. */
.sf .sf-drawer__nav > .menu-item-has-children {
	display: grid;
	grid-template-rows: auto 0fr;
	transition: grid-template-rows 0.2s ease;
}

.sf .sf-drawer__nav > .menu-item-has-children > .sub-menu {
	display: block;
	min-height: 0;
	margin: 0 0 0 16px;
	overflow: hidden;
}

.sf .sf-drawer__nav > .menu-item-has-children.is-open {
	grid-template-rows: auto 1fr;
}

.sf .sf-drawer__nav > .menu-item-has-children.is-open > .sub-menu {
	margin-bottom: 4px;
}

.sf .sf-drawer__nav .sub-menu a {
	padding: 10px 12px;
	font-weight: 500;
	font-size: 0.95rem;
	color: var(--muted);
}

/* -------------------------------------------------------------------------
   13. Переключатель уведомлений в кабинете («Избранное»)
   ---------------------------------------------------------------------- */

.sf .sf-notify-toggle {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	margin: 0 0 18px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--frost);
}

.sf .sf-notify-toggle .sf-switch {
	margin: 0;
}

.sf .sf-notify-toggle__hint {
	flex: 1 1 260px;
	font-size: 0.85rem;
	color: var(--muted);
}

/* Переключатель в кабинете: те же стили, что у «Только в наличии» в фильтрах
   (filters.css грузится только в каталоге). Дорожка слева от подписи. */
.sf .sf-notify-toggle .sf-switch {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	cursor: pointer;
	user-select: none;
	font-weight: 600;
	color: var(--ink);
}

.sf .sf-notify-toggle .sf-switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	clip: rect(0 0 0 0);
	overflow: hidden;
}

.sf .sf-notify-toggle .sf-switch__track {
	position: relative;
	flex: 0 0 38px;
	width: 38px;
	height: 22px;
	border-radius: 11px;
	background: var(--line);
	transition: background 0.15s;
}

.sf .sf-notify-toggle .sf-switch__track::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--paper);
	box-shadow: 0 1px 3px rgba(var(--ink-rgb), 0.3);
	transition: transform 0.15s;
}

.sf .sf-notify-toggle .sf-switch input:checked + .sf-switch__track {
	background: var(--sea);
}

.sf .sf-notify-toggle .sf-switch input:checked + .sf-switch__track::after {
	transform: translateX(16px);
}

.sf .sf-notify-toggle .sf-switch input:focus-visible + .sf-switch__track {
	box-shadow: 0 0 0 3px rgba(var(--ocean-rgb), 0.3);
}

/* Избранное в кабинете: колонка контента уже — три карточки в ряд, чтобы
   бейджи и кнопки лайка/избранного не наезжали друг на друга. */
@media (min-width: 783px) {
	.sf.woocommerce-account .sf-favorites ul.products,
	.sf.woocommerce-account .sf-favorites .woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
