/* ============================================
   Product Page Styles — Red Theme
   ============================================ */

/* --- Product Layout --- */
.product-main {
  padding: 30px 0 60px;
  background: #f5f5f5;
}

.product-layout {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

/* --- Sidebar (same style as home page) --- */
.product-layout .sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
}

.product-layout .sidebar .sidebar-title {
  background: #c41e3a;
  color: #fff;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.product-layout .sidebar .sidebar-menu {
  border: none;
}

.product-layout .sidebar .sidebar-menu li {
  border-bottom: 1px solid #eee;
}

.product-layout .sidebar .sidebar-menu a {
  display: block;
  padding: 12px 20px;
  padding-left: 30px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}

.product-layout .sidebar .sidebar-menu a::before {
  content: '\203A';
  position: absolute;
  left: 15px;
  color: #c41e3a;
  font-size: 18px;
  font-weight: bold;
}

.product-layout .sidebar .sidebar-menu a:hover,
.product-layout .sidebar .sidebar-menu a.active {
  background: #fff0f0;
  color: #c41e3a;
  font-weight: bold;
  padding-left: 35px;
}

/* --- Content Area --- */
.product-content {
  flex: 1;
  min-width: 0;
}

/* --- Product Intro --- */
.product-intro {
  display: flex;
  gap: 25px;
  background: #fff;
  padding: 25px;
  border: 1px solid #e0e0e0;
  margin-bottom: 25px;
}

.intro-img {
  width: 260px;
  height: 200px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fafafa;
  border: 1px solid #eee;
  padding: 10px;
}

.intro-text h2 {
  font-size: 20px;
  color: #c41e3a;
  margin: 0 0 12px;
}

.intro-text p {
  font-size: 14px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 10px;
  text-indent: 2em;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

/* --- Table Section Title --- */
.table-section-title {
  font-size: 18px;
  color: #c41e3a;
  margin-bottom: 6px;
  padding-left: 10px;
  border-left: 3px solid #c41e3a;
}

.table-section-desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}

/* --- Toolbar --- */
.spec-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 12px 20px;
  border: 1px solid #e0e0e0;
  border-bottom: none;
  gap: 15px;
  flex-wrap: wrap;
}

.spec-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ddd;
  padding: 6px 12px;
  border-radius: 4px;
  background: #fafafa;
}

.spec-search span {
  font-size: 14px;
}

.spec-search input {
  border: none;
  outline: none;
  font-size: 14px;
  width: 200px;
  background: transparent;
}

.spec-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.total-info {
  font-size: 13px;
  color: #666;
}

.total-info strong {
  color: #c41e3a;
}

/* --- Spec Table --- */
.spec-table-wrap {
  background: #fff;
  border: 1px solid #e0e0e0;
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.spec-table thead th {
  background: #c41e3a;
  color: #fff;
  padding: 10px 12px;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  font-size: 13px;
}

.spec-table thead th .unit {
  font-weight: 400;
  font-size: 11px;
  opacity: 0.85;
}

.spec-table thead th.checkbox-cell {
  width: 40px;
}

.spec-table tbody td {
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}

.spec-table tbody tr {
  cursor: pointer;
  transition: all 0.15s;
}

.spec-table tbody tr:hover {
  background: #fff5f5;
}

.spec-table tbody tr.selected {
  background: #ffe8e8;
}

.spec-table tbody tr.selected:hover {
  background: #ffd8d8;
}

.spec-table tbody td.model-cell {
  font-weight: 600;
  color: #c41e3a;
}

.spec-table tbody td.checkbox-cell {
  width: 40px;
}

.spec-table .row-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #c41e3a;
}

/* --- Footer Bar --- */
.spec-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #fafafa;
  border-top: 1px solid #e0e0e0;
}

.selected-count {
  font-size: 14px;
  color: #555;
}

.selected-count strong {
  color: #c41e3a;
  font-size: 18px;
}

/* --- Series Guide --- */
.series-guide {
  margin-top: 30px;
  background: #fff;
  padding: 25px;
  border: 1px solid #e0e0e0;
}

.series-guide h3 {
  font-size: 17px;
  color: #c41e3a;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.series-card {
  padding: 16px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 4px;
}

.series-card h4 {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
}

.series-card p {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .product-layout {
    flex-direction: column;
  }

  .product-layout .sidebar {
    width: 100%;
  }

  .product-intro {
    flex-direction: column;
  }

  .intro-img {
    width: 100%;
    height: 180px;
  }

  .series-grid {
    grid-template-columns: 1fr;
  }

  .spec-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
