/* ================================================================
   shop.css — Public Pattern Store listing page
   Tokens: --ld-* from landing.css, --space-* / --radius from admin.css.
   BEM blocks: shop-hero, shop-listing, shop-toolbar, shop-card,
               shop-sidebar, shop-filter-*, shop-pagination.
   Desktop-first breakpoints.
   ================================================================ */


/* ── Body background ──────────────────────────────────────── */
.shop-page {
  background: var(--ld-bg);
}

.shop-page .public-footer {
  padding-inline: 0;
}


/* ================================================================
   Screen-reader-only utility
   ================================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ================================================================
   Shop Hero — grid-stacking technique (mirrors blog-hero)
   ================================================================ */

.shop-hero {
  background: #fff;
}

.shop-hero__layout {
  display: grid;
}

.shop-hero__bg {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  display: block;
  align-self: start;
}

.shop-hero__overlay {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
}

.shop-hero__inner {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-inline-size: 90%;
  margin-inline: auto;
  padding-inline: var(--space-6);
  padding-block: var(--space-8) var(--space-10);
  gap: clamp(var(--space-5), 3vw, var(--space-8));
}

.shop-hero__content {
  width: 46%;
  max-inline-size: 480px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Pattern image — grid-area: 1/1, stacks on top of bg, below overlay */
.shop-hero__pattern {
  grid-area: 1 / 1;
  display: block;
  width: 230px;
  height: auto;
  align-self: auto;
  justify-self: end;
  margin-inline-end: 42%;
  margin-top: 9%;
}

/* Breadcrumb */
.shop-hero__breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 500;
}

