/* Focused adjustments for the compact FALKE DIREKT product website. */

/* Product photographs should sit on one continuous, neutral surface. */
.category-image,
.product-image,
.product-visual,
.search-result-item img {
  background: #fff !important;
}

/* The footer deliberately repeats the header's red band and logo panel. */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--red-dark), var(--red) 55%, #b10b25);
  color: #fff;
  box-shadow: 0 -2px 14px rgba(43, 0, 9, .12);
}

.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  inset: -80px auto -80px 56%;
  width: 250px;
  background: rgba(255, 255, 255, .045);
  transform: skew(-38deg);
}

.site-footer::after {
  left: auto;
  right: 5%;
  width: 180px;
  background: rgba(63, 0, 12, .13);
}

.footer-inner,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-brand-panel {
  width: 252px;
  min-height: 70px;
  display: flex;
  align-items: center;
  background: #fff;
  padding: 10px 24px 10px 36px;
  border-bottom-right-radius: 32px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 26px 100%);
  overflow: hidden;
}

.footer-logo {
  width: 170px;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.footer-inner p,
.footer-contact span,
.footer-bottom {
  color: rgba(255, 255, 255, .82);
}

.footer-bottom {
  border-top-color: rgba(255, 255, 255, .2);
}

.footer-links a,
.footer-contact strong {
  color: #fff;
}

/* Six category cards fit in one row on a normal desktop. */
.category-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.category-card {
  min-width: 0;
}

.category-grid .category-body {
  padding-left: 12px;
  padding-right: 12px;
}

.category-body h3 {
  font-size: 17px;
  overflow-wrap: normal;
  hyphens: auto;
}

.price-on-request {
  font-size: 16px !important;
  white-space: nowrap;
}

.inquiry-wrap {
  position: relative;
}

.inquiry-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  left: 0;
  min-width: 260px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 38, 60, .18);
}

.inquiry-panel[hidden] {
  display: none;
}

.inquiry-panel strong,
.inquiry-panel a {
  display: block;
}

.inquiry-panel strong {
  margin-bottom: 4px;
  color: var(--navy);
}

.inquiry-panel a {
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.5;
}

.related-carousel {
  position: relative;
  padding: 0 42px;
}

.related-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 20px) / 3);
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.related-track::-webkit-scrollbar {
  display: none;
}

.related-card {
  scroll-snap-align: start;
}

.carousel-button {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  box-shadow: 0 7px 18px rgba(142, 0, 24, .22);
  cursor: pointer;
}

.carousel-button:hover {
  background: var(--red-dark);
}

.carousel-button svg {
  width: 18px;
  height: 18px;
}

.carousel-prev {
  left: 0;
}

.carousel-prev svg {
  transform: rotate(180deg);
}

.carousel-next {
  right: 0;
}

