/*
Theme Name: Diesel Stock
Template: storefront
Description: Тема магазина Diesel Stock поверх Storefront: шапка с широким поиском по номеру, категории, тёмный подвал (раскладка по образцу привычных покупателю площадок запчастей, свои цвета — серый и красный «Дизель»). Саша, 30.11.2026.
Version: 0.1
Text Domain: dieselstock
*/

:root {
	--ds-red: #d7141a;
	--ds-red-dark: #b00f14;
	--ds-ink: #24282d;
	--ds-gray: #5d636b;
	--ds-line: #e3e6ea;
	--ds-bg: #f4f5f7;
	--ds-dark: #2b2f35;
}

body { background: #fff; color: var(--ds-ink); font-family: "Roboto", "Segoe UI", Arial, sans-serif; }
a { color: var(--ds-ink); }
a:hover { color: var(--ds-red); }
.col-full { max-width: 1320px; }

/* ---------- верхняя строка ---------- */
.ds-topbar { background: var(--ds-bg); border-bottom: 1px solid var(--ds-line); font-size: 13px; }
.ds-topbar .col-full { display: flex; justify-content: flex-end; gap: 22px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.ds-topbar a { color: var(--ds-gray); text-decoration: none; }
.ds-topbar a:hover { color: var(--ds-red); }

/* ---------- шапка ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--ds-line); padding: 0 !important; margin-bottom: 0 !important; }
.ds-header { display: flex; align-items: center; gap: 28px; padding: 18px 0; }
.ds-logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1.05; flex: 0 0 auto; }
.ds-logo b { font-size: 28px; font-weight: 900; letter-spacing: .02em; color: var(--ds-ink); }
.ds-logo b span { color: var(--ds-red); }
.ds-logo small { font-size: 12px; color: var(--ds-gray); margin-top: 3px; }
.ds-search { flex: 1 1 auto; display: flex; }
.ds-search input[type=search] { flex: 1; height: 48px; border: 2px solid var(--ds-line); border-right: 0; border-radius: 10px 0 0 10px; padding: 0 16px; font-size: 16px; background: var(--ds-bg); box-shadow: none; }
.ds-search input[type=search]:focus { border-color: var(--ds-red); background: #fff; outline: none; }
.ds-search button { height: 48px; border: 0; border-radius: 0 10px 10px 0; background: var(--ds-red); color: #fff; padding: 0 26px; font-weight: 600; font-size: 15px; }
.ds-search button:hover { background: var(--ds-red-dark); }
.ds-icons { display: flex; gap: 22px; flex: 0 0 auto; }
.ds-icons a { display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--ds-gray); text-decoration: none; position: relative; }
.ds-icons a:hover { color: var(--ds-red); }
.ds-icons svg { width: 24px; height: 24px; margin-bottom: 3px; }
.ds-cart-count { position: absolute; top: -6px; right: -8px; background: var(--ds-red); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 6px; line-height: 18px; }

/* ---------- строка разделов ---------- */
.ds-nav { border-bottom: 1px solid var(--ds-line); background: #fff; }
.ds-nav .col-full { display: flex; align-items: center; gap: 24px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.ds-allcats { position: relative; }
.ds-allcats > button { background: var(--ds-ink); color: #fff; border: 0; border-radius: 8px; padding: 8px 16px; font-size: 14px; font-weight: 600; }
.ds-allcats > button:hover, .ds-allcats:focus-within > button { background: var(--ds-red); }
.ds-allcats ul { display: none; position: absolute; z-index: 999; top: 100%; left: 0; min-width: 280px; margin: 6px 0 0; padding: 8px 0; list-style: none; background: #fff; border: 1px solid var(--ds-line); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.ds-allcats:hover ul, .ds-allcats:focus-within ul { display: block; }
.ds-allcats li a { display: flex; justify-content: space-between; padding: 8px 18px; text-decoration: none; font-size: 14px; }
.ds-allcats li a:hover { background: var(--ds-bg); }
.ds-allcats li small { color: var(--ds-gray); }
.ds-nav a.ds-navlink { font-size: 14px; text-decoration: none; color: var(--ds-ink); }
.ds-nav a.ds-navlink:hover { color: var(--ds-red); }

/* Storefront: своё вместо родного */
.site-branding, .storefront-primary-navigation, .site-header .site-search, .site-header-cart, .storefront-handheld-footer-bar { display: none !important; }
.storefront-breadcrumb { margin-bottom: 1.5em; }

/* ---------- главная ---------- */
.ds-hero { background: linear-gradient(120deg, var(--ds-dark) 0%, #3d434b 60%, #4a5059 100%); color: #fff; border-radius: 16px; padding: 46px 48px; margin: 26px 0 34px; }
.ds-hero h1 { color: #fff; font-size: 34px; font-weight: 800; margin: 0 0 10px; letter-spacing: -.01em; }
.ds-hero p { color: #d7dbe0; font-size: 17px; margin: 0 0 24px; max-width: 760px; }
.ds-hero .ds-search { max-width: 860px; }
.ds-hero .ds-search input[type=search] { background: #fff; border-color: #fff; height: 56px; font-size: 17px; }
.ds-hero .ds-search button { height: 56px; }
.ds-hero-hints { margin-top: 12px; font-size: 13px; color: #b9bfc6; }
.ds-hero-hints a { color: #fff; border-bottom: 1px dashed rgba(255,255,255,.5); text-decoration: none; margin-right: 10px; }

.ds-section-title { font-size: 24px; font-weight: 800; margin: 0 0 16px; }
.ds-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 40px; }
.ds-cat { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--ds-bg); border: 1px solid var(--ds-line); border-radius: 12px; padding: 16px 16px; min-height: 92px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ds-cat:hover { border-color: var(--ds-red); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.ds-cat b { display: block; font-size: 15px; font-weight: 700; color: var(--ds-ink); }
.ds-cat small { color: var(--ds-gray); font-size: 12px; }
.ds-cat img { width: 64px; height: 64px; object-fit: contain; mix-blend-mode: multiply; flex: 0 0 64px; }

.ds-brands { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.ds-brands a { border: 1px solid var(--ds-line); border-radius: 22px; padding: 7px 16px; font-size: 14px; font-weight: 600; text-decoration: none; }
.ds-brands a:hover { border-color: var(--ds-red); color: var(--ds-red); }

.ds-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 40px; }
.ds-why div { border-left: 3px solid var(--ds-red); padding: 4px 0 4px 14px; }
.ds-why b { display: block; font-size: 16px; margin-bottom: 4px; }
.ds-why span { color: var(--ds-gray); font-size: 14px; }

.ds-about { background: var(--ds-bg); border-radius: 16px; padding: 30px 34px; margin-bottom: 40px; }
.ds-about h2 { font-size: 22px; margin: 0 0 12px; }
.ds-about ul { margin: 0 0 0 1.2em; }
.ds-about li { margin-bottom: 4px; }

/* ---------- подвал ---------- */
.site-footer { background: var(--ds-dark) !important; color: #c9ced4 !important; padding: 0 !important; }
.ds-footer-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding: 34px 0 26px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.ds-footer-perks b { color: #fff; display: block; margin-bottom: 4px; }
.ds-footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 24px; padding: 30px 0; font-size: 14px; }
.ds-footer-cols h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.ds-footer-cols ul { list-style: none; margin: 0; }
.ds-footer-cols li { margin-bottom: 7px; }
.ds-footer-cols a { color: #c9ced4; text-decoration: none; }
.ds-footer-cols a:hover { color: #fff; }
.ds-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 16px 0 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #9aa1a9; }
.site-footer .site-info { display: none; }

/* ---------- узкий экран ---------- */
@media (max-width: 900px) {
	.ds-header { flex-wrap: wrap; gap: 14px; padding: 12px 0; }
	.ds-search { order: 3; flex-basis: 100%; }
	.ds-icons { margin-left: auto; }
	.ds-hero { padding: 28px 22px; border-radius: 12px; }
	.ds-hero h1 { font-size: 24px; }
	.ds-footer-cols { grid-template-columns: 1fr 1fr; }
	.ds-topbar .col-full { justify-content: center; gap: 14px; }
}
