.winbiz-shop,
.winbiz-sale {
  --shop-ink: #102c32;
  --shop-glow: #5ce531;
  --shop-dark: #064e3a;
  --shop-muted: #37525a;
  --shop-mint: #edf5f4;
  --shop-green: linear-gradient(155deg, #40d900 0%, #08a70c 50%, #00862c 100%);
  --shop-page: radial-gradient(ellipse 95% 350px at 50% 60px, #aff1b6, transparent), var(--shop-mint);
  --shop-surface: linear-gradient(#fff, #f0f6f7);
  --shop-border: #d7e9e4;
  --shop-shadow: 0 5px 12px #09562e35;
}

.winbiz-shop {
  color: var(--shop-ink);
  background: var(--shop-page);
  padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  user-select: auto;
}

.winbiz-shop .mas-wrapper { position: relative; max-width: 940px; padding-top: 0; }
.winbiz-shop .shop-classic-header .wd_iv_top { display: none; }
.winbiz-shop :focus-visible { outline: 3px solid #066c37; outline-offset: 2px; }
/* Proportions follow the 858px-wide mobile artwork. */
.winbiz-shop .mas-wrapper { container-type: inline-size; }
.winbiz-shop .shop-theme-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  aspect-ratio: 858 / 122;
  background: #e1f7e8 url('/member/img/shop-masthead.png') center / 100% 100% no-repeat;
}
.winbiz-shop .shop-header-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
}
.winbiz-shop .shop-desktop-label { display: none; }
.winbiz-shop .shop-theme-brand { width: 42%; }
.winbiz-shop .shop-theme-cart { width: 31%; margin-right: 8%; }
.winbiz-shop .shop-theme-header a:focus-visible { outline-offset: -3px; }
.winbiz-shop #recentSection .section-header { padding: 4px 12px 0; }
.winbiz-shop #recentSection .section-header h2 { font-size: 15px; line-height: 1.2; color: var(--primary-dark); }
.winbiz-shop #recentSection .line { height: 15px; }
.winbiz-shop #recentSection:not([hidden]) + .section-header { padding-top: 4px; }
.winbiz-shop #recentList {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 12px;
  scrollbar-width: none;
}
.winbiz-shop #recentList::-webkit-scrollbar { display: none; }
.winbiz-shop .recent-item {
  position: relative;
  flex: 0 0 clamp(68px, 18vw, 80px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 9px;
  background: white;
}
.winbiz-shop .recent-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.winbiz-shop .recent-price {
  position: absolute;
  right: 3px;
  bottom: 3px;
  padding: 2px 5px;
  border-radius: 8px;
  color: white;
  background: #066039;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
}
.winbiz-shop .shop-theme-controls {
  background: radial-gradient(ellipse at 80% -35%, #04662e 4%, transparent 68%),
    radial-gradient(ellipse at 12% 12%, #8de590, transparent 65%),
    linear-gradient(170deg, #87da98, #c6edce 65%, #edf5f4);
}
.winbiz-shop .mas-search-wrap { margin: 0 3.73%; }
.winbiz-shop .mas-search-input {
  display: flex; align-items: center; width: 100%; gap: .7em;
  min-height: 9.33cqw; padding: 0 3.25cqw;
  border: 1px solid white; border-radius: 99px;
  color: #173744; background: linear-gradient(#fff, #f2f6f7);
  font-size: clamp(12px, 3.55cqw, 31px); line-height: 1.1;
  box-shadow: 0 .55cqw 1.25cqw #00583245;
}
.winbiz-shop .mas-search-input i { color: #063e35; font-size: 1.5em; line-height: 1; }
.winbiz-shop .mas-search-input span { white-space: nowrap; }
.winbiz-shop .mas-search-input small { font-size: .9em; }
.winbiz-shop .shop-search-end { margin-left: auto; }
.winbiz-shop .cat-bar {
  display: flex; align-items: center; gap: 1.55cqw;
  margin: 0; padding: 2.1% 2.2% 1.45%; background: transparent;
  min-height: 10.05cqw;
}
.winbiz-shop .cat-chip {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .45em; padding: 0 .35em; min-height: 7.9cqw;
  border: 1px solid #fff; border-radius: 99px; color: #123638;
  background: var(--shop-surface);
  box-shadow: 0 .45cqw .85cqw #07503240;
  font-size: clamp(11px, 3.05cqw, 28px); line-height: 1; font-weight: 700;
}
.winbiz-shop .cat-chip:nth-child(1) { width: 20cqw; }
.winbiz-shop .cat-chip:nth-child(2) { width: 23.6cqw; }
.winbiz-shop .cat-chip:nth-child(3) { width: 28.5cqw; }
.winbiz-shop .cat-chip:nth-child(4) { width: 18.65cqw; }
.winbiz-shop .cat-chip i { color: #099413; font-size: 1.22em; }
.winbiz-shop .cat-chip.active { background: linear-gradient(#21ce00, #00a200 55%, #008709); color: white; border-color: #a5ed5c; }
.winbiz-shop .cat-chip.active i { color: inherit; }
.winbiz-shop .shop-theme-banner { position: relative; display: grid; margin: 0 2%; overflow: hidden; border-radius: clamp(12px, 3vw, 26px); background: #073522; }
.winbiz-shop .promo-slide { position: relative; grid-area: 1 / 1; min-width: 0; }
.winbiz-shop .promo-slide img { display: block; width: 100%; aspect-ratio: 858 / 236; height: auto; object-fit: cover; object-position: center 25%; }
.winbiz-shop .promo-copy { position: absolute; left: 5%; top: 50%; transform: translateY(-50%); display: grid; gap: .18em; color: white; line-height: 1.14; font-size: clamp(13px, 3.6cqw, 31px); }
.winbiz-shop .promo-copy strong { color: #efffba; font-size: 1.3em; }
.winbiz-shop .promo-toggle { position: absolute; right: 4px; bottom: 4px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #ffffff80; background: #073522db; color: white; font: bold 13px/1 sans-serif; }
.winbiz-shop .section-header { padding: clamp(13px, 3vw, 26px) clamp(11px, 3.3vw, 31px) clamp(7px, 1.9vw, 16px); gap: 9px; }
.winbiz-shop .section-header .line { width: 4px; height: 1.45em; flex: none; background: var(--shop-green); }
.winbiz-shop .section-header h2 { color: var(--shop-ink); font-size: clamp(18px, 3vw, 22px); font-weight: 800; }

.winbiz-shop .product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 20px);
  padding: 0 clamp(8px, 2vw, 20px);
}
.winbiz-shop .product-grid > .product-item { display: flex; min-width: 0; }
.winbiz-shop .product-card { isolation: isolate; border: 1px solid #fff; border-radius: clamp(13px, 3.65vw, 30px); background: #fff; box-shadow: var(--shop-shadow); }
.winbiz-shop .product-img-wrap { border-radius: inherit; }
.winbiz-shop .company-badge, .winbiz-shop .partner-badge, .winbiz-shop .service-badge { display: block; font-size: clamp(12px, 2.35vw, 22px); padding: .4em .65em; line-height: 1.08; }
.winbiz-shop .company-badge, .winbiz-shop .partner-badge { border-radius: 0 0 1em; }
.winbiz-shop .partner-badge { background: linear-gradient(160deg, #ffbd08, #ed8300); }
.winbiz-shop .service-badge { border-radius: 0 0 0 1em; background: linear-gradient(160deg, #17c6ff, #0054d5); }
.winbiz-shop .product-img-wrap:has(.service-badge) .partner-badge,
.winbiz-shop .product-img-wrap:has(.service-badge) .company-badge { max-width: 63%; }
.winbiz-shop .discount-badge { top: auto; bottom: 6px; left: 6px; }
.winbiz-shop .product-info { padding: clamp(7px, 1.9vw, 16px) clamp(8px, 2.5vw, 21px) 8px; }
.winbiz-shop .shop-card-link { position: absolute; inset: 0; z-index: 1; }
.winbiz-shop .product-card:focus-within { outline: 2px solid #158445; outline-offset: 2px; }
.winbiz-shop .product-grid .product-price-row { justify-content: flex-start; align-items: center; gap: 5px; padding-top: 7px; }
.winbiz-shop .product-price { border-radius: 99px; background: var(--shop-green); color: white; font-size: clamp(14px, 3.7vw, 20px); line-height: 1; padding: .53em .65em; box-shadow: 0 3px 7px #10a73540; font-weight: 800; }
.winbiz-shop .product-sold { margin-left: auto; display: grid; place-items: center; min-width: 32px; min-height: 31px; padding: 2px 4px; border-radius: 14px; background: white; color: #162e35; box-shadow: 0 3px 7px #174d3d22; line-height: 1; }
.winbiz-shop .product-sold small { font-size: 10px; }
.winbiz-shop .product-sold strong { font-size: 14px; }
.winbiz-shop .shop-order-action { position: relative; z-index: 2; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--shop-green); color: white; font-size: 16px; box-shadow: 0 3px 7px #10a73540; }
.winbiz-shop .product-grid .product-name, .winbiz-shop .product-grid .product-dis { display: block; height: auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.35; }
.winbiz-shop .product-grid .product-name { font-size: clamp(14px, 3.6vw, 20px); font-weight: 800; }
.winbiz-shop .product-grid .product-dis { color: var(--shop-muted); font-size: clamp(12px, 3vw, 16px); }
.winbiz-shop .preview-label { margin: 0; padding: 5px 14px 8px; text-align: center; color: #245740; font-size: 15px; }
.winbiz-shop .preview-search-mark { padding: 0; color: #006c38; background: transparent; font-weight: 700; }
.winbiz-shop .preview-dock {
  --orb: clamp(60px, 18vw, 74px);
  position: fixed;
  z-index: 200;
  isolation: isolate;
  left: 50%;
  bottom: calc(7px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: calc(100% - 6px);
  max-width: 640px;
  height: clamp(58px, 16.5vw, 72px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  border-radius: 999px;
  border: 1px solid white;
  background: radial-gradient(ellipse at 50% 100%, #d3f8ce, transparent 42%), linear-gradient(180deg, #ffffff, #eff8f5 55%, #e5f2ef);
  box-shadow: inset 0 0 0 2px #ffffffbf, 0 3px 10px #19644240, 0 6px 20px #45db4b40;
  text-align: center;
}
.winbiz-shop .preview-dock::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -4px 2% auto;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, #97eab180, #fff, #97eab180, transparent);
  filter: blur(4px);
  pointer-events: none;
}
.winbiz-shop .preview-dock a {
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 44px;
  gap: 2px;
  border-radius: 999px;
  color: #14313a;
  font-size: clamp(13px, 3.6vw, 16px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.winbiz-shop .preview-dock a i { font-size: clamp(21px, 6.4vw, 29px); line-height: 1; }
.winbiz-shop .preview-dock .dock-home { color: #287a16; }
.winbiz-shop .dock-home i::before {
  color: #28a50a;
  background: linear-gradient(145deg, #a9ef34, #34c607 47%, #087d17);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 3px #74dd3e80);
}
.winbiz-shop .preview-dock .dock-avatar {
  width: clamp(25px, 7.4vw, 32px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: #b8edca;
  box-shadow: 0 0 5px #9fe7ae;
}
.winbiz-shop .preview-dock a:focus-visible { outline: 2px solid #11693b; outline-offset: 1px; }
.winbiz-shop .preview-dock .preview-ai {
  position: relative;
  justify-self: center;
  align-self: end;
  bottom: 3px;
  width: var(--orb);
  height: var(--orb);
  overflow: hidden;
  gap: 0;
  border: 2px solid #eaffb1;
  background: radial-gradient(ellipse at 32% 5%, #69eb43, transparent 44%),
    radial-gradient(ellipse at 50% 55%, #05742a 18%, #009328 58%, #30e938 85%, #bdff7a);
  box-shadow: inset 0 0 6px #8cff5b, 0 0 0 2px #63f23e99, 0 2px 10px 4px #45f33799;
  color: white;
  font-size: clamp(10px, 3vw, 13px);
  text-shadow: 0 1px 3px #035526;
}
.winbiz-shop .preview-ai strong { font: 800 clamp(20px, 6.6vw, 29px)/1 system-ui, sans-serif; }
.winbiz-shop .preview-ai strong::before, .winbiz-shop .preview-ai strong::after {
  content: "✦"; display: inline-block; vertical-align: middle; font-size: .38em; margin: 0 .24em; color: #eeff91;
}
.winbiz-shop .preview-ai::after {
  content: "";
  position: absolute;
  inset: -40% -75%;
  background: linear-gradient(110deg, transparent 44%, #f3ffc752 50%, transparent 56%);
  transform: translateX(-75%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .winbiz-shop .preview-ai::after { animation: shop-ai-shimmer 6s ease-in-out infinite; }
}
@keyframes shop-ai-shimmer {
  0%, 70% { transform: translateX(-75%); }
  95%, 100% { transform: translateX(75%); }
}

@media (max-width: 380px) {
  .winbiz-shop .product-price { padding-inline: .42em; }
  .winbiz-shop .shop-order-action { width: 28px; height: 28px; }
}
@media (min-width: 650px) {
  .winbiz-shop .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 801px) {
  .winbiz-shop .product-info { padding-inline: 12px; }
  .winbiz-shop .product-price { font-size: 24px; }
  .winbiz-shop .shop-order-action { width: 38px; height: 38px; font-size: 19px; }
}
@media (min-width: 960px) {
  .winbiz-shop {
    --shop-desktop-width: min(calc(100% - 48px), 1480px);
    padding-bottom: 32px;
  }
  .winbiz-shop .mas-wrapper {
    width: var(--shop-desktop-width);
    max-width: none;
    padding-top: 16px;
  }
  .winbiz-shop .shop-theme-header {
    aspect-ratio: auto;
    min-height: 68px;
    border-bottom: 1px solid var(--shop-border);
    background: linear-gradient(110deg, #fff 25%, #f0fbf4 65%, #d9f3e2);
    box-shadow: 0 2px 10px #09562e1c;
  }
  .winbiz-shop .shop-header-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 16px;
    width: var(--shop-desktop-width);
    margin-inline: auto;
  }
  .winbiz-shop .shop-theme-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    justify-self: start;
  }
  .winbiz-shop .shop-theme-brand::before {
    content: "";
    width: 44px;
    height: 44px;
    background: url('/member/img/icon.webp') center / contain no-repeat;
  }
  .winbiz-shop .shop-theme-brand .shop-desktop-label {
    display: block;
    color: #087733;
    font: 750 21px/1 system-ui, sans-serif;
  }
  .winbiz-shop .shop-theme-brand .shop-desktop-label span {
    display: block;
    color: var(--shop-dark);
    font-size: 12px;
  }
  .winbiz-shop .shop-theme-cart {
    display: grid;
    place-items: center;
    justify-self: end;
    width: auto;
    min-height: 42px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--shop-border);
    border-radius: 99px;
    background: white;
    color: var(--shop-dark);
    font-size: 19px;
    font-weight: 700;
  }
  .winbiz-shop .shop-theme-cart .shop-desktop-label { display: flex; align-items: center; gap: 7px; }
  .winbiz-shop .preview-dock {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    margin-left: auto;
    gap: 6px;
    width: auto;
    max-width: none;
    height: auto;
    transform: none;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .winbiz-shop .preview-dock::before { display: none; }
  .winbiz-shop .preview-dock a {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 12px;
    font-size: 18px;
  }
  .winbiz-shop .preview-dock a i { font-size: 18px; }
  .winbiz-shop .preview-dock a:hover,
  .winbiz-shop .preview-dock a[aria-current="page"] { background: #e0f5e7; color: var(--shop-dark); }
  .winbiz-shop .preview-dock .dock-avatar { width: 25px; }
  .winbiz-shop .preview-dock .preview-ai {
    position: relative;
    bottom: auto;
    align-self: center;
    width: auto;
    height: auto;
    min-height: 42px;
    padding: 0 14px;
    gap: 7px;
    border: 1px solid #a5ed5c;
    background: linear-gradient(155deg, #008e3b, #006132);
    box-shadow: 0 3px 10px #0fa54036;
    color: white;
    font-size: 18px;
    line-height: 1;
  }
  .winbiz-shop .preview-dock .preview-ai:hover {
    background: linear-gradient(155deg, #05a346, #00753c);
    color: white;
  }
  .winbiz-shop .preview-ai strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(234, 255, 177, 0.45);
    font: 800 12px/1 system-ui, sans-serif;
    letter-spacing: 0.03em;
  }
  .winbiz-shop .preview-ai strong::before,
  .winbiz-shop .preview-ai strong::after { display: none; }
  .winbiz-shop .shop-theme-controls { margin-bottom: 12px; background: transparent; }
  .winbiz-shop .mas-search-wrap { margin: 0; }
  .winbiz-shop .mas-search-input {
    min-height: 48px;
    padding: 0 18px;
    font-size: 22px;
    box-shadow: var(--shop-shadow);
  }
  .winbiz-shop .mas-search-input i { font-size: 20px; }
  .winbiz-shop .cat-bar {
    min-height: 0;
    gap: 9px;
    padding: 12px 4px 8px;
    scrollbar-width: thin;
    scrollbar-color: #87c8a4 transparent;
  }
  .winbiz-shop .cat-bar::-webkit-scrollbar { display: block; height: 6px; }
  .winbiz-shop .cat-bar::-webkit-scrollbar-thumb { border-radius: 99px; background: #87c8a4; }
  .winbiz-shop .cat-chip,
  .winbiz-shop .cat-chip:nth-child(-n+4) {
    width: auto;
    min-height: 38px;
    padding: 0 13px;
    font-size: 18px;
    box-shadow: 0 2px 6px #07503226;
  }
  .winbiz-shop .shop-theme-banner { margin: 0; border-radius: 20px; }
  .winbiz-shop .promo-slide img {
    height: clamp(180px, 19cqw, 250px);
    aspect-ratio: auto;
    object-position: center 37%;
  }
  .winbiz-shop .promo-copy { font-size: clamp(22px, 2.45cqw, 34px); }
  .winbiz-shop .promo-toggle { right: 12px; bottom: 12px; width: 34px; height: 34px; }
  .winbiz-shop #recentSection .section-header { padding: 12px 0 3px; }
  .winbiz-shop #recentSection .section-header h2 { font-size: 19px; }
  .winbiz-shop #recentList { padding: 3px 0 6px; }
  .winbiz-shop .section-header,
  .winbiz-shop #recentSection:not([hidden]) + .section-header { padding: 12px 0 8px; }
  .winbiz-shop .section-header h2 { font-size: 24px; }
  .winbiz-shop .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
  }
  .winbiz-shop .product-card { border-radius: 16px; }
  .winbiz-shop .product-grid .product-info { padding-block: 10px; }
  .winbiz-shop .company-badge,
  .winbiz-shop .partner-badge,
  .winbiz-shop .service-badge { font-size: 16px; }
  .winbiz-shop .shopee-search-modal { align-items: center; }
  .winbiz-shop .shopee-modal-container {
    width: calc(100% - 48px);
    max-width: 1060px;
    height: min(86dvh, 860px);
    border-radius: 20px;
  }
}
@media (min-width: 1200px) {
  .winbiz-shop .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1500px) {
  .winbiz-shop .product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .winbiz-shop .product-card, .winbiz-shop .product-card img { transition: none; }
  .winbiz-shop .product-card:hover, .winbiz-shop .product-card:hover .product-img-wrap img { transform: none; }
}
