/* Началната страница е отделена от заварените продуктови шаблони. */
body.sld-store { background: var(--sld-background); color: var(--sld-ink); }
.sld-store .wrapper { background: var(--sld-background); }
.sld-store .sld-hero-copy p { color: var(--sld-white); }
.sld-store .header__link.first-class { color: var(--sld-white); }
.sld-store a { color: inherit; }
.sld-store a:focus-visible, .sld-store button:focus-visible, .sld-store input:focus-visible { outline: 3px solid var(--sld-orange); outline-offset: 4px; }
.sld-store .header { position: relative; box-shadow: none; }
.sld-store .header .container, .sld-store .header__body > .container { width: calc(100% - 64px); max-width: 1500px; margin: auto; }
.sld-store .top-header__inner { height: 94px; gap: 24px; margin: 0; }
.sld-store .header__logo { flex: 0 0 230px; padding: 0; margin: 0; }
.sld-store .header__logo img { width: 230px; height: auto; }
.sld-store .header__contacts { flex-shrink: 0; }
.sld-store .contacts-header__number { font-size: var(--sld-text-lg); }
.sld-store .header__contacts .sec-phone { display: none; }
.sld-store .header__user, .sld-store .header__wishlist, .sld-store .header__cart { flex-shrink: 0; margin: 0; }
.sld-store .header__body { padding: 0; background: var(--sld-navy); }
.sld-store .header__body-inner { padding: 0; }
.sld-store .header__list { min-height: 52px; align-items: center; gap: 22px; }
.sld-store .header__link-wrapper { margin: 0; }
.sld-store .header__link { min-height: 52px; font-size: var(--sld-text-base); }
.sld-store .header__list a { font-size: var(--sld-text-base); }
.sld-store .header__link-wrapper.white { background: transparent; color: var(--sld-white); }
.sld-store .header__list-icons svg { fill: var(--sld-white); }
.sld-store .sld-search { width: 100%; }
/* Падащият панел се подравнява към търсачката, а не към целия хедър. */
.sld-store .sld-search:not(.is-overlay) { position: relative; }
.sld-store .top-header__inner > .hidden-xs { min-width: 0; }
.sld-store .sld-search input[type="search"] { background: var(--sld-background); border: 1px solid var(--sld-line); border-radius: var(--sld-radius-pill); color: var(--sld-ink); font-size: var(--sld-text-base); }
.sld-home-main { width: calc(100% - 64px); max-width: 1500px; margin: 20px auto 64px; }
.sld-home-intro { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; }
.sld-home-categories { padding: 8px 16px; border: 1px solid var(--sld-line); border-radius: var(--sld-radius); background: var(--sld-white); }
.sld-store .sld-categories-title { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--sld-line); color: var(--sld-ink); font-size: var(--sld-text-lg); font-weight: 700; text-transform: none; }
.sld-home-categories a, .sld-home-category > summary { min-height: 56px; padding: 12px 0; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--sld-line); font-size: var(--sld-text-sm); font-weight: 600; line-height: 1.4; }
.sld-home-categories a:last-child { border-bottom: 0; }
.sld-home-categories a:hover { color: var(--sld-orange-hover); }
.sld-home-categories svg { width: 24px; height: 24px; flex-shrink: 0; fill: var(--sld-navy); }
.sld-category-arrow { margin-left: auto; color: var(--sld-muted); font-size: var(--sld-text-lg); }
.sld-home-feature { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sld-home-hero { position: relative; isolation: isolate; display: flex; flex: 1; min-height: 330px; overflow: hidden; border-radius: var(--sld-radius); background: var(--sld-navy); color: var(--sld-white); }
.sld-hero-image { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: center 60%; z-index: -2; }
.sld-home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sld-hero-shade); }
.sld-hero-copy { padding: 32px 36px; width: 65%; align-self: center; }
.sld-hero-eyebrow { font-size: var(--sld-text-xs); letter-spacing: .09em; text-transform: uppercase; margin: 0 0 14px; }
.sld-store .sld-hero-copy h1 { margin: 0 0 16px; color: var(--sld-white); font-size: var(--sld-text-hero); font-weight: 750; line-height: 1.07; letter-spacing: -.035em; }
.sld-hero-copy > p:not(.sld-hero-eyebrow) { max-width: 350px; margin: 0 0 24px; font-size: var(--sld-text-lg); line-height: 1.45; }
.sld-store .sld-hero-button { display: inline-flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--sld-radius-small); background: var(--sld-orange); color: var(--sld-ink); font-weight: 700; font-size: var(--sld-text-base); line-height: 1.3; }
.sld-store .sld-hero-button:hover { background: var(--sld-white); }
.sld-home-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 16px 0; background: var(--sld-white); border: 1px solid var(--sld-line); border-radius: var(--sld-radius); }
.sld-home-services a { display: flex; align-items: center; gap: 12px; padding: 0 20px; border-right: 1px solid var(--sld-line); }
.sld-home-services a:last-child { border: 0; }
.sld-home-services svg { width: 28px; height: 28px; flex-shrink: 0; fill: var(--sld-navy); }
.sld-home-services strong { display: block; margin-bottom: 5px; font-size: var(--sld-text-sm); }
.sld-home-services small { display: block; font-size: var(--sld-text-xs); color: var(--sld-muted); line-height: 1.4; }
.sld-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 30px 0 18px; }
.sld-store .sld-section-heading h2 { border: 0; padding: 0; margin: 0; font-size: var(--sld-text-heading); text-transform: none; color: var(--sld-ink); letter-spacing: -.025em; }
.sld-section-heading > a { font-size: var(--sld-text-sm); font-weight: 600; white-space: nowrap; }
.sld-product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0; }
.sld-store .sld-home-product { min-width: 0; position: relative; display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--sld-line); border-radius: var(--sld-radius); background: var(--sld-white); transition: box-shadow .2s, border-color .2s; }
.sld-home-product:hover { box-shadow: var(--sld-shadow); border-color: var(--sld-orange); }
.sld-product-image { display: block; margin: 12px 0 16px; }
.sld-product-image img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.sld-store .sld-product-title { font-size: var(--sld-text-base); line-height: 1.45; color: var(--sld-ink); border: 0; text-transform: none; margin: 0 0 12px; padding: 0; font-weight: 600; }
/* Два реда за всяко заглавие, за да се подравняват продуктовите карти. */
.sld-store .sld-product-title { height: 2.9em; overflow: hidden; }
.sld-store .sld-product-title > a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.sld-product-title a:hover { color: var(--sld-orange-hover); }
.sld-product-stock { display: flex; align-items: center; gap: 6px; color: var(--sld-green); margin-top: auto; font-size: var(--sld-text-sm); }
.sld-product-stock::before { content: ""; width: 7px; height: 7px; border-radius: var(--sld-radius-pill); background: currentColor; }
/* Цената отляво, копчето за количката отдясно на реда - както е и на другите магазини. */
.sld-product-bottom { min-height: 72px; margin-top: 12px; display: flex; justify-content: space-between; gap: 8px; align-items: end; flex-wrap: wrap; }
.sld-product-price { display: flex; flex-direction: column; gap: 5px; }
.sld-product-price strong { font-size: var(--sld-text-card-price); letter-spacing: -.035em; line-height: 1.1; }
.sld-product-price small { font-size: var(--sld-text-sm); color: var(--sld-muted); }
/* Старата цена е задраскана, но получер - иначе се губи до новата. */
.sld-product-price del { font-size: var(--sld-text-sm); font-weight: 700; color: var(--sld-muted); }
/* Намалената цена е червена, за да личи, че е намаление. */
.sld-product-price:has(del) strong { color: var(--sld-sale); }
.sld-home-product .sld-product-bottom .button, .sld-home-product .sld-product-options { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 8px; margin: 0; border-radius: var(--sld-radius-small); background: var(--sld-navy); color: var(--sld-white); flex-shrink: 0; }
.sld-home-product .sld-product-bottom .button:hover, .sld-home-product .sld-product-options:hover { background: var(--sld-orange-hover); }
.sld-product-bottom svg { width: 26px; height: 26px; fill: currentColor; }
.sld-product-labels { position: absolute; top: 12px; left: 12px; max-width: calc(100% - 60px); display: flex; flex-direction: column; align-items: start; gap: 4px; }
.sld-product-labels span { padding: 5px 8px; border-radius: var(--sld-radius-small); background: var(--sld-orange); color: var(--sld-ink); font-size: var(--sld-text-xs); }
@media (min-width: 951px) {
	/* Категориите вече са в лявата колона; горният дубликат остава само за мобилното меню. */
	.sld-home .header__list > li:first-child { display: none; }
}
@media (max-width: 1250px) and (min-width: 951px) {
	.sld-store .top-header__inner { gap: 16px; }
	.sld-store .header__logo { flex-basis: 190px; }
	.sld-store .header__logo img { width: 190px; }
	.sld-store .contacts-header__number { font-size: var(--sld-text-base); }
	.sld-store .header__list { gap: 6px; }
	.sld-home-intro { grid-template-columns: 240px minmax(0, 1fr); }
	.sld-hero-copy { width: 75%; padding: 28px; }
	.sld-home-services a { padding: 0 12px; gap: 8px; }
	.sld-home-services svg { display: none; }
	.sld-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 950px) {
	.sld-store .header .container, .sld-store .header__body > .container { width: 100%; }
	.sld-store .top-header__inner { height: 70px; padding: 0 16px; gap: 16px; }
	.sld-store .header__logo { flex: 1 1 auto; min-width: 0; }
	.sld-store .header__logo img { width: 190px; max-width: 100%; }
	.sld-store .header__contacts { display: none; }
	.sld-store .header__body { padding: 0; }
	.sld-store .mobile-search { margin: 0; padding: 10px 16px; width: 100%; }
	.sld-store .header__list { min-height: 0; }
	.sld-home-main { width: calc(100% - 32px); margin-top: 16px; }
	.sld-home-intro { display: block; }
	.sld-home-categories { display: none; }
	.sld-hero-copy { width: 65%; padding: 32px; }
	.sld-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
	.sld-home-services a { padding: 0 14px; }
	.sld-home-services svg { display: none; }
}
@media (max-width: 550px) {
	.sld-store .top-header__inner { height: 62px; gap: 12px; padding: 0 12px; }
	.sld-store .header__logo img { width: 165px; }
	.sld-store .header__user { display: none; }
	.sld-home-main { width: calc(100% - 24px); margin-top: 12px; }
	.sld-home-hero { min-height: 390px; align-items: start; }
	.sld-hero-copy { width: 100%; padding: 26px 22px 120px; align-self: start; }
	.sld-hero-copy > p:not(.sld-hero-eyebrow) { max-width: 260px; font-size: var(--sld-text-base); margin-bottom: 20px; }
	.sld-hero-image { object-position: 72% bottom; }
	.sld-hero-eyebrow { font-size: var(--sld-text-xs); }
	.sld-store .sld-hero-button { padding: 14px; font-size: var(--sld-text-sm); }
	.sld-home-services { grid-template-columns: 1fr; padding: 4px 16px; }
	.sld-home-services a { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--sld-line); }
	.sld-home-services svg { display: block; width: 24px; height: 24px; }
	.sld-home-services strong { margin-bottom: 3px; }
	.sld-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.sld-store .sld-home-product { padding: 12px; }
	.sld-store .sld-product-title { font-size: var(--sld-text-sm); }
	.sld-product-stock, .sld-product-price small { font-size: var(--sld-text-xs); }
	.sld-section-heading { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.sld-store .sld-home-product { transition: none; }
}
/* Търсенето на телефон покрива хедъра с непрозрачен, самостоятелно скролируем слой. */
.sld-store .sld-search.is-overlay { position: fixed; inset: 0; z-index: 1200; width: 100%; height: 100dvh; max-width: none; padding: 10px 12px 0 58px; background: var(--sld-white); overflow-y: auto; }
.sld-store .sld-search.is-overlay .search__item { width: 100%; max-width: none; }
.sld-store .sld-search.is-overlay .sld-search__back { left: -48px; top: 0; background: var(--sld-background); color: var(--sld-ink); }
.sld-store .sld-search.is-overlay .sld-search__clear { position: absolute; left: auto; right: 40px; top: 0; width: 32px; height: 40px; background: transparent; color: var(--sld-muted); }
.sld-store .sld-search.is-overlay input[type="search"] { padding-right: 78px; }
.sld-store .sld-search.is-overlay .sld-search-panel { width: calc(100% + 46px); margin-left: -46px; }

