:root {
  --purple: #6326f6;
  --purple-soft: #eee7ff;
  --line: #e7dcfb;
  --muted: #686179;
}

html { background: #d6b7ff; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 4% 2%, #f1d5ff 0, transparent 32%),
    radial-gradient(circle at 92% 14%, #8d52f5 0, transparent 36%),
    radial-gradient(circle at 17% 62%, #e8dbff 0, transparent 39%),
    linear-gradient(135deg, #c999ff 0%, #a979f5 39%, #d7c8ff 75%, #e9e9ff 100%);
  background-attachment: fixed;
}
.shell { width: min(1240px, calc(100% - 48px)); }

.site-header {
  background: rgba(255,255,255,.76);
  border-bottom: 1px solid rgba(255,255,255,.75);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 9px 32px rgba(69,31,132,.08);
}
.header-inner { min-height: 78px; }
.language-toggle { background: rgba(255,255,255,.64); }
.header-scan { background: linear-gradient(115deg,#9b54f6,#6225fa); }

.promotion-wrap {
  margin: 26px 0 0;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 33px;
  background: rgba(255,255,255,.43);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 50px rgba(71,31,145,.19);
}
.promotion-track {
  position: relative;
  height: clamp(220px, 34vw, 455px);
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 25px;
  background: #f3ebff;
  isolation: isolate;
}
.promotion-track img { position: absolute; inset: 0; width: 100%; height: 100%; }
.promotion-track .promotion-backdrop {
  object-fit: cover;
  filter: blur(25px) saturate(1.25);
  opacity: .38;
  transform: scale(1.09);
  animation: none;
}
.promotion-track .promotion-image {
  object-fit: contain;
  position: relative;
  z-index: 1;
  animation: promo-in .4s ease both;
}
.promotion-arrow {
  z-index: 2;
  opacity: 1;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.9);
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 5px 18px rgba(57,21,129,.13);
}
.promotion-dots {
  z-index: 2;
  bottom: 20px;
  border: 1px solid rgba(255,255,255,.86);
  background: rgba(255,255,255,.69);
  box-shadow: 0 6px 22px rgba(46,15,112,.12);
}

.market-intro,
.explore-section,
.category-hero,
.product-info {
  border: 1px solid rgba(255,255,255,.84);
  background: rgba(255,255,255,.73);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 22px 48px rgba(70,32,144,.11);
}
.market-intro {
  margin-top: 24px;
  padding: 34px 38px 35px;
  border-radius: 30px;
}
.market-intro h1 { font-size: clamp(38px, 4.7vw, 58px); }
.market-subtitle { color: #625b72; }
.seo-intro {
  max-width: 64ch;
  margin: 10px 0 0;
  color: #696276;
  font-size: 15px;
  line-height: 1.55;
}
.header-app-link { background: rgba(233,219,255,.91); }
.search-box {
  background: rgba(255,255,255,.83);
  border-color: #d8c8ef;
  box-shadow: 0 8px 22px rgba(64,29,117,.05);
}
.quick-actions { margin: 17px 0 38px; }
.quick-action,
.category-card,
.search-result,
.how-card,
.product-row,
.filter-row button,
.store-badge {
  background: rgba(255,255,255,.79);
  border: 1px solid rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(68,33,123,.09);
}
.quick-action { min-height: 88px; }
.quick-action .quick-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.quick-action .quick-app-logo { padding: 1px; }
.header-scan .scan-symbol {
  width: 23px;
  height: 23px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
@media (max-width: 620px) {
  .quick-action .quick-icon { flex-basis: 27px; width: 27px; height: 27px; }
}
.explore-section { padding: 28px; border-radius: 30px; }
.section-heading h2 { color: #171224; }
.category-grid { gap: 16px; }
.category-card { border-radius: 22px; }
.category-card img { aspect-ratio: 1.2; object-fit: cover; }
.category-card-body { padding: 15px 17px 18px; }
.category-card strong { font-size: 19px; }
.coming-soon-card { position: relative; }
.coming-soon-badge { position: absolute; top: 12px; right: 12px; z-index: 1; padding: 7px 10px; border-radius: 999px; background: rgba(34,23,56,.88); color: #fff; font-size: 12px; font-weight: 800; }
.coming-soon-dialog { width: min(390px,calc(100% - 32px)); padding: 28px; border: 1px solid #e8dcfa; border-radius: 24px; color: #1d1730; background: #fff; text-align: center; box-shadow: 0 24px 70px rgba(40,20,90,.24); }
.coming-soon-dialog::backdrop { background: rgba(21,12,43,.48); }
.coming-soon-dialog h2 { margin: 10px 0 8px; }
.coming-soon-dialog p { margin: 0 0 22px; color: #6f6484; }
.coming-soon-dialog .primary-link { display: inline-flex; justify-content: center; min-width: 160px; border: 0; cursor: pointer; }
.coming-soon-mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto; border-radius: 18px; color: #7132ed; background: #f1e9ff; font-size: 28px; }
.search-result img { background: rgba(255,255,255,.85); }
.how-section { padding: 78px 0 64px; }
.how-card { min-height: 188px; }
.app-section {
  border: 1px solid rgba(255,255,255,.85);
  background: linear-gradient(120deg,rgba(255,255,255,.9),rgba(242,232,255,.68));
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 42px rgba(70,32,144,.12);
}
.site-footer {
  border-top-color: rgba(255,255,255,.68);
  background: rgba(255,255,255,.69);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.detail-view { padding-top: 25px; }
.back-button { color: #291a4a; }
.category-hero { border-radius: 29px; }
.category-hero img { z-index: -2; object-position: right center; }
.category-hero::before { z-index: -1; background: linear-gradient(90deg,#fff 0%,#fffffffa 14%,#ffffffd9 35%,transparent 73%); }
.filter-row button { border-color: rgba(255,255,255,.8); }
.filter-row button.active { background: linear-gradient(115deg,#9b54f6,#6225fa); }
.product-row { padding: 13px 19px; border-radius: 22px; }
.product-row .package-image,
.product-row .photo-image { object-fit: contain; }
.product-main-image {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 19px 42px rgba(70,32,144,.12);
}
.product-main-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-info { padding: 30px; border-radius: 25px; }
.product-thumbnails button {
  background: rgba(255,255,255,.78);
  border-color: rgba(255,255,255,.78);
  box-shadow: 0 8px 20px rgba(65,30,123,.09);
}
.product-thumbnails button.active { border-color: var(--purple); }
.lookup-dialog { background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
html[dir="rtl"] .category-hero::before { background: linear-gradient(270deg,#fff 0%,#fffffffa 14%,#ffffffd9 35%,transparent 73%); }

@media (max-width: 900px) {
  .shell { width: calc(100% - 34px); }
  .header-inner { gap: 22px; }
  .header-nav { gap: 15px; font-size: 13px; }
  .product-layout { gap: 24px; }
  .product-info { padding: 24px; }
}
@media (max-width: 700px) {
  .header-nav { display: none; }
  .market-intro { padding: 26px; }
  .header-app-link { display: none; }
  .category-grid { gap: 10px; }
  .product-layout { grid-template-columns: 1fr; }
  .product-main-image { height: min(75vw, 490px); }
  .product-info { padding: 23px; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { min-height: 65px; }
  .brand-icon { width: 31px; height: 31px; }
  .brand-wordmark { width: 77px; }
  .promotion-wrap { margin-top: 13px; padding: 5px; border-radius: 22px; }
  .promotion-track { height: clamp(168px, 46vw, 255px); border-radius: 17px; }
  .promotion-dots { bottom: 9px; }
  .promotion-arrow { display: none; }
  .market-intro { margin-top: 12px; padding: 19px; border-radius: 20px; }
  .market-intro h1 { font-size: clamp(33px, 9vw, 42px); }
  .market-subtitle { font-size: 15px; }
  .search-box { margin-top: 18px; height: 52px; }
  .quick-actions { gap: 8px; margin: 13px 0 25px; }
  .quick-action { min-height: 70px; padding: 6px; border-radius: 16px; }
  .explore-section { padding: 18px 12px 22px; border-radius: 20px; }
  .category-card { border-radius: 15px; }
  .category-card-body { padding: 8px 7px 10px; }
  .category-card strong { font-size: 12px; }
  .category-card small { font-size: 10px; }
  .category-arrow { font-size: 14px; }
  .how-section { padding: 48px 0; }
  .app-section { border-radius: 23px; }
  .detail-view { padding-top: 15px; }
  .category-hero { height: clamp(190px, 52vw, 255px); border-radius: 20px; }
  .category-hero-copy { max-width: 58%; }
  .category-hero h1 { font-size: clamp(26px, 7vw, 35px); }
  .product-row { grid-template-columns: 70px minmax(0,1fr) 90px; gap: 7px; padding: 8px; min-height: 117px; border-radius: 16px; }
  .product-row .package-image,
  .product-row .photo-image { height: 99px; }
  .product-row strong { font-size: 14px; }
  .product-row em { font-size: 15px; }
  .product-main-image { height: min(85vw, 420px); border-radius: 20px; }
  .product-info { padding: 20px; border-radius: 20px; }
  .product-info h1 { font-size: 31px; }
  .product-price { font-size: 31px; }
}
@media (max-width: 390px) {
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-row { grid-template-columns: 60px minmax(0,1fr) 70px; }
  .product-row .package-image,
  .product-row .photo-image { height: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .promotion-track .promotion-image { animation: none; }
}
.market-group-toggle{display:inline-flex;gap:4px;padding:5px;margin:0 0 20px;border:1px solid #dfd1f6;border-radius:15px;background:#f1eaff}
.market-group-toggle button{border:0;border-radius:11px;background:transparent;color:#55436f;padding:10px 17px;font:inherit;font-weight:800;cursor:pointer}
.market-group-toggle button.active{color:#fff;background:linear-gradient(110deg,#9756ef,#6430ef);box-shadow:0 5px 16px #7141d542}
.market-group-toggle.hidden{display:none}
@media(max-width:620px){.market-group-toggle{display:flex;width:100%}.market-group-toggle button{flex:1;padding:10px 4px;font-size:13px}}
