/* Intee Brand - 16 Color Swatches & Size Chart Lightbox Modal */

/* 1. 16 Color Palette Grid on Product Card */
.product-color-palette {
  margin-bottom: 12px;
  min-height: 54px;
}

.color-palette-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #4b5563;
  margin-bottom: 6px;
  font-weight: 600;
}

.color-palette-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.color-palette-selected {
  color: #2563eb;
  font-weight: 700;
}

.color-swatch-list-16 {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  align-items: center;
}

.color-swatch-list-compact {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 20px;
}

.color-dot-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, outline 0.15s ease;
  position: relative;
  display: inline-block;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.color-dot-btn:hover {
  transform: scale(1.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.color-dot-btn.active {
  outline: 2px solid #2563eb;
  transform: scale(1.15);
  box-shadow: 0 0 0 1px #ffffff, 0 2px 8px rgba(37, 99, 235, 0.35);
  z-index: 3;
}

/* 2. Size Chart Lightbox Modal */
.size-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.size-modal-backdrop.is-open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.size-modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.size-modal-backdrop.is-open .size-modal-dialog {
  transform: translateY(0) scale(1);
}

.size-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.size-modal-title-group h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.size-modal-title-group p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 2px 0 0 0;
}

.size-modal-close-btn {
  background: #e2e8f0;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.size-modal-close-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
  transform: rotate(90deg);
}

.size-modal-body {
  padding: 16px;
  overflow-y: auto;
  text-align: center;
  background: #ffffff;
}

.size-modal-image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.size-modal-image {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}

.size-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.size-modal-tip {
  font-size: 0.8rem;
  color: #475569;
  text-align: left;
  flex: 1;
  min-width: 220px;
}

.size-modal-tip strong {
  color: #0f172a;
}

.size-modal-actions {
  display: flex;
  gap: 8px;
}

.btn-size-zalo {
  background: #2563eb;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.btn-size-zalo:hover {
  background: #1d4ed8;
}

.btn-size-close {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-size-close:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

@media (max-width: 768px) {
  .product-color-palette { margin-bottom: 6px; }
  .color-palette-header { font-size: 0.7rem; margin-bottom: 4px; }
  .color-swatch-list-16 { gap: 3px; }
  .color-dot-btn { width: 12px; height: 12px; outline-offset: 1px; }
}
