.shop-page {
  padding-bottom: 36px;
}

.shop-page__layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.shop-page__sidebar {
  position: sticky;
  top: 95px;
}

.shop-page__mobile-filter-bar {
  display: none;
}

.shop-page__filters-jump {
  display: none;
}

.shop-page__filter-box {
  background: linear-gradient(135deg, #18202a 0%, #0f141a 100%);
  color: #fff;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.shop-page__filter-box h3 {
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.shop-page__filter-box p {
  font-family: Arial, Helvetica, sans-serif;
  color: #e4dacf;
  margin: 0 0 18px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.shop-page__filter-group {
  margin-bottom: 18px;
}

.shop-page__filter-group label {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.shop-page__filter-group select,
.shop-page__filter-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  background: #fff;
  color: #1f2328;
}

.shop-page__filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.shop-page__filter-button {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.95rem;
}

.shop-page__live-note,
.shop-page__empty,
.shop-card__body p,
.shop-card__subtle,
.shop-stock-pill {
  font-family: Arial, Helvetica, sans-serif;
}

.shop-page__live-note {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  color: #62564c;
}

.shop-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shop-page__loading,
.shop-page__error {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  font-family: Arial, Helvetica, sans-serif;
  color: #62564c;
}

.shop-page__empty {
  margin-top: 16px;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 18px;
  color: #62564c;
}

.shop-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: 0.2s ease;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.shop-card__media {
  position: relative;
  cursor: pointer;
}

.shop-card__media img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #faf7f2;
}

.shop-stock-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  color: var(--brown);
  font-weight: 700;
  font-size: 0.82rem;
}


.shop-stock-pill.out {
  background: #f0e3df;
  color: #8b4f3d;
}

.shop-stock-pill.in {
  background: #e8efe9;
  color: #385345;
}


.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  line-height: 1.1;
}

.mini-btn.details {
  background: #a8bfb3;
  color: #fff;
}

.mini-btn.details:hover {
  background: #90a99b;
}

.mini-btn.buy {
  background: #d78a57;
  color: #fff;
}

.mini-btn.buy:hover,
.mini-btn.request:hover {
  background: #b86a3a;
}

.mini-btn.request {
  background: #d78a57;
  color: #fff;
}

.mini-btn.buy:disabled {
  background: #c8beb5;
  cursor: not-allowed;
}


.mini-btn.is-loading,
.mini-btn:disabled[aria-busy="true"],
.shop-modal__actions .button.is-loading,
.shop-modal__actions .button-secondary.is-loading,
.shop-modal__actions .button:disabled[aria-busy="true"],
.shop-modal__actions .button-secondary:disabled[aria-busy="true"],
.shop-modal__sticky-actions .button.is-loading,
.shop-modal__sticky-actions .button-secondary.is-loading,
.shop-modal__sticky-actions .button:disabled[aria-busy="true"],
.shop-modal__sticky-actions .button-secondary:disabled[aria-busy="true"] {
  opacity: 0.72;
  cursor: wait;
  pointer-events: none;
}

.mini-btn.is-loading:hover,
.shop-modal__actions .button.is-loading:hover,
.shop-modal__actions .button-secondary.is-loading:hover,
.shop-modal__sticky-actions .button.is-loading:hover,
.shop-modal__sticky-actions .button-secondary.is-loading:hover {
  transform: none;
}
.shop-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
  text-align: center;
}

.shop-card-body h4 {
  margin: 0 0 6px;
  color: var(--brown);
  font-size: 1.05rem;
}

.shop-card-body p {
  margin: 0 0 12px;
  color: #62564c;
  font-size: 0.94rem;
  line-height: 1.5;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

.shop-price-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 3.5rem;
  margin-bottom: 12px;
  text-align: center;
}

.shop-price {
  font-weight: 700;
  color: var(--charcoal);
  font-family: Arial, Helvetica, sans-serif;
}

.shop-subtle {
  color: #7c6e63;
  font-size: 0.88rem;
  line-height: 1.35;
  text-align: center;
}

.shop-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  align-items: stretch;
  justify-content: center;
}