.shop-hero__breadcrumb a {
  color: var(--ld-text-muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.shop-hero__breadcrumb a:hover {
  color: var(--ld-brand);
}

.shop-hero__breadcrumb-current {
  color: var(--ld-brand);
  font-weight: 600;
}

.shop-hero__breadcrumb-sep {
  color: var(--ld-border);
  pointer-events: none;
  user-select: none;
}

/* Small label above heading */
.shop-hero__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ld-brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* H1 */
.shop-hero__heading {
  margin: 0;
  font-size: clamp(2.25rem, 3.5vw + 0.25rem, 3.5rem);
  font-weight: 800;
  color: var(--ld-text);
  line-height: 1.25;
}

.shop-hero__heading-accent {
  color: var(--ld-brand);
}

/* Description */
.shop-hero__desc {
  margin: 0;
  font-size: 1rem;
  color: var(--ld-text-muted);
  line-height: 1.85;
  max-inline-size: 440px;
}


/* ================================================================
   Shop Listing — two-column layout
   ================================================================ */

.shop-listing {
  background: #f8f7fc;
  padding-block: var(--space-10);
}

.shop-listing__inner {
  max-inline-size: 100%;
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: grid;
  /* RTL: col-1 = physical RIGHT (sidebar 280px), col-2 = physical LEFT (products 1fr) */
  grid-template-columns: 280px 1fr;
  column-gap: 1.5rem;
  align-items: start;
}

/* Products column — order: 2 → physical LEFT in RTL grid */
.shop-listing__main {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}

.shop-listing__empty {
  text-align: center;
  color: var(--ld-text-muted);
  font-size: 1rem;
  padding-block: var(--space-10);
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* Filter button — hidden on desktop, shown in toolbar at ≤899px */
.shop-filter-btn {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.125rem;
  background: var(--ld-brand);
  border: none;
  border-radius: 100px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  white-space: nowrap;
  transition: opacity 160ms ease;
}

.shop-filter-btn:hover {
  opacity: 0.88;
}


/* ================================================================
   Toolbar
   ================================================================ */

.shop-toolbar {
  background: #fff;
  border: 1px solid var(--ld-border);
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Search — first in DOM → right in RTL flex */
.shop-toolbar__search-wrap {
  flex: 1;
  min-inline-size: 180px;
  position: relative;
  display: flex;
  align-items: center;
}

.shop-toolbar__search-icon {
  position: absolute;
  inset-inline-start: 0.75rem;
  color: var(--ld-text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.shop-toolbar__search-input {
  width: 100%;
  padding: 0.5rem 0.875rem;
  padding-inline-start: 2.25rem;
  border: 1px solid var(--ld-border);
  border-radius: 100px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--ld-text);
  background: #f8f7fc;
  outline: none;
  box-sizing: border-box;
  transition: border-color 160ms ease;
}

.shop-toolbar__search-input:focus {
  border-color: var(--ld-brand);
  background: #fff;
}

.shop-toolbar__search-input::placeholder {
  color: var(--ld-text-muted);
}

/* Right-side controls cluster */
.shop-toolbar__controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.shop-toolbar__sort {
  padding: 0.4375rem 0.75rem;
  padding-inline-end: 2rem;
  border: 1px solid var(--ld-border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--ld-text);
  background: #fff;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6577' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.5rem center;
  transition: border-color 160ms ease;
}

.shop-toolbar__sort:focus {
  border-color: var(--ld-brand);
}

.shop-toolbar__count {
  font-size: 0.8125rem;
  color: var(--ld-text-muted);
  white-space: nowrap;
}

.shop-toolbar__count strong {
  color: var(--ld-brand);
  font-weight: 700;
}

.shop-toolbar__view-modes {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--ld-border);
  border-radius: 8px;
  padding: 2px;
}

.shop-toolbar__view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  height: 2rem;
  padding-inline: 0.5rem;
  border: none;
  background: transparent;
  color: var(--ld-text-muted);
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
  transition: background 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.shop-toolbar__view-btn:hover {
  background: var(--ld-brand-light);
  color: var(--ld-brand);
}

.shop-toolbar__view-btn--active {
  background: var(--ld-brand);
  color: #fff;
}

.shop-toolbar__view-btn--active:hover {
  background: var(--ld-brand-hover);
  color: #fff;
}

.shop-toolbar__sort-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.shop-toolbar__sort-label {
  font-size: 0.8125rem;
  color: var(--ld-text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.shop-toolbar__view-label {
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  font-family: inherit;
}


/* ================================================================
   Product info wrapper + format badges
   ================================================================ */

/* Transparent flex-column wrapper — same visual output as before in large view */
.shop-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Format badges — visible in both large and list view */
.shop-card__formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-block-start: 0.125rem;
}

.shop-card__format-tag {
  display: inline-flex;
  align-items: center;
  height: 1.25rem;
  padding-inline: 0.375rem;
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--ld-text-muted);
  background: #f0ecf5;
  border: 1px solid var(--ld-border);
  border-radius: 4px;
  white-space: nowrap;
}


/* ================================================================
   Display mode — list view (premium horizontal row)
   ================================================================ */

/* Double-class selector (0,2,0) beats .shop-grid (0,1,0) at every breakpoint */
.shop-grid.shop-grid--list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.625rem;
}

/* RTL: image-wrap (first child) → right side; body → fills left */
.shop-grid--list .shop-card {
  flex-direction: row;
  align-items: stretch;
  min-height: 120px;
  max-height: 160px;
}

.shop-grid--list .shop-card:hover {
  transform: translateY(-1px);
}

/* Compact fixed-width image column */
.shop-grid--list .shop-card__image-wrap {
  flex-shrink: 0;
  width: 110px;
  aspect-ratio: auto;
  align-self: stretch;
}

/* Body: horizontal — info fills middle, footer anchors left */
.shop-grid--list .shop-card__body {
  flex-direction: row;
  align-items: center;
  padding: 0.75rem 1rem;
  gap: 0;
  flex-wrap: nowrap;
}

/* Info: fills remaining horizontal space */
.shop-grid--list .shop-card__info {
  flex: 1;
  gap: 0.25rem;
  min-inline-size: 0;
}

/* Show format badges in list mode */
.shop-grid--list .shop-card__formats {
  display: flex;
}

/* Title: single-line clamp in compact row */
.shop-grid--list .shop-card__title {
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

/* Sizes: prevent overflow in narrow row */
.shop-grid--list .shop-card__sizes {
  margin-block-start: 0;
  flex-wrap: nowrap;
  overflow: hidden;
}

/* Footer: left-side panel separated by a vertical border */
.shop-grid--list .shop-card__footer {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-inline-size: 115px;
  margin-block-start: 0;
  margin-inline-start: 1rem;
  padding-block-start: 0;
  padding-inline-start: 1rem;
  border-block-start: none;
  border-inline-start: 1px solid var(--ld-border);
}

.shop-grid--list .shop-card__price strong {
  font-size: 0.9375rem;
}

/* Actions: stacked vertically, fill panel width */
.shop-grid--list .shop-card__actions {
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
}

.shop-grid--list .shop-card__btn-detail,
.shop-grid--list .shop-card__btn-cart {
  width: 100%;
  justify-content: center;
}


/* ================================================================
   Product Grid — default: 4 columns
   ================================================================ */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}


/* ================================================================
   Product Card
   ================================================================ */

.shop-card {
  background: #fff;
  border: 1px solid var(--ld-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0;
  transition: box-shadow 300ms ease, transform 300ms ease, z-index 0ms 300ms;
}

.shop-card:hover {
  box-shadow: 0px 20px 32px -6px rgba(0, 0, 0, 0.14);
  transform: translateY(-6px);
  z-index: 1;
  transition: box-shadow 300ms ease, transform 300ms ease, z-index 0ms 0ms;
}

/* Image */
.shop-card__image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0ecf5;
  flex-shrink: 0;
}

/* Both images fill the wrap absolutely */
.shop-card__image {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Primary: fades out and zooms away on hover */
.shop-card__image--primary {
  z-index: 1;
  transition: opacity 0.4s ease, transform 0.5s ease;
}

.shop-card:hover .shop-card__image--primary,
.shop-card:focus-within .shop-card__image--primary {
  opacity: 0;
  transform: scale(1.08);
}

/* Hover image: settles in from a slight zoom */
.shop-card__image--hover {
  z-index: 2;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.4s ease, transform 0.5s ease;
}

.shop-card:hover .shop-card__image--hover,
.shop-card:focus-within .shop-card__image--hover {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .shop-card__image--primary,
  .shop-card__image--hover {
    transition: opacity 0.15s ease;
    transform: none !important;
  }
}

.shop-card__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0ecf5, #e8e2ec);
}

/* Category badge — top-right corner of image (RTL: inline-start = physical right) */
.shop-card__cat-badge {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  display: inline-flex;
  align-items: center;
  background: rgba(229, 0, 152, 0.88);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  max-inline-size: calc(100% - 1rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 3;
}

/* Print availability badge — bottom-left corner of image (RTL: inline-end = physical left) */
.shop-card__print-badge {
  position: absolute;
  inset-block-end: 0.5rem;
  inset-inline-end: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(5, 150, 105, 0.9);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 100px;
  z-index: 3;
}

.shop-card__print-badge svg {
  flex-shrink: 0;
  color: inherit;
}

/* Body */
.shop-card__body {
  flex: 1;
  padding: 0.875rem 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.shop-card__category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ld-brand);
  background: rgba(229, 0, 152, 0.07);
  padding: 0.175rem 0.5rem;
  border-radius: 100px;
  align-self: flex-start;
}

.shop-card__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ld-text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Size chips */
.shop-card__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-block-start: 0.125rem;
}

.shop-card__size-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 1.875rem;
  height: 1.375rem;
  padding-inline: 0.3rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--ld-brand);
  background: rgba(229, 0, 152, 0.07);
  border: 1px solid rgba(229, 0, 152, 0.18);
  border-radius: 5px;
  white-space: nowrap;
}

