/* ==========================================================================
   CHU GIA SECURITY - QUICK VIEW PRODUCT MODAL STYLESHEET
   Dùng cho Quick View Modal trên trang chủ & trang sản phẩm
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalOverlayFade 0.25s ease;
  overflow-y: auto;
  box-sizing: border-box;
}

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

@keyframes modalOverlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: #ffffff;
  border-radius: 18px;
  max-width: 880px;
  width: min(95vw, 880px);
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #0f172a;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
  margin: auto;
}

@keyframes modalPop {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 1.15rem;
  font-weight: 700;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.05);
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 350px) minmax(0, 1fr);
  gap: 24px;
  padding: 24px 28px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

/* Gallery Left */
.modal-gallery-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.modal-main-img-wrap {
  width: 100%;
  max-width: 100%;
  padding-top: 90%;
  position: relative;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-sizing: border-box;
}

.modal-img-top-brand {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  pointer-events: none;
}

.modal-brand-badge-pill {
  background: rgba(15, 23, 42, 0.92);
  color: #38bdf8;
  border: 1.5px solid rgba(0, 132, 255, 0.5);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.modal-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.modal-img-watermark {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  pointer-events: none;
  width: 175px;
}

.modal-img-watermark img {
  width: 100%;
  height: auto;
  opacity: 0.85;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.modal-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.modal-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: #f8fafc;
  cursor: pointer;
  padding: 4px;
  object-fit: contain;
  transition: border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.modal-thumb:hover {
  transform: translateY(-2px);
}

.modal-thumb.active {
  border-color: #0084ff;
  box-shadow: 0 0 0 1px #0084ff;
}

/* Details Right */
.modal-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.modal-brand-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0084ff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 12px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  border: 1px solid #e2e8f0;
  box-sizing: border-box;
}

.modal-meta-item {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.modal-meta-item strong {
  color: #64748b;
  font-weight: 500;
}

.modal-meta-item span {
  color: #0f172a;
  font-weight: 600;
  word-break: break-all;
}

.modal-pricing {
  margin-bottom: 16px;
  padding: 14px 18px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-retail-price {
  font-size: 1.7rem;
  font-weight: 800;
  color: #15803d;
}

.modal-old-price {
  font-size: 1rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.modal-discount-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  background: #dcfce7;
  color: #166534;
}

/* Modal Tabs Navigation */
.modal-tabs-nav {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  width: 100%;
  box-sizing: border-box;
}

.modal-tabs-nav::-webkit-scrollbar {
  display: none;
}

.modal-tab-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  font-family: inherit;
  scroll-margin: 0 20px;
}

.modal-tab-btn svg {
  flex-shrink: 0;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.modal-tab-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
}

.modal-tab-btn:hover svg {
  color: #0084ff;
}

.modal-tab-btn.active {
  background: #ffffff;
  color: #0084ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.modal-tab-btn.active svg {
  color: #0084ff;
}

/* Tab Panes */
.modal-tab-panes {
  min-height: 180px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 20px;
}

.modal-tab-panes::-webkit-scrollbar {
  width: 5px;
}

.modal-tab-panes::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.modal-tab-panes::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.modal-tab-panes::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.modal-tab-pane {
  display: none;
  animation: fadeInModalPane 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-tab-pane.active {
  display: block;
}

@keyframes fadeInModalPane {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tab 1: Highlights List */
.modal-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
  margin: 0;
}

.modal-specs-list li {
  font-size: 0.85rem;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.modal-specs-list li svg {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Tab 2: Description */
.modal-description {
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.6;
  padding: 4px 0;
  word-break: break-word;
}

.modal-description p {
  margin: 0 0 10px;
}

.modal-description p:last-child {
  margin-bottom: 0;
}

/* Tab 3: Categorized Tags */
.modal-tag-sections {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-tag-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
}

.modal-tag-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #1e293b;
  margin-bottom: 8px;
}

.tag-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.tag-icon-tech {
  background: #e0f2fe;
}

.modal-tag-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: default;
}

.chip-tech {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

/* Tab 4: Tech Specs Table */
.modal-tech-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow-x: auto;
  max-width: 100%;
  background: #ffffff;
}

.tech-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.tech-table tr {
  border-bottom: 1px solid #e2e8f0;
}

.tech-table tr:last-child {
  border-bottom: none;
}

.tech-table tr:nth-child(even) {
  background: #f8fafc;
}

.tech-table tr:hover {
  background: #f1f5f9;
}

.tech-table-label {
  width: 38%;
  padding: 8px 12px;
  font-weight: 600;
  color: #64748b;
  border-right: 1px solid #e2e8f0;
  background: rgba(241, 245, 249, 0.6);
  word-break: break-word;
}

.tech-table-val {
  width: 62%;
  padding: 8px 12px;
  color: #0f172a;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}

/* Action Buttons */
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
}

.btn-modal-chugia {
  flex: 1 1 170px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  border: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-modal-chugia:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
  color: #ffffff !important;
}

.btn-modal-cart {
  flex: 1 1 170px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #0068ff;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-modal-cart:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.modal-actions-subgroup {
  flex: 1 1 100%;
  display: flex;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.btn-modal-zalo {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 4px;
  border-radius: 8px;
  background: #0084ff;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  box-sizing: border-box;
}

.btn-modal-zalo:hover {
  opacity: 0.92;
}

.btn-modal-messenger {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 4px;
  border-radius: 8px;
  background: #1877f2;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
  box-sizing: border-box;
}

.btn-modal-messenger:hover {
  opacity: 0.92;
}

.btn-modal-call {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 4px;
  border-radius: 8px;
  background: #f97316;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
  box-sizing: border-box;
}

.btn-modal-call:hover {
  opacity: 0.92;
}

.btn-modal-share {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  box-sizing: border-box;
}

.btn-modal-share:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Chat Product Links in messages */
.chat-prod-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #38bdf8 !important;
  text-decoration: none !important;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  margin: 3px 0;
  transition: all 0.2s ease;
  cursor: pointer;
  vertical-align: middle;
  max-width: 100%;
  box-sizing: border-box;
  line-height: 1.5;
}

.chat-prod-link strong {
  word-break: break-word;
}

.chat-prod-link:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(56, 189, 248, 0.3);
}

.chat-prod-quickbtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 6px;
  vertical-align: middle;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.chat-prod-quickbtn:hover {
  background: rgba(16, 185, 129, 0.35);
  border-color: #10b981;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.chat-prod-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.35);
  letter-spacing: 0.2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.chat-prod-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  padding: 2px 9px;
  border-radius: 6px;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
  vertical-align: middle;
}

.chat-prod-buy-btn:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  border-color: #34d399;
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.55);
  color: #ffffff !important;
}