.shop-card-actions .mini-btn {
  width: 100%;
}


.shop-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 1200;
}

.shop-modal.active {
  display: flex;
}

.shop-modal__sheet {
  width: min(980px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: #fff;
  border-radius: 22px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  will-change: transform;
}

.shop-modal__sheet::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.shop-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 23, 29, 0.08);
  font-size: 1.5rem;
  z-index: 2;
}

.shop-modal__top {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  padding: 26px 26px 14px;
}

.shop-modal__media img {
  cursor: zoom-in;
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #faf7f2;
}


.shop-modal__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.shop-modal__thumbs[hidden] {
  display: none;
}

.shop-modal__thumb {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #faf7f2;
  overflow: hidden;
}

.shop-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-modal__thumb.is-active {
  border-color: var(--brown);
  box-shadow: 0 0 0 2px rgba(122, 72, 33, 0.12);
}

.shop-modal__sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px 26px 16px;
  background: linear-gradient(180deg, rgba(250,247,242,0) 0%, rgba(255,255,255,0.94) 18%, #fff 34%);
  border-top: 1px solid rgba(111, 90, 70, 0.08);
  box-shadow: 0 -10px 24px rgba(49, 37, 28, 0.06);
}

.shop-modal__sticky-actions[hidden] {
  display: none;
}

.shop-modal__subtitle {
  margin: 0 0 12px;
  font-family: Arial, Helvetica, sans-serif;
  color: #6e5f54;
}

.shop-modal__price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 8px;
}

.shop-modal__availability {
  font-family: Arial, Helvetica, sans-serif;
  color: #62564c;
}

.shop-modal__body {
  padding: 0 26px 26px;
}

.shop-modal__description {
  font-family: Arial, Helvetica, sans-serif;
  color: #564b42;
  line-height: 1.6;
}

.shop-modal__meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.shop-modal__meta-box {
  background: #fbf7f1;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 6px;
  font-family: Arial, Helvetica, sans-serif;
}

.shop-modal__meta-box strong {
  color: var(--brown);
}

.shop-modal__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


@media (min-width: 601px) {
  .shop-modal__actions .button:hover,
  .shop-modal__sticky-actions .button:hover {
    background: #7f9a8d;
  }

  .shop-modal__actions .button-secondary:hover,
  .shop-modal__sticky-actions .button-secondary:hover {
    background: #b86a3a;
  }
}

@media (max-width: 1100px) {
  .shop-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .shop-page__layout {
    grid-template-columns: 1fr;
  }

  .shop-page__sidebar {
    position: static;
  }

  .shop-modal__top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .shop-page__intro-card {
    padding: 22px;
  }

  .shop-page__grid {
    grid-template-columns: 1fr;
  }

  .shop-card__media img {
    height: 210px;
    object-fit: contain;
    background: #faf7f2;
  }

  .shop-modal {
    align-items: end;
    padding: 0;
  }

  .shop-modal__sheet {
    width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
  }

  .shop-modal__top,
  .shop-modal__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .shop-modal__meta-grid {
    grid-template-columns: 1fr;
  }

  .shop-modal__sticky-actions {
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(250,247,242,0) 0%, rgba(255,255,255,0.96) 18%, #fff 34%);
  }

  .shop-modal__sticky-actions .button,
  .shop-modal__sticky-actions .button-secondary {
    width: 100%;
    min-height: 48px;
    min-width: 0;
  }
}


.shop-modal__handle {
  display: none;
  width: 54px;
  height: 6px;
  border-radius: 999px;
  background: rgba(49, 37, 28, 0.18);
  margin: 12px auto 0;
}

.shop-modal__handle {
  touch-action: none;
}

.shop-modal__top.dragging {
  cursor: grabbing;
}

.shop-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.shop-modal__tags[hidden] {
  display: none;
}

.shop-modal__tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f6efe6;
  border: 1px solid var(--border);
  color: var(--brown);
  font: 700 0.85rem Arial, Helvetica, sans-serif;
}


.shop-request-modal__sheet {
  width: min(620px, 100%);
}