/* Footer — two rows: price row then actions row */
.shop-card__footer {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-block-start: auto;
  padding-block-start: 0.5rem;
  border-block-start: 1px solid var(--ld-border);
}

.shop-card__price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  flex-shrink: 0;
}

.shop-card__price strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ld-brand);
}

.shop-card__price em {
  font-style: normal;
  font-size: 0.6875rem;
  color: var(--ld-text-muted);
}

/* Action buttons */
.shop-card__actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.shop-card__btn-detail {
  display: inline-flex;
  align-items: center;
  padding: 0.3125rem 0.625rem;
  border: 1.5px solid var(--ld-border);
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ld-text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 160ms ease, color 160ms ease;
}

.shop-card__btn-detail:hover {
  border-color: var(--ld-brand);
  color: var(--ld-brand);
}

.shop-card__btn-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3125rem 0.625rem;
  background: var(--ld-brand);
  border: none;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 160ms ease;
}

.shop-card__btn-cart:hover {
  background: var(--ld-brand-hover);
}


/* ================================================================
   Filter Sidebar — order: 1 → physical RIGHT in RTL grid
   ================================================================ */

.shop-sidebar {
  order: 1;
  background: #fff;
  border: 1px solid var(--ld-border);
  border-radius: var(--radius);
}

.shop-filter-form {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.shop-sidebar__header {
  padding: 1.25rem 1.25rem 0;
}

.shop-sidebar__heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ld-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-block-end: 0.75rem;
  border-block-end: 1px solid var(--ld-border);
}

.shop-sidebar__heading-icon {
  color: var(--ld-brand);
  flex-shrink: 0;
}

/* Filter section — individually bordered card */
.shop-filter-section {
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--ld-border);
  border-radius: 10px;
}

.shop-filter-section__title {
  margin: 0 0 0.625rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ld-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shop-filter-section__icon {
  flex-shrink: 0;
  display: block;
  width: 26px;
  height: 26px;
  color: var(--ld-brand);
}

.shop-filter-section__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.shop-filter-section__list--row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Filter option (visual placeholder — no input element in Phase 2) */
.shop-filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.25rem;
  cursor: default;
}

