/* ========================================
   CSS Variables (Design System)
   ======================================== */
:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(222.2, 84%, 4.9%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(222.2, 84%, 4.9%);
  --primary: hsl(222.2, 47.4%, 11.2%);
  --primary-foreground: hsl(210, 40%, 98%);
  --secondary: hsl(210, 40%, 96.1%);
  --secondary-foreground: hsl(222.2, 47.4%, 11.2%);
  --muted: hsl(210, 40%, 96.1%);
  --muted-foreground: hsl(215.4, 16.3%, 46.9%);
  --accent: hsl(210, 40%, 96.1%);
  --accent-foreground: hsl(222.2, 47.4%, 11.2%);
  --destructive: hsl(0, 84.2%, 60.2%);
  --border: hsl(214.3, 31.8%, 91.4%);
  --ring: hsl(222.2, 84%, 4.9%);
  --radius: 0.5rem;
  --rating-star: hsl(48, 100%, 50%);
  --sale-orange: hsl(25, 94%, 53%);
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  max-width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  transition: background-color 0.2s;
}

.icon-btn:hover {
  background-color: var(--accent);
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
  padding-top: 48px;
  padding-bottom: 80px;
}

/* ========================================
   Gallery
   ======================================== */
.gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--background);
}

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.3s ease-out;
  cursor: grab;
  user-select: none;
}

.gallery-track:active {
  cursor: grabbing;
}

.gallery-image {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: white;
  pointer-events: none;
}

/* ========================================
   Flash Sale Timer
   ======================================== */
.flash-sale {
  background: linear-gradient(to right, #FF4081, #FF5252, #FF6F61);
  color: white;
  padding: 0.5rem 1rem;
}

.flash-sale-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.flash-sale-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.current-price {
  font-size: 1.25rem;
  font-weight: 700;
}

.flash-sale-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 500;
}

.flash-sale-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.flash-sale-discount {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.original-price {
  text-decoration: line-through;
  opacity: 0.9;
}

.discount-badge {
  background: linear-gradient(to right, #FF6F61, #FF8A65);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  font-weight: 500;
}

.timer {
  white-space: nowrap;
}

.timer-value {
  font-weight: 700;
  font-family: monospace;
}

/* ========================================
   Product Info
   ======================================== */
.product-info {
  padding: 1rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.stars {
  display: flex;
  gap: 2px;
}

.stars.small {
  gap: 1px;
}

.star {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--rating-star);
}

.star.filled {
  fill: var(--rating-star);
}

.stars.small .star {
  width: 14px;
  height: 14px;
}

.rating-score {
  font-weight: 600;
}

.rating-count {
  color: var(--muted-foreground);
}

.sales-info {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted-foreground);
  margin-left: 0.5rem;
}

/* Color Options */
.color-options {
  margin-top: 1rem;
}

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.color-grid {
  display: flex;
  gap: 0.5rem;
}

.color-option {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem;
  transition: all 0.2s;
  cursor: pointer;
}

.color-option:hover {
  border-color: rgba(244, 63, 94, 0.5);
}

.color-option.selected {
  border-color: #F43F5E;
  background-color: rgba(244, 63, 94, 0.05);
}

.color-option img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius);
  margin-bottom: 0.125rem;
}

.color-option span {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  text-align: center;
}

