/* Woolworths-style catalogue landing + viewer */
.bn-cat-landing {
  padding: 36px 0 64px;
  background: var(--bn-bg, #F5F8FF);
}

.bn-cat-landing__head {
  max-width: 640px;
  margin-bottom: 28px;
}

.bn-cat-landing__eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--bn-primary, #1554C0);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bn-cat-landing__title {
  margin: 0 0 8px;
  color: var(--bn-text, #172033);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}

.bn-cat-landing__desc {
  margin: 0;
  color: var(--bn-muted, #6B7280);
  font-size: 15px;
}

.bn-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.bn-cat-card {
  background: var(--bn-card, #fff);
  border: 1px solid var(--bn-border, #E5EAF3);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.bn-cat-card__media {
  display: block;
  aspect-ratio: 3 / 4;
  background: #eef2f7;
}

.bn-cat-card__media img,
.bn-cat-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bn-cat-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bn-primary);
  font-size: 42px;
}

.bn-cat-card__body {
  padding: 16px 18px 20px;
}

.bn-cat-card__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.bn-cat-card__title a {
  color: var(--bn-text);
  text-decoration: none;
}

.bn-cat-card__dates,
.bn-cat-card__meta {
  margin: 0 0 4px;
  color: var(--bn-muted);
  font-size: 13px;
}

.bn-cat-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bn-primary-gradient, var(--bn-primary));
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}

.bn-cat-empty {
  padding: 48px 20px;
  text-align: center;
  background: #fff;
  border-radius: 16px;
}

.bn-cat-empty__link {
  color: var(--bn-primary);
  font-weight: 700;
}

.bn-cat-viewer {
  background: #1b2433;
  min-height: 70vh;
  padding-bottom: 24px;
}

.bn-cat-viewer__bar {
  background: #111827;
  color: #fff;
  padding: 12px 0;
}

.bn-cat-viewer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bn-cat-viewer__back {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 13px;
}

.bn-cat-viewer__titles h1 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}

.bn-cat-viewer__titles p {
  margin: 0;
  color: #9ca3af;
  font-size: 12px;
}

.bn-cat-viewer__pager {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
}

.bn-cat-spread-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 8px;
}

.bn-cat-side-btn {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--bn-primary, #1554C0);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(21, 84, 192, 0.35);
}

.bn-cat-side-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.bn-cat-spread {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: min(1180px, 100%);
}

.bn-flyer {
  background: #fff;
  border: 6px solid var(--bn-primary, #1554C0);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.bn-flyer__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bn-primary-gradient, #1554C0);
  color: #fff;
}

.bn-flyer__head span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bn-flyer__head strong {
  font-size: 16px;
}

.bn-flyer__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  background: #d7deea;
}

.bn-flyer-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 12px 8px;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
  min-height: 160px;
}

.bn-flyer-tile.is-hero {
  grid-column: span 6;
  min-height: 280px;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
}

.bn-flyer-tile.is-hero-split {
  grid-column: span 4;
  min-height: 280px;
}

.bn-flyer-tile.is-side {
  grid-column: span 2;
  min-height: 280px;
}

.bn-flyer-tile.is-half {
  grid-column: span 3;
  min-height: 220px;
}

.bn-flyer-tile.is-third {
  grid-column: span 2;
  min-height: 200px;
}