.shop-filter-option__indicator {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--ld-border);
  background: #fff;
}

.shop-filter-option--active .shop-filter-option__indicator {
  border-color: var(--ld-brand);
  background: var(--ld-brand);
  box-shadow: inset 0 0 0 3px #fff;
}

.shop-filter-option__name {
  font-size: 0.8125rem;
  color: var(--ld-text);
}

.shop-filter-option--active .shop-filter-option__name {
  color: var(--ld-brand);
  font-weight: 600;
}

/* Size chips grid */
.shop-filter-section__size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.shop-filter-size-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 2.25rem;
  height: 2rem;
  padding-inline: 0.5rem;
  border: 1px solid var(--ld-border);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ld-text);
  background: #fff;
  cursor: default;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.shop-filter-price {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}


.shop-filter-price__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--ld-text-muted);
  margin-block-start: 0.25rem;
  direction: ltr;
}

/* Sidebar action buttons */
.shop-sidebar__actions {
  padding: 1rem 0rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.shop-sidebar__apply-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem 1rem;
  background: var(--ld-brand);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 160ms ease;
}

.shop-sidebar__apply-btn:hover {
  background: var(--ld-brand-hover);
}

.shop-sidebar__reset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1.5px solid var(--ld-border);
  border-radius: 8px;
  color: var(--ld-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
  gap: 0.5rem;
}

.shop-sidebar__reset-btn:hover {
  border-color: var(--ld-brand);
  color: var(--ld-brand);
}


/* ================================================================
   Pagination
   ================================================================ */

.shop-pagination {
  display: flex;
  justify-content: center;
  padding-block-start: var(--space-4);
}

.shop-pagination__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.shop-pagination__ellipsis {
  padding-inline: 0.25rem;
  color: var(--ld-text-muted);
  font-size: 0.875rem;
  user-select: none;
}

.shop-pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-inline-size: 2.5rem;
  block-size: 2.5rem;
  padding-inline: 0.625rem;
  border-radius: 8px;
  border: 1px solid var(--ld-border);
  background: #fff;
  color: var(--ld-text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
  cursor: pointer;
}

.shop-pagination__link:hover:not(.shop-pagination__link--active):not(.shop-pagination__link--disabled) {
  background: var(--ld-brand);
  border-color: var(--ld-brand);
  color: #fff;
}

.shop-pagination__link--active {
  background: var(--ld-brand);
  border-color: var(--ld-brand);
  color: #fff;
  pointer-events: none;
}

.shop-pagination__link--disabled {
  opacity: 0.35;
  pointer-events: none;
}

.shop-pagination__link--nav {
  color: var(--ld-text-muted);
  font-size: 0.8125rem;
}


/* ================================================================
   RESPONSIVE — Large desktop (≤1440px): 3-column product grid
   ================================================================ */