/* Shipping Info */
.shipping-info {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.shipping-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shipping-badge {
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  background-color: rgb(219, 247, 248);
  color: rgb(26, 111, 106);
  font-size: 0.875rem;
}

.shipping-date {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.return-link {
  font-size: 0.875rem;
  cursor: pointer;
  transition: text-decoration 0.2s;
}

.return-link:hover {
  text-decoration: underline;
}

/* Services Box */
.services-box {
  margin-top: 1rem;
  background-color: #faf8f3;
  border-radius: 0.5rem;
  padding: 0.875rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.services-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.services-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #8b6914;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem 1.5rem;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
}

.service-item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
}

/* Divider */
.divider {
  height: 1px;
  background-color: var(--border);
  margin: 1rem 0;
}

/* ========================================
   Reviews Section
   ======================================== */
.reviews-section {
  margin-top: 1rem;
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.reviews-header h3 {
  font-weight: 600;
}

.reviews-score {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.reviews-score .score {
  font-size: 1.125rem;
  font-weight: 700;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.review-card:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.review-info {
  flex: 1;
  min-width: 0;
}

.review-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.review-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.review-location {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.review-comment {
  font-size: 0.75rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.review-images {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.review-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.review-thumb:hover {
  opacity: 0.8;
}

/* Rating Distribution */
.rating-distribution {
  margin-top: 1rem;
}

.rating-distribution h4 {
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.rating-table {
  width: 100%;
  border-collapse: collapse;
}

.rating-table tr {
  border-bottom: 1px solid var(--border);
}

.rating-table td {
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.rating-table .count {
  text-align: right;
  font-weight: 500;
}

.stars-inline {
  color: var(--rating-star);
  letter-spacing: -2px;
}

.star-empty {
  color: var(--muted-foreground);
  letter-spacing: -2px;
}

/* Store Ratings */
.store-ratings {
  margin-top: 1rem;
}

.store-ratings h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.trust-meter {
  margin-bottom: 0.75rem;
}

.trust-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.trust-label {
  color: #16a34a;
}

.trust-bar {
  height: 8px;
  background-color: #f3f4f6;
  border-radius: 9999px;
  overflow: hidden;
}

.trust-fill {
  height: 100%;
  background: linear-gradient(to right, #ef4444, #eab308, #22c55e);
  transition: width 0.3s;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted-foreground);
}

.star-icon {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
}

.star-icon.orange {
  fill: #f97316;
  stroke: #f97316;
}

.official-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.official-tag {
  background-color: #dcfce7;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.store-age {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Store Info */
.store-info {
  margin-top: 1rem;
}

.store-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.store-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background-color: white;
  padding: 0.25rem;
  flex-shrink: 0;
}

.store-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.store-details {
  flex: 1;
  min-width: 0;
}

.store-name {
  font-weight: 700;
  font-size: 0.875rem;
}

.store-sales {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.follow-btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  transition: all 0.2s;
}

.follow-btn:hover {
  background-color: var(--accent);
}

.follow-btn.following {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

/* Product Description */
.product-description {
  margin-top: 1rem;
}

.product-description h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.desc-image {
  width: 100%;
  margin-bottom: 1rem;
}

.desc-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.desc-content h3 {
  font-size: 1rem;
  font-weight: 600;
}

.desc-content p {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Accordion */
.accordion-section {
  margin-top: 1rem;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  transition: all 0.2s;
}

.accordion-trigger:hover {
  color: var(--muted-foreground);
}

.accordion-trigger .chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.2s;
}

.accordion-trigger.active .chevron {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.accordion-content p {
  padding-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--background);
  border-top: 1px solid var(--border);
  z-index: 50;
}

.footer-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.footer-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  min-width: 50px;
  padding: 0.25rem;
}

.footer-btn span {
  font-size: 0.625rem;
}

.buy-btn {
  flex: 1;
  height: 48px;
  background-color: #F43F5E;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

.buy-btn:hover {
  background-color: rgba(244, 63, 94, 0.9);
}

.buy-text {
  text-align: center;
  line-height: 1.2;
}

/* ========================================
   Modal Overlay & Sheets
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-overlay.center {
  align-items: center;
}

.sheet {
  background-color: var(--background);
  border-radius: 1rem 1rem 0 0;
  width: 100%;
  max-height: 90vh;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.modal-overlay.active .sheet {
  transform: translateY(0);
}

.sheet-header {
  padding: 1rem;
}

.sheet-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.sheet-content {
  padding: 0.5rem;
}

/* Share Options */
.share-options {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 1rem 1rem;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 70px;
}

.share-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-icon.blue { background-color: #3b82f6; }
.share-icon.green { background-color: #22c55e; }
.share-icon.instagram { background: linear-gradient(135deg, #9333ea, #ec4899, #f97316); }
.share-icon.facebook { background-color: #2563eb; }
.share-icon.telegram { background-color: #0ea5e9; }

.share-option span {
  font-size: 0.75rem;
  text-align: center;
}

.cancel-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.2s;
}

.cancel-btn:hover {
  background-color: var(--muted);
}

/* Report Option */
.report-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 0.5rem;
  font-size: 1rem;
  text-align: left;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

.report-option:hover {
  background-color: var(--muted);
}

/* Dialog */
.dialog {
  background-color: var(--background);
  border-radius: 1rem;
  width: calc(100% - 2rem);
  max-width: 400px;
  max-height: 85vh;
  overflow: hidden;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.2s;
}

.modal-overlay.active .dialog {
  transform: scale(1);
  opacity: 1;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.dialog-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  flex: 1;
  text-align: center;
}

.dialog-content {
  padding: 1rem;
  overflow-y: auto;
  max-height: calc(85vh - 60px);
}

.close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.close-btn:hover {
  background-color: var(--muted);
}

.close-btn.light {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
}

.close-btn.light:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

/* Report Reasons */
.select-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.report-reasons {
  display: flex;
  flex-direction: column;
}

.reason-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s;
}

.reason-btn:hover {
  background-color: var(--muted);
}

/* Report Description */
.reason-display {
  margin-bottom: 1rem;
}

.reason-display .label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  display: block;
}

.reason-display .reason-text {
  font-weight: 500;
  margin-top: 0.25rem;
  display: block;
}

.textarea-group {
  margin-bottom: 1rem;
}

.textarea-group label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  display: block;
  margin-bottom: 0.5rem;
}

.textarea-group textarea {
  width: 100%;
  height: 128px;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
  resize: none;
  transition: border-color 0.2s;
}

.textarea-group textarea:focus {
  outline: none;
  border-color: var(--ring);
}

.char-count {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: right;
  display: block;
  margin-top: 0.25rem;
}

.char-count.warning {
  color: var(--destructive);
}

.warning-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.submit-report-btn {
  width: 100%;
  padding: 1rem;
  background-color: #ff2d55;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: background-color 0.2s;
}

.submit-report-btn:hover {
  background-color: #e61b43;
}

/* Store Dialog */
.store-dialog-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.store-dialog-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.store-dialog-info h4 {
  font-size: 1.125rem;
  font-weight: 700;
}

.store-dialog-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.store-dialog-rating .muted {
  color: var(--muted-foreground);
}

.store-dialog-details {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.detail-row svg {
  color: var(--muted-foreground);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.detail-label {
  font-size: 0.875rem;
  font-weight: 600;
}

.detail-value {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.store-about {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1rem;
}

.store-about h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.store-about p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* Chat Dialog */
.chat-dialog {
  max-width: 320px;
  display: flex;
  flex-direction: column;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right, rgba(0,0,0,0.02), rgba(0,0,0,0.05));
}

.chat-avatar {
  position: relative;
}

.chat-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0,0,0,0.1);
}

.online-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border-radius: 50%;
  border: 2px solid var(--background);
}

.chat-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-name {
  font-size: 0.875rem;
  font-weight: 600;
}

.chat-status {
  font-size: 0.625rem;
  color: var(--muted-foreground);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  min-height: 250px;
  max-height: 350px;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.message {
  display: flex;
  gap: 0.375rem;
}

.message.user {
  justify-content: flex-end;
}

.message-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.message-bubble {
  max-width: 75%;
  padding: 0.375rem 0.625rem;
  border-radius: 1rem;
  font-size: 0.6875rem;
  line-height: 1.5;
}

.message.bot .message-bubble {
  background-color: var(--muted);
  color: var(--foreground);
  border-top-left-radius: 0.25rem;
}

.message.user .message-bubble {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-top-right-radius: 0.25rem;
}

.chat-questions {
  border-top: 1px solid var(--border);
  background-color: rgba(0,0,0,0.02);
  padding: 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.questions-label {
  font-size: 0.5625rem;
  color: var(--muted-foreground);
  font-weight: 500;
  padding: 0 0.125rem;
}

.question-btn {
  width: 100%;
  padding: 0.375rem 0.5rem;
  font-size: 0.5625rem;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  transition: all 0.2s;
  line-height: 1.3;
}

.question-btn:hover {
  background-color: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
}

/* Return Policy Dialog */
.return-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.return-highlight {
  background-color: rgba(0,0,0,0.02);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.highlight-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.highlight-desc {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.return-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.return-step {
  display: flex;
  gap: 0.75rem;
}

.step-number {
  width: 32px;
  height: 32px;
  background-color: rgba(0,0,0,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.step-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.step-desc {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.return-footer {
  background-color: var(--muted);
  border-radius: var(--radius);
  padding: 0.75rem;
  text-align: center;
  margin-top: 1rem;
}

.return-footer p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Review Image Viewer */
.review-image-viewer {
  background-color: var(--background);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}

.review-carousel {
  display: flex;
  align-items: center;
  background-color: black;
}

.carousel-btn {
  position: absolute;
  z-index: 10;
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.carousel-btn:hover {
  background-color: white;
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.review-image-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.image-counter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(0,0,0,0.6);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

#reviewMainImage {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.review-user-info {
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.review-user-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.review-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.review-user-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.review-user-details {
  flex: 1;
}

.review-user-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.review-user-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.review-user-location {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.review-user-comment {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--foreground);
  color: var(--background);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 200;
  opacity: 0;
  transition: all 0.3s ease-out;
  max-width: calc(100% - 2rem);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (min-width: 768px) {
  .product-title {
    font-size: 1.5rem;
  }
  
  .color-option img {
    width: 64px;
    height: 64px;
  }
  
  .color-option span {
    font-size: 0.75rem;
  }
  
  .review-avatar {
    width: 40px;
    height: 40px;
  }
  
  .review-avatar-placeholder {
    width: 40px;
    height: 40px;
  }
  
  .review-name {
    font-size: 1rem;
  }
  
  .review-comment {
    font-size: 0.875rem;
  }
  
  .review-thumb {
    width: 80px;
    height: 80px;
  }
  
  .desc-content h3 {
    font-size: 1.125rem;
  }
  
  .desc-content p {
    font-size: 1rem;
  }
  
  .accordion-trigger {
    font-size: 1.125rem;
  }
}
