/* =========================================================
   MIAYAA PRODUCT CARD (every page)
   Change colours here and all cards update.
   ========================================================= */
:root {
  --mxk-accent: #A63D5B;
  --mxk-text: #3D1422;
  --mxk-muted: #6E4D58;
  --mxk-gold: #E0B25A;
  --mxk-media-bg: #F7F0EC;
}

.mxk-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  color: var(--mxk-text);
  font-family: var(--font-body-family);
  box-shadow: 0 12px 30px -20px rgba(61, 20, 34, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mxk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px -20px rgba(61, 20, 34, .4);
}

/* image area: swipe through up to 5 photos */
.mxk-card__media { position: relative; aspect-ratio: 1; background: var(--mxk-media-bg); }
.mxk-card__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.mxk-card__track::-webkit-scrollbar { display: none; }
.mxk-card__slide { flex: 0 0 100%; height: 100%; display: block; scroll-snap-align: start; }
.mxk-card__slide img,
.mxk-card__slide .mxk-card__ph { width: 100%; height: 100%; display: block; object-fit: cover; }

.mxk-card__badge {
  position: absolute;
  top: 12px;
  left: 0;
  z-index: 2;
  padding: 5px 34px 5px 14px;
  background: linear-gradient(100deg, var(--mxk-gold) 55%, transparent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(61, 20, 34, .25);
  pointer-events: none;
}

/* Image dots: each is a 24×24 px tap target (WCAG 2.5.8) with the same thin bar drawn inside, so the look is unchanged */
.mxk-card__dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  display: flex;
  gap: 0;
  transform: translateX(-50%);
}
.mxk-card__dots button {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.mxk-card__dots button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 0 2px rgba(0, 0, 0, .15);
  transform: translate(-50%, -50%);
  transition: width .25s ease, background .25s ease;
}
.mxk-card__dots button.is-active::before { width: 20px; background: #fff; }

/* text area */
.mxk-card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.mxk-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--mxk-text);
}
.mxk-card__price s { font-size: 13px; font-weight: 400; color: var(--mxk-muted); }
.mxk-card__off { font-size: 12.5px; font-weight: 600; color: var(--mxk-accent); }
.mxk-card__title {
  margin: 6px 0 0;
  font-family: var(--font-body-family);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--mxk-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mxk-card__title a { color: inherit; text-decoration: none; }
.mxk-card__title a:hover { color: var(--mxk-accent); }
.mxk-card__stock {
  min-height: 18px;
  margin: 6px 0 10px;
  font-size: 12.5px;
  font-weight: 500;
  text-align: right;
  color: #D0342C;
}

/* button */
.mxk-card__btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--mxk-accent) 55%, #fff);
  border-radius: 999px;
  background: #fff;
  color: var(--mxk-accent);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.mxk-card__btn:hover:not(:disabled) { background: var(--mxk-accent); border-color: var(--mxk-accent); color: #fff; }
.mxk-card__btn:focus-visible { outline: 2px solid var(--mxk-accent); outline-offset: 2px; }
.mxk-card__btn:disabled { opacity: .5; cursor: not-allowed; }
.mxk-card__btn.is-loading { pointer-events: none; opacity: .7; }
.mxk-card__btn.is-added { background: var(--mxk-accent); border-color: var(--mxk-accent); color: #fff; }

@media (max-width: 749px) {
  .mxk-card { border-radius: 14px; }
  .mxk-card__badge { top: 8px; padding: 4px 24px 4px 10px; font-size: 10.5px; }
  .mxk-card__body { padding: 10px 10px 12px; }
  .mxk-card__price { font-size: 15px; }
  .mxk-card__title { font-size: 13.5px; }
  .mxk-card__stock { font-size: 11.5px; margin: 4px 0 8px; }
  .mxk-card__btn { height: 38px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .mxk-card, .mxk-card * { transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   "View all" button under Featured products
   Same rounded berry outline as the card buttons
   ========================================================= */
.collection__view-all {
  margin-top: 48px !important;
}
.collection__view-all .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  padding: 12px 32px;
  border: 1.5px solid var(--mxk-accent);
  border-radius: 999px;
  background-color: transparent !important;
  color: var(--mxk-accent) !important;
  font-family: var(--font-body-family);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: none !important;
  transition: background-color .2s ease, color .2s ease;
}
.collection__view-all .button::before,
.collection__view-all .button::after {
  display: none !important;
}
.collection__view-all .button:hover {
  background-color: var(--mxk-accent) !important;
  color: #fff !important;
}
.collection__view-all .button:focus-visible {
  outline: 2px solid var(--mxk-accent);
  outline-offset: 3px;
}
@media (max-width: 749px) {
  .collection__view-all { margin-top: 30px !important; }
  .collection__view-all .button { padding: 11px 28px; font-size: 15px; }
}


/* =========================================================
   MIAYAA PRODUCT CARD (every page)
   Change colours here and all cards update.
   ========================================================= */
:root {
  --mxk-accent: #A63D5B;
  --mxk-text: #3D1422;
  --mxk-muted: #6E4D58;
  --mxk-gold: #E0B25A;
  --mxk-media-bg: #F7F0EC;
}

.mxk-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  color: var(--mxk-text);
  font-family: var(--font-body-family);
  box-shadow: 0 12px 30px -20px rgba(61, 20, 34, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mxk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px -20px rgba(61, 20, 34, .4);
}

/* image area: swipe through up to 5 photos */
.mxk-card__media { position: relative; aspect-ratio: 1; background: var(--mxk-media-bg); }
.mxk-card__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.mxk-card__track::-webkit-scrollbar { display: none; }
.mxk-card__slide { flex: 0 0 100%; height: 100%; display: block; scroll-snap-align: start; }
.mxk-card__slide img,
.mxk-card__slide .mxk-card__ph { width: 100%; height: 100%; display: block; object-fit: cover; }

.mxk-card__badge {
  position: absolute;
  top: 12px;
  left: 0;
  z-index: 2;
  padding: 5px 34px 5px 14px;
  background: linear-gradient(100deg, var(--mxk-gold) 55%, transparent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(61, 20, 34, .25);
  pointer-events: none;
}

/* Image dots: each is a 24×24 px tap target (WCAG 2.5.8) with the same thin bar drawn inside, so the look is unchanged */
.mxk-card__dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  display: flex;
  gap: 0;
  transform: translateX(-50%);
}
.mxk-card__dots button {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.mxk-card__dots button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 0 2px rgba(0, 0, 0, .15);
  transform: translate(-50%, -50%);
  transition: width .25s ease, background .25s ease;
}
.mxk-card__dots button.is-active::before { width: 20px; background: #fff; }

/* text area */
.mxk-card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.mxk-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--mxk-text);
}
.mxk-card__price s { font-size: 13px; font-weight: 400; color: var(--mxk-muted); }
.mxk-card__off { font-size: 12.5px; font-weight: 600; color: var(--mxk-accent); }
.mxk-card__title {
  margin: 6px 0 0;
  font-family: var(--font-body-family);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--mxk-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mxk-card__title a { color: inherit; text-decoration: none; }
.mxk-card__title a:hover { color: var(--mxk-accent); }
.mxk-card__stock {
  min-height: 18px;
  margin: 6px 0 10px;
  font-size: 12.5px;
  font-weight: 500;
  text-align: right;
  color: #D0342C;
}

/* button */
.mxk-card__btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--mxk-accent) 55%, #fff);
  border-radius: 999px;
  background: #fff;
  color: var(--mxk-accent);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.mxk-card__btn:hover:not(:disabled) { background: var(--mxk-accent); border-color: var(--mxk-accent); color: #fff; }
.mxk-card__btn:focus-visible { outline: 2px solid var(--mxk-accent); outline-offset: 2px; }
.mxk-card__btn:disabled { opacity: .5; cursor: not-allowed; }
.mxk-card__btn.is-loading { pointer-events: none; opacity: .7; }
.mxk-card__btn.is-added { background: var(--mxk-accent); border-color: var(--mxk-accent); color: #fff; }

@media (max-width: 749px) {
  .mxk-card { border-radius: 14px; }
  .mxk-card__badge { top: 8px; padding: 4px 24px 4px 10px; font-size: 10.5px; }
  .mxk-card__body { padding: 10px 10px 12px; }
  .mxk-card__price { font-size: 15px; }
  .mxk-card__title { font-size: 13.5px; }
  .mxk-card__stock { font-size: 11.5px; margin: 4px 0 8px; }
  .mxk-card__btn { height: 38px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .mxk-card, .mxk-card * { transition: none !important; scroll-behavior: auto !important; }
}

/* verified review rating on cards */
.mxk-card__rating { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: #6E4D58; text-decoration: none; }
.mxk-card__stars {
  position: relative; display: inline-block; letter-spacing: 1px; font-size: 13px; line-height: 1;
  color: #F1DDE2;
}
.mxk-card__stars::before {
  content: '★★★★★'; position: absolute; inset: 0; width: var(--mxk-r, 0%); overflow: hidden; white-space: nowrap; color: #C9A15A;
}
.mxk-card__rating:hover .mxk-card__rc { color: #A63D5B; }
