/* Product page custom styles (Tailwind-free) */

:root {
  --wm-primary: #0d6efd;
  --wm-primary-soft: #3d8bfd;
  --wm-tertiary: #6f42c1;
  --wm-surface-0: #ffffff;
  --wm-surface-1: #f8f9fa;
  --wm-surface-2: #eef2f6;
  --wm-text-strong: #0f172a;
  --wm-text-muted: #64748b;
  --wm-danger: #dc3545;
  --wm-radius-lg: 12px;
  --wm-radius-xl: 16px;
  --wm-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --wm-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.12);
  --wm-evoucher-left-width: 176px;
  --wm-evoucher-content-width: 640px;
  --wm-evoucher-actions-width: 236px;
}

.wm-price-compare { width: 100%; }
.wm-price-compare__list { display: grid; gap: 10px; }
.wm-price-compare__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--wm-surface-0);
  border-radius: var(--wm-radius-xl);
  box-shadow: var(--wm-shadow-sm);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.wm-price-compare__item:hover { background: var(--wm-surface-1); }
.wm-price-compare__item--featured {
  border-left: 4px solid var(--wm-primary);
  box-shadow: var(--wm-shadow-md);
}
.wm-price-compare__left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.wm-price-compare__logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--wm-radius-lg);
  background: var(--wm-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wm-price-compare__logo { width: 32px; max-width: 100%; }
.wm-price-compare__meta { min-width: 0; }
.wm-price-compare__merchant { font-weight: 700; color: var(--wm-text-strong); display: block; }
.wm-price-compare__price { color: var(--wm-primary); font-weight: 700; }
.wm-price-compare__title {
  margin-left: 10px;
  color: var(--wm-text-strong);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}
.wm-price-compare__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--wm-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.wm-price-compare__cta:hover { color: #fff; background: var(--wm-primary-soft); }
.wm-price-compare__cta-icon { font-size: 12px; }

.wm-evoucher-layout {
  max-width: 1536px;
  margin: 0 auto;
  padding: 10px 12px 10px 0;
}
.wm-evoucher-layout__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.wm-evoucher-layout__main { min-width: 0; }
.wm-evoucher-list { display: grid; gap: 24px; }
.wm-evoucher-load-more-wrap { margin-top: 28px; text-align: center; }
.wm-evoucher-load-more {
  border: 0;
  border-radius: 999px;
  padding: 12px 32px;
  background: linear-gradient(90deg, var(--wm-primary), var(--wm-primary-soft));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.wm-evoucher-card {
  background: var(--wm-surface-0);
  border-radius: var(--wm-radius-xl);
  box-shadow: var(--wm-shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.wm-evoucher-card__left {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 16px;
}
.wm-evoucher-card__left--freeship { background: linear-gradient(135deg, var(--wm-tertiary), #8d63d4); }
.wm-evoucher-card__left--discount { background: linear-gradient(135deg, var(--wm-primary), var(--wm-primary-soft)); }
.wm-evoucher-card__left-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; display: block; }
.wm-evoucher-card__left-value { font-size: 32px; line-height: 1.1; font-weight: 800; display: block; margin-top: 4px; }
.wm-evoucher-card__left-note { font-size: 11px; opacity: .9; margin-top: 6px; display: block; }
.wm-evoucher-card__left-notch {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--wm-surface-0);
}

.wm-evoucher-card__content {
  border-right: 1px dashed #d7dee7;
  padding: 20px;
}
.wm-evoucher-card__meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.wm-evoucher-card__badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 8px;
}
.wm-evoucher-card__badge--freeship { background: rgba(13,110,253,.14); color: #0b4fb3; }
.wm-evoucher-card__badge--discount { background: rgba(111,66,193,.14); color: #4f2f90; }
.wm-evoucher-card__expiry { font-size: 12px; color: var(--wm-text-muted); font-weight: 500; }
.wm-evoucher-card__title { margin: 0 0 8px; color: var(--wm-text-strong); font-size: 20px; line-height: 1.25; font-weight: 700; }
.wm-evoucher-card__subtitle { margin: 0; color: var(--wm-text-muted); font-size: 14px; }
.wm-evoucher-card__usage { margin-top: 16px; }
.wm-evoucher-card__usage-row { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 11px; font-weight: 600; color: var(--wm-text-muted); }
.wm-evoucher-card__usage-label--mid { color: var(--wm-primary); }
.wm-evoucher-card__usage-label--high { color: var(--wm-danger); font-weight: 700; }
.wm-evoucher-card__bar { height: 6px; border-radius: 999px; background: var(--wm-surface-2); overflow: hidden; }
.wm-evoucher-card__bar-fill { height: 100%; border-radius: 999px; }
.wm-evoucher-card__bar-fill--low { background: #20c997; }
.wm-evoucher-card__bar-fill--mid { background: var(--wm-primary); }
.wm-evoucher-card__bar-fill--high { background: var(--wm-danger); }

.wm-evoucher-card__actions {
  background: rgba(248, 249, 250, .75);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.wm-evoucher-card__code-wrap {
  width: 100%;
  border: 2px dashed rgba(13,110,253,.3);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
  background: #fff;
}
.wm-evoucher-card__code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-weight: 700; color: var(--wm-primary); letter-spacing: .12em; }
.wm-evoucher-card__cta {
  width: 100%;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wm-primary), var(--wm-primary-soft));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
}
.wm-evoucher-card__cta:hover { color: #fff; }
.wm-evoucher-card__copy {
  border: 0;
  background: transparent;
  color: var(--wm-text-muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
}
.wm-evoucher-card__copy:hover { color: var(--wm-primary); }

@media (min-width: 640px) {
  .wm-price-compare__title { display: inline-block; }
  .wm-price-compare__cta { padding: 10px 24px; font-size: 13px; }
}

.wm-evoucher-guide {
  margin-top: 64px;
  background: #fff;
  border-radius: var(--wm-radius-xl);
  padding: 24px;
  box-shadow: var(--wm-shadow-sm);
}
.wm-evoucher-guide__title {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--wm-text-strong);
}
.wm-evoucher-guide__list { display: grid; gap: 20px; }
.wm-evoucher-guide__item { display: flex; gap: 12px; }
.wm-evoucher-guide__step {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(13,110,253,.14);
  color: #0b4fb3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}
.wm-evoucher-guide__item-title { margin: 0 0 4px; color: var(--wm-text-strong); font-size: 16px; font-weight: 700; }
.wm-evoucher-guide__item-text { margin: 0; color: var(--wm-text-muted); font-size: 14px; }

.wm-evoucher-layout__aside { width: 100%; }
.wm-evoucher-banner { position: sticky; top: 96px; }
.wm-evoucher-banner__media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.wm-evoucher-banner__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.wm-evoucher-banner__media:hover .wm-evoucher-banner__image { transform: scale(1.05); }
.wm-evoucher-banner__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--wm-primary), var(--wm-tertiary));
}
.wm-evoucher-banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(13,110,253,.92) 100%);
}
.wm-evoucher-banner__kicker {
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.wm-evoucher-banner__title {
  margin: 0 0 14px;
  color: #fff;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
}
.wm-evoucher-banner__cta {
  width: fit-content;
  border-radius: 999px;
  background: #fff;
  color: var(--wm-primary);
  text-decoration: none;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .wm-evoucher-layout { padding: 10px 16px 10px 0; }
}

@media (min-width: 992px) {
  .wm-evoucher-layout { padding: 10px 24px 10px 0; }
  .wm-evoucher-layout__content { flex-direction: row; }
  .wm-evoucher-layout__main { flex: 1 1 auto; min-width: 0; }
  .wm-evoucher-layout__aside { width: 320px; flex-shrink: 0; }
  .wm-evoucher-card { flex-direction: row; align-items: stretch; }
  .wm-evoucher-card__left,
  .wm-evoucher-card__left.wm-evoucher-card__left--discount,
  .wm-evoucher-card__left.wm-evoucher-card__left--freeship {
    width: var(--wm-evoucher-left-width);
    min-width: var(--wm-evoucher-left-width);
    max-width: var(--wm-evoucher-left-width);
    flex: 0 0 var(--wm-evoucher-left-width);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .wm-evoucher-card__content {
    width: var(--wm-evoucher-content-width);
    min-width: var(--wm-evoucher-content-width);
    max-width: var(--wm-evoucher-content-width);
    flex: 0 0 var(--wm-evoucher-content-width);
    padding: 24px;
  }
  .wm-evoucher-card__actions {
    width: var(--wm-evoucher-actions-width);
    min-width: var(--wm-evoucher-actions-width);
    max-width: var(--wm-evoucher-actions-width);
    flex: 0 0 var(--wm-evoucher-actions-width);
    padding: 24px;
  }
}

@media (min-width: 1200px) {
  .wm-evoucher-layout { padding: 10px 32px 10px 0; }
}
