:root {
    --iw-ink: #2e2148;
    --iw-muted: #665879;
    --iw-purple: #592bb8;
    --iw-purple-dark: #49238f;
    --iw-paper: #fff;
    --iw-cream: #fff9ee;
    --iw-lilac: #f3ebff;
    --iw-line: #e7dcf1;
    --iw-shadow: 0 14px 32px #51346711;
    --iw-mascot-crop: polygon(0 24.3%, 100% 24.3%, 100% 77%, 74% 83%, 56% 84%, 42% 83%, 33% 81%, 26% 79.6%, 0 79.6%);
}

:root[data-theme="dark"] {
    --iw-ink: #fff0fc;
    --iw-muted: #dbcaea;
    --iw-purple: #b98dff;
    --iw-purple-dark: #d4baff;
    --iw-paper: #29203a;
    --iw-cream: #1f192c;
    --iw-lilac: #342646;
    --iw-line: #504260;
    --iw-shadow: 0 14px 32px #17102133;
}

html { scroll-padding-top: 92px; }

body.iw-store {
    color: var(--iw-ink);
    background: radial-gradient(ellipse at 10% 34%, var(--iw-cream), transparent 65%),
        linear-gradient(155deg, var(--iw-paper), var(--iw-lilac)) fixed;
}

body.iw-store::before,
:root[data-theme="dark"] body.iw-store::before { content: none; }

