/* === Product Page Styles === */

/* Category Page */
.category-page { min-height: 100vh; }
.category-page-inner { max-width: var(--max-width); margin: 0 auto; padding: 24px 20px; }
.category-header { margin-bottom: 24px; }
.category-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.category-count { color: var(--text-secondary); font-size: 14px; }

/* Filters */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; padding: 12px 16px; background: white; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.filter-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-group label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.filter-group select { padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: white; cursor: pointer; }
.filter-group select:focus { border-color: var(--primary); }
.filter-check { display: flex !important; align-items: center; gap: 6px; cursor: pointer; }
.filter-check input[type="checkbox"] { accent-color: var(--primary); }
.filter-right select { padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; background: white; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state p { font-size: 15px; color: var(--text-light); }

/* ============================================================
   DETAIL PAGE
   ============================================================ */

/* Sticky Header */
.detail-sticky-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-light);
  transform: translateY(-100%); transition: transform 0.3s ease;
}
.detail-sticky-header.visible { transform: translateY(0); }
.back-btn { font-size: 28px; color: var(--text); text-decoration: none; line-height: 1; padding: 4px 8px; }
.sticky-title { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }
.home-btn { font-size: 20px; text-decoration: none; padding: 4px 8px; }

/* Detail Page Layout */
.detail-page { min-height: 100vh; padding-bottom: 80px; }
.detail-page-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 6px; padding: 16px 0; font-size: 13px; color: var(--text-light); }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* Product Main - Two Column */
.product-main { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 32px; }

/* Images */
.product-images { position: sticky; top: 80px; align-self: start; }
.main-image { background: #f8f9fa; border-radius: 16px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; overflow: hidden; }
.main-image img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.no-image { color: var(--text-light); font-size: 14px; }
.image-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; }
.thumb-btn { flex-shrink: 0; width: 64px; height: 64px; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: #f8f9fa; transition: all 0.2s; padding: 4px; }
.thumb-btn.active { border-color: var(--primary); }
.thumb-btn:hover { border-color: var(--primary-light); }
.thumb-btn img { width: 100%; height: 100%; object-fit: contain; }

/* Info Panel */
.product-info-panel { padding: 8px 0; }
.product-brand-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.brand-icon-sm { width: 24px; height: 24px; object-fit: contain; }
.brand-name { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.product-title { font-size: 24px; font-weight: 800; line-height: 1.3; margin-bottom: 4px; }
.product-model { font-size: 13px; color: var(--text-light); margin-bottom: 16px; }

/* Color Options */
.product-colors { margin-bottom: 20px; }
.product-colors h4 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.color-options { display: flex; gap: 8px; flex-wrap: wrap; }
.color-btn { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; text-decoration: none; color: var(--text); transition: all 0.2s; }
.color-btn.active { border-color: var(--primary); background: var(--primary-bg); }
.color-btn:hover { border-color: var(--primary); }
.color-swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--border-light); }
.color-label { font-size: 13px; }
.color-name { font-size: 13px; color: var(--text-secondary); background: var(--bg-secondary); padding: 2px 8px; border-radius: 4px; }

