/* ============================================================
   IMPACT Engineering — css/product.css
   Scoped under #product-page to avoid conflict with site CSS
   Theme: #1a1a1a (dark) + #0097b0 (teal)
   ============================================================ */

/* ── Variables (local only) ─────────────────────────────── */
#product-page {
  --p-dark:        #1a1a1a;
  --p-dark-2:      #202526;
  --p-dark-3:      #2a2f31;
  --p-dark-4:      #363d40;
  --p-teal:        #0097b0;
  --p-teal-lt:     #00b8d4;
  --p-teal-glow:   rgba(0,151,176,0.15);
  --p-teal-border: rgba(0,151,176,0.32);
  --p-teal-dim:    rgba(0,151,176,0.07);
  --p-white:       #ffffff;
  --p-text:        #dde8ea;
  --p-muted:       #7e9298;
  --p-faint:       #4e6166;
  --p-border:      rgba(255,255,255,0.06);
  --p-border-med:  rgba(255,255,255,0.11);
  --p-card-bg:     #1c2224;
  --p-sidebar-w:   230px;
  --p-radius-sm:   6px;
  --p-radius-md:   10px;
  --p-radius-lg:   16px;
  --p-ease:        0.22s cubic-bezier(0.4,0,0.2,1);

  /* Layout */
  display: flex;
  width: 100%;
  min-height: calc(100vh - 80px); /* adjust if header height differs */
  background: var(--p-dark);
  font-family: 'DM Sans', 'Noto Sans Thai', sans-serif;
  color: var(--p-text);
  box-sizing: border-box;
}

#product-page *, #product-page *::before, #product-page *::after {
  box-sizing: border-box;
}

/* ── Sidebar ────────────────────────────────────────────── */
#product-page .prod-sidebar {
  width: var(--p-sidebar-w);
  flex-shrink: 0;
  background: var(--p-dark-2);
  border-right: 1px solid var(--p-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: calc(100vh - 80px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--p-teal-border) transparent;
}

#product-page .prod-sidebar::-webkit-scrollbar { width: 3px; }
#product-page .prod-sidebar::-webkit-scrollbar-thumb {
  background: var(--p-teal-border);
  border-radius: 99px;
}

#product-page .sidebar-logo {
  margin-top: 43px;
  padding: 26px 22px 18px;
  border-bottom: 1px solid var(--p-border);
}

#product-page .sidebar-logo .logo-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--p-faint);
  margin-bottom: 4px;
  font-family: 'DM Sans', sans-serif;
}

#product-page .sidebar-logo .logo-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.07em;
  color: var(--p-teal-lt);
  line-height: 1.1;
}

#product-page .teal-line {
  width: 28px;
  height: 2px;
  background: var(--p-teal);
  border-radius: 99px;
  margin-top: 8px;
}

#product-page .sidebar-search {
  padding: 14px 14px 6px;
}

#product-page .sidebar-search input {
  width: 100%;
  background: var(--p-dark-3);
  border: 1px solid var(--p-border-med);
  border-radius: var(--p-radius-md);
  color: var(--p-text);
  font-family: 'DM Sans', 'Noto Sans Thai', sans-serif;
  font-size: 13px;
  padding: 9px 12px 9px 34px;
  outline: none;
  transition: border-color var(--p-ease);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%234e6166' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 11px center;
}

#product-page .sidebar-search input:focus { border-color: var(--p-teal-border); }
#product-page .sidebar-search input::placeholder { color: var(--p-faint); }

#product-page .sidebar-section-label {
  padding: 16px 18px 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--p-faint);
  font-weight: 500;
}

#product-page .cat-list {
  list-style: none;
  padding: 0 8px;
  margin: 0;
}

#product-page .cat-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: var(--p-radius-md);
  cursor: pointer;
  font-size: 13px;
  color: var(--p-muted);
  transition: background var(--p-ease), color var(--p-ease);
  user-select: none;
  position: relative;
  list-style: none;
  font-family: 'DM Sans', 'Noto Sans Thai', sans-serif;
}

#product-page .cat-item:hover {
  background: var(--p-teal-dim);
  color: var(--p-text);
}

#product-page .cat-item.active {
  background: var(--p-teal-glow);
  color: var(--p-teal-lt);
  font-weight: 500;
}

#product-page .cat-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 55%;
  background: var(--p-teal);
  border-radius: 0 3px 3px 0;
}

#product-page .cat-icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

#product-page .cat-icon svg { width: 15px; height: 15px; }

#product-page .cat-count {
  margin-left: auto;
  background: var(--p-dark-4);
  color: var(--p-faint);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}

