.product-page, .styling-chat { --advice-paper: #edf3fa; --advice-success: #226849; }
:is(.product-page, .styling-chat) [hidden] { display: none !important; }
.product-page .detail-copy, .product-page .product-gallery, .product-page .review-feed { min-width: 0; }
.product-page .detail-copy h1 { overflow-wrap: anywhere; }
.product-page .product-description-panel { margin-top: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-page .product-description-panel > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 16px; min-height: 64px; padding: 20px 0; cursor: pointer; list-style: none; }
.product-page .product-description-panel > summary::-webkit-details-marker { display: none; }
.product-page .product-description-panel > summary > strong { font-size: 1.08rem; line-height: 1.5; }
.product-page .description-toggle { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.product-page .description-toggle-icon::after { content: "+"; font-size: 1.25rem; line-height: 1; }
.product-page .description-less, .product-page .product-description-panel[open] .description-more { display: none; }
.product-page .product-description-panel[open] .description-less { display: inline; }
.product-page .product-description-panel[open] .description-toggle-icon::after { content: "−"; }
.product-page .description-preview { grid-column: 1 / -1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; color: var(--muted); font-size: .88rem; line-height: 1.75; }
.product-page .product-description-panel[open] .description-preview { display: none; }
.product-page .description-content { padding: 0 0 22px; color: var(--muted); font-size: .88rem; line-height: 1.75; overflow-wrap: anywhere; }
.product-page .description-content > p { margin: 0 0 16px; }
.product-page .description-content > p:last-child { margin-bottom: 0; }
.product-page .product-rating-link { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .85rem; min-height: 32px; }
.product-page .product-rating-star { color: #986711; }
.product-page .product-rating-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.product-page .product-review-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.product-page .review-write-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid #c0d1e5; border-radius: 4px; color: var(--ink); background: var(--advice-paper); font-size: .85rem; font-weight: 600; }
.product-page .review-write-link svg { width: 18px; height: 18px; flex: none; }
.product-page .review-write-link:hover { border-color: var(--blue); color: var(--blue); }
.product-page :is(.review-write-link, .product-rating-link):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.product-page .fit-advice { padding: 0; margin: 24px 0; background: var(--advice-paper); border: 0; border-left: 3px solid var(--blue); scroll-margin-top: 120px; }
.product-page .purchase-size {
    margin: 24px 0;
    padding: clamp(14px, 3vw, 24px);
    background: var(--advice-paper);
    border-left: 3px solid var(--blue);
    scroll-margin-top: 120px;
}
.product-page .purchase-size > h3 { margin-top: 0; }
.product-page .purchase-size select { width: 100%; min-width: 0; }
.product-page .fit-advice > summary { padding: 21px 23px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.product-page .fit-advice > summary::-webkit-details-marker { display: none; }
.product-page .fit-advice > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.product-page .fit-heading { display: block; min-width: 0; }
.product-page .fit-heading > strong { display: block; font-size: 1.05rem; line-height: 1.4; }
.product-page .fit-heading > span { display: block; margin-top: 7px; font-size: .76rem; color: var(--muted); }
.product-page .fit-toggle { flex: none; font-size: .75rem; font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.product-page .fit-close-label, .product-page .fit-advice[open] .fit-open-label { display: none; }
.product-page .fit-advice[open] .fit-close-label { display: inline; }
.product-page .fit-content { padding: 0 23px 23px; }
.product-page .fit-current { font-size: .87rem; margin-bottom: 10px; }
.product-page .fit-note, .styling-chat .chat-note { font-size: .78rem; color: var(--muted); line-height: 1.65; }
.product-page .fit-measurements { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.product-page .fit-advice label { margin-bottom: 14px; font-size: .8rem; }
.product-page .fit-advice input, .product-page .fit-advice select { min-width: 0; border-color: #9cafc5; }
.product-page .fit-advice .button { width: 100%; background: white; }
.product-page .fit-advice .button:hover { background: #e2ecf8; }
:is(.product-page, .styling-chat) .fit-result { margin-top: 18px; font-size: .85rem; padding: 15px; border: 1px solid #c0d1e5; background: white; animation: advice-reveal .18s ease-out; }
:is(.product-page, .styling-chat) .fit-result p { margin: 0; }
:is(.product-page, .styling-chat) .fit-result .text-link { margin-bottom: 0; }
.product-page .size-guide { border: 0; padding: 18px 0 0; margin-top: 6px; }
.product-page .size-guide summary { font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.product-page .size-guide-scroll { overflow-x: auto; margin-top: 14px; }
.product-page .size-guide table { border-collapse: collapse; width: 100%; min-width: 290px; background: white; font-size: .78rem; }
.product-page .size-guide caption { text-align: left; padding: 10px; font-size: .75rem; color: var(--muted); }
.product-page .size-guide th, .product-page .size-guide td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.product-page .size-guide .is-selected { background: #dceafa; color: #143e72; }
.product-page .product-outfits { margin: 65px 0 50px; padding-top: 42px; border-top: 1px solid var(--line); }
.product-page .section-heading > div p { margin: 16px 0 0; color: var(--muted); font-size: .9rem; }
.product-page .outfit-grid > div { min-width: 0; }
.product-page .outfit-reason { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.product-page .product-section-empty { padding: 28px 0; color: var(--muted); font-size: .92rem; }
.styling-chat { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 60; width: 58px; height: 58px; margin: 0; padding: 0; border: 0; }
.styling-chat.has-shopping-assistant { right: calc(max(24px, env(safe-area-inset-right)) + var(--unit-assistant-launch-width, 196px) + 14px); }
.styling-chat > summary { cursor: pointer; list-style: none; width: 58px; height: 58px; padding: 0; display: grid; place-items: center; border: 1px solid #ffffff80; border-radius: 50%; background: var(--ink); color: white; box-shadow: 0 5px 20px #102d4b30; transition: background .18s ease, box-shadow .18s ease; }
.styling-chat > summary::-webkit-details-marker { display: none; }
.styling-chat > summary:hover { background: var(--blue); box-shadow: 0 7px 24px #102d4b40; }
.styling-chat > summary:focus-visible, .styling-chat .chat-dismiss:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.styling-chat .chat-launcher svg { width: 27px; height: 27px; }
.styling-chat .chat-close-icon, .styling-chat[open] .chat-open-icon { display: none; }
.styling-chat[open] .chat-close-icon { display: block; }
.styling-chat .chat-panel { position: absolute; right: 0; bottom: 74px; width: min(400px, calc(100vw - 48px)); height: min(640px, calc(100dvh - 128px)); display: flex; flex-direction: column; border: 1px solid #c4d3e2; background: #f5f8fc; color: var(--ink); box-shadow: 0 12px 40px #102d4b26; animation: advice-reveal .18s ease-out; }
.styling-chat.has-shopping-assistant .chat-panel { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: calc(max(24px, env(safe-area-inset-bottom)) + 74px); }
.styling-chat .chat-panel-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 18px; background: var(--ink); color: white; flex: none; }
.styling-chat .chat-panel-header h2 { margin: 0; font-size: 1rem; line-height: 1.4; letter-spacing: 0; }
.styling-chat .chat-panel-header p { margin: 5px 0 0; color: #c4d8e9; font-size: .73rem; }
.styling-chat .chat-dismiss { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid #ffffff40; padding: 0; background: transparent; color: white; cursor: pointer; }
.styling-chat .chat-dismiss svg { width: 20px; height: 20px; }
.styling-chat .chat-dismiss:hover { background: #ffffff18; }
.styling-chat .chat-workspace { display: flex; flex-direction: column; min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 16px; }
.styling-chat .chat-provider { font-size: .73rem; color: #345a7d; font-weight: 600; margin: 0 0 8px; flex: none; }
.styling-chat .chat-messages { min-height: 90px; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 2px 12px; display: flex; flex-direction: column; gap: 14px; }
.styling-chat .chat-message { padding: 12px 14px; max-width: 94%; flex: none; font-size: .83rem; background: white; border-left: 2px solid #bccfe5; overflow-wrap: anywhere; animation: advice-reveal .18s ease-out; }
.styling-chat .chat-message > strong { display: block; font-size: .73rem; color: var(--muted); margin-bottom: 7px; }
.styling-chat .chat-message > p { margin: 0; white-space: pre-wrap; }
.styling-chat .chat-message.user { align-self: flex-end; background: var(--ink); color: white; border: 0; }
.styling-chat .chat-message.user > strong { color: #b9d3e8; }
.styling-chat .chat-suggestions { display: grid; gap: 8px; margin-top: 14px; }
.styling-chat .chat-product-link { padding: 10px 12px; background: var(--advice-paper); display: block; font-size: .83rem; border: 1px solid #d4e0ee; }
.styling-chat .chat-product-link strong, .styling-chat .chat-product-link span { display: block; }
.styling-chat .chat-product-link span { font-size: .75rem; color: var(--muted); margin-top: 4px; }
.styling-chat .chat-questions { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; flex: none; }
.styling-chat .chat-questions button { background: white; border: 1px solid #bfd0e3; color: var(--ink); min-height: 40px; padding: 7px 9px; font-size: .72rem; }
.styling-chat .chat-questions button:hover { border-color: var(--blue); background: #e6effa; }
.styling-chat .chat-ai-consent { display: flex; gap: 10px; align-items: start; line-height: 1.55; font-size: .8rem; }
.styling-chat .chat-ai-consent input { margin-top: 2px; }
.styling-chat [data-chat-form] { flex: none; }
.styling-chat [data-chat-form] > label { font-size: .76rem; margin-bottom: 10px; }
.styling-chat [data-chat-form] textarea { margin-top: 6px; min-height: 65px; max-height: 110px; resize: vertical; padding: 10px 12px; font-size: 1rem; }
.styling-chat .chat-form-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.styling-chat .chat-form-footer > span { color: var(--muted); font-size: .68rem; max-width: 24ch; }
.styling-chat .chat-form-footer .button { flex: none; min-height: 42px; padding: 10px 14px; font-size: .78rem; }
.styling-chat [data-chat-feedback]:empty { display: none; }
:is(.product-page, .styling-chat) .product-action-feedback { margin: 12px 0 0; color: var(--muted); font-size: .83rem; overflow-wrap: anywhere; }
:is(.product-page, .styling-chat) .product-action-feedback.is-error, :is(.product-page, .styling-chat) .fit-result.is-error { color: #9a2833; }
:is(.product-page, .styling-chat) .product-action-feedback.is-success { color: var(--advice-success); }
.product-page .product-reviews { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.6fr); gap: 7%; padding: 45px 0; margin: 55px 0 65px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.product-page .review-overview h2 { font-size: clamp(1.65rem, 2.6vw, 2.4rem); }
.product-page .review-score { margin: 25px 0; }
.product-page .review-score > strong { font-size: 3.6rem; letter-spacing: -.06em; line-height: 1; }
.product-page .review-score > span { margin-left: 10px; color: var(--muted); font-size: .87rem; }
.product-page .review-score > p { margin-top: 10px; font-size: .8rem; color: var(--muted); }
.product-page .review-policy, .product-page .review-access-note { color: var(--muted); font-size: .88rem; }
.product-page .review-access { margin-top: 18px; }
.product-page .review-help { color: var(--muted); font-size: .78rem; line-height: 1.65; }
.product-page .review-form { padding-top: 26px; margin-top: 26px; border-top: 1px solid var(--line); scroll-margin-top: 120px; }
.product-page .review-form:target { border-top-color: var(--blue); }
.product-page .review-form h3 { margin-bottom: 22px; }
.product-page .review-form .button { width: 100%; }
.product-page .review-feed [data-reviews-feedback]:empty { margin: 0; }
.product-page .product-review { padding: 25px 0; border-bottom: 1px solid var(--line); }
.product-page .product-review:first-child { padding-top: 0; }
.product-page .review-author { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.product-page .review-author strong { font-size: .95rem; }
.product-page .review-author span { font-size: .73rem; color: var(--advice-success); }
.product-page .review-stars { font-size: 1rem; letter-spacing: .1em; color: #96610c; margin-bottom: 12px; }
.product-page .review-stars > span { color: #8394a5; }
.product-page .review-comment { font-size: .92rem; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.product-page .review-meta { display: flex; gap: 15px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 0; color: var(--muted); font-size: .77rem; }
.product-page .review-more { margin-top: 25px; }
@keyframes advice-reveal { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1050px) {
    .product-page .product-detail { gap: 4%; }
    .product-page .fit-advice > summary { padding: 18px; }
    .product-page .fit-content { padding: 0 18px 18px; }
}
@media (max-width: 840px) {
    .product-page .product-detail { grid-template-columns: 1fr; }
    .product-page .product-gallery { max-width: 620px; width: 100%; margin: auto; }
    .product-page .detail-copy { max-width: 620px; margin: auto; width: 100%; }
    .product-page .product-reviews { gap: 30px; grid-template-columns: minmax(230px, .9fr) minmax(0, 1.1fr); }
}
@media (max-width: 600px) {
    .product-page .fit-measurements { gap: 12px; }
    .product-page .product-outfits { margin-top: 42px; padding-top: 30px; }
    .styling-chat { right: max(12px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
    .styling-chat.has-shopping-assistant { right: calc(max(14px, env(safe-area-inset-right)) + var(--unit-assistant-launch-width, 176px) + 14px); }
    .styling-chat .chat-panel { width: min(400px, calc(100vw - 48px)); height: min(640px, calc(100dvh - 116px)); }
    .styling-chat.has-shopping-assistant .chat-panel { right: max(14px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 74px); width: min(400px, calc(100vw - 28px)); }
    .product-page .product-reviews { grid-template-columns: 1fr; gap: 35px; margin: 35px 0 45px; padding: 32px 0; }
    .product-page .review-form { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .styling-chat .chat-message, :is(.product-page, .styling-chat) .fit-result, .styling-chat .chat-panel { animation: none; }
}
@media print { .styling-chat { display: none; } }
