/* ============================================================
   interior.css  —  หน้าออกแบบภายใน (white theme)
   ใช้ static file เพราะ .int-style-item สร้างผ่าน JS innerHTML
   → ไม่มี data-astro-cid → scoped CSS ไม่ apply
   ============================================================ */

/* ── Hero ── */
.interior-hero {
  padding: 48px 24px 36px;
  max-width: 1280px;
  margin: 0 auto;
}
.interior-hero__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #c9a55a;
  margin: 0 0 14px;
}
.interior-hero__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #1f2937;
  margin: 0;
  line-height: 1.2;
}
.interior-hero__divider {
  width: 48px;
  height: 3px;
  background: #c9a55a;
  margin: 16px 0 0;
  border-radius: 2px;
}

/* ── Type tabs ── */
.int-type-tabs {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  padding: 0 24px;
  border-bottom: 1px solid #e5e7eb;
  overflow-x: auto;
  scrollbar-width: none;
}
.int-type-tabs::-webkit-scrollbar { display: none; }

.int-type-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.int-type-tab i { font-size: 15px; }
.int-type-tab:hover { color: #374151; }
.int-type-tab.active { color: #c9a55a; border-bottom-color: #c9a55a; }

/* ── Main 2-col grid ── */
.int-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .int-main { grid-template-columns: 1fr; }
}

/* ── Preview pane (left) ── */
.int-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.int-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s;
}
.int-preview .int-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.88);
  color: #374151;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.int-preview .int-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 14px;
}

/* ── Style list (right) ── */
.int-style-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.int-style-list::-webkit-scrollbar { width: 4px; }
.int-style-list::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

/* ── Style card (สร้างโดย JS → ต้องเป็น global CSS) ── */
.int-style-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #ffffff;
  color: #1f2937;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.int-style-item:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.int-style-item.active {
  border-color: #c9a55a;
  background: #fffbf2;
  box-shadow: 0 4px 16px rgba(201,165,90,0.15);
}

.int-style-thumb {
  flex: 0 0 70px;
  width: 70px;
  height: 52px;
  border-radius: 8px;
  background: #f3f4f6;
  overflow: hidden;
  flex-shrink: 0;
}
.int-style-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.int-style-text { flex: 1; min-width: 0; }
.int-style-name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 3px;
  display: block;
}
.int-style-desc {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.4;
  display: block;
}

.int-style-radio {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s;
  flex-shrink: 0;
}
.int-style-item.active .int-style-radio {
  background: #c9a55a;
  border-color: #c9a55a;
}
.int-style-item.active .int-style-radio::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.int-style-empty {
  background: #ffffff;
  color: #9ca3af;
  padding: 28px;
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
  border: 1px solid #e5e7eb;
}