#product-page .cat-item.active .cat-count {
  background: var(--p-teal-glow);
  color: var(--p-teal);
}

#product-page .sidebar-cta {
  padding: 14px;
  margin-top: auto;
  border-top: 1px solid var(--p-border);
}

#product-page .btn-show-all {
  width: 100%;
  background: var(--p-teal);
  color: #fff;
  border: none;
  border-radius: var(--p-radius-md);
  padding: 10px 14px;
  font-family: 'DM Sans', 'Noto Sans Thai', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--p-ease), transform var(--p-ease);
  letter-spacing: 0.01em;
}

#product-page .btn-show-all:hover {
  background: var(--p-teal-lt);
  transform: translateY(-1px);
}

#product-page .btn-show-all:active { transform: scale(0.98); }

/* ── Main ───────────────────────────────────────────────── */
#product-page .prod-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#product-page .prod-topbar {
  margin-top: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--p-border);
  background: rgba(26,26,26,0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 14px;
  flex-wrap: wrap;
}

#product-page .topbar-left h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.07em;
  color: var(--p-white);
  line-height: 1;
  margin: 0;
}

#product-page .topbar-left .breadcrumb {
  font-size: 11.5px;
  color: var(--p-faint);
  margin-top: 3px;
  font-family: 'DM Sans', sans-serif;
}

#product-page .breadcrumb span { color: var(--p-teal); }

#product-page .topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

#product-page .view-toggle {
  display: flex;
  background: var(--p-dark-3);
  border-radius: var(--p-radius-sm);
  padding: 3px;
  border: 1px solid var(--p-border);
}

#product-page .view-btn {
  background: none;
  border: none;
  color: var(--p-faint);
  padding: 5px 8px;
  cursor: pointer;
  border-radius: var(--p-radius-sm);
  transition: background var(--p-ease), color var(--p-ease);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

#product-page .view-btn.active {
  background: var(--p-teal-glow);
  color: var(--p-teal);
}

#product-page .sort-select {
  background: var(--p-dark-3);
  border: 1px solid var(--p-border-med);
  color: var(--p-text);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: var(--p-radius-sm);
  cursor: pointer;
  outline: none;
  transition: border-color var(--p-ease);
}

#product-page .sort-select:focus { border-color: var(--p-teal-border); }

#product-page .result-count {
  font-size: 12px;
  color: var(--p-faint);
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}

#product-page .result-count strong { color: var(--p-teal); }

/* ── Content ────────────────────────────────────────────── */
#product-page .prod-content {
  flex: 1;
  padding: 24px 28px 48px;
}

#product-page .active-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  min-height: 0;
}

#product-page .filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--p-teal-dim);
  border: 1px solid var(--p-teal-border);
  color: var(--p-teal-lt);
  font-size: 12px;
  padding: 4px 8px 4px 12px;
  border-radius: 99px;
  font-family: 'DM Sans', sans-serif;
}

#product-page .filter-chip button {
  background: none;
  border: none;
  color: var(--p-teal);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: opacity 0.15s;
  line-height: 0;
}

#product-page .filter-chip button:hover { opacity: 1; }

/* ── Grid ───────────────────────────────────────────────── */
#product-page .prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

#product-page .prod-grid.list-view {
  grid-template-columns: 1fr;
}

/* ── Card ───────────────────────────────────────────────── */
#product-page .prod-card {
  background: var(--p-card-bg);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--p-ease), border-color var(--p-ease), box-shadow var(--p-ease);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: pCardIn 0.32s ease both;
}

@keyframes pCardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

#product-page .prod-card:hover {
  transform: translateY(-4px);
  border-color: var(--p-teal-border);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45), 0 0 0 1px var(--p-teal-border);
}

#product-page .card-badge {
  position: absolute;
  top: 11px; left: 11px;
  z-index: 2;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
  font-family: 'DM Sans', sans-serif;
}

#product-page .badge-new { background: var(--p-teal); color: #fff; }
#product-page .badge-hot { background: #b03a2e; color: #fff; }
#product-page .badge-sale { background: #d4ac0d; color: #1a1a1a; }

#product-page .card-wishlist {
  position: absolute;
  top: 11px; right: 11px;
  z-index: 2;
  background: rgba(20,20,20,0.65);
  border: 1px solid var(--p-border-med);
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--p-ease), background var(--p-ease);
  line-height: 0;
}

#product-page .prod-card:hover .card-wishlist { opacity: 1; }

#product-page .card-wishlist:hover {
  background: rgba(176,58,46,0.28);
  border-color: rgba(176,58,46,0.5);
}

#product-page .card-wishlist svg { width: 13px; height: 13px; stroke: #dde8ea; }

