/* ═══════════════════════════════════════════════════════════
   MOTHERK COMPLETE REDESIGN — Lieto Thailand
   v3.2  |  product section matched to motherkmall measurements
   ═══════════════════════════════════════════════════════════ */

/*
  TYPOGRAPHY MEASUREMENT TABLE (measured from motherkmall.co.kr via JS computed style)
  ┌───────────────────┬──────────────────────────┬─────────────────────────┐
  │ Element           │ motherkmall (measured)    │ This CSS                │
  ├───────────────────┼──────────────────────────┼─────────────────────────┤
  │ Body font         │ Pretendard, sans-serif    │ Pretendard (CDN)        │
  │ Body base size    │ 10px (desktop)            │ 14px (mobile-normal)    │
  │ Section h2        │ 20px / 700 / #1b1b1b      │ 20px / 700 / #1b1b1b   │
  │ Section lineHeight│ 24px                      │ 24px                    │
  │ Product name      │ 15px / 700 / #1b1b1b      │ 15px / 700 / #1b1b1b   │
  │ Product lh        │ 18px                      │ 18px                    │
  │ Brand in card     │ 17px / 400 / #888 (desk.) │ 12px / 400 / #888888   │
  │ Discount rate %   │ 15px / 700 / #ef4444      │ 15px / 700 / #ef4444   │
  │ Sale price        │ 15px / 600 / dark         │ 15px / 700 / #1b1b1b   │
  │ Original price    │ 15px / 600 / gray         │ 13px / 400 / #888888   │
  │ Category label    │ 20px / 400 (desktop)      │ 11px / 600 (mobile)     │
  │ Bottom nav label  │ ~10px                     │ 10px                    │
  └───────────────────┴──────────────────────────┴─────────────────────────┘
  Note: brand/cateLabel values scaled for 500px mobile frame
        (desktop card ~245px → mobile card ~190px, scale ≈ 0.78)
*/

/* ── CSS VARIABLES ── */
:root {
  --mk-primary:    #1a6b5a;   /* Lieto dark teal */
  --mk-sale:       #ef4444;   /* motherkmall measured: rgb(239,68,68) */
  --mk-bg:         #f8f8f8;   /* outer desktop background */
  --mk-white:      #ffffff;
  --mk-text:       #1b1b1b;   /* motherkmall measured: rgb(27,27,27) */
  --mk-muted:      #888888;   /* motherkmall measured: rgb(136,136,136) */
  --mk-border:     #eeeeee;
  --mk-header-h:   48px;
  --mk-bottom-h:   45px;      /* motherkmall measured: 45px */
  --mk-frame-w:    500px;
  --mk-font:       'Sukhumvit Set', 'IBM Plex Sans Thai', 'Noto Sans Thai', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── BASE RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body.mk-body {
  font-family: var(--mk-font);
  font-size: 14px;
  color: var(--mk-text);
  background: var(--mk-bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: normal;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ═══════════════════════════════════════════════════════════
   DESKTOP SPLIT LAYOUT
   Left: app promo  |  Right: mobile frame
   ═══════════════════════════════════════════════════════════ */
.mk-split {
  display: flex;
  min-height: 100vh;
}

/* ── LEFT: App Promo ── */
.mk-split__left {
  display: none; /* hidden on mobile */
}

/* ── RIGHT: Mobile Frame ── */
.mk-split__right {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--mk-white);
  min-height: 100vh;
}

.mk-mobile-frame {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
  background: var(--mk-white);
  position: relative;
}

.mk-content {
  flex: 1;
  background: var(--mk-white);
  padding-bottom: var(--mk-bottom-h);
}

/* Desktop: split view — centered pair (motherkmall: 500px app + 500px frame, centered) */
@media (min-width: 768px) {
  .mk-split {
    align-items: flex-start;
    justify-content: center;   /* center the combined app+frame block */
    background: var(--mk-bg);
  }

  /* Left column: app promo — fixed width, sticky */
  .mk-split__left {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;            /* do NOT grow to fill space */
    width: 500px;              /* 500+500=1000px centered → frame starts at x=960 (motherkmall match) */
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    padding: 40px 32px;
  }

  /* Right column: natural height — viewport scrolls, not inner frame */
  .mk-split__right {
    width: var(--mk-frame-w);  /* 390px */
    flex-shrink: 0;
  }

  .mk-mobile-frame {
    min-height: 0;
    box-shadow: 0 0 48px rgba(0,0,0,0.18);
  }

  .mk-content {
    flex: 1;
  }
}

/* ═══════════════════════════════════════════════════════════
   LEFT COLUMN — APP PROMO
   ═══════════════════════════════════════════════════════════ */
.mk-app-promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  max-width: 380px;
}

.mk-app-promo__logo img {
  height: 40px;
  margin: 0 auto;
}

.mk-app-promo__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--mk-primary);
  letter-spacing: -0.5px;
}

