/* ==========================================================
   Category page (bracelet.php) - loaded only on shop pages
   ========================================================== */
.catnav__link.is-current {
  color: var(--ink);
}

.catnav__link.is-current::after {
  transform: scaleX(1);
}

/* ---------- Page banner ---------- */
.shop-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 80px);
  background: radial-gradient(900px 500px at 80% 30%, #17181b, transparent 65%), linear-gradient(180deg, #000, var(--bg));
}

.shop-hero__bg {
  position: absolute;
  top: 50%;
  right: max(16px, calc((100% - 1240px) / 2));
  width: clamp(240px, 34vw, 440px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  overflow: hidden;
  opacity: .85;
  mask-image: radial-gradient(closest-side, #000 55%, transparent);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
}

.shop-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: shopSpin 60s linear infinite;
}

@keyframes shopSpin {
  to {
    transform: rotate(360deg) scale(1.05);
  }
}

.shop-hero__inner {
  position: relative;
  z-index: 1;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs i {
  font-size: .55rem;
}

.crumbs span {
  color: var(--ink);
}

.shop-hero__title {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 500;
  margin-bottom: 16px;
}

.shop-hero__title em {
  font-style: italic;
  font-weight: 400;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.shop-hero__text {
  max-width: 560px;
}

.shop-hero__meta {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-hero__meta li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: .8rem;
  color: var(--text);
}

.shop-hero__meta strong {
  color: var(--ink);
}

/* ---------- Layout ---------- */
main > section.shop {
  content-visibility: visible; /* the grid is the main content: never skip rendering it */
}

.shop {
  position: relative;
  padding: clamp(40px, 5vw, 64px) 0 clamp(72px, 9vw, 110px);
}

.shop__layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

/* ---------- Sidebar ---------- */
.shop-side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 18px;
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  overscroll-behavior: contain; /* reaching the end of the list does not scroll the page */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, .25) transparent;
  padding-right: 6px;
}

.shop-side::-webkit-scrollbar {
  width: 5px;
}

.shop-side::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: rgba(0, 0, 0, .25);
}

.shop-side::-webkit-scrollbar-track {
  background: transparent;
}

.shop-side__head,
.shop-side__backdrop {
  display: none;
}

.side-block {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
}

.side-block__title {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.side-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.side-cats__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  transition: background .3s, color .3s, padding .35s var(--ease);
}

.side-cats__link i {
  font-size: .7rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s, transform .35s var(--ease);
}

.side-cats__link:hover {
  padding-left: 16px;
  background: rgba(0, 0, 0, .05);
  color: var(--ink);
}

.side-cats__link:hover i {
  opacity: 1;
  transform: none;
}

.side-cats__link.is-current {
  background: #0d0e10;
  color: #f3f4f6;
  font-weight: 600;
}

.side-cats__link.is-current:hover {
  padding-left: 12px;
  background: #0d0e10;
  color: #f3f4f6;
}

.side-cats__link em {
  font-style: normal;
  font-size: .72rem;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--grad-silver);
  color: #0a0a0b;
}

.side-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.side-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}

.side-pill em {
  font-style: normal;
  font-size: .7rem;
  color: var(--muted);
}

.side-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.side-pill.is-active {
  background: #0d0e10;
  border-color: #0d0e10;
  color: #f3f4f6;
}

.side-pill.is-active em {
  color: #aeb4bd;
}

.side-checks {
  display: grid;
  gap: 4px;
}

.side-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 4px;
  font-size: .9rem;
  color: var(--text);
  cursor: pointer;
}

.side-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.side-check__box {
  flex: 0 0 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  font-size: .6rem;
  color: transparent;
  transition: background .25s, border-color .25s, color .25s;
}

.side-check__label {
  flex: 1;
}

.side-check em {
  font-style: normal;
  font-size: .75rem;
  color: var(--muted);
}

.side-check:hover .side-check__box {
  border-color: var(--ink);
}

.side-check input:checked + .side-check__box {
  background: #0d0e10;
  border-color: #0d0e10;
  color: #f3f4f6;
}

.side-check input:focus-visible + .side-check__box {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.side-check input:checked ~ .side-check__label {
  color: var(--ink);
  font-weight: 600;
}

.side-reset {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.side-reset:hover {
  color: var(--ink);
}

.side-cta {
  padding: 24px 22px;
  border-radius: 20px;
  background: #0d0e10;
  color: #b5b9c1;
  text-align: center;
}

.side-cta > i {
  font-size: 1.8rem;
  color: var(--wa);
}

.side-cta strong {
  display: block;
  margin: 8px 0 4px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: #f3f4f6;
}

.side-cta p {
  font-size: .84rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

/* the sidebar CTA is a black card inside a silver section: use the black-section button style */
:is(main, .footer) .is-silver .side-cta .btn--silver {
  --btn-fill: #0a0a0b;
  --btn-hover-text: #f3f4f6;
  background: var(--grad-silver);
  background-size: 200% 100%;
  color: #0a0a0b;
}

:is(main, .footer) .is-silver .side-cta .btn--silver:hover {
  border-color: rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 5px rgba(200, 206, 216, .12);
}

/* ---------- Toolbar ---------- */
.shop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 12px 12px 12px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
}

.shop-bar__count {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}

.shop-bar__filters {
  display: none;
}

.shop-bar__sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  color: var(--muted);
}

.shop-bar__sort select {
  appearance: none;
  padding: 10px 36px 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background-color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

/* "bulk only" notice above the grid */
.shop-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -8px 0 22px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #0d0e10;
  color: #b5b9c1;
  font-size: .86rem;
  line-height: 1.5;
}

.shop-note i {
  flex: 0 0 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-silver);
  color: #0a0a0b;
  font-size: .85rem;
}

.shop-note strong {
  color: #f3f4f6;
}