.chat-prod-buy-btn:active {
  transform: translateY(0) scale(0.97);
}

/* ── Inline Product Preview Card (Inside Chat Bubble) ── */
.chat-inline-preview {
  margin: 12px 0 8px;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(16, 185, 129, 0.12);
  animation: inlinePreviewSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@keyframes inlinePreviewSlideDown {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.inline-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.inline-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.inline-preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.inline-preview-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}
.inline-preview-close:hover {
  background: rgba(244, 63, 94, 0.25);
  border-color: rgba(244, 63, 94, 0.5);
  color: #f43f5e;
  transform: scale(1.1);
}

.inline-preview-content {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.inline-preview-img-box {
  position: relative;
  flex-shrink: 0;
  width: 105px;
  height: 105px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.inline-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.inline-preview-img-box:hover .inline-preview-img {
  transform: scale(1.08);
}

.inline-preview-watermark {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2px 4px;
  background: rgba(0, 0, 0, 0.7);
  font-size: 8px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  letter-spacing: 0.5px;
}

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

.inline-preview-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.4;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inline-preview-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.inline-preview-price {
  font-size: 16px;
  font-weight: 800;
  color: #10b981;
}

.inline-preview-warranty {
  font-size: 11px;
  color: #94a3b8;
}

.inline-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.btn-inline-buy-zalo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: 8px;
  color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
  text-decoration: none !important;
}

.btn-inline-buy-zalo:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  border-color: #34d399;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.55);
}

.btn-inline-buy-zalo:active {
  transform: translateY(0) scale(0.97);
}

.btn-inline-quickview {
  padding: 5px 12px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 8px;
  color: #34d399;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.btn-inline-quickview:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: #10b981;
  color: #ffffff;
}

.btn-inline-dismiss {
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.btn-inline-dismiss:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.4);
  color: #f43f5e;
}

@media (max-width: 480px) {
  .chat-inline-preview {
    padding: 10px;
    margin: 8px 0 4px;
  }
  .inline-preview-img-box {
    width: 88px;
    height: 88px;
  }
  .inline-preview-name {
    font-size: 12.5px;
  }
  .inline-preview-price {
    font-size: 15px;
  }
}

.btn-modal-chugia {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 18px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  border: none;
  white-space: nowrap;
}

.btn-modal-chugia:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
  color: #ffffff !important;
}

@media (max-width: 860px) {
  .modal-overlay {
    padding: 8px;
    align-items: flex-start;
  }
  .modal-card {
    max-height: 94vh;
    border-radius: 16px;
    width: 100%;
    max-width: 100%;
    margin: auto;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .modal-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px;
    padding: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }
  .modal-gallery-box,
  .modal-details {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .modal-main-img-wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 80% !important;
    box-sizing: border-box !important;
  }
  .modal-thumbs {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .btn-modal-chugia,
  .btn-modal-cart {
    width: 100%;
    flex: 1 1 100%;
  }
  .modal-actions-subgroup {
    width: 100%;
    gap: 6px;
  }
  .btn-modal-zalo,
  .btn-modal-messenger,
  .btn-modal-call {
    padding: 10px 4px;
    font-size: 0.78rem;
  }
  .modal-tabs-nav {
    overflow-x: auto;
  }
  .modal-tab-btn {
    padding: 7px 8px;
    font-size: 0.74rem;
  }
}

@media (max-width: 480px) {
  .modal-img-watermark {
    width: 135px;
    bottom: 10px;
    left: 10px;
  }
  .modal-img-top-brand {
    top: 10px;
    left: 10px;
  }
  .modal-brand-badge-pill {
    padding: 4px 10px;
    font-size: 0.68rem;
  }
}