.mk-app-promo__sub {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

/* Phone mockup placeholder */
.mk-app-promo__mockup {
  width: 200px;
  height: 340px;
  background: linear-gradient(160deg, #e8f5f1 0%, #d0ece6 100%);
  border-radius: 28px;
  border: 3px solid rgba(26,107,90,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 12px 40px rgba(26,107,90,0.15);
}

.mk-app-mockup-placeholder i {
  font-size: 56px;
  color: var(--mk-primary);
  opacity: 0.6;
}

.mk-app-mockup-placeholder span {
  font-size: 13px;
  color: var(--mk-primary);
  font-weight: 600;
}

/* App store buttons */
.mk-app-promo__stores {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.mk-store-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.mk-store-btn i { font-size: 22px; }
.mk-store-btn small { font-size: 10px; font-weight: 400; display: block; }
.mk-store-btn--apple  { background: #1a1a1a; }
.mk-store-btn--google { background: var(--mk-primary); }

/* ═══════════════════════════════════════════════════════════
   HEADER  (motherkmall layout: LEFT=☰+🔍 | CENTER=logo | RIGHT=👤+🛒)
   ═══════════════════════════════════════════════════════════ */
.mk-header {
  height: var(--mk-header-h);
  background: var(--mk-white);
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-bottom: 1px solid var(--mk-border);
  flex-shrink: 0;
  position: relative;
  z-index: 50;
}

/* left group: hamburger + search */
.mk-hd-left {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
}

/* center: logo (absolutely centered) */
.mk-hd-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}
.mk-hd-logo img {
  height: 26px;
  width: auto;
}

/* right group: mypage + cart */
.mk-hd-right {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  flex: 0 0 auto;
}

/* icon buttons — shared */
.mk-hd-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  position: relative;
  padding: 0;
}
.mk-hd-icon-btn:hover { background: #f4f4f4; border-radius: 4px; }

/* icon images from motherkmall /web/icon/ (black outline PNGs) */
.mk-hd-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}
/* cart icon is slightly wider (motherkmall: 16x19px bg-size) */
.mk-hd-icon-img--cart { width: 16px; height: 19px; }

/* hamburger (CSS bars — menu_w.png is empty on server) */
.mk-hamburger {
  flex-direction: column;
  gap: 5px;
}
.mk-hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--mk-text);
  border-radius: 1px;
}

.mk-cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: rgb(0, 116, 132);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* ── SEARCH BAR ── */
.mk-search-bar {
  background: var(--mk-white);
  padding: 0 12px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, padding 0.2s;
  flex-shrink: 0;
}
.mk-search-bar.open {
  max-height: 60px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--mk-border);
}

.mk-search-form {
  display: flex;
  align-items: center;
  background: #f4f4f4;
  border-radius: 20px;
  padding: 0 12px;
  height: 36px;
  gap: 8px;
}
.mk-search-form__icon { color: var(--mk-muted); font-size: 14px; }
.mk-search-input {
  flex: 1;
  border: none;
  background: none;
  font-size: 14px;
  font-family: var(--mk-font);
  outline: none;
  color: var(--mk-text);
}
.mk-search-close {
  border: none;
  background: none;
  color: var(--mk-muted);
  font-size: 14px;
  padding: 0;
}

/* ═══════════════════════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════════════════════ */
.mk-section {
  background: var(--mk-white);
  margin-top: 0;
  margin-bottom: 0;
}

.mk-section__inner {
  padding: 14px 14px 12px;
}

.mk-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mk-section-hd h2 {
  font-size: 20px;          /* motherkmall measured: 20px */
  font-weight: 700;         /* motherkmall measured: 700 */
  color: #1b1b1b;           /* motherkmall measured: rgb(27,27,27) */
  line-height: 24px;        /* motherkmall measured: 24px */
  letter-spacing: normal;
}