@media (max-width: 1440px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ================================================================
   RESPONSIVE — Laptop / large tablet (≤1200px)
   ================================================================ */

@media (max-width: 1200px) {
  .shop-listing__inner {
    grid-template-columns: 260px 1fr;
    column-gap: 1.25rem;
  }

  .shop-hero__heading {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
  }

  .shop-hero__content {
    width: 52%;
  }

  .shop-hero__pattern {
    width: 200px;
  }
}


/* ================================================================
   RESPONSIVE — Small tablet / large phone (≤899px):
   2-column grid, sidebar hidden, mobile filter bar shown
   ================================================================ */

@media (max-width: 899px) {
  :root {
    --ld-header-h: 60px;
  }

  /* Hero */
  .shop-hero__layout {
    min-block-size: 40svh;
  }

  .shop-hero__bg {
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
  }

  .shop-hero__inner {
    padding-block: var(--space-5) var(--space-8);
    padding-inline: var(--space-5);
    align-items: flex-start;
  }

  .shop-hero__content {
    width: 100%;
    max-inline-size: 100%;
    gap: var(--space-4);
    padding-block-start: var(--space-5);
  }

  .shop-hero__pattern {
    display: none;
  }

  .shop-hero__desc {
    max-inline-size: 100%;
  }

  /* Listing */
  .shop-listing {
    padding-block: var(--space-8);
  }

  .shop-listing__inner {
    padding-inline: var(--space-5);
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .shop-listing__main {
    order: 0;
    gap: var(--space-4);
  }

  /* Desktop sidebar hidden; filter button appears in toolbar */
  .shop-sidebar {
    display: none;
  }

  .shop-filter-btn {
    display: inline-flex;
  }

  /* 3-column product grid — 899px and 640px both show 3 items */
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
  }

  /* List mode: reduce widths on tablet */
  .shop-grid--list .shop-card__image-wrap {
    width: 90px;
  }

  .shop-grid--list .shop-card__footer {
    min-inline-size: 95px;
    padding-inline-start: 0.75rem;
    margin-inline-start: 0.75rem;
  }

  /* Toolbar wraps */
  .shop-toolbar {
    padding: 0.75rem 1rem;
  }

  .shop-toolbar__search-wrap {
    flex: 1 1 100%;
    min-inline-size: 0;
  }

  .shop-toolbar__controls {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  /* Hide view-mode text labels on tablet — icons only */
  .shop-toolbar__view-label {
    display: none;
  }

  .shop-toolbar__view-btn {
    padding-inline: 0.375rem;
  }

  .shop-filter-panel__form {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 0.75rem;
  }

  .shop-banner__bg-img{
    opacity: 0.4;
  }

  .shop-banner{
    min-height: 210px;
    max-width: 100%;
  }
}


/* ================================================================
   RESPONSIVE — Small tablet (≤640px): 2-column grid
   ================================================================ */

@media (max-width: 640px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  /* List card: tighter fixed widths for small tablet */
  .shop-grid--list .shop-card__image-wrap {
    width: 75px;
  }

  .shop-grid--list .shop-card__footer {
    min-inline-size: 82px;
    padding-inline-start: 0.5rem;
    margin-inline-start: 0.5rem;
  }

  /* Toolbar: hide sort label to free up space */
  .shop-toolbar__sort-label {
    display: none;
  }

  /* Pagination: smaller touch targets */
  .shop-pagination__link {
    min-inline-size: 2.25rem;
    block-size: 2.25rem;
    font-size: 0.8125rem;
  }
}


/* ================================================================
   RESPONSIVE — Mobile (≤480px): 1-column grid
   ================================================================ */

@media (max-width: 480px) {
  .shop-hero__inner {
    padding-inline: var(--space-4);
  }

  .shop-hero__heading {
    font-size: clamp(1.875rem, 7vw, 2.5rem);
  }

  .shop-listing__inner {
    padding-inline: var(--space-4);
  }

  .shop-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* List mode: compact mobile — keep row, wrap footer below info */
  .shop-grid--list .shop-card {
    min-height: 90px;
    max-height: none;
  }

  .shop-grid--list .shop-card__image-wrap {
    width: 80px;
  }

  .shop-grid--list .shop-card__body {
    flex-wrap: wrap;
    padding: 0.625rem 0.75rem;
  }

  .shop-grid--list .shop-card__info {
    flex: 1 1 100%;
    gap: 0.1875rem;
  }

  .shop-grid--list .shop-card__footer {
    flex: 0 0 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-inline-size: 0;
    border-inline-start: none;
    margin-inline-start: 0;
    padding-inline-start: 0;
    border-block-start: 1px solid var(--ld-border);
    padding-block-start: 0.5rem;
    margin-block-start: 0.375rem;
  }

  .shop-grid--list .shop-card__actions {
    flex-direction: row;
    width: auto;
  }

  .shop-grid--list .shop-card__btn-detail,
  .shop-grid--list .shop-card__btn-cart {
    width: auto;
  }

  .shop-card__body {
    padding: 0.75rem;
  }

  .shop-toolbar {
    padding: 0.625rem 0.875rem;
  }
}


/* ================================================================
   RESPONSIVE — Banner and Services (≤1200px)
   ================================================================ */

@media (max-width: 1200px) {
  /* Banner: aspect-ratio still active — no block-size override needed */
}


/* ================================================================
   RESPONSIVE — Banner (≤899px): hero grid-stacking
   Image flows at its natural proportions; content overlays on top.
   ================================================================ */

@media (max-width: 899px) {
  /* Switch from fixed aspect-ratio + absolute positioning to grid stacking */
  .shop-banner {
    display: grid;
    aspect-ratio: unset;
    overflow: visible;
  }

  /* Image becomes a normal grid item — fills its natural height */
  .shop-banner__bg-img {
    position: static;
    grid-area: 1 / 1;
    inline-size: 100%;
    block-size: auto;
    object-fit: unset;
    align-self: start;
  }

}


/* ================================================================
   RESPONSIVE — Banner and Services (≤640px)
   ================================================================ */

@media (max-width: 640px) {
  .shop-banner__content {
    gap: var(--space-3);
  }

}




/* ================================================================
   Filter Form — real inputs replacing visual-only Phase 2 spans
   ================================================================ */

/* Hide native radio/checkbox — visuals come from the indicator spans */
.shop-filter-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Labels are the clickable target */
.shop-filter-option {
  cursor: pointer;
}

/* Radio — active state driven by JS class on label */
.shop-filter-option--active .shop-filter-option__indicator {
  border-color: var(--ld-brand);
  background: var(--ld-brand);
  box-shadow: inset 0 0 0 3px #fff;
}

.shop-filter-option--active .shop-filter-option__name {
  color: var(--ld-brand);
  font-weight: 600;
}

/* Checkbox indicator — square with rounded corners */
.shop-filter-option__indicator--check {
  border-radius: 4px;
}

.shop-filter-option__indicator--checked {
  border-color: var(--ld-brand);
  background: var(--ld-brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Size chip — active driven by server-rendered class + JS toggle */
.shop-filter-size-chip {
  cursor: pointer;
}

.shop-filter-size-chip--active {
  border-color: var(--ld-brand);
  color: var(--ld-brand);
  background: rgba(229, 0, 152, 0.07);
}

/* Category — arrow indicator for items with children */
.shop-filter-option__arrow {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  color: var(--ld-text-muted);
  flex-shrink: 0;
}

/* Category nav — server-side links (matches blog-cat-* exactly) */
.shop-cat-nav-back {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-block-end: 0.5rem;
}

.shop-cat-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3125rem 0.75rem;
  border: 1.5px solid var(--ld-brand);
  border-radius: 100px;
  background: #fff;
  color: var(--ld-brand);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}

.shop-cat-back-link:hover {
  background: var(--ld-brand);
  color: #fff;
}

.shop-cat-active-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  background: rgba(229, 0, 152, 0.08);
  color: var(--ld-brand);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  flex: 1;
  min-width: 0;
}

.shop-cat-active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ld-brand);
  flex-shrink: 0;
}