@media (min-width: 781px) {
  :root { --max: 1320px; }

  .header-inner {
    height: 70px;
    padding: 0 18px;
  }

  .brand {
    width: 252px;
    margin-left: -18px;
    padding: 10px 24px 10px 36px;
    border-bottom-right-radius: 32px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 26px 100%);
    overflow: hidden;
  }

  .brand img {
    width: 170px;
    height: auto;
  }

  .main-nav a {
    padding: 9px 12px;
    font-size: 13px;
  }

  .breadcrumbs {
    padding: 10px 18px 0;
    gap: 5px;
    font-size: 12px;
    min-height: 32px;
  }

  .product-detail {
    max-width: var(--max);
    margin: 0 auto;
    padding: 8px 18px 16px;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.08fr) minmax(0, 1.12fr);
    gap: 10px;
    align-items: start;
  }

  .product-column {
    display: grid;
    gap: 10px;
    min-width: 0;
  }

  .product-detail .product-visual,
  .product-detail .product-summary,
  .product-detail .content-card {
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(20, 38, 60, .035);
  }

  /* Exactly twenty percent more image space than the first compact version. */
  .product-detail .product-visual {
    height: 302px;
    min-height: 0;
    padding: 14px;
  }

  .product-detail .product-visual img {
    width: 100%;
    height: 274px;
    object-fit: contain;
  }

  .product-detail .product-summary,
  .product-detail .content-card {
    padding: 15px 16px;
  }

  .product-detail .eyebrow {
    gap: 6px;
    font-size: 9px;
    letter-spacing: .14em;
  }

  .product-detail .eyebrow::before { width: 18px; }

  .product-detail .product-summary h1 {
    margin: 6px 0 7px;
    font-size: clamp(26px, 2.25vw, 34px);
    line-height: 1.04;
    letter-spacing: -.025em;
  }

  .product-detail .article-line {
    gap: 7px;
    margin: 0 0 9px;
    font-size: 11px;
  }

  .product-detail .article-badge {
    padding: 4px 7px;
    border-radius: 6px;
  }

  .product-detail .price-box {
    align-items: center;
    margin: 0 0 9px;
    padding: 9px 0;
  }

  .product-detail .price-box span { font-size: 10px; }
  .product-detail .price-box strong { font-size: 27px; }
  .product-detail .price-box .price-on-request { font-size: 17px !important; }
  .product-detail .action-row { gap: 6px; }

  .product-detail .button {
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.1;
  }

  .product-detail .button svg {
    width: 13px;
    height: 13px;
  }

  .product-detail .content-card h2 {
    margin: 4px 0 7px;
    font-size: 20px;
    line-height: 1.08;
  }

  .product-detail .spec-table th,
  .product-detail .spec-table td {
    padding: 4px 3px;
    font-size: 11.5px;
    line-height: 1.24;
  }

  .product-detail .spec-table th { width: 43%; }

  .quick-card {
    display: grid;
    gap: 9px;
  }

  .compact-info-block + .compact-info-block {
    padding-top: 9px;
    border-top: 1px solid #edf1f5;
  }

  .quick-card p,
  .product-detail .faq-card p {
    margin: 5px 0 0;
    font-size: 12px;
    line-height: 1.31;
  }

  .product-detail .benefit-list { gap: 5px; }

  .product-detail .benefit-list li {
    grid-template-columns: 16px 1fr;
    gap: 7px;
    font-size: 12px;
    line-height: 1.24;
  }

  .product-detail .benefit-list .tick {
    width: 15px;
    height: 15px;
    margin-top: 0;
  }

  .product-detail .benefit-list svg {
    width: 9px;
    height: 9px;
  }

  .product-detail .faq-question {
    margin: 5px 0 4px !important;
    font-size: 12px;
  }

  .related { padding: 6px 18px 44px; }
  .related .section-head { margin-bottom: 9px; }
  .related .section-head h2 { font-size: 23px; }

  .related .carousel-button {
    top: 69px;
  }

  .related .product-image {
    height: 138px;
    padding: 12px;
  }

  .related .product-card-body { padding: 11px 12px; }

  .related .product-card h3 {
    margin: 5px 0 8px;
    min-height: 34px;
    font-size: 16px;
    line-height: 1.08;
  }

  .related .product-meta {
    padding-top: 8px;
    font-size: 11px;
  }

  .related .product-meta strong { font-size: 14px; }
  .related .product-category,
  .related .card-link { font-size: 10px; }
  .related .card-link { margin-top: 8px; }
}

@media (max-width: 1200px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 781px) and (max-width: 1050px) {
  .product-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-column-info {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .related-track { grid-auto-columns: calc((100% - 10px) / 2); }
}

@media (max-width: 780px) {
  .brand {
    padding-left: 31px;
    border-bottom-right-radius: 28px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%);
    overflow: hidden;
  }

  .product-detail {
    display: grid;
    gap: 12px;
    padding: 18px 15px 34px;
  }

  .product-column {
    display: grid;
    gap: 12px;
    min-width: 0;
  }

  .product-detail .product-visual,
  .product-detail .product-summary,
  .product-detail .content-card { border-radius: 16px; }

  .product-detail .product-visual {
    min-height: 340px;
    padding: 22px;
  }

  .product-detail .product-visual img { height: 300px; }

  .product-detail .product-summary,
  .product-detail .content-card { padding: 22px; }

  .quick-card {
    display: grid;
    gap: 16px;
  }

  .compact-info-block + .compact-info-block {
    padding-top: 16px;
    border-top: 1px solid #edf1f5;
  }

  .quick-card p { margin: 8px 0 0; }

  .inquiry-panel {
    position: static;
    width: 100%;
    margin-top: 7px;
  }

  .related-carousel { padding: 0 38px; }
  .related-track { grid-auto-columns: 100%; }

  .footer-brand-panel {
    width: 252px;
    min-height: 70px;
  }
}

@media (max-width: 520px) {
  .category-grid { grid-template-columns: 1fr; }
}