#product-page .card-img-wrap {
  background: var(--p-dark-3);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#product-page .card-img-wrap img {
  width: 80%; height: 80%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

#product-page .prod-card:hover .card-img-wrap img { transform: scale(1.05); }

#product-page .card-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--p-faint);
}

#product-page .card-img-placeholder svg { width: 32px; height: 32px; opacity: 0.35; }
#product-page .card-img-placeholder span { font-size: 10.5px; opacity: 0.5; font-family: 'DM Sans', sans-serif; }

#product-page .card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

#product-page .card-cat-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--p-teal);
  font-weight: 500;
  margin-bottom: 5px;
  font-family: 'DM Sans', sans-serif;
}

#product-page .card-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--p-text);
  line-height: 1.4;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'DM Sans', 'Noto Sans Thai', sans-serif;
}

#product-page .card-model {
  font-size: 11px;
  color: var(--p-faint);
  margin-bottom: 10px;
  font-family: 'DM Sans', monospace;
  letter-spacing: 0.03em;
}

#product-page .card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

#product-page .spec-tag {
  font-size: 10px;
  background: var(--p-dark-4);
  color: var(--p-muted);
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid var(--p-border);
  font-family: 'DM Sans', sans-serif;
}

#product-page .card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 11px;
  border-top: 1px solid var(--p-border);
}

#product-page .card-price { display: flex; flex-direction: column; }

#product-page .price-label {
  font-size: 9.5px;
  color: var(--p-faint);
  margin-bottom: 1px;
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#product-page .price-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--p-teal-lt);
  letter-spacing: -0.01em;
  font-family: 'DM Sans', sans-serif;
}

#product-page .price-old {
  font-size: 10.5px;
  color: var(--p-faint);
  text-decoration: line-through;
  font-family: 'DM Sans', sans-serif;
}

#product-page .price-contact {
  font-size: 11.5px;
  color: var(--p-muted);
  font-style: italic;
  font-family: 'DM Sans', sans-serif;
}

#product-page .btn-detail {
  position: relative;
  z-index: 2;
  background: var(--p-teal-glow);
  border: 1px solid var(--p-teal-border);
  color: var(--p-teal-lt);
  border-radius: var(--p-radius-sm);
  padding: 6px 13px;
  font-family: 'DM Sans', 'Noto Sans Thai', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--p-ease), color var(--p-ease), transform var(--p-ease);
  white-space: nowrap;
}

#product-page .btn-detail:hover {
  background: var(--p-teal);
  color: #fff;
  transform: scale(1.03);
}

/* ── List view ──────────────────────────────────────────── */
#product-page .prod-grid.list-view .prod-card {
  flex-direction: row;
  max-height: 120px;
}

#product-page .prod-grid.list-view .card-img-wrap {
  width: 150px;
  flex-shrink: 0;
  aspect-ratio: unset;
  border-radius: 0;
}

#product-page .prod-grid.list-view .card-body {
  padding: 12px 16px;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

#product-page .prod-grid.list-view .card-info { flex: 1; min-width: 0; }

#product-page .prod-grid.list-view .card-footer {
  border: none;
  padding: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

#product-page .prod-grid.list-view .card-specs { display: none; }

/* ── Empty state ────────────────────────────────────────── */
#product-page .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--p-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#product-page .empty-state svg { width: 48px; height: 48px; opacity: 0.2; margin-bottom: 14px; }
#product-page .empty-state h3 { font-size: 15px; margin-bottom: 6px; color: var(--p-muted); font-weight: 400; }
#product-page .empty-state p { font-size: 13px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  #product-page { flex-direction: column; }

  #product-page .prod-sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: column;
    padding-bottom: 10px;
    border-right: none;
    border-bottom: 1px solid var(--p-border);
  }

  #product-page .sidebar-logo { display: none; }

  #product-page .cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 12px;
  }

  #product-page .cat-item {
    padding: 5px 12px;
    border-radius: 99px;
    border: 1px solid var(--p-border-med);
    font-size: 12px;
  }

  #product-page .cat-item.active::before { display: none; }
  #product-page .cat-count { display: none; }

  #product-page .prod-topbar { padding: 12px 16px; }
  #product-page .prod-content { padding: 14px 14px 40px; }
  #product-page .prod-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }

  #product-page .prod-grid.list-view .prod-card { flex-direction: column; max-height: none; }
  #product-page .prod-grid.list-view .card-img-wrap { width: 100%; aspect-ratio: 4/3; }
  #product-page .prod-grid.list-view .card-body { flex-direction: column; }
  #product-page .prod-grid.list-view .card-footer {
    border-top: 1px solid var(--p-border);
    padding-top: 10px;
    flex-direction: row;
    align-items: center;
  }
  #product-page .prod-grid.list-view .card-specs { display: flex; }
}
/* ══════════════════════════════════════════════════════════
   Product Modal  — scoped under body (overlay บน #product-page)
   ══════════════════════════════════════════════════════════ */