.shop-cat-active-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.shop-cat-list__item + .shop-cat-list__item {
  border-block-start: 1px solid var(--ld-border);
}

.shop-cat-list__empty {
  padding: 0.5rem 0.25rem;
  color: var(--ld-text-muted);
  font-size: 0.875rem;
}

.shop-cat-link {
  display: flex;
  align-items: center;
  padding: 0.5625rem 0.25rem;
  color: var(--ld-text);
  text-decoration: none;
  font-size: 0.9rem;
  gap: 0.375rem;
  transition: color 160ms ease, background 160ms ease;
  border-radius: 6px;
}

.shop-cat-link:hover,
.shop-cat-link--active {
  color: var(--ld-brand);
  background: rgba(229, 0, 152, 0.04);
}

.shop-cat-link__name {
  flex: 1;
}

.shop-cat-link__arrow {
  flex-shrink: 0;
  color: var(--ld-text-muted);
  transition: color 160ms ease;
}

.shop-cat-link:hover .shop-cat-link__arrow,
.shop-cat-link--active .shop-cat-link__arrow {
  color: var(--ld-brand);
}

/* Reset link styled like the reset button */
a.shop-sidebar__reset-btn {
  text-decoration: none;
  text-align: center;
}


/* ================================================================
   Price Range — dual range slider
   ================================================================ */

/* Slider wrap: LTR so left = lowest price, right = highest price */
.shop-filter-price__slider-wrap {
  position: relative;
  height: 20px;
  direction: ltr;
}

.shop-filter-price__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: var(--ld-border);
  border-radius: 100px;
  pointer-events: none;
}

.shop-filter-price__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--ld-brand);
  border-radius: 100px;
}

.shop-filter-price__range {
  position: absolute;
  left: 0;
  right: 0;
  top: 3px;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  outline: none;
}

.shop-filter-price__range--min {
  z-index: 2;
}

.shop-filter-price__range--max {
  z-index: 1;
}

.shop-filter-price__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ld-brand);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1.5px var(--ld-brand), 0 2px 6px rgba(229, 0, 152, 0.35);
  cursor: pointer;
  pointer-events: all;
  margin-top: -7px;
}

.shop-filter-price__range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ld-brand);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1.5px var(--ld-brand), 0 2px 6px rgba(229, 0, 152, 0.35);
  cursor: pointer;
  pointer-events: all;
}

.shop-filter-price__range::-webkit-slider-runnable-track {
  background: transparent;
}

.shop-filter-price__range::-moz-range-track {
  background: transparent;
}


/* ================================================================
   Mobile Filter Overlay / Drawer
   ================================================================ */

body.shop-filter-open {
  overflow: hidden;
}

.shop-filter-overlay {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: flex-end;
}

.shop-filter-overlay[hidden] {
  display: none;
}