/* Price Box */
.product-price-box { background: var(--bg-secondary); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.price-main { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.price-label { font-size: 14px; color: var(--text-secondary); }
.price-discount { font-size: 20px; font-weight: 800; color: #e74c3c; }
.price-amount { font-size: 22px; font-weight: 800; color: var(--text); }
.price-half { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 14px; }
.price-original { font-size: 13px; color: var(--text-light); text-decoration: line-through; margin-bottom: 8px; }
.price-benefit { font-size: 13px; color: var(--primary); font-weight: 600; }
.badge-half { background: linear-gradient(135deg, #e74c3c, #c0392b); color: white; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; }

/* Card Discount Section */
.card-discount-section { margin-bottom: 16px; }
.card-discount-header { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.card-icon { font-size: 20px; }
.card-discount-list { display: flex; flex-direction: column; gap: 8px; }
.card-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f8f9fa; border-radius: 8px; font-size: 13px; }
.card-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.card-name { flex: 1; font-weight: 500; }
.card-save { color: var(--primary); font-weight: 600; }

/* Badges */
.product-badges-row { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.badge-promo { padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; background: #f0f4ff; color: var(--primary); }

/* Review Summary */
.review-summary-box { display: flex; align-items: center; gap: 12px; padding: 12px 0; margin-bottom: 16px; border-top: 1px solid var(--border-light); }
.review-score { display: flex; align-items: center; gap: 4px; }
.review-star-lg { color: #f39c12; font-size: 20px; }
.review-avg { font-size: 20px; font-weight: 700; }
.review-total { font-size: 14px; color: var(--text-secondary); }
.attention-count { font-size: 13px; color: var(--text-light); }

/* CTA Desktop */
.product-cta-desktop { display: flex; gap: 12px; margin-top: 24px; }
.product-cta-desktop .btn { flex: 1; }

/* ============================================================
   STICKY TABS
   ============================================================ */
.product-tabs-sticky {
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 32px; background: white;
  transition: box-shadow 0.3s;
}
.product-tabs-sticky.is-sticky {
  position: sticky; top: 55px; z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.tabs-sticky-inner { display: flex; max-width: var(--max-width); margin: 0 auto; }
.sticky-tab {
  flex: 1; text-align: center; padding: 16px 20px;
  font-size: 15px; font-weight: 500; color: var(--text-secondary);
  border: none; background: none; cursor: pointer;
  border-bottom: 3px solid transparent; transition: all 0.2s;
}
.sticky-tab.active { color: var(--text); font-weight: 700; border-bottom-color: var(--primary); }
.sticky-tab:hover { color: var(--text); }
.sticky-tab span { font-size: 13px; color: var(--text-light); margin-left: 4px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.detail-section { margin-bottom: 40px; }
.section-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.section-label { font-size: 16px; font-weight: 700; margin-bottom: 16px; display: block; }

/* Care Service */
.care-service-section { padding: 24px; background: white; border-radius: 16px; margin-bottom: 24px; box-shadow: 0 1px 6px rgba(0,0,0,0.06); }
.care-notice { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #e8f4fd; border-radius: 8px; font-size: 14px; color: #2980b9; margin-bottom: 16px; }
.care-notice-icon { font-size: 16px; }
.care-type-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.care-tab-btn { padding: 10px 20px; border-radius: 24px; border: none; font-size: 14px; font-weight: 600; cursor: pointer; background: #f0f0f0; color: var(--text-secondary); transition: all 0.2s; }
.care-tab-btn.active { background: var(--text); color: white; }
.care-detail-panel { display: none; }
.care-detail-panel.active { display: block; }
.care-detail-item { display: flex; gap: 16px; padding: 16px; background: #f8f9fa; border-radius: 12px; margin-bottom: 12px; }
.care-detail-icon { font-size: 40px; flex-shrink: 0; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; background: #e8eaf6; border-radius: 12px; }
.care-detail-text strong { display: block; font-size: 15px; margin-bottom: 4px; }
.care-detail-text p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.care-more-btn { display: block; width: 100%; padding: 12px; text-align: center; border: 1px solid var(--border); border-radius: 8px; background: white; font-size: 14px; color: var(--text-secondary); cursor: pointer; margin-top: 12px; }
.care-more-btn:hover { background: var(--bg-secondary); }

/* Basic Info / Functions */
.basic-info-section { padding: 24px; background: white; border-radius: 16px; margin-bottom: 24px; box-shadow: 0 1px 6px rgba(0,0,0,0.06); }
.func-section h4, .install-section h4, .size-section h4 { font-size: 15px; font-weight: 700; margin-bottom: 12px; margin-top: 20px; }
.func-section h4:first-child { margin-top: 0; }

/* Function Grid - Circular Icons */
.func-grid { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.func-circle-item { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; }
.func-circle-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #e8eaf6, #c5cae9);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.func-circle-icon img { width: 28px; height: 28px; object-fit: contain; }
.func-circle-label { font-size: 12px; color: var(--text-secondary); text-align: center; line-height: 1.3; }

/* Add Functions */
.add-func-list { display: flex; flex-direction: column; gap: 12px; }
.add-func-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; background: var(--bg-secondary); border-radius: 10px; }
.add-func-item .func-icon { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.add-func-item strong { font-size: 14px; display: block; margin-bottom: 2px; }
.add-func-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }

/* Install */
.install-info { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-secondary); border-radius: 10px; }
.install-icon { width: 40px; height: 40px; object-fit: contain; }

/* Size */
.size-info { display: flex; gap: 16px; }
.size-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 20px; background: var(--bg-secondary); border-radius: 10px; flex: 1; }
.size-item span { font-size: 12px; color: var(--text-light); }
.size-item strong { font-size: 14px; }

/* Spec Table */
.spec-full-section { padding: 24px; background: white; border-radius: 16px; margin-bottom: 24px; box-shadow: 0 1px 6px rgba(0,0,0,0.06); }
.spec-header { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.spec-table-el { width: 100%; border-collapse: collapse; }
.spec-table-el th, .spec-table-el td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--border-light); text-align: left; }
.spec-table-el th { width: 30%; color: var(--text-secondary); font-weight: 500; background: #f8f9fa; }
.spec-table-el td { color: var(--text); }

/* Catalog Images */
.catalog-images-section { margin-bottom: 24px; }
.catalog-img { width: 100%; display: block; border-radius: 12px; margin-bottom: 8px; }

/* ============================================================
   REVIEWS
   ============================================================ */
.review-summary-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 16px; background: #fffbf0; border-radius: 12px; }
.review-star-big { font-size: 24px; font-weight: 800; color: #f39c12; }
.review-list { display: flex; flex-direction: column; gap: 12px; }
.review-card { padding: 16px; background: white; border-radius: 12px; border: 1px solid var(--border-light); }
.review-card-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.review-user { font-size: 14px; font-weight: 600; }
.review-stars { color: #f39c12; font-size: 14px; }
.review-text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.no-data { text-align: center; padding: 40px; color: var(--text-light); font-size: 14px; }

/* Similar Products */
.similar-products { margin-bottom: 40px; }

/* ============================================================
   BOTTOM CTA BAR
   ============================================================ */
.bottom-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px); border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  transform: translateY(100%); transition: transform 0.3s ease;
}
.bottom-cta-bar.visible { transform: translateY(0); }
.bottom-heart-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 16px; border: none; background: none; cursor: pointer;
  font-size: 12px; color: var(--text-secondary);
}
.bottom-heart-btn .heart-icon { font-size: 24px; transition: color 0.2s; }
.bottom-heart-btn.liked .heart-icon { color: #e74c3c; }
.heart-count { font-size: 12px; color: var(--text-light); }
.bottom-quote-btn {
  flex: 1; padding: 14px 24px;
  background: linear-gradient(135deg, #5C6BC0, #7E57C2);
  color: white; border: none; border-radius: 12px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(92,107,192,0.3);
}
.bottom-quote-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(92,107,192,0.4); }
.bottom-quote-btn:active { transform: translateY(0); }
.quote-badge {
  position: absolute; top: -8px; right: 20px;
  background: #e74c3c; color: white; padding: 3px 10px;
  border-radius: 10px; font-size: 11px; font-weight: 600;
  box-shadow: 0 2px 6px rgba(231,76,60,0.3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .product-main { grid-template-columns: 1fr; gap: 20px; }
  .product-images { position: static; }
  .product-title { font-size: 20px; }
  .product-cta-desktop { display: none; }
  .detail-page-inner { padding: 0 16px; }
  .func-grid { gap: 12px; }
  .func-circle-item { width: 60px; }
  .size-info { gap: 8px; }
  .size-item { padding: 10px; }
  .care-service-section, .basic-info-section, .spec-full-section { padding: 16px; }
  .sticky-tab { padding: 12px 16px; font-size: 14px; }
  .bottom-cta-bar { padding: 10px 16px; }
}
