/* Product comments sheet (.pc-*), COPIED from public/css/storefront-shop.css for pages outside the shop layout
   (the buyer's /following Discover). Shop pages keep using storefront-shop.css; change both if you restyle the sheet. */
.pc-card{ color: var(--sfd-navy); }
.pc-card p{ white-space: normal; }
.pc-head{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.pc-title{ margin: 0; font-size: 17px; font-weight: 800; color: var(--sfd-navy); }
.pc-title-count{ color: #6B7598; font-weight: 700; }
.pc-stats{ display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; color: #4A5578; }
.pc-stats > *{ display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: inherit; }
.pc-stats button{ cursor: pointer; }
.pc-stats button:hover{ color: var(--sfd-navy); }
.pc-stats .fa-heart{ color: #E11D48; }
.pc-stats .fa-retweet{ color: #10B981; }
.pc-stats .fa-comment{ color: #2142B0; }
.pc-preview{ list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pc-preview-item{ display: flex; gap: 10px; cursor: pointer; }
.pc-preview-body{ min-width: 0; flex: 1; }
.pc-preview-body p{ margin: 0; font-size: 14px; line-height: 1.45; color: #3B4770; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-preview-body strong{ color: var(--sfd-navy); font-weight: 800; margin-right: 4px; }
.pc-preview-meta{ display: block; margin-top: 2px; font-size: 12px; color: #8A93B3; }
.pc-empty{ margin: 12px 0 0; font-size: 14px; color: #6B7598; }
.pc-empty--big{ margin: 40px 16px; text-align: center; }
.pc-card-actions{ display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 14px; }
.pc-fake-input{ width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 16px 4px 5px; border: 1px solid #E3E8F4; border-radius: 999px; background: #F4F6FB; color: #6B7598; font: inherit; font-size: 14px; text-align: left; cursor: text; transition: border-color .15s, background .15s; }
.pc-fake-input > span:last-child{ min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-fake-input:hover{ border-color: #C9D3F2; background: #fff; }
.pc-view-all{ align-self: flex-start; padding: 2px 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 800; color: #2142B0; cursor: pointer; }
.pc-view-all:hover{ text-decoration: underline; }
.pc-avatar{ flex: 0 0 auto; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: linear-gradient(145deg, #2142B0, #0B1F68); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: -.01em; }
.pc-avatar.is-seller{ background: linear-gradient(145deg, #FF8A5C, #C2410C); }
.pc-avatar--sm{ width: 30px; height: 30px; font-size: 11.5px; }
.pc-avatar--me:empty::before{ content: ""; width: 14px; height: 14px; border-radius: 999px; background: rgba(255,255,255,.75); box-shadow: 0 9px 0 -2px rgba(255,255,255,.75); transform: translateY(-3px); }
.pc-badge{ display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #FFF1EA; color: #C2410C; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.pc-badge i{ font-size: 9px; }
html.pc-lock, html.pc-lock body{ overflow: hidden; }
.pc-modal{ position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pc-backdrop{ position: absolute; inset: 0; background: rgba(5, 14, 52, .55); }
.pc-sheet{ position: relative; display: flex; flex-direction: column; width: 100%; max-width: 620px; height: min(780px, calc(100vh - 48px)); border-radius: 22px; background: #fff; color: var(--sfd-navy, #0B1F68); box-shadow: 0 30px 70px -20px rgba(5, 14, 52, .55); overflow: hidden; font-family: 'DM Sans', system-ui, sans-serif; }
.pc-in{ transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .28s; }
.pc-from{ opacity: 0; transform: translateY(16px) scale(.98); }
.pc-grip{ display: none; }
.pc-sheet-head{ position: relative; display: flex; align-items: center; justify-content: center; padding: 16px 56px 12px; border-bottom: 1px solid #EEF1F8; }
.pc-sheet-head h3{ margin: 0; font-size: 17px; font-weight: 800; }
.pc-close{ position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 999px; background: #EEF1F8; color: #3B4770; cursor: pointer; }
.pc-close:hover{ background: #E1E6F3; }
.pc-sheet-sub{ display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-bottom: 1px solid #EEF1F8; }
.pc-sort{ position: relative; display: inline-flex; align-items: center; }
.pc-sort select{ appearance: none; padding: 6px 26px 6px 10px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 13.5px; font-weight: 800; color: var(--sfd-navy, #0B1F68); cursor: pointer; }
.pc-sort select:hover{ background: #F4F6FB; }
.pc-sort i{ position: absolute; right: 9px; font-size: 10px; pointer-events: none; color: #4A5578; }
.pc-list{ position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px 8px; }
.pc-loading{ display: grid; place-items: center; padding: 48px 0; }
.pc-new-pill{ position: sticky; top: 0; z-index: 2; display: block; margin: 0 auto 8px; padding: 7px 14px; border: 0; border-radius: 999px; background: #2142B0; color: #fff; font: inherit; font-size: 13px; font-weight: 800; box-shadow: 0 10px 20px -10px rgba(33,66,176,.8); cursor: pointer; }
.pc-thread{ margin-bottom: 14px; }
.pc-comment{ display: flex; gap: 8px; }
.pc-main{ min-width: 0; flex: 1; }
.pc-bubble{ position: relative; display: inline-block; max-width: 100%; padding: 8px 12px 9px; border-radius: 18px; background: #F0F2F5; transition: background .6s; }
.is-new > .pc-main > .pc-bubble, .is-new > .pc-comment > .pc-main > .pc-bubble{ background: #E7EEFF; }
.pc-name{ margin: 0; font-size: 13.5px; font-weight: 800; color: var(--sfd-navy, #0B1F68); }
.pc-text{ margin: 2px 0 0; font-size: 14.5px; line-height: 1.45; color: #1C2541; white-space: pre-line; overflow-wrap: anywhere; }
.pc-mention{ color: #2142B0; font-weight: 700; }
.pc-like-count{ display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #4A5578; }
.pc-like-count i{ display: grid; place-items: center; width: 17px; height: 17px; border-radius: 999px; background: #E11D48; color: #fff; font-size: 9px; }
.pc-actions{ display: flex; align-items: center; gap: 14px; margin: 4px 0 0 12px; font-size: 12.5px; }
.pc-main > .pc-actions{ max-width: 100%; }
.pc-time{ color: #8A93B3; font-weight: 600; }
.pc-act{ padding: 0; border: 0; background: none; font: inherit; font-weight: 800; color: #4A5578; cursor: pointer; }
.pc-act:hover{ text-decoration: underline; }
.pc-act.is-on{ color: #E11D48; }
.pc-act--muted{ color: #8A93B3; font-weight: 700; }
.pc-replies{ position: relative; margin: 8px 0 0 18px; padding-left: 26px; display: flex; flex-direction: column; gap: 10px; }
.pc-replies::before{ content: ""; position: absolute; left: 0; top: -6px; bottom: 16px; width: 2px; border-radius: 2px; background: #E3E8F4; }
.pc-comment--reply{ position: relative; }
.pc-comment--reply::before{ content: ""; position: absolute; left: -26px; top: 6px; width: 20px; height: 10px; border-left: 2px solid #E3E8F4; border-bottom: 2px solid #E3E8F4; border-bottom-left-radius: 10px; }
.pc-more-replies{ align-self: flex-start; padding: 2px 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 800; color: #4A5578; cursor: pointer; }
.pc-more-replies:hover{ text-decoration: underline; }
.pc-load-more{ display: block; margin: 4px auto 12px; padding: 8px 16px; border: 1px solid #E3E8F4; border-radius: 999px; background: #fff; font: inherit; font-size: 13.5px; font-weight: 800; color: var(--sfd-navy, #0B1F68); cursor: pointer; }
.pc-composer{ padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #EEF1F8; background: #fff; }
.pc-replying{ display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px 40px; font-size: 12.5px; color: #4A5578; }
.pc-replying button{ width: 24px; height: 24px; border: 0; border-radius: 999px; background: #F0F2F5; color: #4A5578; cursor: pointer; }
.pc-compose-row{ display: flex; align-items: flex-end; gap: 8px; }
.pc-input{ flex: 1; display: flex; align-items: flex-end; gap: 6px; padding: 4px 4px 4px 14px; border-radius: 20px; background: #F0F2F5; }
.pc-input textarea{ flex: 1; min-height: 34px; max-height: 140px; padding: 7px 0; border: 0; outline: 0; resize: none; background: transparent; font: inherit; font-size: 16px; line-height: 1.35; color: #1C2541; }
.pc-input:focus-within{ box-shadow: 0 0 0 2px rgba(33,66,176,.25); }
.pc-send{ flex: 0 0 auto; width: 34px; height: 34px; border: 0; border-radius: 999px; background: #2142B0; color: #fff; cursor: pointer; transition: opacity .15s; }
.pc-send:disabled{ opacity: .35; cursor: default; }
.pc-error{ margin: 6px 0 0 40px; font-size: 13px; font-weight: 600; color: #BE123C; }
.pc-shop-hint{ margin: 0; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #EEF1F8; font-size: 13.5px; color: #4A5578; text-align: center; }
@media (max-width: 767px){.pc-modal{ align-items: flex-end; padding: 0; }.pc-sheet{ max-width: none; height: 88vh; height: 88dvh; border-radius: 20px 20px 0 0; }.pc-from{ transform: translateY(100%); opacity: 1; }.pc-grip{ display: block; width: 40px; height: 4px; margin: 8px auto 0; border-radius: 99px; background: #D5DBEA; }.pc-sheet-head{ padding: 8px 52px 10px; }.pc-list{ padding: 12px 14px 8px; }.pc-replies{ margin-left: 14px; padding-left: 22px; }.pc-comment--reply::before{ left: -22px; width: 16px; }}
@media (prefers-reduced-motion: reduce){.pc-in{ transition: none; }}