.shop-filter-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.shop-filter-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-block-size: 90dvh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shop-filter-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.875rem;
  border-block-end: 1px solid var(--ld-border);
  flex-shrink: 0;
}

.shop-filter-panel__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ld-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shop-filter-panel__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  color: var(--ld-text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: background 140ms ease, color 140ms ease;
}

.shop-filter-panel__close:hover {
  background: var(--ld-brand-light);
  color: var(--ld-brand);
}

.shop-filter-panel__form {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.shop-filter-panel__footer {
  padding: 1rem 1.25rem;
  border-block-start: 1px solid var(--ld-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 899px) {
  .shop-filter-overlay {
    align-items: center;
    justify-content: center;
  }

  .shop-filter-panel {
    width: 90%;
    height: 90dvh;
    max-block-size: 90dvh;
    border-radius: 16px;
  }
}

/* ================================================================
   Cart button states
   ================================================================ */

.shop-card__btn-cart:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.shop-card__btn-cart.is-in-cart {
  background: var(--ld-success, #22c55e);
  cursor: default;
  pointer-events: none;
}

.shop-card__btn-cart.is-in-cart:hover {
  background: var(--ld-success, #22c55e);
}

/* ================================================================
   SHOP BANNER — banner_bg.png fills entire section; content
   overlays the open space in the center of the image.
   Desktop: locked to 5:1 aspect ratio.
   ≤899px:  switches to hero grid-stacking (image sets its own height).
   ================================================================ */

.shop-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 5 / 1;   /* desktop: enforces 5:1 */
}

/* Background image covers the fixed-ratio container */
.shop-banner__bg-img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 0;
}

/* Content overlay fills the banner and centers text over open space */
.shop-banner__inner {
  position: absolute;
  inset: 0;
  right: 10%;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-inline: var(--space-6);
}

@media (max-width: 899px) {
  .shop-banner__inner {
    right: 0;
    padding-inline: var(--space-5);
  }
}

.shop-banner__content {
  text-align: right;
  max-inline-size: 420px;
  display: flex;
  flex-direction: column;
}

.shop-banner__title {
  font-size: clamp(1.375rem, 2.2vw, 2rem);
  font-weight: 800;
  color: var(--ld-text);
  line-height: 0.35;
  text-align: right;
}

.shop-banner__body {
  font-size: 0.9375rem;
  color: var(--ld-text-muted);
  line-height: 1.5;
}

.shop-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-block: 0.75rem;
  padding-inline: 2rem;
  background: var(--ld-brand);
  color: #fff;
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
  white-space: nowrap;
  width: 50%;
}

.shop-banner__cta:hover,
.shop-banner__cta:focus-visible {
  background: var(--ld-brand-hover);
}


/* ================================================================
   SHOP SERVICES — benefits strip below banner
   ================================================================ */

.shop-services {
  background: #fff;
  border-block-start: 1px solid var(--ld-border);
}

.shop-services__inner {
  max-inline-size: 1440px;
  margin-inline: auto;
  padding-inline: var(--space-6);
  padding-block: var(--space-8);
}

.shop-services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.shop-services__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: start;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-inline-end: 1px solid var(--ld-border);
}

.shop-services__item:last-child {
  border-inline-end: none;
}

.shop-services__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 44px;
  block-size: 44px;
  color: var(--ld-brand);
  flex-shrink: 0;
}

.shop-services__icon {
  display: block;
  inline-size: 44px;
  block-size: 44px;
}

.shop-services__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
  min-inline-size: 0;
}

.shop-services__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ld-text);
  line-height: 1.4;
}

.shop-services__desc {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ld-text-muted);
  line-height: 1.5;
}

/* ================================================================
   RESPONSIVE — Services
   Must appear after base rules above to win the cascade.
   ================================================================ */

@media (max-width: 1200px) {
  .shop-services__item {
    padding: var(--space-4) var(--space-4);
    gap: var(--space-3);
  }
}

@media (max-width: 899px) {
  .shop-services__list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .shop-services__item {
    border-inline-end: none;
    padding: var(--space-4) var(--space-4);
  }
}

@media (max-width: 640px) {
  .shop-services__inner {
    padding-inline: var(--space-4);
    padding-block: var(--space-5);
  }

  .shop-services__item {
    padding: var(--space-3) var(--space-3);
    gap: var(--space-3);
  }
}

@media (max-width: 480px) {
  .shop-services__list {
    grid-template-columns: 1fr;
  }

  .shop-services__item {
    padding: var(--space-3) var(--space-2);
    gap: var(--space-2);
  }

  .shop-services__title {
    font-size: 0.875rem;
  }

  .shop-services__desc {
    font-size: 0.75rem;
  }

  .shop-services__icon-wrap {
    inline-size: 36px;
    block-size: 36px;
  }

  .shop-services__icon {
    inline-size: 36px;
    block-size: 36px;
  }
}