.mk-section-more {
  font-size: 12px;
  color: var(--mk-muted);
  font-weight: 500;
}
.mk-section-more:hover { color: var(--mk-primary); }

/* ═══════════════════════════════════════════════════════════
   BANNER CAROUSEL
   ═══════════════════════════════════════════════════════════ */
.mk-banner-wrap {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
  margin-bottom: 8px;
}

.mk-banner-track {
  display: flex;
  transition: transform 0.35s ease;
}

.mk-banner-slide {
  flex-shrink: 0;
  width: 100%;
}

.mk-banner-slide img {
  width: 100%;
  aspect-ratio: 640/778;    /* motherkmall: portrait 640×778px */
  object-fit: fill;
  display: block;
}

.mk-banner-dots {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.3);
  display: flex;
  gap: 0;
}

.mk-banner-dot {
  flex: 1;
  height: 3px;
  background: transparent;
  transition: background 0.25s;
}
.mk-banner-dot.active { background: rgb(0,96,108); }

/* ═══════════════════════════════════════════════════════════
   CATEGORY GRID — 2 rows × 5 cols circle icons
   ═══════════════════════════════════════════════════════════ */
/* motherkmall measured: ggl item 65x106, img div 65x65, bg-color rgb(0,96,108), borderRadius 45%, bgSize 45% */
.mk-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.mk-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: 100%;
  max-width: 64px;
  margin: 0 auto;
}

/* ── Icon circle: 64×64px (compact, mom:k 65px reference), border-radius 45% ── */
.mk-cat-icon {
  width: 100%;
  max-width: 64px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 45%;
  background: rgb(246, 246, 246);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.mk-cat-icon img {
  width: 55%;
  height: 55%;
  object-fit: contain;
  display: block;
  filter: brightness(0) opacity(0.8);
}

/* 전체(first): active teal #00606c — white icon */
.mk-cat-item:first-child .mk-cat-icon {
  background: rgb(0, 96, 108);
}
.mk-cat-item:first-child .mk-cat-icon img {
  filter: none;
}

/* ── Label: 13px, #585858, tight padding (compact spec) ── */
.mk-cat-name {
  font-size: 13px;
  font-weight: 400;
  color: rgb(88, 88, 88);
  text-align: center;
  line-height: 1.2;
  padding-top: 8px;
  word-break: keep-all;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT CARDS (motherkmall exact style)
   ═══════════════════════════════════════════════════════════ */
.mk-prod-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--mk-border);
}

.mk-prod-card {
  background: var(--mk-white);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.1s;
}
.mk-prod-card:active { opacity: 0.85; }

.mk-prod-card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8f8f8;
}

.mk-prod-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.mk-prod-card:hover .mk-prod-card__img-wrap img { transform: scale(1.03); }

/* Pill badge — bottom of image (motherkmall style) */
.mk-prod-card__pill-badge {
  position: absolute;
  bottom: 7px; left: 8px;
  background: rgba(220, 50, 50, 0.82);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  line-height: 1.5;
  letter-spacing: 0.2px;
}
.mk-prod-card__pill-badge--new {
  background: rgba(26, 107, 90, 0.82);
}

.mk-prod-card__info {
  padding: 18px 10px 12px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  column-gap: 6px;
  row-gap: 3px;
  flex: 1;
}
.mk-prod-card__info > * { grid-column: 1 / -1; }

/* Brand label hidden — every product is Lieto, redundant */
.mk-prod-card__brand {
  display: none;
}