.bn-flyer-tile__price {
  display: block;
  color: var(--bn-text, #172033);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.bn-flyer-tile.is-hero .bn-flyer-tile__price,
.bn-flyer-tile.is-hero-split .bn-flyer-tile__price {
  font-size: 42px;
}

.bn-flyer-tile__price small {
  font-size: 0.45em;
  vertical-align: super;
}

.bn-flyer-tile__name {
  display: block;
  margin: 6px 0 8px;
  color: var(--bn-text, #172033);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.bn-flyer-tile img,
.bn-flyer-tile__ph {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: contain;
  margin-top: auto;
}

.bn-flyer-tile.is-hero img,
.bn-flyer-tile.is-hero-split img {
  height: 180px;
}

.bn-flyer-tile__plus {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bn-primary, #1554C0);
  color: #fff;
  font-size: 20px;
  line-height: 26px;
  text-align: center;
  font-weight: 700;
}

.bn-flyer-tile:hover {
  background: #f5f8ff;
}

.bn-flyer__empty {
  min-height: 280px;
  background: #fff;
}

.bn-flyer__empty img {
  width: 100%;
  height: auto;
  display: block;
}

.bn-flyer--layout {
  background: #fff;
}

.bn-flyer-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.bn-flyer-block {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  border: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.bn-flyer-block--product {
  cursor: pointer;
  text-align: left;
}

.bn-flyer-block--header {
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.bn-flyer-block__price {
  font-size: clamp(16px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1;
}

.bn-flyer-block__price small {
  font-size: 0.45em;
  vertical-align: super;
}

.bn-flyer-block__name,
.bn-flyer-block__text,
.bn-flyer-block__banner-text {
  font-weight: 700;
  line-height: 1.25;
}

.bn-flyer-block img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: contain;
}

.bn-flyer-block__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bn-sale, #E53935);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.bn-cat-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 16px;
  scroll-snap-type: x mandatory;
}

.bn-cat-thumb {
  flex: 0 0 64px;
  height: 84px;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  scroll-snap-align: start;
}

.bn-cat-thumb.is-active {
  border-color: #19A7E0;
}

.bn-cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.is-cat-modal-open {
  overflow: hidden;
}

.bn-cat-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.bn-cat-modal[hidden] {
  display: none;
}

.bn-cat-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.bn-cat-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.bn-cat-modal__close {
  position: absolute;
  top: 8px;
  right: 14px;
  z-index: 2;
  border: 0;
  background: none;
  color: #111827;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.bn-cat-modal__grid {
  display: grid;
  grid-template-columns: 1fr;
}

.bn-cat-modal__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 24px 20px;
}

.bn-cat-modal__photo {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  cursor: zoom-in;
}

.bn-cat-modal__photo img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.bn-cat-modal__zoom-hint {
  margin: 16px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.bn-cat-modal__info {
  padding: 36px 28px 24px;
}

.bn-cat-modal__valid {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: #eef7fe;
  border-left: 4px solid var(--bn-accent, #19A7E0);
  color: #172033;
  font-size: 14px;
  font-weight: 600;
}

.bn-cat-modal__valid i {
  margin-top: 2px;
  color: var(--bn-primary, #1554C0);
}

.bn-cat-modal__info h2 {
  margin: 0 0 18px;
  color: #111827;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.25;
}

.bn-cat-modal__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.bn-cat-modal__price {
  margin: 0;
  color: #111827;
  font-weight: 800;
  line-height: 1;
}

.bn-cat-modal__sym,
.bn-cat-modal__cents {
  font-size: 0.45em;
  font-weight: 800;
  vertical-align: super;
}

.bn-cat-modal__dollars {
  font-size: 48px;
  letter-spacing: -0.03em;
}

.bn-cat-modal__each {
  margin-left: 6px;
  font-size: 22px;
  font-weight: 700;
}

.bn-cat-modal__unit {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.bn-cat-modal__save {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 15px;
}

.bn-cat-modal__rule {
  margin: 22px 0 18px;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

.bn-cat-modal__footer {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px 14px;
}

.bn-cat-modal__thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #f8fafc;
}

.bn-cat-modal__footer-name {
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.bn-cat-modal__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 180px;
}

.bn-cat-modal__cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border: 0;
  border-radius: 4px;
  background: var(--bn-primary, #1554C0);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.bn-cat-modal__cart:hover:not(:disabled) {
  background: var(--bn-primary-hover, #1248A8);
}

.bn-cat-modal__cart:disabled {
  opacity: 0.5;
  cursor: default;
}

.bn-cat-modal__view {
  color: var(--bn-primary, #1554C0);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.bn-cat-zoom {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(15, 23, 42, 0.88);
}

.bn-cat-zoom[hidden] {
  display: none;
}

.bn-cat-zoom img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.bn-cat-zoom__close {
  position: absolute;
  top: 12px;
  right: 18px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.catalogue-nav-item .name p {
  white-space: nowrap;
}

@media (min-width: 992px) {
  .bn-cat-spread {
    grid-template-columns: 1fr 1fr;
  }

  .bn-cat-modal__grid {
    grid-template-columns: 40% 1fr;
  }

  .bn-cat-modal__media {
    padding: 48px 20px 32px 32px;
  }

  .bn-cat-modal__info {
    padding: 48px 40px 28px 20px;
  }
}

@media (max-width: 767px) {
  .bn-cat-viewer__bar-inner {
    flex-wrap: wrap;
  }

  .bn-cat-side-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .bn-flyer-tile.is-hero,
  .bn-flyer-tile.is-hero-split {
    grid-column: span 6;
    min-height: 240px;
  }

  .bn-flyer-tile.is-side,
  .bn-flyer-tile.is-half,
  .bn-flyer-tile.is-third {
    grid-column: span 3;
    min-height: 190px;
  }

  .bn-cat-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .bn-cat-modal__dialog {
    max-height: calc(100vh - 24px);
  }

  .bn-cat-modal__footer {
    grid-template-columns: 48px 1fr;
  }

  .bn-cat-modal__actions {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .bn-cat-modal__dollars {
    font-size: 40px;
  }
}