/* ---------- Product grid (3 per row) ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.shop-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px -24px rgba(40, 46, 56, .5);
  transition: transform .5s var(--ease), box-shadow .5s, border-color .4s;
}

.shop-card.is-hidden {
  display: none;
}

.shop-card.is-in {
  animation: cardIn .7s var(--ease) both;
  animation-delay: var(--d, 0ms);
}

.shop-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.shop-card__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f1f2f4;
}

.shop-card__slides {
  display: flex;
  height: 100%;
  transition: transform .6s var(--ease);
}

.shop-card__slides img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.shop-card:not(.has-slider):hover .shop-card__slides img {
  transform: scale(1.07);
}

.shop-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(10, 10, 11, .82);
  color: #f3f4f6;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
}

.shop-card__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #0a0a0b;
  font-size: .75rem;
  cursor: pointer;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35);
  opacity: 0;
  transition: opacity .35s, transform .45s var(--ease), background .3s, color .3s;
}

.shop-card__nav--prev {
  left: 12px;
  transform: translate(-10px, -50%);
}

.shop-card__nav--next {
  right: 12px;
  transform: translate(10px, -50%);
}

.shop-card:hover .shop-card__nav,
.shop-card__nav:focus-visible {
  opacity: 1;
  transform: translate(0, -50%);
}

.shop-card__nav:hover {
  background: #0a0a0b;
  color: #fff;
}

.shop-card__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.shop-card__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 10, 11, .3);
  cursor: pointer;
  transition: width .4s var(--ease), background .3s;
}

.shop-card__dots button.is-active {
  width: 22px;
  background: #0a0a0b;
}

.shop-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}

.shop-card__style {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-card__body h3 {
  flex: 1;
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.shop-card__body h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shop-card__enquire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink);
  transition: background .35s, border-color .35s, color .35s;
}

.shop-card__enquire i {
  color: var(--wa);
  font-size: 1.1rem;
  transition: color .35s;
}

.shop-card__enquire:hover {
  background: var(--wa);
  border-color: var(--wa);
  color: #fff;
}

.shop-card__enquire:hover i {
  color: #fff;
}

.shop-empty {
  padding: 60px 20px;
  border-radius: 20px;
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.shop-empty[hidden] {
  display: none;
}

.shop-empty > i {
  font-size: 2rem;
  color: var(--muted);
}

.shop-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
}

.shop-more[hidden] {
  display: none;
}

.shop-more__progress {
  width: 200px;
  height: 2px;
  border-radius: 2px;
  background: rgba(0, 0, 0, .1);
  overflow: hidden;
}

.shop-more__progress span {
  display: block;
  height: 100%;
  background: #0d0e10;
  transform-origin: left;
  transition: transform .6s var(--ease);
}

/* ---------- About the collection ---------- */
.shop-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.shop-about__grid .btn {
  margin-top: 10px;
}

.shop-about__text h3 {
  margin: 28px 0 14px;
  font-size: 1.5rem;
}

.shop-about__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.shop-about__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.shop-about__list i {
  flex: 0 0 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-silver);
  color: #0a0a0b;
  font-size: .62rem;
}

.shop-faq__title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: 22px;
}

.shop-hero__title span {
  display: block;
  margin-top: .2em;
  font-family: var(--sans);
  font-size: .3em;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .shop__layout {
    grid-template-columns: 240px 1fr;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .shop-hero__bg {
    opacity: .35;
  }

  .shop__layout,
  .shop-about__grid {
    grid-template-columns: 1fr;
  }

  /* sidebar becomes a slide-in drawer */
  .shop-side {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1200;
    width: min(340px, 88vw);
    max-height: none;
    padding: 20px;
    background: #e9ebef;
    box-shadow: 30px 0 60px -30px rgba(0, 0, 0, .5);
    transform: translateX(-105%);
    transition: transform .55s var(--ease);
    align-content: start;
  }

  .shop-side.is-open {
    transform: none;
  }

  .shop-side__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--ink);
  }

  .shop-side__close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .shop-side__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1150;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
  }

  .shop-side__backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }

  .shop-bar {
    flex-wrap: wrap;
    padding: 10px;
  }

  .shop-bar__filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 0;
    background: #0d0e10;
    color: #f3f4f6;
    font-size: .86rem;
    font-weight: 600;
    cursor: pointer;
  }

  .shop-bar__filters em {
    font-style: normal;
    min-width: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--grad-silver);
    color: #0a0a0b;
    font-size: .7rem;
  }

  .shop-bar__filters em:empty {
    display: none;
  }

  .shop-bar__count {
    order: 3;
    width: 100%;
    padding: 2px 6px 0;
    font-size: .82rem;
  }

  .shop-bar__sort span {
    display: none;
  }
}

@media (max-width: 640px) {
  .shop-grid {
    gap: 12px;
  }

  .shop-card__body {
    padding: 12px;
    gap: 6px;
  }

  .shop-card__body h3 {
    font-size: .84rem;
  }

  .shop-card__style {
    font-size: .6rem;
  }

  .shop-card__enquire {
    font-size: .72rem;
    padding: 9px 6px;
  }

  .shop-card__enquire i {
    font-size: .95rem;
  }

  .shop-card__enquire .hide-sm {
    display: none;
  }

  .shop-card__tag {
    top: 8px;
    left: 8px;
    font-size: .58rem;
    padding: 3px 8px;
  }

  /* touch screens: arrows always visible but smaller */
  .shop-card__nav {
    width: 28px;
    height: 28px;
    opacity: 1;
    transform: translate(0, -50%);
    font-size: .6rem;
  }

  .shop-card__nav--prev {
    left: 6px;
  }

  .shop-card__nav--next {
    right: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-hero__bg img {
    animation: none;
  }
}