.mk-prod-card__review {
  font-size: 11px;
  color: var(--mk-muted);
  font-weight: 400;
  letter-spacing: 0.1px;
  white-space: nowrap;
}
.mk-prod-card__info > .mk-prod-card__review {
  grid-column: 1 / 4;
  grid-row: 3;
  /* left-aligned (default) */
}
.mk-prod-card__review span { color: #bbb; }

.mk-prod-card__name {
  font-size: 13px;
  font-weight: 700;
  color: #1b1b1b;
  line-height: 15.6px;
  margin-top: 9px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.mk-prod-card__info > .mk-prod-card__name {
  grid-column: 1 / -1;
  grid-row: 1;
}

.mk-prod-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.mk-prod-card__info > .mk-prod-card__price-row {
  grid-column: 1;
  grid-row: 2;
}

.mk-prod-card__discount {
  font-size: 15px;
  font-weight: 700;
  color: #ef4444;
  line-height: 18px;
}

.mk-prod-card__sale {
  font-size: 15px;
  font-weight: 700;
  color: #1b1b1b;
  line-height: 18px;
}

/* Original price now small, gray, inline next to discount price */
.mk-prod-card__orig {
  font-size: 12px;
  font-weight: 500;
  color: #999;
  text-decoration: line-through;
  margin-top: 0;
  line-height: 18px;
}
.mk-prod-card__info > .mk-prod-card__orig {
  grid-column: 2;
  grid-row: 2;
  align-self: baseline;
}

.mk-prod-card__cart-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f5f3ee;
  border: 1px solid var(--mk-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1b1b1b;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.15s ease, transform 0.1s ease;
}
.mk-prod-card__cart-btn:hover { background: #ebe7df; }
.mk-prod-card__cart-btn:active { transform: scale(0.94); }
.mk-prod-card__cart-btn svg { width: 18px; height: 18px; display: block; }
/* Cart-btn pinned to bottom-right corner (row 4 col 4, alongside sold) */
.mk-prod-card__info > .mk-prod-card__cart-btn {
  grid-column: 4;
  grid-row: 4;
  align-self: end;
  justify-self: end;
}

.mk-prod-card__sold {
  font-size: 10px;
  color: var(--mk-muted);
  margin-top: 2px;
}
.mk-prod-card__info > .mk-prod-card__sold {
  grid-column: 1 / 4;
  grid-row: 4;
  align-self: end;
}

/* ═══════════════════════════════════════════════════════════
   FLASH DEAL SECTION
   ═══════════════════════════════════════════════════════════ */
.mk-flash {
  background: var(--mk-white);
  margin-bottom: 8px;
}

.mk-flash__header {
  display: flex;
  align-items: center;
  padding: 12px 14px 10px;
  gap: 8px;
  border-bottom: 1px solid var(--mk-border);
}

.mk-flash__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--mk-sale);
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}

.mk-flash__timer {
  display: flex;
  align-items: center;
  gap: 2px;
}

.mk-flash__box {
  background: var(--mk-sale);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  min-width: 24px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.mk-flash__sep { font-weight: 700; color: var(--mk-sale); font-size: 12px; }
.mk-flash__more { font-size: 12px; color: var(--mk-muted); white-space: nowrap; }

/* Horizontal scroll row */
.mk-flash__scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
}
.mk-flash__scroll::-webkit-scrollbar { display: none; }

.mk-flash-card {
  flex-shrink: 0;
  width: 130px;
  border-right: 1px solid var(--mk-border);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  padding-bottom: 10px;
}

.mk-flash-card__img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8f8f8;
}
.mk-flash-card__img img { width: 100%; height: 100%; object-fit: cover; }

