/* SHOPSTYLE — главная (inc/home.php, шорткод [ss_home]): поиск как в приложении маркетплейса, баннер «дешевле, чем на WB»,
   лента «почему здесь», разделы с фото и сетки по моделям. Подключается только на странице «Главная» (inc/enqueue.php).
   26.10.2026 (владелец: «супер стильный фешн сайт», «нативно понятно, как в приложении WB»): телефон — первым делом. */

/* ---------- Поиск (только телефон: на десктопе поиск в шапке) ---------- */
.ss-home-search { display: none; }
@media (max-width: 1024px) {
	.ss-home-search { display: block; margin: 4px 0 14px; }
	.ss-home-search input[type="search"] {
		width: 100%; height: 44px; padding: 0 16px 0 44px; border: 0; border-radius: 12px;
		background: var(--ss-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B8A93' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 14px center / 20px no-repeat;
		font-size: 15px; color: var(--ss-text);
	}
}

/* ---------- Баннер ---------- */
.ss-hero-title, .ss-home-title, .ss-home-group-title { text-transform: none; letter-spacing: 0; }
.ss-hero { display: grid; gap: 0; margin: 0 0 18px; }
.ss-hero-kicker { margin: 0 0 12px; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ss-muted); }
.ss-hero-title { margin: 0 0 14px; font-family: var(--ss-display); font-size: 34px; font-weight: 500; line-height: 1.02; color: var(--ss-text); }
.ss-hero-title em { display: block; font-style: italic; color: var(--ss-accent); }
.ss-hero-lead { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--ss-text); max-width: 32em; }
.ss-hero-save { margin: 0 0 20px; font-size: 15px; font-weight: 500; color: var(--ss-text); }
.ss-hero-save .ss-wb-badge { margin: 0 8px 0 0; font-size: 14px; padding: 4px 10px; }
.ss-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 0; }
.ss-hero-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 30px; border-radius: 14px;
	background: linear-gradient(90deg, var(--ss-accent), var(--ss-accent-2)); color: #fff; font-size: 16px; font-weight: 500; text-decoration: none; box-shadow: 0 8px 22px rgba(142, 45, 226, .28); }
