/*
Theme Name: Nord Vapor
Description: German-language storefront for WooCommerce.
Version: 1.2.1
Text Domain: nord-vapor
Requires PHP: 7.4
*/

:root {
  --ink: #152748;
  --muted: #435675;
  --line: #e2e8ef;
  --dark: #142a50;
  --frame: linear-gradient(110deg, #173b99, #eee03c 31%, #4f80c3 55%, #a9ddd7 78%, #ffa6a3);
  font-family: Barlow, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #1665ac; outline-offset: 3px; }
.wrap { width: min(1450px, 92%); margin-inline: auto; }
.screen-reader-text:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 20; top: 8px; inset-inline-start: 8px; padding: 12px; background: white; }
.announcement { min-height: 30px; overflow: hidden; background: #080b12; color: white; }
.announcement-track { width: max-content; min-width: 100%; min-height: 30px; display: flex; justify-content: center; align-items: center; gap: 27px; padding: 0 18px; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.announcement-track span { color: #a4acb9; }
.site-header { position: relative; z-index: 5; padding: 9px 0 12px; background: #e4f0fa; }
.home .site-header { position: absolute; top: 30px; left: 0; right: 0; background: transparent; }
body.admin-bar.home .site-header { top: 62px; }
.header-utility { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 43%) minmax(110px, .49fr); align-items: center; gap: 15px; margin-bottom: 12px; }
.welcome { font-weight: 700; font-style: italic; }
.home .welcome { color: #fff; text-shadow: 0 1px 5px #204775; }
.language-picker { position: relative; z-index: 8; justify-self: end; color: #153763; font-size: 14px; font-weight: 700; }
.language-picker summary, .language-options a { display: flex; align-items: center; gap: 9px; }
.language-picker summary { min-height: 36px; padding: 6px 11px; cursor: pointer; list-style: none; background: #fff; border: 1px solid #b9c9de; border-radius: 5px; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.language-picker[open] summary::after { transform: translateY(2px) rotate(225deg); }
.language-options { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 184px; max-height: 65vh; margin: 0; padding: 5px; overflow-y: auto; list-style: none; background: #fff; border: 1px solid #d5e0ed; border-radius: 8px; box-shadow: 0 6px 20px #182a4e35; }
.language-options a { min-height: 35px; padding: 5px 8px; border-radius: 4px; white-space: nowrap; }
.language-options a:hover, .language-options a[aria-current] { background: #e8f1fb; }
.language-flag { font-size: 19px; line-height: 1; }
.search { height: 39px; display: flex; min-width: 0; border: 1px solid #d5e0ed; overflow: hidden; border-radius: 7px; background: #08090d; color: #fff; box-shadow: 0 3px 8px #11192f2e; }
.search input, .search button { border: 0; background: transparent; color: inherit; }
.search input { flex: 1; min-width: 0; padding: 0 14px; }
.search input::placeholder { color: #d3dae4; }
.search button { width: 47px; display: grid; place-items: center; }
.header-frame { display: grid; grid-template-columns: 152px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 132px; border: 7px solid transparent; border-radius: 17px; padding: 8px 17px; background: linear-gradient(white, white) padding-box, var(--frame) border-box; box-shadow: 0 4px 8px #15234835; }
.site-logo { width: fit-content; display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 800; line-height: 1; }
.site-logo > span:last-child { max-width: 77px; }
.site-logo img { width: auto; max-width: 137px; max-height: 92px; object-fit: contain; }
.mark { display: grid; place-items: center; flex: none; width: 58px; height: 58px; color: #fff; background: #214782; border-radius: 50%; border: 4px double #fff; outline: 1px solid #214782; }
.mark .icon { width: 30px; height: 30px; }
.icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.header-actions, .nav-links, .nav-actions { display: flex; align-items: center; }
.header-actions { gap: 15px; justify-content: end; }
.icon-button { display: inline-grid; place-items: center; position: relative; width: 49px; height: 49px; border: 0; border-radius: 50%; background: #163861; color: white; flex: none; }
.cart-count { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 21px; padding: 0 4px; border-radius: 5px; background: #df1627; font-size: 11px; font-weight: 800; line-height: 20px; }
.main-nav { display: grid; justify-items: center; gap: 11px; }
.nav-links { justify-content: center; flex-wrap: wrap; gap: 5px 22px; }
.nav-links a { font-size: 15px; font-weight: 700; font-style: italic; }
.nav-links a:hover, .footer-main a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-links .nav-sale { color: #b51826; }
.nav-actions { gap: 50px; }
.nav-toggle, .search-toggle { display: none; }
.action { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid transparent; border-radius: 7px; background: var(--dark); color: white; font-weight: 700; text-align: center; }
.action:hover { filter: brightness(.92); }
.action-orange { background: linear-gradient(104deg, #ff3f1c, #ffb043); color: #381504; }
.action-green { background: linear-gradient(104deg, #27ee7c, #36c7d7 70%, #70a3ff); color: #103653; }
.nav-actions .action { width: 150px; min-height: 53px; font-style: italic; box-shadow: 4px 5px 0 #15294c2b; }
.hero { position: relative; display: grid; min-height: 480px; height: min(770px, max(510px, calc(100svh - 52px))); overflow: hidden; background: #b5d8ee; }
.hero-slide { position: relative; display: flex; align-items: flex-end; justify-content: flex-start; min-width: 0; }
.hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-alternate > .placeholder-image { filter: hue-rotate(35deg) saturate(1.15); }
.hero-special > .placeholder-image { filter: hue-rotate(-35deg) saturate(1.2); }
.hero-copy { position: relative; max-width: 58%; margin-block-end: 40px; margin-inline-start: 6%; }
.hero-copy :is(h1, h2) { width: fit-content; margin: 0 0 24px; color: #0c3780; font-size: 92px; font-weight: 900; font-style: italic; line-height: 1.02; paint-order: stroke fill; -webkit-text-stroke: 6px #fff; text-shadow: 0 5px 6px #13325c62; }
.hero-copy :is(h1, h2) span { display: inline-block; margin-top: 6px; padding: 1px 19px 6px; border-radius: 7px 24px 7px 18px; background: linear-gradient(100deg, #a70916, #d41f20); color: white; font-size: .73em; -webkit-text-stroke: 0; }
.hero-action { padding: 3px 25px; min-height: 53px; border: 2px solid #fff; border-radius: 30px; background: linear-gradient(#e42921, #a50714); box-shadow: 0 3px 7px #10294855; font-size: 23px; }
.slide-button { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; padding: 0 0 3px; transform: translateY(-50%); border: 1px solid #fff; border-radius: 50%; background: #233858ba; color: #fff; font-size: 23px; line-height: 1; }
.slide-button.previous { inset-inline-start: 13px; }
.slide-button.next { inset-inline-end: 13px; }
[dir="rtl"] .slide-button { direction: ltr; transform: translateY(-50%) scaleX(-1); }
[dir="rtl"] .hero-copy :is(h1, h2) { font-style: normal; line-height: 1.25; -webkit-text-stroke-width: 3px; }
[dir="rtl"] .hero-copy :is(h1, h2) span { -webkit-text-stroke-width: 0; }
.promos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-block: 8px; }
.promo { position: relative; isolation: isolate; display: flex; align-items: center; aspect-ratio: 3.2; overflow: hidden; border-radius: 8px; color: #142849; background: #eddcfa; padding: 14px 6%; }
.promo:nth-child(2) { background: #d8f3fe; }
.promo:nth-child(3) { background: #ffdeae; }
.promo img { position: absolute; z-index: -1; width: 55%; height: 130%; inset-inline-end: 0; object-fit: contain; mix-blend-mode: multiply; }
.promo img:not(.placeholder-image) { inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.promo:has(img:not(.placeholder-image)) strong { text-shadow: 0 0 8px white, 0 0 8px white; }
.promo strong { font-size: 28px; font-weight: 850; font-style: italic; }
.wholesale-band { background: linear-gradient(108deg, #d2eaff, #e1dcfb 62%, #ffd9ca); }
.wholesale-band .wrap { display: flex; min-height: 78px; align-items: center; justify-content: center; gap: 24px; }
.wholesale-band p { margin: 0; font-weight: 750; font-size: 17px; }
.wholesale-band .action { min-width: 122px; box-shadow: 3px 4px 0 #15294c29; }
.section-title { margin: 0 0 12px; color: #102439; text-align: center; font-size: 27px; font-weight: 800; font-style: italic; }
.category-section { padding-block: 19px 24px; }
.category-carousel { position: relative; }
.categories { --gap: 11px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * var(--gap)) / 5); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.categories::-webkit-scrollbar { display: none; }
.category { --tile: #ee829d; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; text-align: center; min-width: 0; aspect-ratio: .79; overflow: hidden; border: 5px solid var(--tile); border-radius: 10px; background: var(--tile); color: #101725; scroll-snap-align: start; }
.category:nth-child(2) { --tile: #ffdfa9; }
.category:nth-child(3) { --tile: #b8e344; }
.category:nth-child(4) { --tile: #b4dded; }
.category:nth-child(5) { --tile: #eaa456; }
.category:nth-child(6) { --tile: #f4a5b1; }
.category:nth-child(7) { --tile: #b5c5fc; }
.category:nth-child(8) { --tile: #bde8cc; }
.category img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 6px 6px 12px 12px; background: #fff; }
.category strong { padding-top: 8px; font-size: 19px; text-transform: uppercase; }
.category small { padding: 2px 0 9px; font-size: 13px; }
.category-carousel .slide-button { color: #132d51; background: #fff; border-color: #e5e9ef; box-shadow: 0 2px 8px #23385835; }
.category-carousel .previous { inset-inline-start: -7px; }
.category-carousel .next { inset-inline-end: -7px; }
.product-section { padding: 13px 10px 24px; }
.product-grid, .woocommerce ul.products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.product-grid > *, .woocommerce ul.products > li.product { min-width: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.product-card, .woocommerce ul.products > li.product { overflow: hidden; border-radius: 9px; background: #fff; border: 1px solid #edf0f4; box-shadow: 0 2px 10px #2134480c; }
.product-card { display: flex; flex-direction: column; }
.woocommerce ul.products li.product { width: auto !important; float: none; margin: 0 !important; padding: 12px !important; }
.product-image { display: block; position: relative; width: 100%; border: 0; padding: 0; background: white; }
.product-image img, .woocommerce ul.products li.product a img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.product-card-content { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 13px; }
.product-card-content h3 { margin: 5px 0 9px; font-size: 16px; }
.product-card-content p { margin: 0 0 11px; font-weight: 750; }
.product-card-content .action { margin-top: auto; width: 100%; }
.product-type { color: var(--muted); font-size: 12px; }
.product-tag { position: absolute; top: 9px; inset-inline-start: 9px; border-radius: 4px; padding: 4px 6px; background: #fff; color: #ac1c2b; font-size: 11px; font-weight: 800; }
.empty { padding: 20px 10px; color: var(--muted); text-align: center; }
.feature-banner { position: relative; isolation: isolate; width: 100%; min-height: 100px; aspect-ratio: 4.1; display: flex; align-items: center; overflow: hidden; background: #9dcdeb; padding-inline: 8%; }
.feature-banner img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.feature-offers .placeholder-image { filter: hue-rotate(-35deg) saturate(1.2); }
.feature-banner strong { max-width: 56%; font-size: 52px; font-style: italic; color: #112d62; text-shadow: 0 2px 8px #fff; }
.brands { margin-block: 20px 30px; }
.brands > div { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.brands a { padding: 9px 15px; border: 1px solid var(--line); border-radius: 6px; }
.site-footer { margin-top: 15px; padding: 34px 0 23px; color: #fff; background: #102645; }
.footer-main { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); align-items: start; gap: 24px; padding-bottom: 24px; }
.footer-main p { margin: 14px 0 0; }
.footer-main nav { display: grid; gap: 7px; }
.footer-main h2 { margin: 0 0 5px; font-size: 16px; }
.footer-bottom { border-top: 1px solid #ffffff50; padding-top: 15px; color: #dce5f3; font-size: 13px; }
.interior { min-height: 52vh; padding-block: 36px 56px; }
.interior h1 { margin: 0 0 24px; }
.site-dialog { width: min(440px, calc(100% - 26px)); border: 1px solid var(--line); border-radius: 8px; padding: 22px; color: var(--ink); }
.site-dialog::backdrop { background: #14293299; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dialog-head h2 { margin: 0; }
.dialog-close { font-size: 23px; }
.dialog-body img { width: 100%; max-height: 250px; object-fit: contain; margin-top: 12px; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line button { border: 1px solid var(--line); border-radius: 4px; background: white; width: 32px; height: 32px; }
.cart-result { font-weight: 800; }

@media (max-width: 1190px) {
  .header-frame { grid-template-columns: 135px minmax(0, 1fr) auto; }
  .nav-links { gap: 4px 12px; }
  .hero-copy :is(h1,h2) { font-size: 70px; }
  .promo strong { font-size: 22px; }
}
@media (max-width: 820px) {
  .wrap { width: 94%; }
  .site-header, .home .site-header { position: relative; top: auto; left: auto; right: auto; background: white; padding: 6px 0; }
  body.admin-bar.home .site-header { top: auto; }
  .header-utility { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 1px; }
  .welcome, .home .welcome { color: var(--ink); text-shadow: none; font-size: 12px; }
  .language-picker summary { padding-inline: 8px; }
  .header-frame { grid-template-columns: 44px 1fr auto; min-height: 82px; border: 0; box-shadow: none; background: #fff; padding: 0 3px; gap: 10px; }
  .site-logo { justify-self: center; }
  .site-logo img { max-height: 61px; max-width: 100px; }
  .mark { width: 43px; height: 43px; }
  .mark .icon { width: 24px; height: 24px; }
  .header-actions { gap: 8px; }
  .header-actions .icon-button, .nav-toggle { width: 36px; height: 36px; }
  .header-actions .icon { width: 19px; height: 19px; }
  .nav-toggle, .search-toggle { display: inline-grid; }
  .nav-toggle { color: var(--ink); background: transparent; }
  .main-nav, .search { display: none; position: absolute; z-index: 6; left: 3%; right: 3%; top: 100%; }
  .search.open { display: flex; }
  .main-nav.open { display: grid; justify-items: stretch; background: white; padding: 15px; border-radius: 0 0 8px 8px; box-shadow: 0 6px 12px #10233b35; }
  .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; justify-items: start; }
  .nav-links a { padding: 6px 0; font-size: 14px; }
  .nav-actions { gap: 9px; }
  .nav-actions .action { flex: 1; min-height: 41px; width: auto; }
  .hero { height: auto; min-height: 0; aspect-ratio: 1.25; max-height: 450px; }
  .hero-slide > img { object-position: 63% center; }
  .hero-copy { margin-block-end: 21px; margin-inline-start: 8%; max-width: 63%; }
  .hero-copy :is(h1,h2) { font-size: 43px; margin-bottom: 11px; -webkit-text-stroke-width: 3px; }
  .hero-copy :is(h1,h2) span { padding: 2px 8px 4px; }
  .hero-action { min-height: 37px; font-size: 15px; padding-inline: 12px; }
  .slide-button { width: 30px; height: 30px; }
  .slide-button.previous { inset-inline-start: 5px; }
  .slide-button.next { inset-inline-end: 5px; }
  .promos { gap: 0; }
  .promo:first-child { aspect-ratio: 3.25; grid-column: 1 / -1; }
  .promo:not(:first-child) { display: none; }
  .promo strong { font-size: 22px; }
  .wholesale-band .wrap { min-height: 69px; justify-content: space-between; gap: 8px; }
  .wholesale-band p { font-size: 14px; }
  .wholesale-band .action { min-width: 96px; padding-inline: 9px; font-size: 14px; }
  .category-section { padding-block: 13px; }
  .section-title { font-size: 22px; margin-bottom: 8px; }
  .categories { --gap: 6px; }
  .category { border-width: 2px; border-radius: 5px; aspect-ratio: .76; }
  .category strong { font-size: 10px; padding-top: 3px; overflow-wrap: anywhere; }
  .category small { padding: 0 0 2px; font-size: 8px; }
  .category-carousel .slide-button { width: 20px; height: 24px; font-size: 16px; }
  .product-grid, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .feature-banner strong { font-size: 25px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 390px) {
  .hero-copy :is(h1,h2) { font-size: 34px; }
  .site-logo { font-size: 13px; }
}