.mk-flash-card__info {
  padding: 6px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mk-flash-card__name {
  font-size: 12px;
  color: var(--mk-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.mk-flash-card__discount { font-size: 14px; font-weight: 800; color: var(--mk-sale); }
.mk-flash-card__sale     { font-size: 13px; font-weight: 700; color: var(--mk-text); }
.mk-flash-card__orig     { font-size: 10px; color: var(--mk-muted); text-decoration: line-through; }

/* ═══════════════════════════════════════════════════════════
   SOCIAL BANNER
   ═══════════════════════════════════════════════════════════ */
.mk-social-banner {
  background: var(--mk-white);
  padding: 0 14px 10px;
  margin-bottom: 8px;
}
.mk-social-banner img {
  width: 100%;
  border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════
   BOTTOM NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.mk-bottom-nav {
  display: flex;
  height: var(--mk-bottom-h);
  background: var(--mk-white);
  border-top: 1px solid var(--mk-border);
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 50;
}

@media (min-width: 768px) {
  .mk-bottom-nav {
    position: sticky; /* viewport scroll — stick to bottom */
    bottom: 0;
  }
}

.mk-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #aaa;
  font-size: 10px;
  text-decoration: none;
  transition: color 0.1s;
}

.mk-bottom-nav__item i { font-size: 20px; }

.mk-bottom-nav__item.active,
.mk-bottom-nav__item:hover { color: var(--mk-primary); }

/* ═══════════════════════════════════════════════════════════
   FOOTER — motherkmall style
   ═══════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════
   BRANDS SECTION (motherkmall .brand_group_wrap clone — 1:1 spec)
   - Section title "BRANDS  more +" (h2 20px + link 15px #007584)
   - Horizontal swiper of portrait brand cards (image 320×480 ratio + text label below)
   - Card text: font-size 14px, color rgb(88,88,88), text-align center, margin-top -10px
   ════════════════════════════════════════ */
.mk-brands {
  background: #fff;
  padding: 30px 0 28px;
  border-top: 8px solid #f4f4f4;
}
.mk-brands__head {
  display: flex;
  align-items: center;
  padding: 0 14px;
  margin-bottom: 14px;
}
.mk-brands__title {
  flex: 1;
  margin: 0 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: #1b1b1b;
  letter-spacing: 0.5px;
}
.mk-brands__more {
  font-size: 15px;
  line-height: 1;
  color: #007584;
  text-decoration: none;
  padding-right: 14px;
}
.mk-brands__more:hover { text-decoration: underline; }

.mk-brands__wrap {
  overflow: hidden;
}
.mk-brands__track {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 14px;
  gap: 10px;
  scroll-snap-type: x proximity;
}
.mk-brands__track::-webkit-scrollbar { display: none; }

.mk-brands__slide {
  flex-shrink: 0;
  width: 216px;
  scroll-snap-align: start;
}
.mk-brands__slide a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Image area: 2:3 portrait (matches motherkmall 320×480) */
.mk-brands__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #1a6b5a 0%, #2a8472 100%);
  border-radius: 2px;
}
.mk-brands__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mk-brands__img-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.mk-brands__img-wrap.is-fallback .mk-brands__img-fallback { display: flex; }
/* Show fallback also when no img tag is rendered (no brand.image) */
.mk-brands__img-wrap:not(:has(img)) .mk-brands__img-fallback { display: flex; }

.mk-brands__txt {
  width: 100%;
  margin: -10px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.2em;
  color: rgb(88, 88, 88);
  background: #fff;
  padding-top: 14px;
}

/* Desktop preview frame (500px) — slightly larger card */
@media (min-width: 768px) {
  .mk-brands__slide { width: 240px; }
}

/* ════════════════════════════════════════
   FOOTER (motherkmall-style)
   ════════════════════════════════════════ */
.mk-footer {
  background: #fff;
  border-top: 8px solid #f4f4f4;
  flex-shrink: 0;
  font-size: 11px;
  color: #666;
  padding: 18px 14px 24px;
}

/* CTA cards (Open Idea, Bulk Purchase) */
.mk-footer__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.mk-footer__cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: #ececec;
  border-radius: 16px;
  text-decoration: none;
  color: #1b1b1b;
  transition: background 0.15s ease, transform 0.1s ease;
}
.mk-footer__cta-card:hover { background: #e0e0e0; }
.mk-footer__cta-card:active { transform: scale(0.99); }
.mk-footer__cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mk-footer__cta-title {
  font-size: 14px;
  font-weight: 800;
  color: #1b1b1b;
}
.mk-footer__cta-sub {
  font-size: 11px;
  color: #777;
  letter-spacing: -0.2px;
}
.mk-footer__cta-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Policy menu rows */
.mk-footer__menu {
  display: flex;
  flex-wrap: wrap;
  padding: 10px 0;
  margin: 0;
  border-top: 1px solid #eee;
}
.mk-footer__menu:first-of-type { border-top: 1px solid #ddd; }
.mk-footer__menu--row2 { border-top: 1px solid #eee; }
.mk-footer__menu a {
  font-size: 11px;
  color: #444;
  padding-right: 10px;
  margin-right: 10px;
  border-right: 1px solid #ddd;
  line-height: 1.6;
  text-decoration: none;
}
.mk-footer__menu a:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}
.mk-footer__menu a.bold { font-weight: 700; color: #1b1b1b; }
.mk-footer__menu a:hover { color: var(--mk-primary); }

/* SNS row — bigger icons, motherkmall style */
.mk-footer__sns {
  padding: 18px 0 14px;
  border-top: 1px solid #eee;
}
.mk-footer__sns-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #444;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.mk-footer__sns-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mk-footer__sns-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f5f3ee;
  border: 1px solid #e8e6df;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  font-size: 18px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.mk-footer__sns-icon:hover { background: #ebe7df; transform: translateY(-1px); }
.mk-footer__sns-icon--facebook:hover  { color: #1877f2; }
.mk-footer__sns-icon--instagram:hover { color: #e4405f; }
.mk-footer__sns-icon--line:hover      { color: #06c755; }
.mk-footer__sns-icon--youtube:hover   { color: #ff0000; }
.mk-footer__sns-icon--tiktok:hover    { color: #000000; }

/* Company info — always visible address block */
.mk-footer__company-info {
  font-style: normal;
  padding: 14px 0;
  border-top: 1px solid #eee;
  font-size: 11px;
  color: #777;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mk-footer__company-info p {
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.mk-footer__company-label {
  flex-shrink: 0;
  min-width: 110px;
  color: #999;
  font-size: 11px;
}
.mk-footer__company-info a { color: #555; text-decoration: underline; }
.mk-footer__company-info a:hover { color: var(--mk-primary); }

/* Copyright */
.mk-footer__copy {
  display: block;
  padding-top: 12px;
  border-top: 1px solid #eee;
  margin-top: 4px;
  font-size: 10px;
  color: #aaa;
  letter-spacing: 0.2px;
}

/* ════════════════════════════════════════
   STATIC PAGES (Open Idea, Bulk Purchase, Policies, About)
   ════════════════════════════════════════ */
.mk-static-page {
  background: #fff;
  padding: 24px 0 40px;
  min-height: 60vh;
}
.mk-static-page__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 18px;
}
.mk-static-page__title {
  font-size: 22px;
  font-weight: 800;
  color: #1b1b1b;
  margin: 0 0 18px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}
.mk-static-page__lead {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin: 0 0 28px;
}
.mk-static-page__h2 {
  font-size: 16px;
  font-weight: 700;
  color: #1b1b1b;
  margin: 26px 0 10px;
  line-height: 1.4;
}
.mk-static-page__list {
  font-size: 13px;
  color: #555;
  line-height: 1.85;
  padding-left: 22px;
  margin: 0 0 20px;
}
.mk-static-page p {
  font-size: 13px;
  color: #555;
  line-height: 1.75;
  margin: 0 0 14px;
}
.mk-static-page a {
  color: var(--mk-primary);
  text-decoration: underline;
}
.mk-static-page__article {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}
.mk-static-page__date {
  font-size: 11px;
  color: #999;
  margin: 0 0 6px !important;
}
.mk-static-page__note {
  font-size: 12px;
  color: #999;
  background: #fafafa;
  border-left: 3px solid #ddd;
  padding: 10px 14px;
  margin-top: 24px !important;
  border-radius: 4px;
}
.mk-static-page__btn {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 28px;
  background: var(--mk-primary);
  color: #fff !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}
.mk-static-page__btn:hover { opacity: 0.9; }

/* legacy aliases */
.mk-footer__inner { padding: 16px 14px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.mk-footer__brand { font-size: 13px; font-weight: 700; color: var(--mk-primary); }
.mk-footer__links { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; color: var(--mk-muted); flex-wrap: wrap; }
.mk-footer__links a:hover { color: var(--mk-primary); }
.mk-footer__links span { color: #ccc; }

/* ════════════════════════════════════════
   PLACEHOLDER ELEMENTS
   ════════════════════════════════════════ */
.mk-banner-placeholder {
  background: #f0f0f0;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mk-muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.mk-placeholder-box {
  background: #f8f8f8;
  border: 1px dashed #ddd;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  color: var(--mk-muted);
  font-size: 12px;
}
.mk-empty-hint {
  font-size: 12px;
  color: var(--mk-muted);
  text-align: center;
  padding: 16px 0;
}
.mk-cat-icon--placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: #e8f5f1;
  border-radius: 50%;
}

/* Product card hover */
.mk-prod-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}

/* ═══════════════════════════════════════════════════════════
   CATEGORY HORIZONTAL SCROLL NAV (motherkmall swiperContainerMk style)
   ═══════════════════════════════════════════════════════════ */
.mk-cat-scroll {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 8px 12px;
  gap: 0;
  background: var(--mk-white);
  margin-bottom: 8px;
  scrollbar-width: none;
}
.mk-cat-scroll::-webkit-scrollbar { display: none; }

.mk-cat-scroll__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: 64px;
  text-decoration: none;
  color: inherit;
}

.mk-cat-scroll__circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #f5f5f5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  flex-shrink: 0;
}
.mk-cat-scroll__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mk-cat-scroll__label {
  font-size: 11px;
  font-weight: 400;
  color: #333;
  text-align: center;
  line-height: 1.3;
  word-break: keep-all;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   TAB STRIP (for product section filters)
   ═══════════════════════════════════════════════════════════ */
.mk-tab-strip {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--mk-border);
  margin: 0 -14px 0;
  padding: 0 14px;
}
.mk-tab-strip::-webkit-scrollbar { display: none; }

.mk-tab {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mk-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.mk-tab.active {
  color: var(--mk-text);
  font-weight: 700;
  border-bottom-color: var(--mk-text);
}

/* ═══════════════════════════════════════════════════════════
   MORE BUTTON
   ═══════════════════════════════════════════════════════════ */
.mk-more-btn-wrap {
  padding: 14px 14px;
  display: flex;
}

.mk-more-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mk-text);
  background: var(--mk-white);
  text-decoration: none;
}
.mk-more-btn:hover { background: #f8f8f8; }

/* ═══════════════════════════════════════════════════════════
   TIMESALE SECTION — 주말특가 style
   (replaces old mk-flash; old mk-flash stays for compat)
   ═══════════════════════════════════════════════════════════ */
.mk-timesale {
  background: var(--mk-white);
  margin-top: 40px;
  margin-bottom: 8px;
}

.mk-timesale__head {
  padding: 14px 14px 10px;
}

.mk-timesale__top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.mk-timesale__titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mk-timesale__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--mk-text);
  line-height: 24px;
  margin: 0;
}

.mk-timesale__sub {
  font-size: 12px;
  color: var(--mk-muted);
  font-weight: 400;
}

.mk-timesale__timer {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.mk-timesale__cd-box {
  background: #1b1b1b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  min-width: 26px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.mk-timesale__cd-sep {
  font-weight: 700;
  color: #1b1b1b;
  font-size: 13px;
  line-height: 1;
}
.mk-timesale__remain {
  font-size: 11px;
  color: var(--mk-muted);
  margin-left: 2px;
}

.mk-timesale__all-btn {
  display: none; /* Hidden per CEO — Flash Deal does not show "see all" link */
}

.mk-timesale__scroll {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  scrollbar-width: none;
  border-top: 1px solid var(--mk-border);
}
.mk-timesale__scroll::-webkit-scrollbar { display: none; }

.mk-timesale-card {
  flex-shrink: 0;
  width: 165px;
  border-right: 1px solid var(--mk-border);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  padding-bottom: 10px;
}
.mk-timesale-card__img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8f8f8;
}
.mk-timesale-card__img img { width: 100%; height: 100%; object-fit: cover; }

.mk-timesale-card__info {
  padding: 6px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mk-timesale-card__name {
  font-size: 12px;
  color: var(--mk-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.mk-timesale-card__discount { font-size: 14px; font-weight: 800; color: var(--mk-sale); }
.mk-timesale-card__sale     { font-size: 13px; font-weight: 700; color: var(--mk-text); }
.mk-timesale-card__orig     { font-size: 10px; color: var(--mk-muted); text-decoration: line-through; }

/* ═══════════════════════════════════════════════════════════
   LINE BANNERS (mid-section, full-width)
   ═══════════════════════════════════════════════════════════ */
.mk-line-banners {
  background: var(--mk-white);
  margin: 40px 0;
}
.mk-line-banners__img {
  width: 100%;
  display: block;
  border-bottom: 1px solid var(--mk-border);
}
.mk-line-banners__img:last-child { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════
   PRODUCT HORIZONTAL SLIDER (Best Sellers, etc.)
   ═══════════════════════════════════════════════════════════ */
.mk-prod-slider {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  /* Infinite loop via JS clones — no centering padding needed (clones provide both-sides peek) */
  padding: 0 0 14px;
  gap: 12px;
  scrollbar-width: none;
  background: var(--mk-white);
}
.mk-prod-slider::-webkit-scrollbar { display: none; }

.mk-prod-slider-card {
  flex-shrink: 0;
  width: 280px;
  scroll-snap-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  /* Center-focus effect — non-active cards visually shrink */
  transform: scale(0.86);
  opacity: 0.7;
  transform-origin: center center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mk-prod-slider-card.is-active {
  transform: scale(1.0);
  opacity: 1.0;
}

.mk-prod-slider-card__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  background: #f8f8f8;
  display: block;
}

.mk-prod-slider-card__info {
  padding: 10px 44px 0 2px; /* leave room on right for absolute cart-btn */
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mk-prod-slider-card__brand {
  display: none;
}
.mk-prod-slider-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--mk-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.mk-prod-slider-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}
.mk-prod-slider-card__discount { font-size: 17px; font-weight: 800; color: var(--mk-sale); }
.mk-prod-slider-card__sale     { font-size: 17px; font-weight: 700; color: var(--mk-text); }
.mk-prod-slider-card__orig     { font-size: 13px; color: #999; text-decoration: line-through; margin-left: 4px; }
/* Inline orig with price-row via flex order — orig appears AFTER sale price on same line */
.mk-prod-slider-card__name      { order: 1; }
.mk-prod-slider-card__price-row { order: 2; align-items: baseline; }
.mk-prod-slider-card__orig      { order: 3; align-self: baseline; }
/* Slider cart button — absolute at info bottom-right (relative to slider-card) */
.mk-prod-slider-card__cart-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f5f3ee;
  border: 1px solid var(--mk-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1b1b1b;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: background 0.15s ease, transform 0.1s ease;
}
.mk-prod-slider-card__cart-btn:hover { background: #ebe7df; }
.mk-prod-slider-card__cart-btn:active { transform: scale(0.92); }
.mk-prod-slider-card__cart-btn svg { width: 20px; height: 20px; display: block; }

/* ═══════════════════════════════════════════════════════════
   AGE-BASED RECOMMENDATION (월령별 추천)
   ═══════════════════════════════════════════════════════════ */
.mk-age-section {
  background: var(--mk-white);
  margin-bottom: 40px;
}

.mk-age-tabs {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--mk-border);
  padding: 0 14px;
  gap: 0;
}
.mk-age-tabs::-webkit-scrollbar { display: none; }

.mk-age-tab {
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mk-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.mk-age-tab.active,
.mk-age-tab:focus {
  color: var(--mk-text);
  font-weight: 700;
  border-bottom-color: var(--mk-text);
}

.mk-age-placeholder {
  padding: 24px 14px;
  text-align: center;
  color: var(--mk-muted);
  font-size: 12px;
  border: 1px dashed #e0e0e0;
  margin: 12px 14px;
  border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════
   TOPBAR — app download coupon strip (Fix 1)
   height 39px matches motherkmall smart-banner measurement
   ═══════════════════════════════════════════════════════════ */
.mk-topbar {
  background: #f5f5f5;
  color: #555;
  font-size: 11px;
  font-weight: 400;
  text-align: center;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 12px;
  letter-spacing: 0;
  border-bottom: 1px solid #e8e8e8;
}
.mk-topbar strong {
  font-weight: 700;
  color: #1a6b5a;
  margin: 0 2px;
}

/* ═══════════════════════════════════════════════════════════
   QUICK NAV — horizontal scroll nav below header (Fix 2)
   red active underline matching motherkmall style
   ═══════════════════════════════════════════════════════════ */
.mk-quick-nav {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--mk-white);
  border-bottom: 1px solid var(--mk-border);
  flex-shrink: 0;
}
.mk-quick-nav::-webkit-scrollbar { display: none; }

.mk-quick-nav__item {
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 400;
  color: #555;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.mk-quick-nav__item.active {
  color: var(--mk-sale);
  border-bottom-color: var(--mk-sale);
  font-weight: 700;
}
.mk-quick-nav__item:hover { color: var(--mk-sale); }

/* ═══════════════════════════════════════════════════════════
   CATEGORY GRID WRAPPER — for 2×5 grid (Fix 4)
   ═══════════════════════════════════════════════════════════ */
.mk-cat-section {
  background: var(--mk-white);
  padding: 32px 14px 16px;
  margin-bottom: 0;
}

/* Desktop preview frame is 500px — bump slider cards */
@media (min-width: 768px) {
  /* Flash Deal: 2 + peek pattern */
  .mk-timesale-card { width: 215px; }
  /* Best Sellers: center-focused, larger card with peek both sides */
  .mk-prod-slider-card { width: 340px; }
}