.iw-store .uc-topbar { padding-top: 12px; }
.iw-store .shop-nav {
    min-height: 64px;
    padding: 0 12px 0 16px;
    border: 1px solid var(--iw-line);
    background: var(--iw-paper);
    box-shadow: var(--iw-shadow);
}
.iw-store .shop-brand { color: var(--iw-ink); font-weight: 900; }
.iw-store .shop-brand__name { max-width: 22ch; }
.iw-brand-icon {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid #f5b92a;
    background: #fff;
}
.iw-store .iw-brand-icon img,
.iw-auth .iw-brand-icon img {
    position: absolute;
    top: -15%;
    left: -10%;
    width: 120%;
    height: auto;
    max-width: none;
    clip-path: var(--iw-mascot-crop);
}
.iw-brand-icon--auth {
    width: 72px;
    height: 72px;
}
.iw-business-icon { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.iw-store .shop-nav__item { color: var(--iw-ink); font-weight: 650; }
.iw-store .shop-nav__item:hover,
.iw-store .shop-nav__item.active {
    color: var(--iw-purple-dark);
    background: var(--iw-lilac);
    box-shadow: none;
}
.iw-store .shop-btn--primary,
.iw-store .btn.btn-primary {
    background: #592bb8;
    color: #fff;
    border-color: #592bb8;
    box-shadow: none;
}
.iw-store .shop-btn--primary:hover,
.iw-store .btn.btn-primary:hover { background: #49238f; }
.iw-store .shop-icon-btn { color: var(--iw-ink); }

.iw-store .container { max-width: 1180px; }
.iw-store .iw-home { padding-block: 26px 24px; }
.iw-store :focus-visible,
.iw-auth :focus-visible { outline: 3px solid #9b59ef; outline-offset: 3px; }

.iw-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    min-height: 340px;
    border: 1px solid #f1cbe2;
    border-radius: 32px;
    color: #392453;
    background:
        radial-gradient(ellipse at 95% 4%, #ffe3a3, transparent 48%),
        radial-gradient(ellipse at 96% 90%, #eacfef, transparent 55%),
        linear-gradient(110deg, #fff1d8 10%, #ffe6ee 54%, #f0d9ff 100%);
    box-shadow: var(--iw-shadow);
}
.iw-hero::after {
    position: absolute;
    z-index: -1;
    right: -7%;
    bottom: -65%;
    width: 64%;
    aspect-ratio: 1.6;
    border: 2px solid #fff7;
    border-radius: 50%;
    background: #ffffff38;
    content: "";
}
.iw-hero--business { grid-template-columns: minmax(0, 1fr); min-height: 240px; }
.iw-hero__copy {
    position: relative;
    z-index: 2;
    align-self: center;
    padding: clamp(32px, 5.5vw, 76px);
    padding-right: 10px;
}
.iw-hero h1 {
    margin: 0 0 18px;
    color: #4b2a81;
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-size: clamp(42px, 5.5vw, 76px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.05em;
    overflow-wrap: anywhere;
}
.iw-hero__copy p { margin: 0 0 24px; color: #59436a; font-size: 16px; line-height: 1.75; }
.iw-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.iw-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 45px;
    border-radius: 14px;
    padding: 8px 17px;
    border: 1px solid #e6cdec;
    color: #513185;
    background: #fff9;
    font-size: 14px;
    font-weight: 800;
}
.iw-link:hover { color: #482182; background: #fff; }
.iw-link--primary {
    border-color: #5e37b9;
    color: #fff;
    background: #592bb8;
    box-shadow: 0 7px 0 #e5c5f5;
}
.iw-link--primary:hover { color: #fff; background: #49238f; }

.iw-hero__scene {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 22px 38px 20px 0;
}
.iw-orbit {
    position: absolute;
    width: min(85%, 352px);
    height: 46%;
    border: 2px dashed #a753c788;
    border-radius: 50%;
    transform: rotate(-22deg);
}
.iw-mascot {
    position: relative;
    z-index: 1;
    display: block;
    width: clamp(154px, 22vw, 262px);
    aspect-ratio: 1;
    overflow: hidden;
    border: 7px solid #fffaf0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px #f8b5df, 0 14px 0 #8f559835, 0 23px 36px #9f55be42;
    transform: rotate(-8deg);
}
.iw-mascot img {
    position: absolute;
    top: -16%;
    left: -10%;
    display: block;
    width: 120%;
    height: auto;
    max-width: none;
    clip-path: var(--iw-mascot-crop);
}
.iw-sparkle { position: absolute; z-index: 2; font-weight: 800; line-height: 1; }
.iw-sparkle--large { top: 10%; right: 16%; color: #9d4dd5; font-size: 45px; }
.iw-sparkle--small { bottom: 14%; right: 15%; color: #7251c2; font-size: 31px; }
.iw-sparkle--pink { top: 22%; left: 13%; color: #a34a89; font-size: 30px; }
.iw-cloud {
    position: absolute;
    bottom: 15%;
    display: block;
    width: 86px;
    height: 29px;
    border-radius: 50px;
    background: #fff9;
}
.iw-cloud::before, .iw-cloud::after {
    position: absolute;
    bottom: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff9;
    content: "";
}
.iw-cloud::before { left: 12px; }
.iw-cloud::after { left: 36px; bottom: 13px; }
.iw-cloud--left { left: 2%; }
.iw-cloud--right { right: 2%; bottom: 28%; transform: scale(.7); }

.iw-notice {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: start;
    gap: 10px 16px;
    margin-top: 20px;
    padding: 14px 18px;
    border: 1px solid var(--iw-line);
    border-radius: 16px;
    background: var(--iw-paper);
    overflow-wrap: anywhere;
}
.iw-notice__label { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--iw-purple); font-size: 14px; font-weight: 800; white-space: nowrap; }
.iw-notice__label .material-icons-outlined { font-size: 19px; }
.iw-notice__content { min-width: 0; color: var(--iw-muted); font-size: 14px; line-height: 1.65; }
.iw-notice__content p { margin: 0 0 8px; }
.iw-notice__content > :last-child { margin-bottom: 0; }

.iw-item-guide__jump {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--iw-purple);
    font-weight: 700;
    text-underline-offset: 3px;
}

.iw-item-guide__jump:hover { color: var(--iw-purple-dark); }

.iw-item-guide {
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--iw-line);
    border-radius: 22px;
    background: var(--iw-paper);
    box-shadow: var(--iw-shadow);
}

.iw-item-guide__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px clamp(16px, 4vw, 34px);
    border-bottom: 1px solid var(--iw-line);
    background: linear-gradient(110deg, var(--iw-lilac), var(--iw-cream));
}

.iw-item-guide__head h2 { margin: 0; color: var(--iw-ink); font-size: clamp(20px, 3vw, 25px); font-weight: 800; }
.iw-item-guide__order {
    margin-inline-start: auto;
    color: var(--iw-purple);
    font-size: 14px;
    font-weight: 700;
    text-underline-offset: 3px;
}
.iw-item-guide__order:hover { color: var(--iw-purple-dark); }

.iw-item-showcase .item-cover { object-fit: contain; padding: clamp(16px, 4vw, 40px); }
.iw-item-showcase .item-buy { display: flex; flex-direction: column; justify-content: center; }
.iw-item-showcase__price { color: var(--iw-muted); margin: 4px 0 0; }
.iw-reservation { display: grid; justify-items: start; gap: 14px; margin-top: 18px; }
.iw-reservation p { margin: 0; color: var(--iw-muted); }
.iw-reservation__prices { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0; }
.iw-reservation__prices dt { color: var(--iw-muted); font-size: 13px; }
.iw-reservation__prices dd { margin: 0; color: var(--iw-purple-dark); font-size: 25px; font-weight: 800; }

.iw-item-guide__icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    height: 36px;
    border: 1px solid var(--iw-line);
    border-radius: 10px;
    background: var(--iw-paper);
    color: var(--iw-purple);
    font-size: 20px;
}

.iw-item-guide__body {
    padding: clamp(16px, 4vw, 34px);
    color: var(--iw-muted);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.iw-item-guide .iw-item-guide__body :where(h2, h3, h4) {
    margin: 24px 0 9px;
    padding: 7px 12px;
    border-inline-start: 3px solid var(--iw-purple);
    border-radius: 5px;
    background: var(--iw-lilac);
    color: var(--iw-ink);
    font-size: 16px;
    font-weight: 750;
}

.iw-item-guide__body > :first-child,
.iw-item-guide__body > .acg-rich > :first-child { margin-top: 0; }
.iw-item-guide .iw-item-guide__body :where(p, ul, ol) { margin: 0 0 11px; }
.iw-item-guide .iw-item-guide__body :where(ul, ol) { padding-inline-start: 23px; }
.iw-item-guide .iw-item-guide__body :where(li + li) { margin-top: 4px; }
.iw-item-guide__body > :last-child,
.iw-item-guide__body > .acg-rich > :last-child { margin-bottom: 0; }
.iw-item-guide__body :where(img, video, iframe) { max-width: 100%; }

.iw-query-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    max-width: 520px;
    margin-inline: auto;
}

.iw-query-guide {
    max-width: 520px;
    margin: 16px auto 0;
    padding: 15px 17px;
    border: 1px solid var(--iw-line);
    border-radius: 14px;
    background: var(--iw-lilac);
    color: var(--iw-ink);
    overflow-wrap: anywhere;
}

.iw-query-guide h2 { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.iw-query-guide dl { margin: 0; }
.iw-query-guide dt { font-size: 14px; font-weight: 750; }
.iw-query-guide dd { margin: 2px 0 10px; color: var(--iw-muted); font-size: 14px; }
.iw-query-guide dd:last-child { margin-bottom: 0; }
.iw-query-guide a { color: var(--iw-purple-dark); text-decoration: underline; }

.iw-catalog { margin-top: 36px; }
.iw-catalog__heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
.iw-catalog__heading h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 850; letter-spacing: -.04em; }
.iw-search {
    display: flex;
    flex: 0 1 260px;
    min-width: 0;
    min-height: 44px;
    padding: 3px 4px 3px 14px;
    border: 1px solid var(--iw-line);
    border-radius: 14px;
    background: var(--iw-paper);
}
.iw-search:focus-within { border-color: var(--iw-purple); }
.iw-search input { width: 100%; min-width: 0; padding: 4px 0; border: 0; color: var(--iw-ink); background: transparent; font-size: 14px; }
.iw-search input:focus { outline: 0; }
.iw-search input::placeholder { color: var(--iw-muted); }
.iw-search button {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    min-height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: var(--iw-purple-dark);
    background: var(--iw-lilac);
}
.iw-search button:hover { background: var(--iw-line); }
.iw-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.iw-filters button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 41px;
    padding: 6px 15px;
    border: 1px solid var(--iw-line);
    border-radius: 999px;
    color: var(--iw-muted);
    background: var(--iw-paper);
    font-size: 14px;
    font-weight: 700;
}
.iw-filters img { object-fit: contain; border-radius: 4px; }
.iw-filters button:hover { color: var(--iw-purple); }
.iw-filters button[aria-pressed="true"] { background: var(--iw-lilac); color: var(--iw-purple-dark); border-color: var(--iw-purple); }

.iw-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.iw-products--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.iw-catalog__status { color: var(--iw-muted); margin: 12px 0 0; }
.iw-catalog__status:empty { display: none; }
.iw-product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--iw-line);
    border-radius: 22px;
    color: var(--iw-ink);
    background: var(--iw-paper);
    box-shadow: var(--iw-shadow);
    transition: transform .18s, box-shadow .18s;
}
a.iw-product:hover { transform: translateY(-4px); box-shadow: 0 16px 35px #51247425; color: var(--iw-purple-dark); }
.iw-product__picture { position: relative; overflow: hidden; aspect-ratio: 1.7; background: var(--iw-lilac); }
.iw-products--pair .iw-product__picture { aspect-ratio: 2.2; }
.iw-product__picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.iw-product--service .iw-product__picture { background: #fff0e8; }
.iw-product--service .iw-product__picture img { width: 100%; padding: 25px; object-fit: contain; }
.iw-product__badge {
    position: absolute;
    top: 11px;
    left: 11px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #492a60;
    background: #fff8ecf5;
    font-size: 12px;
    font-weight: 800;
}
.iw-product__body { display: flex; flex-direction: column; flex: 1; gap: 7px; padding: 15px 17px; }
.iw-product__category { margin: 0; color: var(--iw-muted); font-size: 12px; }
.iw-product__name { margin: 0; font-size: clamp(15px, 2vw, 19px); font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.iw-product__bottom { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: auto; }
.iw-product__prices { display: grid; }
.iw-product__member-price { color: var(--iw-muted); font-size: 13px; }
.iw-product__price { color: var(--iw-purple-dark); font-size: clamp(17px, 2vw, 25px); font-weight: 850; font-variant-numeric: tabular-nums; }
.iw-product__arrow { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 12px; color: var(--iw-purple-dark); background: var(--iw-lilac); }

.iw-partner { margin-top: 34px; padding: 20px 23px; border: 1px solid var(--iw-line); border-radius: 22px; background: var(--iw-paper); }
.iw-partner h2 { margin: 0 0 14px; font-size: 23px; font-weight: 850; letter-spacing: -.03em; }
.iw-partner__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.iw-partner__option { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 15px; background: var(--iw-lilac); }
.iw-partner__icon { flex: 0 0 auto; padding: 6px; border-radius: 10px; background: var(--iw-paper); color: var(--iw-purple); font-size: 24px; }
.iw-partner h3 { margin: 0 0 3px; font-size: 16px; font-weight: 800; }
.iw-partner p { margin: 0; color: var(--iw-muted); font-size: 14px; }
.iw-partner a { display: inline-block; margin-top: 6px; color: var(--iw-purple-dark); font-size: 14px; font-weight: 750; }
.iw-partner a:hover { text-decoration: underline; }

.iw-shop-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 36px; padding: 20px 0 6px; border-top: 1px solid var(--iw-line); color: var(--iw-muted); font-size: 13px; }
.iw-shop-footer > span { margin-right: auto; font-weight: 750; }
.iw-shop-footer a { color: var(--iw-purple-dark); }
.iw-shop-footer a:hover { text-decoration: underline; }

.iw-store .panel {
    background: var(--iw-paper);
    border-color: var(--iw-line);
    border-radius: 22px;
    box-shadow: var(--iw-shadow);
}
.iw-store .panel-title,
.iw-store .item-buy h4 { color: var(--iw-ink); font-weight: 800; }
.iw-store .item-buy .price { color: var(--iw-purple-dark); }
.iw-store .item-cover { width: 100%; object-fit: cover; }
.iw-product__picture img[src$="/iwannu-chatgpt.png"],
.iw-store .item-cover[src$="/iwannu-chatgpt.png"] {
    box-sizing: border-box;
    object-fit: contain;
    padding: clamp(12px, 2.5vw, 26px);
    background: #fff;
}
.iw-store .item-cover[src$="/iwannu-chatgpt.png"] {
    aspect-ratio: 1.7;
    max-height: 220px;
}
.iw-store .order-query-form .d-flex > div:first-child { min-width: 0; }
.iw-store .order-query-form .btn { white-space: nowrap; }
.iw-payment-notice {
    margin: 0 0 16px;
    padding: 11px 13px;
    border: 1px solid var(--iw-line);
    border-radius: 13px;
    background: var(--iw-lilac);
    color: var(--iw-ink);
    font-size: 14px;
    line-height: 1.5;
}
.iw-payment-notice strong { display: block; margin-bottom: 3px; }
.iw-payment-notice p { margin: 0; color: var(--iw-muted); }
.iw-payment-notice a { display: inline-block; margin-top: 5px; color: var(--iw-purple-dark); text-decoration: underline; }
.iw-payment-notice--query { max-width: 520px; margin: 16px auto 0; }
.iw-payment-rules {
    margin: 12px 0;
    padding: 12px 15px;
    border: 1px solid #eed4cd;
    border-radius: 12px;
    background: #fff8f5;
    color: #703d35;
    font-size: 13px;
}
.iw-payment-rules summary { cursor: pointer; line-height: 1.55; }
.iw-payment-rules summary strong { margin-inline-end: 9px; color: #8d3228; }
.iw-payment-rules ul { margin: 8px 0 0; padding-inline-start: 20px; }
.iw-payment-rules li + li { margin-top: 4px; }
.cash-pay .iw-payment-rules { margin-bottom: 0; }
.cash-pay .pay-list { gap: 8px; }
.cash-pay .pay-list .pay:has(img[src*="/iwannu/pay-"]) {
    min-height: 44px;
    padding: 6px 12px 6px 8px;
    gap: 8px;
    border-radius: 11px;
    border-color: #e9dff4;
    font-weight: 680;
}
.cash-pay .pay-list .pay img[src*="/iwannu/pay-"] {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: contain;
}
.order-query-form + .iw-payment-rules { max-width: 610px; margin: 16px auto 0; }

body.iw-auth { background: linear-gradient(135deg, #fff2ce, #f9daf2 54%, #ecdcff); }
.iw-auth .auth-card { border-radius: 26px; }
.iw-auth .brand-icon { border-radius: 50%; }
.iw-auth .btn-gradient { color: white; background: #592bb8; }
.iw-auth .text-link { color: #592bb8; }

@media (max-width: 800px) {
    .iw-products { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .iw-hero { min-height: 278px; }
    .iw-hero__copy { padding-left: 26px; }
    .iw-hero__scene { padding-right: 18px; }
}

@media (max-width: 575px) {
    .iw-store .uc-topbar { padding-inline: 9px; }
    .iw-store .shop-nav { padding-inline: 9px; min-height: 53px; height: auto; }
    .iw-store .shop-brand__name { max-width: 17ch; }
    .iw-store .shop-icon-btn { width: 34px; height: 36px; }
    .iw-store .iw-home { padding-top: 15px; }
    .iw-hero { min-height: auto; grid-template-columns: 1fr; border-radius: 23px; }
    .iw-hero__copy { padding: 23px 18px 11px; text-align: center; }
    .iw-hero h1 { margin-bottom: 10px; font-size: clamp(32px, 10vw, 48px); }
    .iw-hero__copy p { font-size: 14px; margin: 0 0 13px; line-height: 1.5; }
    .iw-desktop-break { display: none; }
    .iw-hero__actions { justify-content: center; }
    .iw-hero__scene { width: min(100%, 310px); min-height: 162px; margin: auto; padding: 15px 4px; }
    .iw-mascot { width: 124px; border-width: 5px; }
    .iw-sparkle--large { font-size: 33px; }
    .iw-sparkle--pink, .iw-sparkle--small { font-size: 23px; }
    .iw-notice { grid-template-columns: minmax(0, 1fr); padding: 12px; margin-top: 14px; gap: 6px; }
    .iw-notice__content { font-size: 13px; }
    .iw-item-guide { margin-top: 18px; border-radius: 17px; }
    .iw-query-fields { grid-template-columns: minmax(0, 1fr); }
    .iw-catalog { margin-top: 24px; }
    .iw-catalog__heading h2 { flex-shrink: 0; font-size: 21px; }
    .iw-search { flex-basis: 160px; }
    .iw-products { gap: 9px; }
    .iw-product { border-radius: 15px; }
    .iw-product__picture, .iw-products--pair .iw-product__picture { aspect-ratio: 1.4; }
    .iw-product__badge { left: 6px; top: 6px; padding: 3px 6px; font-size: 10px; }
    .iw-product__body { padding: 9px; gap: 4px; }
    .iw-product__arrow { flex-basis: 23px; height: 26px; border-radius: 8px; }
    .iw-product__name { font-size: 14px; }
    .iw-partner { padding: 14px; }
    .iw-partner__options { grid-template-columns: 1fr; }
    .iw-shop-footer { margin-top: 25px; }
}

@media (prefers-reduced-motion: reduce) {
    .iw-product { transition: none; }
    a.iw-product:hover { transform: none; }
}
