/*
Theme Name: UniversalParts Modern
Theme URI: https://universalparts.shop/
Author: Universal Parts
Author URI: https://universalparts.shop/
Description: Modern WooCommerce storefront for Universal Parts.
Version: 1.1.11
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: universalparts-modern
*/

:root {
  --up-ink: #00004d;
  --up-muted: #575756;
  --up-paper: #ffffff;
  --up-canvas: #f6f8fc;
  --up-line: #e5eaf2;
  --up-blue: #6a11cb;
  --up-blue-dark: #1051c2;
  --up-lime: #b50717;
  --up-orange: #b50717;
  --up-navy: #00004d;
  --up-radius: 18px;
  --up-shadow: 0 18px 50px rgba(21, 34, 56, 0.09);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body, button, input, textarea, select { font-family: "DM Sans", "Segoe UI", sans-serif; }
body { margin: 0; overflow-x: clip; color: var(--up-ink); background: var(--up-canvas); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--up-ink); font-family: Manrope, "DM Sans", sans-serif; line-height: 1.14; }
p { margin: 0; }

.up-container { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.site-main { min-height: 44vh; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; }

.topbar { background: var(--up-navy); color: rgba(255, 255, 255, 0.78); font-size: 13px; }
.topbar__inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar a { color: #fff; font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--up-line); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 9px 28px rgba(15, 34, 66, 0.1); }
.site-header__inner { min-height: 86px; display: grid; grid-template-columns: minmax(185px, .72fr) minmax(300px, 1.7fr) auto; align-items: center; gap: 28px; }
.site-branding { display: flex; align-items: center; min-width: 0; }
.site-branding .custom-logo-link { display: inline-block; flex: 0 0 auto; }
.site-branding .custom-logo { max-height: 56px; width: auto; }
.site-branding .up-legacy-logo-link { display: inline-block; flex: 0 0 auto; }
.site-branding .up-legacy-logo { display: block; width: auto; max-width: 230px; max-height: 56px; object-fit: contain; }
.site-title { overflow: hidden; text-overflow: ellipsis; font-size: 20px; font-weight: 800; letter-spacing: -.045em; white-space: nowrap; }
.site-title a { color: var(--up-ink); }

.up-product-search { height: 46px; display: flex; overflow: hidden; border: 1px solid #d8e0eb; border-radius: 12px; background: #f8fafc; transition: border-color .2s, box-shadow .2s, background .2s; }
.up-product-search:focus-within { border-color: var(--up-blue); background: #fff; box-shadow: 0 0 0 4px rgba(18, 100, 232, .1); }
.up-product-search input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0 16px; background: transparent; color: var(--up-ink); }
.up-product-search input::placeholder { color: #98a2b3; }
.up-product-search button { width: 48px; flex: 0 0 48px; border: 0; background: transparent; color: var(--up-blue); }
.up-product-search svg { width: 20px; margin: auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-action { position: relative; display: grid; grid-template-columns: 20px auto; align-items: center; gap: 7px; color: #475467; font-size: 13px; font-weight: 700; }
.header-action:hover { color: var(--up-blue); }
.header-action svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-cart { padding-right: 14px; }
.up-cart-count { position: absolute; top: -10px; right: 0; display: grid; min-width: 18px; height: 18px; place-items: center; padding: 0 4px; border-radius: 99px; background: var(--up-orange); color: #fff; font-size: 10px; font-weight: 800; line-height: 1; }
.menu-toggle { display: none; align-items: center; gap: 9px; border: 1px solid var(--up-line); border-radius: 10px; padding: 9px 11px; background: #fff; color: var(--up-ink); font-size: 13px; font-weight: 700; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 16px; height: 2px; border-radius: 1px; background: currentColor; content: ""; }
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before { position: absolute; top: -5px; }
.menu-toggle__bars::after { position: absolute; top: 5px; }

.site-nav-wrap { border-top: 1px solid #eff2f6; background: #fff; }
.site-nav-wrap__inner { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.category-nav, .primary-nav, .category-nav ul, .primary-nav ul { display: flex; align-items: center; gap: 20px; }
.category-nav ul, .primary-nav ul { margin: 0; padding: 0; list-style: none; }
.category-nav__all { display: inline-flex; align-items: center; gap: 8px; color: var(--up-blue); font-size: 13px; font-weight: 800; white-space: nowrap; }
.category-nav__all span { font-size: 19px; line-height: 1; }
.category-nav a, .primary-nav a { color: #596579; font-size: 13px; font-weight: 600; white-space: nowrap; }
.category-nav a:hover, .primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--up-blue); }
.primary-nav { margin-left: auto; }
.primary-nav li { position: relative; }
.primary-nav .sub-menu { position: absolute; top: calc(100% + 15px); left: -14px; display: none; min-width: 190px; padding: 9px; border: 1px solid var(--up-line); border-radius: 11px; background: #fff; box-shadow: 0 16px 32px rgba(0, 0, 77, .14); }
.primary-nav .sub-menu::before { position: absolute; top: -6px; left: 22px; width: 11px; height: 11px; border-top: 1px solid var(--up-line); border-left: 1px solid var(--up-line); background: #fff; content: ""; transform: rotate(45deg); }
.primary-nav .sub-menu li { width: 100%; }
.primary-nav .sub-menu a { position: relative; z-index: 1; display: block; padding: 8px 9px; border-radius: 7px; white-space: normal; }
.primary-nav .sub-menu a:hover { background: #f2edfb; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }

.up-hero { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; min-height: 498px; margin: 32px 0 24px; overflow: hidden; border-radius: 24px; background: linear-gradient(120deg, #00004d 0%, #1051c2 52%, #6a11cb 100%); box-shadow: var(--up-shadow); }
.up-hero::after { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 36px 36px; content: ""; pointer-events: none; }
.up-hero__content { position: relative; z-index: 1; padding: clamp(38px, 6vw, 76px) 0 clamp(34px, 5vw, 65px) clamp(30px, 6vw, 76px); }
.up-kicker { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.78); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.up-kicker > span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--up-lime); box-shadow: 0 0 0 5px rgba(181, 7, 23, .18); }
.up-kicker--dark { color: var(--up-blue); }
.up-kicker--dark > span { background: var(--up-blue); box-shadow: 0 0 0 5px rgba(18,100,232,.1); }
.up-hero h1 { max-width: 660px; margin: 18px 0; color: #fff; font-size: clamp(36px, 4vw, 60px); font-weight: 800; letter-spacing: -.06em; }
.up-hero__text { max-width: 560px; color: rgba(255,255,255,.8); font-size: 17px; }
.up-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.up-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s; }
.up-button:hover { transform: translateY(-2px); }
.up-button--primary { background: linear-gradient(90deg, #1051c2, #6a11cb); box-shadow: 0 12px 26px rgba(0, 0, 0, .16); color: #fff; }
.up-button--primary:hover { background: linear-gradient(90deg, #6a11cb, #1051c2); }
.up-button--quiet { border-color: rgba(255,255,255,.36); color: #fff; }
.up-button--quiet:hover { background: rgba(255,255,255,.1); }
.up-hero__stats { display: flex; gap: 26px; margin: 44px 0 0; padding: 0; list-style: none; }
.up-hero__stats li { display: grid; gap: 3px; max-width: 172px; padding-left: 13px; border-left: 2px solid var(--up-lime); }
.up-hero__stats strong { color: #fff; font-size: 14px; }
.up-hero__stats span { color: rgba(255,255,255,.62); font-size: 12px; line-height: 1.35; }
.up-hero__art { position: relative; z-index: 1; min-height: 100%; overflow: hidden; }
.up-hero__orb { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.up-hero__orb--one { width: 500px; height: 500px; top: -205px; right: -70px; box-shadow: 0 0 0 48px rgba(255,255,255,.035), 0 0 0 96px rgba(255,255,255,.025); }
.up-hero__orb--two { width: 260px; height: 260px; bottom: -175px; left: 2%; background: rgba(200,243,75,.12); filter: blur(2px); }
.up-hero__device { position: absolute; top: 105px; right: 14%; width: 245px; height: 315px; padding: 11px; transform: rotate(15deg); border: 8px solid #07142d; border-radius: 32px; background: #172847; box-shadow: -27px 30px 0 rgba(6, 18, 43, .18), 0 35px 55px rgba(0,0,0,.28); }
.up-hero__device::before { position: absolute; top: 9px; left: 50%; width: 64px; height: 16px; border-radius: 0 0 11px 11px; background: #07142d; content: ""; transform: translateX(-50%); z-index: 2; }
.up-hero__device-screen { display: grid; height: 100%; grid-template-rows: 1.1fr .65fr .9fr; gap: 9px; padding: 34px 13px 13px; border-radius: 18px; background: linear-gradient(155deg, #6bb2ff, #2a5cac 58%, #0c234f); }
.up-hero__device-screen span { display: block; border-radius: 11px; background: rgba(255,255,255,.15); }
.up-hero__device-screen span:first-child { background: linear-gradient(135deg, rgba(200,243,75,.9), rgba(200,243,75,.22)); }
.up-hero__floating-card { position: absolute; display: flex; align-items: center; gap: 9px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.34); border-radius: 12px; background: rgba(255,255,255,.93); box-shadow: 0 18px 28px rgba(6, 21, 52, .18); }
.up-hero__floating-card p { color: #5a677a; font-size: 11px; font-weight: 700; line-height: 1.25; }
.up-hero__floating-card--top { top: 81px; left: 5%; }
.up-hero__floating-card--top span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; background: #fce8ea; color: #b50717; font-weight: 900; }
.up-hero__floating-card--bottom { right: 3%; bottom: 56px; display: grid; gap: 1px; min-width: 133px; }
.up-hero__floating-card--bottom strong { color: var(--up-blue); font-size: 17px; }

.up-service-strip { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; margin-bottom: 70px; border: 1px solid var(--up-line); border-radius: 14px; background: #fff; }
.up-service-strip > div { display: flex; align-items: center; gap: 13px; min-height: 84px; padding: 17px 26px; border-right: 1px solid var(--up-line); }
.up-service-strip > div:last-child { border-right: 0; }
.up-service-strip__icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 10px; background: #f2edfb; color: var(--up-blue); font-weight: 800; }
.up-service-strip p { display: grid; gap: 1px; }
.up-service-strip strong { color: var(--up-ink); font-size: 14px; }
.up-service-strip span:not(.up-service-strip__icon) { color: var(--up-muted); font-size: 12px; }

.up-section { padding: 0 0 72px; }
.up-section__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.up-section__heading h2 { margin-top: 7px; font-size: clamp(26px, 2.5vw, 34px); font-weight: 800; letter-spacing: -.045em; }
.up-text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--up-blue); font-size: 14px; font-weight: 800; white-space: nowrap; }
.up-text-link:hover { color: var(--up-blue-dark); }

.up-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.up-category-card { position: relative; display: flex; align-items: center; min-width: 0; gap: 14px; min-height: 100px; overflow: hidden; padding: 12px 38px 12px 12px; border: 1px solid var(--up-line); border-radius: 14px; background: #fff; transition: transform .2s, border-color .2s, box-shadow .2s; }
.up-category-card:hover { border-color: #d9c8f6; box-shadow: 0 14px 25px rgba(106, 17, 203, .1); transform: translateY(-3px); }
.up-category-card__media { display: grid; width: 76px; height: 76px; flex: 0 0 76px; place-items: center; overflow: hidden; border-radius: 11px; background: linear-gradient(135deg, #f0e7ff, #d9c8f6); background-position: center; background-size: cover; color: #6a11cb; font-family: Manrope, sans-serif; font-size: 30px; font-weight: 800; }
.up-category-card__media.has-image > span { display: none; }
.up-category-card__body { display: grid; min-width: 0; gap: 4px; }
.up-category-card__body strong { overflow: hidden; color: var(--up-ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.up-category-card__body small { color: var(--up-muted); font-size: 12px; }
.up-category-card__arrow { position: absolute; right: 15px; color: var(--up-blue); font-size: 19px; }

.up-section--products { padding-bottom: 76px; }
.woocommerce ul.products, .woocommerce-page ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { display: flex; float: none; width: auto; min-width: 0; flex-direction: column; margin: 0; overflow: hidden; border: 1px solid var(--up-line); border-radius: 15px; background: #fff; box-shadow: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.woocommerce ul.products li.product:hover { border-color: #d9c8f6; box-shadow: 0 18px 38px rgba(106, 17, 203, .1); transform: translateY(-4px); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; height: 100%; padding: 12px 12px 0; }
.woocommerce ul.products li.product a img { width: 100%; height: 210px; margin: 0 0 14px; border-radius: 10px; object-fit: contain; background: #f4f7fb; transition: transform .25s ease; }
.woocommerce ul.products li.product:hover a img { transform: scale(1.025); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 44px; padding: 0; color: var(--up-ink); font-family: "DM Sans", sans-serif; font-size: 14px; font-weight: 700; line-height: 1.4; }
.woocommerce ul.products li.product .price { display: block; margin: 8px 0 13px; color: var(--up-blue); font-size: 15px; font-weight: 800; }
.woocommerce ul.products li.product .price del { color: var(--up-muted); font-size: 12px; font-weight: 500; }
.woocommerce ul.products li.product .price ins { color: var(--up-blue); text-decoration: none; }
.woocommerce ul.products li.product .star-rating { margin: 8px 0; color: #ffb327; }
.woocommerce ul.products li.product .button { width: calc(100% - 24px); margin: auto 12px 12px; text-align: center; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { border: 0; border-radius: 9px; background: var(--up-blue); color: #fff; font-size: 13px; font-weight: 800; line-height: 1.3; transition: background .2s, transform .2s; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover { background: var(--up-blue-dark); color: #fff; transform: translateY(-1px); }
.woocommerce ul.products li.product .onsale, .woocommerce span.onsale { top: 20px; left: 20px; right: auto; min-width: auto; min-height: 0; padding: 5px 8px; border-radius: 6px; background: var(--up-orange); color: #fff; font-size: 10px; line-height: 1.2; }

.up-promo { display: grid; grid-template-columns: 1fr .72fr; min-height: 300px; margin: 0 0 76px; overflow: hidden; border-radius: 20px; background: #f2edfb; }
.up-promo__copy { z-index: 1; padding: 46px clamp(28px, 5vw, 64px); }
.up-promo .up-kicker { color: #6a11cb; }
.up-promo .up-kicker > span { background: var(--up-blue); box-shadow: 0 0 0 5px rgba(18,100,232,.1); }
.up-promo h2 { max-width: 600px; margin: 13px 0; font-size: clamp(27px, 3vw, 40px); font-weight: 800; letter-spacing: -.05em; }
.up-promo p:not(.up-kicker) { max-width: 500px; margin-bottom: 25px; color: #52647f; }
.up-promo__visual { position: relative; min-height: 280px; overflow: hidden; background: linear-gradient(135deg, #1051c2, #6a11cb); }
.up-promo__ring { position: absolute; width: 380px; height: 380px; top: -50px; left: 5%; border: 42px solid rgba(255,255,255,.2); border-radius: 50%; }
.up-promo__box { position: absolute; width: 122px; height: 122px; border-radius: 18px; box-shadow: 0 20px 30px rgba(15, 46, 91, .2); }
.up-promo__box--one { top: 52px; left: 31%; background: linear-gradient(150deg, #fff, #d9c8f6); transform: rotate(16deg); }
.up-promo__box--two { right: 15%; bottom: 36px; width: 93px; height: 93px; background: linear-gradient(150deg, #f24a5d, #b50717); transform: rotate(-18deg); }
.up-promo__check { position: absolute; top: 102px; right: 21%; display: grid; width: 58px; height: 58px; place-items: center; border: 5px solid #fff; border-radius: 50%; background: var(--up-blue); color: #fff; font-size: 26px; font-weight: 800; }
.up-empty-state { padding: 48px; border: 1px dashed #b9c6d7; border-radius: 16px; background: #fff; text-align: center; }
.up-empty-state h2 { margin-bottom: 8px; }
.up-empty-state p { color: var(--up-muted); }

.up-shop-shell { padding: 36px 0 72px; }
.up-shop-shell .woocommerce-products-header { margin-bottom: 26px; }
.up-shop-shell .page-title { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.05em; }
.up-shop-shell .term-description { margin-top: 10px; color: var(--up-muted); }
.woocommerce .woocommerce-result-count { margin: 0 0 24px; color: var(--up-muted); font-size: 13px; }
.woocommerce .woocommerce-ordering { margin: 0 0 20px; }
.woocommerce .woocommerce-ordering select { min-height: 39px; padding: 0 29px 0 12px; border: 1px solid var(--up-line); border-radius: 8px; background: #fff; color: var(--up-ink); }
.woocommerce .woocommerce-breadcrumb { margin: 0 0 19px; color: var(--up-muted); font-size: 13px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--up-blue); }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: clamp(28px, 5vw, 70px); }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: auto; margin: 0; }
.woocommerce div.product .product_title { font-size: clamp(28px, 3vw, 42px); letter-spacing: -.05em; }
.woocommerce div.product p.price, .woocommerce div.product span.price { margin: 15px 0; color: var(--up-blue); font-size: 23px; font-weight: 800; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; }
.woocommerce div.product > .related.products { grid-column: 1 / -1; width: 100%; margin: 58px 0 0; padding-top: 42px; border-top: 1px solid var(--up-line); }
.woocommerce div.product > .related.products > h2 { margin-bottom: 24px; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.045em; }
.woocommerce div.product > .related.products ul.products { width: 100%; }
.woocommerce .quantity .qty { min-height: 42px; border: 1px solid var(--up-line); border-radius: 8px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--up-blue); border-radius: 10px; background: #fff; box-shadow: 0 8px 23px rgba(29,50,83,.06); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--up-blue); }
.woocommerce-error::before { color: #b42318; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin-right: 4px; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 36px; min-height: 36px; padding: 8px 11px; border: 1px solid var(--up-line); border-radius: 8px; background: #fff; color: var(--up-ink); }
.woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover { border-color: var(--up-blue); background: var(--up-blue); color: #fff; }
.woocommerce nav.woocommerce-pagination { display: flex; justify-content: center; clear: both; margin: 48px 0 76px; padding-top: 8px; }

.archive-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; padding: 40px 0 70px; }
.archive-main { display: grid; gap: 18px; }
.archive-sidebar .widget, .post-content, .card { border: 1px solid var(--up-line); border-radius: var(--up-radius); background: #fff; box-shadow: 0 8px 20px rgba(20,42,73,.04); }
.archive-sidebar .widget { margin-bottom: 16px; padding: 20px; }
.widget-title { margin-bottom: 12px; font-size: 16px; }
.post-content, .card { padding: 28px; }
.post-content h1 { margin-bottom: 22px; font-size: clamp(28px, 3vw, 42px); }
.post-content > * + * { margin-top: 18px; }
.post-content p, .card p { color: var(--up-muted); }
.post-card__meta { color: var(--up-blue) !important; font-size: 13px; font-weight: 700; }
.site-footer { margin-top: 0; background: #00004d; color: #d8d1e8; }
.site-footer__widgets { padding: 48px 0 27px; border-bottom: 1px solid rgba(255,255,255,.11); }
.site-footer .up-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.site-footer .widget { background: transparent; }
.site-footer .widget-title { color: #fff; }
.site-footer a { color: #ede4ff; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 70px; }
.site-footer__bottom p { color: #c9c1dc; font-size: 13px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; }

/* Shop page slideshow retained from the previous Sapid setup. */
.up-shop-shell .page-description { margin: 0 0 30px; }
.sapid-slider-carousel { position: relative; height: clamp(280px, 35vw, 520px); overflow: hidden; border-radius: 18px; background: #00004d; box-shadow: var(--up-shadow); cursor: grab; touch-action: pan-y; user-select: none; }
.sapid-slider-carousel .carousel-inner { position: relative; height: 100%; }
.sapid-slider-carousel .carousel-item { position: absolute; inset: 0; display: none; overflow: hidden; background-color: #00004d; background-position: center; background-repeat: no-repeat; background-size: contain; }
.sapid-slider-carousel .carousel-item::before { position: absolute; inset: -32px; z-index: 0; background-image: inherit; background-position: center; background-repeat: no-repeat; background-size: cover; content: ""; filter: blur(24px) saturate(1.35); opacity: .76; transform: scale(1.06); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 24%, transparent 76%, #000 100%); mask-image: linear-gradient(90deg, #000 0%, transparent 24%, transparent 76%, #000 100%); }
.sapid-slider-carousel .carousel-item::after { display: none; }
.sapid-slider-carousel .carousel-item.active { display: block; animation: up-slide-in .45s ease-out; }
.sapid-slider-carousel.is-dragging { cursor: grabbing; }
.sapid-slider-carousel.is-dragging .carousel-item.active { animation: none; }
.sapid-slider-carousel .carousel-indicators { position: absolute; z-index: 2; right: 0; bottom: 16px; left: 0; display: flex; justify-content: center; gap: 7px; margin: 0; }
.sapid-slider-carousel .carousel-indicators button { width: 26px; height: 4px; margin: 0; padding: 0; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .5); text-indent: -999px; transition: width .2s ease, background .2s ease; }
.sapid-slider-carousel .carousel-indicators button.active { width: 42px; background: #fff; }
.sapid-slider-carousel .carousel-control-prev, .sapid-slider-carousel .carousel-control-next { position: absolute; z-index: 2; top: 50%; display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(0, 0, 77, .45); color: #fff; transform: translateY(-50%); transition: background .2s ease, transform .2s ease; }
.sapid-slider-carousel .carousel-control-prev { left: 18px; }
.sapid-slider-carousel .carousel-control-next { right: 18px; }
.sapid-slider-carousel .carousel-control-prev::before, .sapid-slider-carousel .carousel-control-next::before { font-size: 25px; font-weight: 400; line-height: 1; }
.sapid-slider-carousel .carousel-control-prev::before { content: "‹"; }
.sapid-slider-carousel .carousel-control-next::before { content: "›"; }
.sapid-slider-carousel .carousel-control-prev:hover, .sapid-slider-carousel .carousel-control-next:hover { background: #6a11cb; transform: translateY(-50%) scale(1.06); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes up-slide-in { from { opacity: .25; transform: scale(1.015); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 1060px) {
  .site-header__inner { grid-template-columns: minmax(150px, .75fr) minmax(260px, 1.35fr) auto; gap: 18px; }
  .header-action span:not(.up-cart-count) { display: none; }
  .header-action { display: block; }
  .header-cart { padding-right: 13px; }
  .up-category-grid { grid-template-columns: repeat(2, 1fr); }
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .up-container { width: min(100% - 32px, 1280px); }
  .site-header__inner { min-height: 70px; grid-template-columns: 1fr auto; }
  .site-branding .custom-logo { max-height: 44px; }
  .site-branding .up-legacy-logo { max-width: 190px; max-height: 44px; }
  .up-product-search { grid-column: 1 / -1; grid-row: 2; margin: -5px 0 13px; }
  .site-header__inner:has(.up-product-search) { padding-top: 8px; }
  .menu-toggle { display: inline-flex; }
  .site-nav-wrap { display: none; }
  .site-nav-wrap.is-open { display: block; }
  .site-nav-wrap__inner { align-items: stretch; flex-direction: column; padding: 10px 0 15px; }
  .category-nav, .primary-nav, .category-nav ul, .primary-nav ul { width: 100%; align-items: stretch; flex-direction: column; gap: 0; }
  .category-nav__all, .category-nav a, .primary-nav a { display: block; padding: 9px 5px; }
  .primary-nav { margin: 0; border-top: 1px solid var(--up-line); padding-top: 6px; }
  .up-hero { grid-template-columns: 1fr; min-height: auto; }
  .up-hero__content { padding-right: 34px; }
  .up-hero__art { display: none; }
  .up-service-strip { grid-template-columns: 1fr; }
  .up-service-strip > div { border-right: 0; border-bottom: 1px solid var(--up-line); }
  .up-service-strip > div:last-child { border-bottom: 0; }
  .up-promo { grid-template-columns: 1fr; }
  .up-promo__visual { min-height: 190px; }
  .up-promo__box--one { top: 24px; }
  .up-promo__check { top: 55px; }
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .woocommerce div.product { grid-template-columns: 1fr; }
  .archive-layout { grid-template-columns: 1fr; }
  .site-footer .up-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1281px) {
  .up-shop-shell .page-description { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  .sapid-slider-carousel { border-radius: 0; box-shadow: none; }
}

@media (max-width: 540px) {
  .topbar__inner { justify-content: center; }
  .topbar__inner p { display: none; }
  .up-hero { margin-top: 18px; border-radius: 17px; }
  .up-hero__content { padding: 35px 24px 34px; }
  .up-hero h1 { font-size: 35px; }
  .up-hero__text { font-size: 15px; }
  .up-hero__stats { gap: 13px; margin-top: 31px; }
  .up-hero__stats li { padding-left: 9px; }
  .up-service-strip { margin-bottom: 48px; }
  .up-section { padding-bottom: 53px; }
  .up-section__heading { align-items: flex-start; flex-direction: column; margin-bottom: 19px; }
  .up-category-grid { grid-template-columns: 1fr; }
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .woocommerce ul.products li.product, .woocommerce-page ul.products li.product { width: 100% !important; margin: 0 !important; justify-self: stretch; border-radius: 12px; }
  .woocommerce ul.products li.product a.woocommerce-LoopProduct-link { align-items: center; padding: 7px 7px 0; text-align: center; }
  .woocommerce ul.products li.product a img { width: 100%; height: auto; aspect-ratio: 1 / 1; margin-bottom: 8px; border-radius: 8px; object-fit: contain; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { display: -webkit-box; min-height: 50px; overflow: hidden; font-size: 11px; line-height: 1.35; text-align: center; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .woocommerce ul.products li.product .price { min-height: 38px; margin: 6px 0 8px; font-size: 12px; line-height: 1.35; text-align: center; }
  .woocommerce ul.products li.product .price del { display: block; font-size: 10px; }
  .woocommerce ul.products li.product .button { width: calc(100% - 14px); min-height: 34px; margin: auto 7px 7px; padding: 7px 3px; border-radius: 7px; font-size: 10px; line-height: 1.2; }
  .woocommerce ul.products li.product .onsale { top: 11px; left: 11px; padding: 4px 6px; font-size: 9px; }
  .up-promo { margin-bottom: 53px; }
  .up-promo__copy { padding: 34px 24px; }
  .up-promo__visual { display: none; }
  .post-content, .card { padding: 22px; }
  .site-footer .up-grid { grid-template-columns: 1fr; }
  .site-footer__bottom { align-items: flex-start; flex-direction: column; padding: 20px 0; }
}

@media (max-width: 820px) {
  .primary-nav .sub-menu { position: static; display: flex; min-width: 0; margin: 0 0 5px 13px; padding: 2px 0 2px 11px; border: 0; border-left: 1px solid #d9c8f6; border-radius: 0; background: transparent; box-shadow: none; }
  .primary-nav .sub-menu::before { display: none; }
  .primary-nav .sub-menu a { padding: 7px 5px; font-size: 12px; }
}

@media (max-width: 540px) {
  .sapid-slider-carousel { height: 180px; border-radius: 13px; }
  .sapid-slider-carousel .carousel-control-prev { left: 10px; }
  .sapid-slider-carousel .carousel-control-next { right: 10px; }
  .sapid-slider-carousel .carousel-control-prev, .sapid-slider-carousel .carousel-control-next { width: 34px; height: 34px; }
}
