/* SMITH machine page (single-product.php; Tilen 29 Nov 2026: pictures, films and features first, marketing not sales).
   Loaded only on a machine page with a story (smith-brand.php). Tokens from smith.css (body.smith). */
.smith-pp { background: #fff; color: var(--sm-ink); }
.smith-pp *, .smith-pp *::before, .smith-pp *::after { box-sizing: border-box; }
.smith-pp h1, .smith-pp h2, .smith-pp h3 { margin: 0; }
.sm-kicker--dark { color: #5B646B !important; }

.sp-hero { background: var(--sm-studio); }
.sp-hero__in { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; padding-top: 40px; padding-bottom: 48px; }
.sp-hero__txt { flex: 1 1 420px; min-width: 0; }
.sp-hero__img { flex: 1 1 560px; min-width: 0; display: flex; justify-content: center; }
.sp-hero__img img { width: 100%; max-width: 720px; max-height: 620px; object-fit: contain; mix-blend-mode: multiply; }
/* phone (Tilen, 1 Dec 2026: »uskladi se stran izdelka na mobile«): the machine came after the four figures, below the first
   screen; it now stands right under the claim, the lead and the figures follow (the text block dissolves into the column) */
@media (max-width: 700px) {
	.sp-hero__in { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; padding-top: 24px; padding-bottom: 32px; }
	.sp-hero__txt { display: contents; }
	.sp-hero .sp-crumb { order: 1; } .sp-hero .sp-type { order: 2; } .sp-hero .sp-h1 { order: 3; } .sp-hero .sp-claim { order: 4; }
	.sp-hero__in > .sp-hero__img { order: 5; flex: none; margin: 4px 0 18px; }
	.sp-hero__img img { max-height: 300px; }
	.sp-hero .sp-lead { order: 6; } .sp-hero .sp-nums { order: 7; }
}
.sp-crumb { font-size: 14px; color: #5B646B; margin-bottom: 22px; }
.sp-crumb a { color: #5B646B !important; text-decoration: none; }
.sp-crumb span { color: var(--sm-ink); font-weight: 600; }
.sp-type { margin: 0 0 10px; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sm-red-text); }
.sp-h1 { font: 700 clamp(56px, 7.5vw, 112px)/.9 'Barlow Condensed', sans-serif !important; text-transform: uppercase; letter-spacing: -.01em; color: var(--sm-ink) !important; }
.sp-claim { margin: 14px 0 0; font: 600 clamp(24px, 2.6vw, 34px)/1.15 'Barlow Condensed', sans-serif; text-transform: uppercase; color: var(--sm-ink); }
.sp-lead { margin: 18px 0 0; max-width: 560px; font-size: 19px; line-height: 1.55; color: #3E464D; }
.sp-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: 30px 0 0; padding-top: 24px; border-top: 1px solid #C9CFD4; }
.sp-nums div { display: flex; flex-direction: column-reverse; }
.sp-nums dt { margin-top: 4px; font-size: 14px; color: #5B646B; }
.sp-nums dd { margin: 0; font: 600 40px/1 'Barlow Condensed', sans-serif; color: var(--sm-ink); white-space: nowrap; }
.sp-nums dd span { font-size: 20px; color: #5B646B; }

/* Quote and order (Tilen, 30 Nov 2026: »izboljšaj tudi ta dizajn«): the text on the left, on the right one framed box
   with the price to pay large and the old price small, the stock line, and quantity and button in ONE row of the same
   height (the button used to wrap under the quantity). */
.sp-buy { background: #F5F6F7; border-top: 1px solid #E3E6E8; border-bottom: 1px solid #E3E6E8; }
.sp-buy__in { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.sp-buy__txt { display: flex; flex-direction: column; gap: 6px; flex: 1 1 360px; }
.sp-buy__txt strong { font: 700 26px/1.1 'Barlow Condensed', sans-serif; text-transform: uppercase; color: var(--sm-ink); }
.sp-buy__txt span { font-size: 16px; line-height: 1.5; color: #5B646B; max-width: 560px; }
.sp-buy__form { flex: 0 1 480px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 16px;
	background: #fff; border: 1px solid #E3E6E8; border-top: 3px solid var(--sm-red); padding: 20px 24px 24px; }
.sp-buy__form .price { margin: 0 !important; display: flex; align-items: baseline; gap: 12px; font: 700 40px/1 'Barlow Condensed', sans-serif !important; color: var(--sm-ink) !important; }
.sp-buy__form .price ins { order: -1; text-decoration: none !important; color: var(--sm-ink) !important; }
.sp-buy__form .price del { font: 400 18px/1 'Barlow', sans-serif !important; color: #8A9297 !important; text-decoration: line-through !important; opacity: 1; }
.sp-buy__form .price del bdi, .sp-buy__form .price ins bdi { text-decoration: inherit; }
.sp-buy__form .stock { margin: 0 !important; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.sp-buy__form .stock.in-stock { color: #1C7C3A !important; }
.sp-buy__form .stock.in-stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sp-buy__form form.cart { flex: 1 1 100%; margin: 6px 0 0 !important; display: flex; flex-wrap: nowrap; align-items: stretch; gap: 10px; }
.sp-buy__form form.cart .quantity { flex: 0 0 auto; display: flex; align-items: stretch; height: 52px; margin: 0 !important; }
.sp-buy__form form.cart .quantity input.qty, .sp-buy__form form.cart .quantity button { height: 52px !important; border-radius: 0 !important; }
.sp-buy__form form.cart .single_add_to_cart_button { flex: 1 1 auto; min-height: 52px !important; margin: 0 !important; }
.sp-buy__form #wc-stripe-express-checkout-element { flex: 1 1 100%; }
/* the theme paints this button in the shop's blue with a stronger rule; SMITH's action colour is red */
body.smith .smith-pp form.cart button.single_add_to_cart_button.button,
body.smith .smith-pp form.cart button.single_add_to_cart_button.button.alt {
	background: var(--sm-red) !important; border-color: var(--sm-red) !important; color: #fff !important; border-radius: 0 !important;
	font: 600 16px/1 'Barlow', sans-serif !important; min-height: 50px; padding: 0 24px !important; }
body.smith .smith-pp form.cart button.single_add_to_cart_button.button:hover { background: var(--sm-red-dark) !important; border-color: var(--sm-red-dark) !important; }

.sp-gallery { background: #fff; padding: 48px 0 24px; }
.sp-gallery__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 clamp(16px, 3vw, 40px) 12px; }
.sp-shot { flex: 0 0 min(78vw, 620px); height: clamp(280px, 42vw, 520px); margin: 0; scroll-snap-align: start; background: #fff; border: 1px solid #E3E6E8; display: flex; align-items: center; justify-content: center; }
.sp-shot img { max-width: 92%; max-height: 92%; object-fit: contain; mix-blend-mode: multiply; }
.sp-gallery__track:focus-visible { outline: 2px solid var(--sm-red); outline-offset: 4px; }

.sp-video { background: var(--sm-black); color: #F2F4F5; padding: 72px 0; }
.sp-video .sm-kicker { margin-bottom: 24px !important; }
.sp-video__main { position: relative; aspect-ratio: 16 / 9; background: #0F1316; }
.sp-video__main iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sp-yt { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #0F1316; cursor: pointer; overflow: hidden; color: #fff; font: inherit; }
.sp-yt img { width: 100%; height: 100%; object-fit: contain; background: var(--sm-studio); opacity: .55; }
.sp-yt__play { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--sm-red); }
.sp-yt__play::after { content: ""; position: absolute; left: 36px; top: 28px; border-style: solid; border-width: 18px 0 18px 28px; border-color: transparent transparent transparent #fff; }
.sp-yt__note { position: absolute; left: 16px; bottom: 14px; font-size: 13px; color: #C9D0D5; }
.sp-yt:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sp-video__more { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.sp-yt--small { width: auto; height: auto; display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; background: #1C2226; font-size: 15px; font-weight: 600; }
.sp-yt--small .sp-yt__play { position: relative; left: auto; top: auto; margin: 0; width: 36px; height: 36px; }
.sp-yt--small .sp-yt__play::after { left: 14px; top: 11px; border-width: 7px 0 7px 11px; }

.sp-features { padding-top: 90px; padding-bottom: 40px; }
.sp-feat { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; padding: 32px 0; }
.sp-feat--rev { flex-direction: row-reverse; }
.sp-feat__img { flex: 1 1 520px; min-width: 0; height: clamp(260px, 34vw, 440px); background: #fff; display: flex; align-items: center; justify-content: center; }
.sp-feat__img img { max-width: 90%; max-height: 90%; object-fit: contain; mix-blend-mode: multiply; }
.sp-feat__txt { flex: 1 1 380px; min-width: 0; }
.sp-feat__n { display: block; font: 600 20px/1 'Barlow Condensed', sans-serif; color: var(--sm-red-text); margin-bottom: 12px; }
.sp-feat__txt h3 { font: 700 clamp(30px, 3.2vw, 44px)/1 'Barlow Condensed', sans-serif !important; text-transform: uppercase; color: var(--sm-ink) !important; margin-bottom: 14px !important; }
.sp-feat__txt p { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.6; color: #3E464D; }

.sp-uses { background: var(--sm-studio); padding: 64px 0; }
.sp-uses .sm-h2 { color: var(--sm-ink) !important; margin-bottom: 24px !important; }
.sp-uses__l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.sp-uses__l li { background: #fff; padding: 20px; font: 600 22px/1.15 'Barlow Condensed', sans-serif; text-transform: uppercase; border-top: 3px solid var(--sm-red); }

.sp-specs { background: #111417; color: #F2F4F5; }
.sp-specs__in { display: flex; flex-wrap: wrap; gap: 32px 56px; padding-top: 80px; padding-bottom: 80px; }
.sp-specs__head { flex: 1 1 300px; }
.sp-specs__head .sm-h2 { color: #F2F4F5 !important; margin-bottom: 12px !important; }
.sp-spec { flex: 2 1 600px; width: 100%; border-collapse: collapse; font-size: 16px; }
.sp-spec th, .sp-spec td { padding: 12px 0; border-bottom: 1px solid #262C31; text-align: left; vertical-align: top; }
.sp-spec th { font-weight: 400; color: #C9D0D5; padding-right: 20px; }
.sp-spec td { color: #F2F4F5; font-weight: 600; text-align: right; }
.sp-spec__grp th { padding-top: 26px; font: 600 20px/1 'Barlow Condensed', sans-serif; text-transform: uppercase; color: var(--sm-red); border-bottom: 1px solid #39424A; }

.sp-docs { padding-top: 56px; padding-bottom: 24px; }
/* Documents from the hub (smith_documents(), 30 Nov 2026): one card per kind, data sheet free, manual and CE for buyers */
.sp-docl { padding-top: 72px; padding-bottom: 8px; }
.sp-docl .sm-h2 { color: var(--sm-ink) !important; margin-bottom: 24px !important; }
.sp-docl__g { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.sp-doc { background: var(--sm-studio); padding: 24px; border-top: 3px solid var(--sm-red); }
.sp-doc h3 { font: 600 24px/1.1 'Barlow Condensed', sans-serif !important; text-transform: uppercase; color: var(--sm-ink) !important; margin: 0 0 12px !important; }
/* one Danish word (CE-OVERENSSTEMMELSESERKLÆRING) is 7 px wider than the card on a phone (2 Dec 2026) */
.sp-doc h3 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 700px) { .sp-doc h3 { font-size: 20px !important; } }   /* fi CE-VAATIMUSTENMUKAISUUSVAKUUTUS stays whole */
.sp-doc ul { list-style: none; margin: 0 0 10px; padding: 0; }
.sp-doc li { margin: 0 0 6px; }
.sp-doc a { color: var(--sm-red-text) !important; font-weight: 600; text-decoration: underline; overflow-wrap: anywhere; }
.sp-doc p { margin: 0; font-size: 15px; line-height: 1.5; color: #3E464D; }
/* warranty and service: a dark band with its own heading, apart from the grey document cards above (Tilen, 30 Nov 2026:
   "da se bosta sekciji bolje locili, ker ne gre za isto stvar"; both were grey on grey and read as one block) */
.sp-docl { padding-bottom: 72px; }
.sp-service { background: var(--sm-black); color: #F2F4F5; }
.sp-service__wrap { padding-top: 64px; padding-bottom: 64px; }
.sp-service .sm-h2 { color: #fff !important; margin: 0 0 28px !important; }
.sp-service__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px; }
.sp-service__in > div { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; padding-top: 20px; border-top: 1px solid #39424A; }
.sp-service__in svg { grid-row: span 2; width: 40px; height: 40px; color: var(--sm-red); }
.sp-service__in h3 { font: 600 24px/1.1 'Barlow Condensed', sans-serif !important; text-transform: uppercase; margin: 0 0 6px !important; color: #fff !important; }
.sp-service__in p { margin: 0; color: var(--sm-muted); font-size: 16px; line-height: 1.5; }
.sp-rel { padding-top: 64px; padding-bottom: 72px; }
.sp-rel__g { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.sp-rel__c { display: flex; flex-direction: column; gap: 12px; color: var(--sm-ink) !important; text-decoration: none !important; }
.sp-rel__st { height: 240px; background: #fff; border-bottom: 1px solid #E3E6E8; display: flex; align-items: center; justify-content: center; }
.sp-rel__st img { max-height: 200px; max-width: 80%; width: auto; mix-blend-mode: multiply; }
.sp-rel__n { font: 600 22px/1.15 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.sp-rel__t { margin-top: -6px; font-size: 15px; color: #5B646B; }
.sp-rel__c:hover .sp-rel__n { color: var(--sm-red-text); }

@media (max-width: 700px) {
	.sp-nums dd { font-size: 32px; }
	.sp-spec td { text-align: left; }
	.sp-spec tr:not(.sp-spec__grp) { display: flex; flex-direction: column; border-bottom: 1px solid #262C31; }
	.sp-spec tr:not(.sp-spec__grp) th, .sp-spec tr:not(.sp-spec__grp) td { border-bottom: 0; padding: 6px 0; }
}
@media (prefers-reduced-motion: reduce) { .smith-pp * { scroll-behavior: auto !important; } }
/* On a phone the quantity (140 px) left the button 116 px and »Pridobi ponudbo ali kupi« broke into three lines (1 Dec
   2026, »preveri še stran na telefonu«; German and French are longer still): the button goes under the quantity, full width. */
@media (max-width: 480px) {
	.sp-buy__form form.cart { flex-wrap: wrap; }
	.sp-buy__form form.cart .single_add_to_cart_button { flex: 1 1 100%; }
}