.ss-hero-btn:hover { color: #fff; filter: brightness(1.06); }
.ss-hero-link { color: var(--ss-text); text-decoration: underline; text-underline-offset: 4px; }
.ss-hero-photos { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.ss-hero-photo { display: block; overflow: hidden; border-radius: var(--ss-radius); }
.ss-hero-photo:first-child { grid-row: span 2; }
.ss-hero-photo img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s; }
.ss-hero-photo:not(:first-child) img { aspect-ratio: auto; }
.ss-hero-photo:hover img { transform: scale(1.03); }

/* телефон: промо-карточка как баннер в приложении — фото, снизу затемнение, на нём текст и кнопка */
@media (max-width: 1024px) {
	.ss-hero { position: relative; overflow: hidden; border-radius: 18px; }
	.ss-hero-photos { display: block; }
	.ss-hero-photo { border-radius: 0; }
	.ss-hero-photo:not(:first-child) { display: none; }
	.ss-hero-photo:first-child img { aspect-ratio: 4 / 5; }
	.ss-hero-text { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 90px 18px 18px;
		background: linear-gradient(180deg, rgba(20, 16, 24, 0) 0%, rgba(20, 16, 24, .72) 55%, rgba(20, 16, 24, .86) 100%); color: #fff; }
	.ss-hero-kicker, .ss-hero-lead { display: none; }
	.ss-hero-title { font-size: 34px; color: #fff; margin-bottom: 10px; }
	.ss-hero-title em { color: #F3C5FF; }
	.ss-hero-save { margin-bottom: 14px; color: #fff; font-size: 14px; }
	.ss-hero-actions { gap: 10px 18px; }
	.ss-hero-btn { min-height: 46px; padding: 0 24px; font-size: 15px; }
	.ss-hero-link { color: #fff; font-size: 14px; }
}
@media (min-width: 1025px) {
	.ss-hero { grid-template-columns: .95fr 1.05fr; align-items: center; gap: 56px; margin: 18px 0 30px; }
	.ss-hero-title { font-size: 64px; }
	.ss-hero-lead { font-size: 17px; }
}

/* ---------- Магазин на WB: рейтинг, продажи, годы, «Честный знак» (inc/home.php, shopstyle_wb_shop_html) ---------- */
.ss-shop { display: grid; gap: 8px; margin: 0 0 30px; padding: 10px; border-radius: 18px; background: var(--ss-surface); }
.ss-shop-head { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #fff; color: var(--ss-text); text-decoration: none; }
.ss-shop-head b { font-size: 16px; font-weight: 600; }
.ss-shop-head span { font-size: 14px; color: var(--ss-muted); }
.ss-shop-head i { font-style: normal; color: #FF9F0A; }
.ss-shop-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.ss-shop-stats li { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px; border-radius: 14px; background: #fff; }
.ss-shop-stats b { font-size: 15px; font-weight: 700; color: var(--ss-text); white-space: nowrap; }
.ss-shop-stats span { font-size: 12px; line-height: 1.3; color: var(--ss-muted); }
.ss-shop-cz b::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; border-radius: 3px;
	background: #F6E400 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-5' fill='none' stroke='%231A1A1F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 420px) { .ss-shop-stats b { font-size: 14px; } .ss-shop-stats li { padding: 10px; } .ss-shop-cz b { white-space: normal; } }
@media (min-width: 1025px) {
	.ss-shop { grid-template-columns: 1fr 2.2fr; align-items: stretch; margin-bottom: 48px; padding: 12px; }
	.ss-shop-head { padding: 16px 22px; } .ss-shop-head b { font-size: 20px; }
	.ss-shop-stats li { padding: 16px 20px; } .ss-shop-stats b { font-size: 19px; } .ss-shop-stats span { font-size: 13px; }
}

/* ---------- Каталог: разделы с фото, сетки по моделям ---------- */
.ss-home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.ss-home-catalog { scroll-margin-top: 90px; }
.ss-home-title { margin: 0; font-family: var(--ss-display); font-size: 34px; font-weight: 500; line-height: 1; }
.ss-home-all { font-size: 14px; color: var(--ss-accent); white-space: nowrap; }
.ss-chips { display: flex; gap: 8px; margin: 0 0 24px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ss-chips::-webkit-scrollbar { display: none; }
.ss-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 16px 4px 4px; border-radius: 22px;
	background: var(--ss-surface); color: var(--ss-text); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.ss-chip:first-child { padding-left: 16px; }
.ss-chip-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: top; }
.ss-chip span { color: var(--ss-muted); font-weight: 400; }
.ss-chip:hover { color: var(--ss-accent); }
.ss-chip.is-active { background: var(--ss-text); color: #fff; }
.ss-chip.is-active span { color: rgba(255, 255, 255, .7); }
.ss-home-group { margin: 0 0 36px; scroll-margin-top: 90px; }
.ss-home-group[hidden] { display: none; }
.ss-home-group-title { margin: 0 0 14px; font-family: var(--ss-display); font-size: 26px; font-weight: 500; }
.ss-home-group-title span { margin-left: 6px; font-family: var(--wd-text-font); font-size: 14px; font-weight: 400; color: var(--ss-muted); }
/* шорткод [products] обёрнут в .woocommerce — без лишнего нижнего отступа темы */
.ss-home-group .woocommerce { margin-bottom: 0; }
@media (min-width: 1025px) { .ss-home-title { font-size: 46px; } .ss-home-group-title { font-size: 32px; } }

/* ---------- Fashion edit: выбранный вариант 3, четыре баннера преимуществ ---------- */
.ss-direct { --ss-direct-ink: #232126; margin: 48px 0 56px; color: var(--ss-direct-ink); scroll-margin-top: 94px; }
.ss-direct-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.ss-direct-eyebrow { margin: 0 0 11px; font-size: 10px; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; }
.ss-direct-heading h2 { margin: 0; font-family: Jost, sans-serif; font-size: clamp(36px, 3.5vw, 49px); font-weight: 600; line-height: 1.02; letter-spacing: -.055em; text-transform: none; color: inherit; }
.ss-direct-heading h2 em { font-style: normal; font-weight: 600; color: #7146b4; }
.ss-direct-intro { flex: 0 0 180px; margin: 0; font-size: 12px; line-height: 1.55; color: #74695f; }
.ss-direct-row-heading { display: none; }
.ss-direct-controls { display: flex; align-items: center; gap: 12px; }
.ss-direct-controls[hidden] { display: none; }
.ss-direct-controls button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid #ccc3b9; border-radius: 50%; background: transparent; box-shadow: none; color: var(--ss-direct-ink); font-size: 21px; }
.ss-direct-controls button:disabled { opacity: .3; cursor: default; }
.ss-direct-position { min-width: 30px; text-align: center; font-size: 11px; }
.ss-direct-track { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.ss-direct-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 374px; padding: 27px 30px; overflow: hidden; border-radius: 16px; }
.ss-direct-card-copy { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; align-items: flex-start; min-width: 0; }
.ss-direct-kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-size: 9px; line-height: 1.5; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.ss-direct-kicker > span { opacity: .7; }
.ss-direct-card h3 { margin: 0; font-family: Jost, sans-serif; font-size: 36px; font-weight: 600; line-height: 1.05; letter-spacing: -.045em; text-transform: none; color: inherit; }
.ss-direct-card h3 em { font-style: normal; font-weight: 600; }
.ss-direct-card-copy > p:not(.ss-direct-kicker):not(.ss-direct-saving) { max-width: 305px; margin: 14px 0 0; font-size: 13px; line-height: 1.55; }
.ss-direct-cta, .ss-direct-text-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 46px; padding: 12px 0; margin-top: auto; border-top: 1px solid currentColor; color: inherit; font-size: 12px; line-height: 1.5; font-weight: 500; text-decoration: none; }
.ss-direct-cta:hover, .ss-direct-text-link:hover { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.ss-direct-cta > span, .ss-direct-text-link > span { font-size: 23px; line-height: 1; }
.ss-direct-feature { grid-column: span 7; background: #ded4f0; }
.ss-direct-feature-copy { width: 60%; }
.ss-direct-feature-photo { position: absolute; inset: 0 0 0 62%; margin: 0; overflow: hidden; background: #c0b3a4; }
.ss-direct-feature-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 57% 12%; }
.ss-direct-feature-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #ded4f0, transparent 45%); }
.ss-direct-saving { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin: 17px 0 7px; }
.ss-direct-saving > span, .ss-direct-saving > small { font-size: 10px; }
.ss-direct-saving strong { font-family: Jost, sans-serif; font-size: 64px; font-weight: 600; line-height: .85; letter-spacing: -.07em; white-space: nowrap; }
.ss-direct-feature .ss-direct-feature-text { max-width: 290px; font-size: 12px !important; }
.ss-direct-feature .ss-direct-cta { font-size: 11px; }
.ss-direct-package { grid-column: span 5; background: #2c2725; color: #fff; }
.ss-direct-card-photo { position: absolute; inset: 0; overflow: hidden; }
.ss-direct-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 65% 75%; transform: scale(1.6); transform-origin: 50% 70%; }
.ss-direct-card-photo::after { content: ''; position: absolute; inset: 0; background: rgba(37, 30, 26, .73); }
.ss-direct-package h3 { font-size: 32px; }
.ss-direct-package .ss-direct-kicker { color: #ece1d7; }
.ss-direct-package .ss-direct-card-copy > p:not(.ss-direct-kicker) { max-width: 300px; font-size: 12px; }
.ss-direct-package .ss-direct-text-link { border-color: #b1a59d; }
.ss-direct-fit { grid-column: span 5; background: #f0eee9; }
.ss-direct-fit h3 { font-size: 35px; }
.ss-direct-fit h3 em { color: #7146b4; }
.ss-direct-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin: 17px 0 20px; }
.ss-direct-sizes span { padding: 4px 12px; border: 1px solid #c2b6d2; border-radius: 20px; font-size: 11px; }
.ss-direct-delivery { grid-column: span 7; background: #def177; }
.ss-direct-delivery .ss-direct-kicker { margin-bottom: 16px; }
.ss-direct-delivery-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; width: 100%; }
.ss-direct-delivery-top h3 { font-size: 35px; }
.ss-direct-delivery-top strong { font-family: Jost, sans-serif; font-size: 89px; line-height: .8; font-weight: 500; letter-spacing: -.07em; white-space: nowrap; }
.ss-direct-delivery .ss-direct-card-copy > p:not(.ss-direct-kicker) { max-width: 430px; }
.ss-direct-route { display: flex; align-items: center; gap: 14px; width: 100%; margin: 22px 0 20px; font-size: 10px; }
.ss-direct-route i { flex: 1; height: 1px; background: #8d9a4c; }
.ss-direct-route b { font-size: 11px; font-weight: 500; }
.ss-direct a:focus-visible, .ss-direct button:focus-visible, .ss-direct-track:focus-visible { outline: 2px solid #7144ab; outline-offset: 4px; }
@media (min-width: 768px) and (max-width: 1024px) {
	.ss-direct-card { padding: 24px; }
	.ss-direct-card h3 { font-size: 29px; }
	.ss-direct-saving strong { font-size: 48px; }
	.ss-direct-delivery-top { flex-wrap: wrap; }
	.ss-direct-feature-copy { width: 70%; }
}
@media (max-width: 767px) {
	.ss-direct { margin-top: 32px; margin-bottom: 38px; }
	.ss-direct-heading { display: block; margin-bottom: 23px; }
	.ss-direct-eyebrow { margin-bottom: 11px; font-size: 9px; }
	.ss-direct-heading h2 { font-size: 35px; }
	.ss-direct-intro { max-width: 275px; margin-top: 15px; font-size: 12px; }
	.ss-direct-row-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
	.ss-direct-row-heading > p { max-width: 130px; margin: 0; font-size: 10px; line-height: 1.4; color: #74695f; }
	.ss-direct-track { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc(100% - 22px); gap: 12px; overflow-x: auto; padding-bottom: 3px; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
	.ss-direct-track::-webkit-scrollbar { display: none; }
	.ss-direct-card { grid-column: auto; min-height: 440px; padding: 24px; scroll-snap-align: start; scroll-snap-stop: always; }
	.ss-direct-card h3 { font-size: 35px; }
	.ss-direct-feature-copy { width: 76%; }
	.ss-direct-feature h3 { max-width: 215px; font-size: 30px; }
	.ss-direct-feature-photo { left: 56%; }
	.ss-direct-feature .ss-direct-feature-text { max-width: 180px; }
	.ss-direct-saving { gap: 7px; margin-top: 23px; }
	.ss-direct-saving strong { font-size: 52px; }
	.ss-direct-saving small { flex-basis: 100%; }
	.ss-direct-feature .ss-direct-cta { width: 230px; padding-right: 12px; background: #ded4f0; }
	.ss-direct-fit h3 { font-size: 37px; }
	.ss-direct-delivery-top { display: block; }
	.ss-direct-delivery-top h3 { font-size: 33px; }
	.ss-direct-delivery-top strong { display: block; margin-top: 24px; font-size: 94px; }
	.ss-direct-delivery .ss-direct-card-copy > p:not(.ss-direct-kicker) { font-size: 12px; }
	.ss-direct-route { margin-top: 17px; }
}
@media (max-width: 359px) {
	.ss-direct-card { padding: 20px; }
	.ss-direct-heading h2 { font-size: 30px; }
	.ss-direct-card h3 { font-size: 30px; }
	.ss-direct-feature h3 { font-size: 27px; }
	.ss-direct-feature-copy { width: 85%; }
	.ss-direct-saving strong { font-size: 44px; }
	.ss-direct-feature .ss-direct-cta { width: 210px; font-size: 10px; }
	.ss-direct-controls { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.ss-direct *, .ss-direct *::before, .ss-direct *::after { scroll-behavior: auto !important; transition: none !important; }
}