.shop-request-modal__body {
  padding: 26px;
  display: grid;
  gap: 18px;
}

.shop-request-modal__intro {
  margin: -6px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #62564c;
}

.shop-request-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fbf7f1;
}

.shop-request-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.shop-request-item__copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.shop-request-item__copy strong {
  color: var(--brown);
  font-size: 1rem;
}

.shop-request-item__copy span {
  color: #62564c;
  line-height: 1.5;
}

.shop-request-form .cf-turnstile {
  min-height: 66px;
}

.shop-request-form__actions {
  justify-content: flex-start;
}

@media (max-width: 600px) {
  .shop-request-modal__body {
    padding: 18px;
  }

  .shop-request-item {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .shop-request-form__actions > * {
    width: 100%;
  }
}

.mini-btn.request {
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}


.shop-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
}

.shop-image-lightbox.active {
  display: block;
}

.shop-image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 12, 0.88);
  backdrop-filter: blur(2px);
}

.shop-image-lightbox__dialog {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  pointer-events: none;
}

.shop-image-lightbox__stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: auto;
  touch-action: none;
}

.shop-image-lightbox__image {
  max-width: min(94vw, 1280px);
  max-height: calc(100dvh - 64px);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  backface-visibility: hidden;
  transform-origin: center center;
  border-radius: 18px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

.shop-image-lightbox__close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.96);
  color: #1b1f18;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
  z-index: 4;
}

.shop-image-lightbox__handle {
  display: none;
}

.shop-card__media-frame,
.shop-modal__media-frame {
  position: relative;
}

.shop-media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: #5c4738;
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.shop-media-nav.prev { left: 10px; }
.shop-media-nav.next { right: 10px; }
[data-image-count="1"] .shop-media-nav,
[data-image-count="1"] .shop-media-dots,
.shop-image-lightbox:not(.active) .shop-image-lightbox__nav,
.shop-image-lightbox__nav[hidden] {
  display: none !important;
}
.shop-media-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 6px;
}
.shop-media-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
}
.shop-media-dot.is-active { background: rgba(255,255,255,0.98); }
.shop-card__variant-row,
.shop-modal__variant-row {
  display: grid;
  gap: 6px;
  margin: 10px 0 12px;
}
.shop-card__variant-row[hidden],
.shop-modal__variant-row[hidden] {
  display: none !important;
}
.shop-card__variant-label,
.shop-modal__variant-row label {
  font: 600 0.78rem/1.2 Arial, Helvetica, sans-serif;
  color: #6b5d53;
}
.shop-card__variant-select,
.shop-modal__variant-select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  font: 600 0.9rem/1.2 Arial, Helvetica, sans-serif;
  color: #3f342d;
}
.shop-image-lightbox__nav {
  position: absolute;
  top: 50%;
  pointer-events: auto;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #5c4738;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.shop-image-lightbox__nav.prev { left: max(18px, env(safe-area-inset-left)); }
.shop-image-lightbox__nav.next { right: max(18px, env(safe-area-inset-right)); }
body.shop-image-lightbox-open .shop-modal__media-frame .shop-media-nav,
body.shop-image-lightbox-open .shop-modal__media-frame .shop-media-dots {
  display: none !important;
}


.shop-modal__gift-card {
  margin-top: 1.15rem;
  padding: 1rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  background: #faf7f3;
}
.shop-modal__gift-card[hidden] { display: none !important; }
.shop-modal__gift-card-header p {
  margin: .35rem 0 0;
  color: #5d524b;
  font-size: .95rem;
}
.shop-modal__gift-card-mode {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .9rem;
}
.shop-modal__gift-card-choice {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem .8rem;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}
.shop-modal__gift-card-choice input { margin: 0; }
.shop-modal__gift-card-fields {
  margin-top: 1rem;
}
.shop-modal__gift-card-fields[hidden] { display: none !important; }
.shop-modal__gift-card-note {
  margin: .8rem 0 0;
  font-size: .92rem;
  color: #5d524b;
}
#productModalGiftCardStatus[hidden] { display: none !important; }
