.product-card { overflow: hidden; }
.product-cover { display: block; width: 100%; height: 170px; object-fit: cover; border-radius: 14px; margin-bottom: 16px; background: #e8f1f4; }
.product-placeholder { display: grid; place-items: center; font-size: 3rem; color: #8dbbc4; background: linear-gradient(140deg,#e8f5f1,#e7efff); }
.product-gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-bottom: 22px; }
.product-gallery img { width: 100%; height: 90px; object-fit: cover; border-radius: 10px; }
.product-gallery .primary-photo { grid-column: 1/-1; height: 330px; border-radius: 16px; }
.product-gallery-empty { display: grid; place-items: center; min-height: 210px; margin-bottom: 20px; border-radius: 16px; color: #718b95; background: linear-gradient(135deg,#e7f3f0,#e5ecff); }
.form-hint { color: #70818b; font-size: .88rem; margin: -8px 0 0; }
.existing-photos { margin-top: 18px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(110px,1fr)); gap: 12px; }
.photo-manage img { width: 100%; height: 105px; object-fit: cover; border-radius: 10px; }
.photo-manage button { padding: 7px 9px; font-size: .82rem; margin-top: 5px; }
@media(max-width:600px){.product-gallery .primary-photo{height:240px}.product-gallery img{height:70px}}
.conversation-list { display: grid; gap: 14px; max-width: 800px; margin-top: 22px; }
.conversation-card { display: block; text-decoration: none; color: inherit; }
.conversation-card h2 { margin: 9px 0 3px; }
.conversation-card p { margin: 4px 0; color: #667985; }
.message-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-panel { max-width: 800px; margin: 16px auto; }
.chat-heading h1 { margin: 4px 0 7px; font-size: 1.6rem; }
.chat-heading .eyebrow { margin: 0; }
.chat-messages { display: flex; flex-direction: column; gap: 11px; min-height: 220px; max-height: 480px; overflow-y: auto; margin: 22px 0; padding: 18px; border-radius: 16px; background: rgba(236,243,249,.65); }
.chat-message { align-self: flex-start; max-width: 78%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: white; box-shadow: 0 2px 9px rgba(34,63,83,.07); overflow-wrap: anywhere; }
.chat-message.mine { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: #def5ef; }
.chat-message p { margin: 5px 0 0; white-space: pre-wrap; }
.message-author { color: #65808a; font-size: .78rem; }
.chat-empty { align-self: center; color: #71818e; }
.chat-compose { display: grid; gap: 9px; }
.chat-compose button { justify-self: end; }