#prod-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.22s ease;
}

#prod-modal-overlay.pm-visible {
  opacity: 1;
}

#prod-modal-overlay.pm-visible .prod-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.prod-modal {
  position: relative;
  background: #1c2224;
  border: 1px solid rgba(0,151,176,0.22);
  border-radius: 16px;
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  display: flex;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,151,176,0.12);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.26s cubic-bezier(0.4,0,0.2,1), opacity 0.26s ease;
  font-family: 'DM Sans', 'Noto Sans Thai', sans-serif;
  color: #dde8ea;
}

/* ── Close button ───────────────────────────────────────── */
.pm-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 10;
  background: rgba(20,20,20,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #7e9298;
  transition: background 0.18s, color 0.18s;
  line-height: 0;
}

.pm-close:hover {
  background: rgba(176,58,46,0.3);
  border-color: rgba(176,58,46,0.5);
  color: #fff;
}

.pm-close svg { width: 14px; height: 14px; }

/* ── Left: image panel ──────────────────────────────────── */
.pm-left {
  width: 300px;
  flex-shrink: 0;
  background: #202526;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

.pm-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-img-wrap img {
  width: 85%; height: 85%;
  object-fit: contain;
}

.pm-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #4e6166;
}

.pm-img-placeholder svg { width: 52px; height: 52px; opacity: 0.25; }
.pm-img-placeholder span { font-size: 12px; opacity: 0.5; }

.pm-badge {
  position: absolute;
  top: 0; left: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
}

.pm-badge.badge-new  { background: #0097b0; color: #fff; }
.pm-badge.badge-hot  { background: #b03a2e; color: #fff; }
.pm-badge.badge-sale { background: #d4ac0d; color: #1a1a1a; }

/* ── Right: info panel ──────────────────────────────────── */
.pm-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 28px 28px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,151,176,0.3) transparent;
}

.pm-right::-webkit-scrollbar { width: 3px; }
.pm-right::-webkit-scrollbar-thumb { background: rgba(0,151,176,0.3); border-radius: 99px; }

.pm-cat-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0097b0;
  font-weight: 600;
  margin-bottom: 6px;
}

.pm-name {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  margin: 0 0 6px;
}

.pm-model {
  font-size: 12px;
  color: #4e6166;
  letter-spacing: 0.04em;
  font-family: 'DM Sans', monospace;
  margin-bottom: 2px;
}

.pm-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 16px 0;
}

.pm-section-label {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #4e6166;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ── Specs ──────────────────────────────────────────────── */
.pm-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.pm-spec-tag {
  font-size: 12px;
  background: #2a2f31;
  color: #7e9298;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* ── Description area ───────────────────────────────────── */
.pm-desc {
  min-height: 80px;
  background: #202526;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #7e9298;
  margin-bottom: 4px;
}

.pm-desc-placeholder {
  margin: 0;
  font-style: italic;
  opacity: 0.5;
  font-size: 13px;
}

/* ── Footer: price + actions ────────────────────────────── */
.pm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 20px;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.07);
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  bottom: 0;
  background: #1c2224;
}

.pm-price-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #4e6166;
  margin-bottom: 3px;
}

.pm-price-value {
  font-size: 22px;
  font-weight: 700;
  color: #00b8d4;
  letter-spacing: -0.02em;
}

.pm-price-old {
  font-size: 11px;
  color: #4e6166;
  text-decoration: line-through;
}

.pm-price-contact {
  font-size: 13px;
  color: #7e9298;
  font-style: italic;
}

.pm-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.pm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  font-family: 'DM Sans', 'Noto Sans Thai', sans-serif;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  white-space: nowrap;
  border: none;
}

.pm-btn-outline {
  background: transparent;
  border: 1px solid rgba(0,151,176,0.4);
  color: #00b8d4;
}

.pm-btn-outline:hover {
  background: rgba(0,151,176,0.1);
  border-color: #0097b0;
}

.pm-btn-primary {
  background: #0097b0;
  color: #fff;
}

.pm-btn-primary:hover {
  background: #00b8d4;
  transform: translateY(-1px);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .prod-modal {
    flex-direction: column;
    max-height: 92vh;
  }

  .pm-left {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 20px;
    aspect-ratio: unset;
  }

  .pm-img-wrap {
    aspect-ratio: unset;
    height: 180px;
  }

  .pm-right {
    padding: 20px 20px 0;
  }
}