/* KledingBaai storefront polish layer. */
:root {
  --kb-navy: #08264a;
  --kb-navy-soft: #15375d;
  --kb-cream: #f8f4ee;
  --kb-ink: #102235;
  --kb-muted: #667789;
  --kb-line: rgba(8, 38, 74, 0.14);
  --kb-shadow: 0 16px 42px rgba(8, 38, 74, 0.12);
}

body {
  color: var(--kb-ink);
  background: #fffdfa;
  text-rendering: optimizeLegibility;
}

a,
button,
summary,
.button,
[class*="button"] {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

button:hover,
.button:hover,
a[class*="button"]:hover,
[class*="__button"]:hover {
  transform: translateY(-1px);
}

img {
  image-rendering: auto;
}

.announcement-bar__group-item {
  min-height: 34px;
  background: #123e19;
  font-weight: 700;
}

.announcement-bar__group-item-inner {
  letter-spacing: 0;
}

theme-header,
.header,
[class*="header__"] {
  backdrop-filter: saturate(140%) blur(8px);
}

.header,
[class*="header-wrapper"],
[class*="header__wrapper"] {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.32), 0 12px 28px rgba(8, 38, 74, 0.08);
}

.rte h1,
h1 {
  letter-spacing: 0;
}

h2,
.section-title,
[class*="section"] h2 {
  letter-spacing: 0.02em;
}

.shopline-section,
[id^="shopline-section"] {
  scroll-margin-top: 92px;
}

.block-collection-list__theme-carousel {
  overflow: visible;
}

.block-collection-list__item,
.block-collection-card,
.block-product-card,
theme-product-card {
  border-radius: 6px;
}

.block-collection-card,
.block-product-card,
theme-product-card {
  overflow: hidden;
}

.block-collection-card:hover,
.block-product-card:hover,
theme-product-card:hover {
  box-shadow: var(--kb-shadow);
  transform: translateY(-2px);
}

.block-product-card__image-wrapper,
.block-product-card__layer-image-wrapper,
.block-collection-card [class*="image"] {
  background: linear-gradient(180deg, var(--kb-cream), #ffffff);
}

.block-product-card__image,
.block-collection-card img {
  transition: transform 420ms ease;
}

.block-product-card:hover .block-product-card__image,
.block-collection-card:hover img {
  transform: scale(1.035);
}

.block-product-card-info,
.block-product-card-info__content {
  gap: 8px;
}

.block-product-card__discount-tag,
.block-product-card__sold-out {
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(8, 38, 74, 0.14);
}

.block-product-card__quick-add,
summary.block-product-card__quick-add {
  border: 1px solid rgba(8, 38, 74, 0.16);
  box-shadow: 0 8px 22px rgba(8, 38, 74, 0.12);
}

.block-product-card__quick-add:hover,
summary.block-product-card__quick-add:hover {
  background: var(--kb-navy);
  color: #fff;
}

.block-collection-list__button,
.announcement-bar__button {
  border-radius: 999px;
}

.footer,
[class*="footer"] {
  letter-spacing: 0;
}

.kb-footer-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kb-footer-links a {
  color: inherit;
  text-decoration: none;
}

.kb-footer-links a:hover {
  color: var(--kb-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kb-policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.kb-policy-grid a {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 18px;
  color: var(--kb-ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--kb-line);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(8, 38, 74, 0.07);
}

.kb-policy-grid a:hover {
  border-color: rgba(8, 38, 74, 0.28);
  box-shadow: var(--kb-shadow);
  transform: translateY(-2px);
}

.kb-policy-grid span {
  color: var(--kb-muted);
}

@media (min-width: 750px) {
  .page-width {
    max-width: min(1440px, calc(100vw - 64px));
  }

  .block-product-card,
  theme-product-card,
  .block-collection-card {
    transition: transform 220ms ease, box-shadow 220ms ease;
  }
}

@media (max-width: 749px) {
  .announcement-bar__group-item {
    min-height: 32px;
  }

  .shopline-section,
  [id^="shopline-section"] {
    scroll-margin-top: 76px;
  }

  h1 {
    line-height: 1.05;
  }

  h2,
  .section-title,
  [class*="section"] h2 {
    line-height: 1.12;
  }

  .block-collection-list,
  .carousel__track {
    scrollbar-width: thin;
    scrollbar-color: rgba(8, 38, 74, 0.38) transparent;
  }

  .block-collection-list::-webkit-scrollbar,
  .carousel__track::-webkit-scrollbar {
    height: 4px;
  }

  .block-collection-list::-webkit-scrollbar-thumb,
  .carousel__track::-webkit-scrollbar-thumb {
    background: rgba(8, 38, 74, 0.32);
    border-radius: 999px;
  }

  .block-product-card,
  theme-product-card {
    border: 1px solid rgba(8, 38, 74, 0.08);
    background: #fff;
  }

  .block-product-card-info,
  .block-product-card-info__content {
    padding-inline: 2px;
  }
}