.sld-store .sld-search.is-overlay .sld-search__back svg { transform: rotate(180deg); }

/* Подкатегориите са достъпни и без JavaScript чрез details/summary. */
.sld-home-category { position: relative; }
.sld-home-category > summary { cursor: pointer; list-style: none; }
.sld-home-category > summary::-webkit-details-marker { display: none; }
.sld-home-category > summary:focus-visible { outline: 3px solid var(--sld-orange); outline-offset: 2px; }
.sld-home-category[open] > summary { color: var(--sld-orange-hover); }
.sld-category-panel { position: absolute; z-index: 20; top: 0; left: 100%; width: 340px; padding-left: 24px; }
.sld-category-panel-inner { padding: 8px 20px; border: 1px solid var(--sld-line); border-radius: var(--sld-radius); background: var(--sld-white); box-shadow: var(--sld-shadow); }
.sld-category-panel-inner a { min-height: 42px; padding: 10px 0; font-weight: 400; }

/* Хедър: търсенето заема свободното място, а действията имат еднакви размери. */
.sld-store .top-header__inner { gap: 20px; height: 88px; }
.sld-store .top-header__inner > .hidden-xs { flex: 1 1 0; }
.sld-store .header-search { width: 100%; margin: 0; padding: 0; }
.sld-store .header-search .search__item { max-width: none; height: 46px; }
.sld-store .header-search .search__item input::placeholder { text-transform: none; }
.sld-store .header-search .search__btn-wrapper button { left: auto; right: 4px; top: 3px; }
.sld-store .header-search .sld-search__clear { left: auto; right: 44px; top: 3px; }
.sld-store .header__contacts { margin-left: 0; }
.sld-store .header__contacts > a { display: flex; align-items: center; gap: 8px; }
.sld-store .header__user > a, .sld-store .header__wishlist > a, .sld-store .header__cart > a { display: flex; align-items: center; justify-content: center; width: 40px; height: 44px; border-radius: var(--sld-radius-small); }
.sld-store .header__user > a:hover, .sld-store .header__wishlist > a:hover, .sld-store .header__cart > a:hover { background: var(--sld-background); }
.sld-store .header__user > a > svg, .sld-store .header__wishlist > a > svg, .sld-store .header__cart > a > svg { position: static; width: 28px; height: 28px; }
@media (max-width: 1250px) and (min-width: 951px) {
	.sld-store .top-header__inner { gap: 12px; }
}
@media (max-width: 950px) {
	.sld-store .top-header__inner { height: 70px; gap: 12px; }
	.sld-store .header__burger { flex-shrink: 0; background: transparent; cursor: pointer; }
}
@media (max-width: 550px) {
	.sld-store .top-header__inner { height: 64px; gap: 8px; }
	.sld-store .header__logo img { width: 148px; }
	.sld-store .header__user { display: block; }
	.sld-store .header__user > a, .sld-store .header__wishlist > a, .sld-store .header__cart > a { width: 32px; height: 40px; }
	.sld-store .header__user > a > svg, .sld-store .header__wishlist > a > svg, .sld-store .header__cart > a > svg { width: 25px; height: 25px; }
	.sld-store .mobile-search { padding: 10px 12px; }
}
/* Популярните търсения са отделни бутони, без позиционирането на лупата. */
.sld-store .sld-search-panel .sld-search-chip { min-height: 40px; border-color: var(--sld-line); border-radius: var(--sld-radius-pill); background: var(--sld-background); color: var(--sld-ink); font-size: var(--sld-text-sm); }
.sld-store .sld-search-panel .sld-search-chip:hover, .sld-store .sld-search-panel .sld-search-chip.is-active { border-color: var(--sld-orange); background: var(--sld-white); }
.sld-store .sld-search-chip svg { stroke: var(--sld-orange); }
