.header {
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-top {
  /* Mobile: logo | cart | toggle, expanded search on its own row. DOM order stays logo → toggle → search → cart. */
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 1rem;
  padding-block: 0.5rem;
}
.logo {
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.07em;
}
.logo {
  flex-shrink: 0;
}
.logo img {
  width: 150px;
  height: auto;
}
.menu-toggle {
  background: transparent;
  color: var(--white);
  font-size: 0.7rem;
  padding: 0.4rem;
}
.header .search,
.header .nav {
  display: none;
}
.header.menu-open .search,
.header.menu-open .nav {
  display: flex;
}
.header :focus-visible,
.footer :focus-visible {
  outline-color: var(--white);
}
.header .search {
  color: var(--ink);
}
.header .header-actions {
  grid-column: 2 / 4;
  grid-row: 1;
  display: flex;
  gap: 0.5rem;
}
.header .menu-toggle {
  grid-column: 4;
  grid-row: 1;
}
.header .search {
  grid-column: 1 / -1;
  grid-row: 2;
}
.header .header-top {
  gap: 0.5rem;
}
/* form.search: WP adds body.search on search results, a bare .search would turn <body> into a flex row. */
form.search {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}
form.search input {
  width: 100%;
  min-width: 0;
  background: var(--paper);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-block: 0.75rem;
  font-size: 0.85rem;
}
.nav a {
  text-decoration: none;
  padding-block: 0.4rem;
}
.nav a[aria-current='page'] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--action);
  text-decoration-thickness: 3px;
}
.cart-link,
.account-link {
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.6rem 1rem;
  border-radius: 6px;
}
.icon-link {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
}
.icon-link:hover {
  border-color: var(--white);
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding-inline: 4px;
  border-radius: 10px;
  background: var(--action);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
/* Logo artwork sits high in its box; nudge it to the optical centre of the bar. */
.header .logo,
.header .custom-logo-link {
  padding-top: 0.35rem;
}
.nav-item {
  position: relative;
  display: flex;
}
/* Category submenus use the header panel below (same look as the account and cart panels). */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.hero-topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-block: 2.5rem;
}
.hero-copy {
  align-self: center;
}
.hero h1 {
  max-width: 650px;
}
.hero h1 span {
  color: var(--accent);
}
.hero p {
  max-width: 480px;
  color: var(--paper);
}
.hero-art {
  position: relative;
  align-self: end;
  /* Run the phone into the bottom edge of the hero. */
  margin-bottom: -2.5rem;
}
.hero-slides {
  display: grid;
  aspect-ratio: 600 / 380;
}
.hero-slides img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-slides img.is-active {
  opacity: 1;
}
.cert-badge {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  background: var(--action);
  color: var(--white);
  border: 1px solid var(--action);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.hero .button {
  background: var(--action);
  color: var(--white);
  border-color: var(--accent);
}
.hero .button.secondary {
  color: var(--white);
  border-color: var(--line);
  background: transparent;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.section {
  padding-block: 2.5rem;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1rem;
}
.section-head h2 {
  margin: 0;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}
.category {
  background: var(--white);
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}
.category .number {
  display: block;
  color: var(--action);
  font-size: 0.8rem;
  margin-bottom: 2rem;
}
.category p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}
.category:hover,
.product-card:hover {
  border-color: var(--ink);
}
.trust {
  border-block: 1px solid var(--line);
  padding-block: 1.5rem;
}
.trust .grid {
  gap: 1.5rem;
}
.trust strong {
  display: block;
}
.trust p {
  font-size: 0.8rem;
  margin: 0.25rem 0 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  min-width: 0;
}
.product-card .product-image {
  background: var(--white);
  border-radius: 6px;
  display: block;
  margin-bottom: 1rem;
}
.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--white);
}
.product-card h3 {
  font-size: 0.95rem;
  margin-block: 0.5rem;
}
.product-card h3 a {
  text-decoration: none;
}
.product-card p {
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
}
.tag {
  display: inline-block;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
}
.price {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.product-card .small {
  font-size: 0.7rem;
}
.story {
  background: var(--ink);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
}
.story h2 {
  max-width: 600px;
}
.story a {
  color: var(--white);
}
.story p {
  max-width: 660px;
}
.breadcrumb {
  padding-block: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.intro {
  padding-block: 1rem 2rem;
  max-width: 800px;
}
.intro h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.model-links,
.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.model-links button,
.jump-links a {
  background: var(--white);
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
}
.model-links button[aria-pressed='true'],
.choice[aria-current='page'] {
  border-color: var(--ink);
  background: var(--soft);
  font-weight: 700;
}
.grade-links {
  display: grid;
  gap: 0.5rem;
  margin-block: 0.75rem;
  font-size: 0.8rem;
}
.catalog {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
.filters {
  background: var(--white);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-self: start;
}
.filters summary {
  font-weight: 600;
  min-height: 44px;
}
.filters label {
  display: block;
  margin-block: 1rem 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.filters select,
.filters input {
  width: 100%;
}
.filters button {
  margin-top: 1rem;
  width: 100%;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.toolbar select {
  max-width: 100%;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.active-filters:empty {
  margin: 0;
}
.active-filters button {
  background: var(--pink);
  border-color: var(--action);
  font-size: 0.8rem;
}
.empty {
  padding: 2rem;
  border: 1px dashed var(--muted);
  margin-bottom: 1rem;
}
/*
 * Footer. Phone: one centred column (shop + info side by side). 600px+: left-aligned, brand | contact,
 * shop | info, delivery | payment. 960px+: brand · shop · info · contact in one row.
 */
.footer {
  --footer-muted: rgb(255 255 255 / 64%);
  --footer-line: rgb(255 255 255 / 11%);
  --footer-raise: rgb(255 255 255 / 5%);
  margin-top: 3rem;
  padding-top: 3.5rem;
  background: var(--ink);
  color: var(--white);
  text-align: center;
}
.footer p {
  max-width: none;
  margin: 0;
  font-size: 0.85rem;
}
.footer a {
  font-size: inherit;
}
.footer .footer-heading {
  margin: 0 0 1rem;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    'brand   brand'
    'shop    info'
    'contact contact';
  align-items: start;
  justify-items: center;
  gap: 2.5rem 1rem;
}
.footer-main > * {
  min-width: 0;
}
.footer-brand {
  grid-area: brand;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  max-width: 34ch;
}
.footer-col--shop {
  grid-area: shop;
}
.footer-col--info {
  grid-area: info;
}
.footer-claim {
  color: var(--footer-muted);
  line-height: 1.7;
}
.footer-icons {
  display: flex;
  gap: 0.6rem;
}
.footer-icons a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--footer-line);
  border-radius: 10px;
  color: var(--white);
  transition:
    background 0.2s,
    border-color 0.2s;
}
.footer-icons a:hover {
  border-color: var(--action);
  background: var(--action);
}
.footer-icons--social a {
  width: 36px;
  height: 36px;
}
.footer-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-list a {
  color: var(--footer-muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.footer-list a:hover {
  color: var(--white);
  text-decoration: underline;
}
.footer-contact {
  grid-area: contact;
}
.footer .footer-contact-name {
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
}
.footer-contact-list {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  list-style: none;
}
.footer-contact-list span {
  color: var(--footer-muted);
}
.footer-contact-list a {
  color: inherit;
}
/* Delivery and payment */
.footer-shipping {
  display: grid;
  gap: 2.25rem;
  margin-top: 3rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--footer-line);
}
.footer .footer-lead {
  margin-bottom: 0.9rem;
  color: var(--footer-muted);
}
.footer-lead strong {
  color: var(--white);
  font-size: 1.05rem;
}
.footer-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-chips li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--footer-line);
  border-radius: 6px;
  background: var(--footer-raise);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}
.footer-chips .is-pickup {
  border-color: rgb(233 67 90 / 55%);
}
.footer .footer-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-size: 0.85rem;
  text-decoration: none;
}
.footer .footer-more:hover {
  text-decoration: underline;
}
.footer-pay {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-pay img {
  display: block;
  width: auto;
  height: 34px;
  border-radius: 5px;
}
.footer .footer-pay-note {
  margin-top: 0.85rem;
  color: var(--footer-muted);
  font-size: 0.75rem;
}
/* Bottom bar */
.footer-bottom {
  padding-block: 1.25rem;
  background: rgb(0 0 0 / 22%);
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.footer .footer-copy {
  font-size: 0.78rem;
}
@media (min-width: 600px) {
  .footer {
    text-align: left;
  }
  .footer-main {
    grid-template-areas:
      'brand contact'
      'shop  info';
    justify-items: stretch;
    column-gap: 2.5rem;
  }
  .footer-brand {
    justify-items: start;
  }
  .footer-brand > .logo img {
    /* captain-shop.png has ~8px of transparent space on the left at 150px width. */
    margin-left: -0.5rem;
  }
  .footer-chips,
  .footer-pay {
    justify-content: flex-start;
  }
  .footer-shipping {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    column-gap: 2.5rem;
  }
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}
@media (min-width: 960px) {
  .footer-main {
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    grid-template-areas: 'brand shop info contact';
    column-gap: 3rem;
  }
  .footer-shipping {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    column-gap: 3rem;
  }
}
/* Progressive enhancement: navigation is available without JavaScript. */
.header .search,
.header .nav {
  display: flex;
}
@media (max-width: 599px) {
  .header.ui-ready:not(.menu-open) .search,
  .header.ui-ready:not(.menu-open) .nav {
    display: none;
  }
}
.logo,
.custom-logo-link {
  flex-shrink: 0;
}
.custom-logo {
  width: 150px;
  height: auto;
}
.menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1rem;
}
.menu .sub-menu {
  padding-left: 1rem;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.grade-guide dt {
  font-weight: 700;
}
.grade-guide dd {
  margin: 0 0 0.75rem;
}
.page-content {
  min-height: 45vh;
}
textarea {
  font: inherit;
  width: 100%;
  min-height: 8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.75rem;
}
.woocommerce-ordering,
.woocommerce-ordering select {
  max-width: 100%;
}

/* Header hover panels: account menu and mini cart. Touch and narrow screens keep plain icon links. */
.header-pop {
  position: relative;
  display: flex;
}
.header-panel {
  display: none;
}
@media (hover: hover) and (min-width: 600px) {
  .header-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: -8px;
    z-index: 40;
    display: block;
    width: 300px;
    padding: 1rem 1.1rem 1.1rem;
    background: var(--white);
    color: var(--ink);
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgb(0 0 0 / 22%);
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
      opacity 0.18s ease,
      transform 0.18s ease,
      visibility 0s linear 0.18s;
  }
  .cart-pop .header-panel {
    width: 380px;
  }
  /* Bridge over the gap so the panel stays open while the pointer travels to it. */
  .header-panel::before {
    content: '';
    position: absolute;
    inset: -14px 0 100%;
  }
  /* Caret pointing at the icon centre (44 px icon, panel 8 px past its right edge). */
  .header-panel::after {
    content: '';
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--white);
    transform: rotate(45deg);
  }
  .header-pop:hover > .header-panel,
  .header-pop:focus-within > .header-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  /* Category menus: open from the label's left edge, panel text in line with the label. */
  .nav-pop > .header-panel {
    /* -1rem = the narrow-screen page gutter, so the panel never pokes out of the viewport. */
    left: -1rem;
    right: auto;
    padding-inline: 1rem;
    width: max-content;
    min-width: 240px;
    max-width: calc(100vw - 4rem);
  }
  .nav-pop > .header-panel::after {
    left: 1.6rem;
    right: auto;
  }
  /* Long lists (iPhone models) flow into columns instead of a page-tall panel. */
  .nav-pop > .header-panel:has(li:nth-child(13)) {
    width: min(760px, calc(100vw - 4rem));
  }
  .nav-pop .header-panel-menu:has(li:nth-child(13)) {
    columns: 4 150px;
    column-gap: 1.6rem;
  }
  .nav-pop .header-panel-menu li {
    break-inside: avoid;
  }
  .nav-pop .header-panel-menu a {
    white-space: nowrap;
  }
  /* Labels get the same soft hover background as the account and cart icons. */
  .header .nav > a,
  .header .nav-item > a {
    margin-inline: -0.6rem;
    padding-inline: 0.6rem;
    border-radius: 6px;
    transition: background-color 150ms ease;
  }
  .header .nav > a:hover,
  .header .nav-item > a:hover,
  .nav-pop:is(:hover, :focus-within) > a {
    background: rgb(255 255 255 / 10%);
  }
  .header-pop.is-dismissed > .header-panel,
  .woocommerce-cart .cart-pop > .header-panel,
  .woocommerce-checkout .cart-pop > .header-panel,
  /* Nothing to show until Woo's uncached cart fragments arrive (~2 s on the live host). */
  .cart-pop > .header-panel:has(> .widget_shopping_cart_content:empty) {
    display: none;
  }
}
.header .header-panel :focus-visible {
  outline-color: var(--action);
  outline-offset: 2px;
}
.header-panel-title {
  margin: 0 0 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.header-panel-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-panel-menu a {
  display: block;
  padding: 0.45rem 0.6rem;
  margin-inline: -0.6rem;
  border-radius: 6px;
  text-decoration: none;
}
.header-panel-menu a:hover {
  background: var(--paper);
}
.header-panel-menu .is-customer-logout {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--soft);
}
.header-panel-actions {
  display: grid;
  gap: 0.5rem;
}
.header-panel .button {
  width: 100%;
}

/* Complianz "Spravovat souhlas" tab bottom left, away from the chat bubble bottom right. */
body #cmplz-manage-consent .cmplz-manage-consent {
  right: auto;
  left: 40px;
}
