 :root{
    --mtS-surface:#fff;
    --mtS-text:#0f172a;
    --mtS-muted:#475569;
    --mtS-border:#e2e8f0;
    --mtS-radius:22px;
    --mtS-radius2:16px;
    --mtS-shadow: 0 10px 30px rgba(2,6,23,.08);
    --mtS-shadow2: 0 14px 36px rgba(2,6,23,.10);
    --mtS-focus: 0 0 0 3px rgba(15,23,42,.14);
    --mtS-accent: currentColor;
  }

  .sr-only{
    position:absolute!important;
    width:1px;height:1px;
    padding:0;margin:-1px;
    overflow:hidden;clip:rect(0,0,0,0);
    white-space:nowrap;border:0;
  }

  .mt-shop{
    max-width: 1240px;
    margin-inline:auto;
    padding: clamp(14px, 2.6vw, 28px);
    color: var(--mtS-text);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  }

  .mt-shop__header{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    margin-bottom: 16px;
  }

  .mt-shop__title{
    margin:0;
    font-size: clamp(18px, 2.2vw, 28px);
    letter-spacing: -0.02em;
    line-height: 1.12;
  }
  .mt-shop__sub{
    margin:6px 0 0 0;
    color: var(--mtS-muted);
    font-size: 14px;
    line-height: 1.4;
  }

  .mt-shop__bar{
    display:flex;
    gap:10px;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    min-width: min(760px, 100%);
  }

  .mt-shop__search{
    position:relative;
    flex: 1 1 260px;
    max-width: 360px;
  }
  .mt-shop__icon{
    position:absolute;
    left:12px;
    top:50%;
    transform: translateY(-50%);
    width:18px;height:18px;
    color: var(--mtS-muted);
    pointer-events:none;
  }
  .mt-shop__search input{
    width:100%;
    height:44px;
    border-radius: 999px;
    border:1px solid var(--mtS-border);
    background: var(--mtS-surface);
    color: var(--mtS-text);
    padding: 0 14px 0 40px;
    outline:none;
    box-shadow: 0 1px 0 rgba(2,6,23,.03);
    transition: box-shadow .18s ease, border-color .18s ease;
  }
  .mt-shop__search input:focus{
    box-shadow: var(--mtS-focus), 0 12px 24px rgba(2,6,23,.06);
    border-color: rgba(2,6,23,.22);
  }

  .mt-shop__filters{
    display:flex;
    gap:8px;
    align-items:center;
    flex: 1 1 280px;
    justify-content:center;
    padding: 6px;
    border:1px solid var(--mtS-border);
    border-radius: 999px;
    background: var(--mtS-surface);
    box-shadow: 0 1px 0 rgba(2,6,23,.03);
    overflow:auto;
  }
  .mt-shop__chip{
    height:32px;
    padding: 0 12px;
    border-radius: 999px;
    border:1px solid transparent;
    background: transparent;
    color: var(--mtS-muted);
    cursor:pointer;
    font-weight: 650;
    white-space:nowrap;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
  }
  .mt-shop__chip:hover{ color: var(--mtS-text); }
  .mt-shop__chip.is-active{
    border-color: rgba(2,6,23,.18);
    color: var(--mtS-text);
    background: rgba(2,6,23,.03);
  }

  .mt-shop__select{ position:relative; flex: 0 0 auto; }
  .mt-shop__select select{
    height:44px;
    border-radius: 999px;
    border:1px solid var(--mtS-border);
    background: var(--mtS-surface);
    color: var(--mtS-text);
    padding: 0 40px 0 14px;
    outline:none;
    appearance:none;
    -webkit-appearance:none;
    box-shadow: 0 1px 0 rgba(2,6,23,.03);
    transition: box-shadow .18s ease, border-color .18s ease;
  }
  .mt-shop__select select:focus{
    box-shadow: var(--mtS-focus), 0 12px 24px rgba(2,6,23,.06);
    border-color: rgba(2,6,23,.22);
  }
  .mt-shop__chev{
    position:absolute;
    right:12px;
    top:50%;
    transform: translateY(-50%);
    width:18px;height:18px;
    color: var(--mtS-muted);
    pointer-events:none;
  }

  /* ===== Grid =====
     Shop alignment:
     - Cards are equal height (helps scanning + decision confidence)
     - Image ratio is consistent (recognition)
     - CTA always bottom-right (predictability)
  */
  .mt-shop__grid{
    display:grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
  }

  .mt-shop__card{
    grid-column: span 4; /* 3-up desktop */
    border:1px solid var(--mtS-border);
    background: #fefefe;
    border-radius: var(--mtS-radius);
    overflow:hidden;
    box-shadow: 0 1px 0 rgba(2,6,23,.03);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
  .mt-shop__card:hover{
    transform: translateY(-3px);
    box-shadow: var(--mtS-shadow2);
    border-color: rgba(2,6,23,.16);
  }

  .mt-shop__cardLink{
    display:flex;
    flex-direction:column;
    height:100%;
    text-decoration:none;
    color: inherit;
  }

  /* Image sizing: stable ratio (4:3) feels “product-like” */
  .mt-shop__media{
    position:relative;
    aspect-ratio: 16/9;
    background: #f1f5f9;
  }
  .mt-shop__img{
    width:100%;
    height:100%;
    object-fit: cover;
    display:block;
    transform: scale(1.0001);
    transition: transform .25s ease;
  }
  .mt-shop__card:hover .mt-shop__img{
    transform: scale(1.03);
  }

  .mt-shop__media::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(to top, rgba(2,6,23,.18), rgba(2,6,23,0) 60%);
    pointer-events:none;
  }

  .mt-shop__badges{
    position:absolute;
    left:12px;
    bottom:12px;
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    z-index:2;
  }
  .mt-shop__badge{
    display:inline-flex;
    align-items:center;
    height:28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.30);
    background: rgba(255,255,255,.14);
    color: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
  }
  .mt-shop__badge--soft{
    opacity: .92;
    font-weight: 650;
  }

  .mt-shop__content{
    display:flex;
    flex-direction:column;
    gap: 10px;
    padding: 14px 14px 16px 14px;
    flex: 1 1 auto; /* makes all cards equal height */
  }

  .mt-shop__row1{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    min-width:0;
  }

  .mt-shop__name{
    margin:0;
    font-size: 15.5px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-weight: 400;
    min-width:0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow:hidden;
  }

  .mt-shop__mini{
    flex: 0 0 auto;
    display:flex;
    align-items:center;
    gap:8px;
    color: var(--mtS-muted);
    font-size: 12px;
    margin-top: 2px;
    white-space:nowrap;
  }
  .mt-shop__dot{
    width:7px;height:7px;
    border-radius: 999px;
    background: rgba(2,6,23,.25);
  }

  .mt-shop__desc{
    margin:0;
    color: var(--mtS-muted);
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow:hidden;
  }

  /* Bottom row is meaningfully consistent: facts left, CTA right */
  .mt-shop__row3{
    margin-top:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding-top: 6px;
  }

  .mt-shop__facts{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    color: var(--mtS-muted);
    font-size: 12.5px;
  }
  .mt-shop__fact{
    padding: 6px 10px;
    border-radius: 999px;
    border:1px solid var(--mtS-border);
    background: rgba(2,6,23,.02);
  }
  .mt-shop__sep{ display:none; } /* keeping for a11y parity; we use pill facts */

  .mt-shop__cta{
    display:inline-flex;
    align-items:center;
    gap:8px;
    height: 38px;
    padding: 0 12px 0 14px;
    border-radius: 999px;
    border:1px solid rgba(2,6,23,.18);
    background: rgba(2,6,23,.03);
    color: var(--mtS-text);
    font-weight: 800;
    box-shadow: 0 1px 0 rgba(2,6,23,.03);
  }
  .mt-shop__cta svg{
    width:18px;height:18px;
  }

  .mt-shop__cardLink:focus-visible{
    outline:none;
    box-shadow: var(--mtS-focus);
    border-radius: var(--mtS-radius);
  }

  /* Pagination */
  .mt-shop__pager{
    margin-top: 18px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
    direction: ltr;
  }
  .mt-shop__pagebtn{
    height:40px;
    padding: 0 14px;
    border-radius: 999px;
    border:1px solid var(--mtS-border);
    background: var(--mtS-surface);
    color: var(--mtS-text);
    cursor:pointer;
    font-weight: 400;
    box-shadow: 0 1px 0 rgba(2,6,23,.03);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, opacity .18s ease;
  }
  .mt-shop__pagebtn:hover{
    transform: translateY(-1px);
    box-shadow: var(--mtS-shadow);
    border-color: rgba(2,6,23,.16);
  }
  .mt-shop__pagebtn:disabled{
    opacity:.45;
    cursor:not-allowed;
    transform:none;
    box-shadow: 0 1px 0 rgba(2,6,23,.03);
  }
  .mt-shop__pages{ display:flex; gap:8px; align-items:center; }
  .mt-shop__pagenum{
    width:40px;height:40px;
    border-radius: 999px;
    border:1px solid var(--mtS-border);
    background: var(--mtS-surface);
    color: var(--mtS-text);
    cursor:pointer;
    font-weight: 800;
    box-shadow: 0 1px 0 rgba(2,6,23,.03);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
  .mt-shop__pagenum:hover{
    transform: translateY(-1px);
    box-shadow: var(--mtS-shadow);
    border-color: rgba(2,6,23,.16);
  }
  .mt-shop__pagenum[aria-current="page"]{
    border-color: rgba(2,6,23,.35);
    box-shadow: var(--mtS-shadow);
  }

  /* Responsive */
  @media (max-width: 1020px){
    .mt-shop__card{ grid-column: span 6; } /* 2-up */
    .mt-shop__header{ flex-direction:column; align-items:flex-start; }
    .mt-shop__bar{ justify-content:flex-start; }
  }
  @media (max-width: 620px){
    .mt-shop__card{ grid-column: span 12; } /* 1-up */
    .mt-shop__filters{ justify-content:flex-start; }
  }

  @media (prefers-reduced-motion: reduce){
    .mt-shop__card,
    .mt-shop__img,
    .mt-shop__pagebtn,
    .mt-shop__pagenum,
    .mt-shop__search input,
    .mt-shop__select select,
    .mt-shop__chip{
      transition:none !important;
    }
  }
  .mt-shop__grid a:hover{
    text-decoration: none;
  }




  /* ===== shop Categories Bar (Optimized for #f8f8f8) ===== */

.shop-categories{
  background: #fefefe;
  border: 1px solid #e9e9e9;
  border-radius: 14px;
margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 12px 16px;
  /* margin: 16px 0; */
  margin-top: 16px;
  /* overflow-x: auto; */
  scrollbar-width: none;
  justify-content: center;
}

.shop-categories::-webkit-scrollbar{
  display: none;
}

.shop-category{
  flex: 0 0 auto;
}
.shop-category a{
  text-decoration: none;
  color: unset;
}
.shop-category a:hover{
  text-decoration: none;
  color: unset;
}
.shop-category a:visited{
  text-decoration: none;
  color: unset;
}
/* Category Chip */
.shop-category__name{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 8px 14px;
  border-radius: 999px;

  background: #f3f3f3;
  border: 1px solid #e5e5e5;

  font-weight: 600;
  font-size: 14px;
  color: #222;
  text-decoration: none;

  transition: all 0.2s ease;
}


/* Hover */
.shop-category__name:hover{
  background: #ffffff;
  border-color: #dcdcdc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Mobile behavior */
@media (max-width: 768px){
  .shop-categories{
    padding: 10px;
    width: 100%;
  flex-direction: column;
  }

  .shop-category__name{
    font-size: 13px;
    padding: 7px 12px;
  }
}

/* Category Chip */
.shop-category__name{
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 999px;

  background: #f3f3f3;
  border: 1px solid #e5e5e5;

  font-weight: 400;
  font-size: 14px;
  color: #222;
  text-decoration: none;

  transition: all 0.2s ease;
}

/* Label */
.shop-category__label{
  white-space: nowrap;
}

/* Hover */
.shop-category__name:hover{
  background: #ffffff;
  border-color: #dcdcdc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
/* ===== shop Categories Title ===== */

.shop-categories__title{
  display: flex;
  align-items: center;      /* vertical center */
  justify-content: center;  /* horizontal center */

  gap: 12px;


  padding: 0;

  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: #111;
  position: relative;
  text-align: center;
}

/* Accent Line */
.shop-categories__title::before{
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(180deg, #111, #444);
}

/* Optional subtle underline effect */
.shop-categories__title-text{
  position: relative;
}

.shop-categories__title-text::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 40%;
  height: 2px;
  background: #111;
  opacity: 0.12;
  border-radius: 2px;
}