/* ================================================================
   Print selection dialog
   ================================================================ */

.shop-print-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-print-dialog {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 360px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

.shop-print-dialog__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ld-text);
  margin: 0;
}

.shop-print-dialog__note {
  font-size: 0.8rem;
  color: var(--ld-text-muted, #6b7280);
  margin: 0;
}

.shop-print-dialog__btn {
  display: block;
  width: 100%;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 150ms ease;
}

.shop-print-dialog__btn:hover {
  opacity: 0.88;
}

.shop-print-dialog__btn--print {
  background: var(--ld-brand);
  color: #fff;
}

.shop-print-dialog__btn--digital {
  background: var(--ld-border, #e5e7eb);
  color: var(--ld-text);
}

.shop-print-dialog__btn--cancel {
  background: transparent;
  color: var(--ld-text-muted, #6b7280);
  font-size: 0.8rem;
}

.shop-print-dialog--choice { max-width: 460px; text-align: right; }
.shop-print-options { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.shop-print-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--ld-border, #e5e7eb);
  border-radius: 14px;
  cursor: pointer;
  background: #fff;
}
.shop-print-option.is-on { border-color: var(--ld-brand); background: color-mix(in srgb, var(--ld-brand) 8%, #fff); }
.shop-print-option span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shop-print-option strong { font-size: 0.86rem; }
.shop-print-option em { font-style: normal; color: var(--ld-text-muted, #6b7280); font-size: 0.75rem; }
.shop-print-option b { font-size: 0.78rem; white-space: nowrap; color: var(--ld-brand); }
.shop-print-sizes { margin-bottom: 10px; }
.shop-print-sizes > span { display: block; margin-bottom: 8px; font-size: 0.8rem; font-weight: 700; }
.shop-print-sizes > div { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-print-sizes label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--ld-border, #e5e7eb);
  font-size: 0.8rem;
}
.shop-print-total { margin: 4px 0 10px; font-weight: 800; color: var(--ld-brand); }

/* ================================================================
   Toast fallback (used when ShowToast is unavailable)
   ================================================================ */

.shop-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 1100;
  animation: shop-toast-in 0.2s ease;
  color: #fff;
  white-space: nowrap;
}

.shop-toast--success {
  background: #22c55e;
}

.shop-toast--error {
  background: #ef4444;
}

@keyframes shop-toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ── Cart snackbar ─────────────────────────────────────────────── */
.shop-snackbar {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  background: #1a1a2e;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1200;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  animation: shop-snackbar-in 0.25s ease forwards;
  white-space: nowrap;
}

.shop-snackbar--out {
  animation: shop-snackbar-out 0.3s ease forwards;
}

.shop-snackbar__msg {
  color: rgba(255, 255, 255, 0.85);
}

.shop-snackbar__action {
  color: #e50098;
  font-weight: 700;
  text-decoration: none;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  transition: background 0.15s;
  white-space: nowrap;
}

.shop-snackbar__action:hover {
  background: rgba(229, 0, 152, 0.12);
}

@keyframes shop-snackbar-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes shop-snackbar-out {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
}


/* ================================================================
   Favorite (heart) button on product cards
   ================================================================ */

/* Top-end corner of image-wrap (RTL: physical left-top) */
.shop-card__btn-fav {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-end: 0.5rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 50%;
  color: var(--ld-text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s, color 0.18s, transform 0.18s, opacity 0.18s;
  opacity: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

/* Show on card hover/focus or when already hearted */
.shop-card:hover .shop-card__btn-fav,
.shop-card:focus-within .shop-card__btn-fav,
.shop-card__btn-fav.is-hearted {
  opacity: 1;
}

/* Active state */
.shop-card__btn-fav.is-hearted {
  color: var(--ld-brand);
  background: rgba(229, 0, 152, 0.1);
}

.shop-card__btn-fav:hover,
.shop-card__btn-fav:focus-visible {
  background: #fff;
  color: var(--ld-brand);
  transform: scale(1.12);
  outline: none;
}

.shop-card__btn-fav.is-hearted:hover,
.shop-card__btn-fav.is-hearted:focus-visible {
  background: rgba(229, 0, 152, 0.16);
}

/* Always visible in list view (no hover on mobile/touch) */
.shop-grid--list .shop-card__btn-fav {
  opacity: 1;
}

/* Disable pointer-events on the SVG inside so closest() finds the button */
.shop-card__btn-fav svg {
  pointer-events: none;
}
