/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: #f8f9fa;
  color: #333;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== SECTION COMMON ===== */
.section-title {
  text-align: center;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  margin: 16px 0 10px;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title i {
  color: #0d6efd;
  font-size: clamp(18px, 4vw, 22px);
}

.section-desc {
  text-align: center;
  color: #666;
  font-size: clamp(13px, 2.5vw, 15px);
  margin: -8px 0 12px;
  line-height: 1.6;
}

/* ===== HEADER ===== */
.main-header {
  background: linear-gradient(135deg, #0d6efd 0%, #00b4ff 100%);
  padding: 12px 0;
  color: white;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.logo {
  font-size: clamp(16px, 3.5vw, 20px);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo i {
  font-size: clamp(18px, 4vw, 24px);
}

/* ===== SEARCH BOX ===== */
.search-box {
  flex: 1 1 auto;
  display: flex;
  position: relative;
  min-width: 200px;
  max-width: 500px;
}

.search-box input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 24px 0 0 24px;
  border: none;
  outline: none;
  font-size: clamp(13px, 2.5vw, 14px);
  background: rgba(255, 255, 255, 0.95);
  transition: background 0.3s;
  width: 100%;
}

.search-box input:focus {
  background: white;
}

.search-box button {
  padding: 10px 18px;
  border: none;
  background: #0056d2;
  color: white;
  border-radius: 0 24px 24px 0;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: 600;
  font-size: clamp(12px, 2.5vw, 14px);
  flex-shrink: 0;
}

.search-box button:hover {
  background: #003fa3;
}

/* ===== SEARCH RESULT DROPDOWN ===== */
.search-result {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 9999;
  display: none;
  max-height: 350px;
  overflow-y: auto;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.search-item:hover {
  background: #f5f7fa;
}

.search-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #f9f9f9;
  border-radius: 6px;
  flex-shrink: 0;
}

.search-item span {
  font-size: clamp(13px, 2.5vw, 14px);
  line-height: 1.4;
  font-weight: 500;
}

/* ===== CATEGORY & NEWS BUTTONS ===== */
.category-btn, .news-btn {
  background: white;
  color: #0d6efd;
  border: none;
  padding: 8px 14px;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: clamp(12px, 2.5vw, 13px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: all 0.3s;
  min-height: 44px; /* Touch target */
}

.category-btn:hover, .news-btn:hover {
  background: #f0f6ff;
  transform: translateY(-1px);
}

/* ===== CATEGORY PANEL ===== */
.category-panel, .news-panel {
  display: none;
  background: white;
  border-bottom: 2px solid #e3f2fd;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 99;
  width: 100%;
}

.category-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #0d6efd;
  border-bottom: 1px solid #e3f2fd;
}

.category-header h3 {
  margin: 0;
  font-size: clamp(16px, 3vw, 18px);
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  transition: color 0.3s;
  padding: 5px;
  line-height: 1;
  min-width: 44px; /* Touch target */
  min-height: 44px;
}

.close-btn:hover {
  color: #ff4d4f;
}

.category-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  justify-items: center;
}

.category-grid a {
  width: 100%;
  max-width: 160px;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 10px;
  text-align: center;
  text-decoration: none;
  color: #1f2937;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.category-grid a i {
  font-size: clamp(24px, 5vw, 30px);
  margin-bottom: 8px;
  color: #2563eb;
  transition: color 0.25s ease;
}

.category-grid a span {
  font-size: clamp(12px, 2.5vw, 14px);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.category-grid a:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

.category-grid a:hover i {
  color: #1e40af;
}

/* ===== NEWS PANEL ===== */
.news-panel-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 15px 26px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.news-panel-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  color: #333;
  padding: 8px;
  border-radius: 8px;
  transition: background .2s, transform .2s;
}

.news-panel-item img {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.news-panel-item:hover {
  background: #f8f9fa;
  transform: translateY(-3px);
}

.news-panel-info strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(13px, 2.5vw, 14px);
}

.news-panel-info .muted {
  color: #666;
  font-size: clamp(12px, 2.2vw, 13px);
}

/* ===== BANNER SLIDER ===== */
.banner-wrapper {
  margin: 16px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.banner-main {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #f5f5f5;
}

.banner-slider {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  background: #ffffff;
}

.banner-slider .slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.banner-slider .slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.banner-slider img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.banner-side {
  display: none;
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.indicator.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

/* ===== VIEWED SECTION ===== */
.viewed-section {
  margin: 16px 0;
}

.viewed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.viewed-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  transition: .25s;
}

.viewed-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.viewed-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  margin-bottom: 8px;
  background: #fafafa;
  padding: 8px;
  border-radius: 8px;
}

/* ===== CATEGORY QUICK ===== */
.category-quick-section {
  margin: 16px 0;
}

.category-title {
  font-size: clamp(16px, 3vw, 18px);
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0 5px;
}

.category-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  background: white;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.25s ease;
  min-height: 80px;
}

.category-item img {
  width: clamp(40px, 8vw, 48px);
  height: clamp(40px, 8vw, 48px);
  object-fit: contain;
  background: #f5f5f5;
  border-radius: 50%;
  padding: 8px;
  margin-bottom: 6px;
}

.category-item span {
  font-size: clamp(11px, 2.2vw, 13px);
  font-weight: 500;
}

.category-item:hover {
  background: #fff7f0;
  color: #ee4d2d;
  transform: translateY(-2px);
}

/* ===== FLASH SALE ===== */
.flash-sale {
  width: 100%;
  max-width: 1200px;
  margin: 16px auto;
  padding: 14px 20px;
  background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(255, 87, 34, 0.3);
  font-weight: 700;
}

.flash-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.flash-sale span {
  font-size: clamp(14px, 3vw, 18px);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.countdown span {
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: clamp(14px, 3vw, 16px);
  min-width: 36px;
  text-align: center;
}

.flash-view-all-wrapper {
  margin: 10px 0 6px;
  text-align: center;
}

.flash-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 87, 34, 0.1);
  color: #ff5722;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #ff5722;
  font-size: clamp(13px, 2.5vw, 14px);
  min-height: 44px;
}

.flash-view-all-btn:hover {
  background: #ff5722;
  color: white;
  transform: translateY(-2px);
}

/* ===== PRODUCT GRIDS ===== */
.products, .flash-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.product-card, .flash-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover, .flash-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.flash-card {
  border: 2px solid #ff5722;
}

.product-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  background: #fafafa;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-box img {
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.flash-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin-bottom: 10px;
  padding: 10px;
  background: #fafafa;
  border-radius: 8px;
}

.product-card h3, .flash-card h4 {
  font-size: clamp(13px, 2.5vw, 16px);
  margin: 10px 0 8px;
  color: #222;
  font-weight: 600;
  line-height: 1.4;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card p {
  font-size: clamp(12px, 2.2vw, 13px);
  color: #666;
  margin-bottom: 12px;
  flex: 1;
}

.price {
  font-size: clamp(14px, 3vw, 16px);
  color: #e53935;
  font-weight: 600;
  margin: 8px 0;
}

.category-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ee4d2d;
  color: #fff;
  font-size: clamp(10px, 2vw, 12px);
  padding: 3px 8px;
  border-radius: 12px;
  z-index: 1;
}

.sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ff5722, #ff9800);
  color: #fff;
  font-size: clamp(11px, 2.2vw, 12px);
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(255,87,34,0.4);
  z-index: 1;
}

.flash-price {
  margin: 10px 0 12px;
}

.flash-price .sale {
  color: #ff3d00;
  font-size: clamp(16px, 3.5vw, 18px);
  font-weight: 700;
  display: block;
}

.flash-price del {
  color: #999;
  font-size: clamp(12px, 2.5vw, 13px);
  margin-left: 6px;
}

.sold-text {
  font-size: clamp(11px, 2.2vw, 12px);
  margin: 8px 0 4px;
  color: #666;
}

.sold-bar {
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.sold-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff5722, #ff9800);
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* ===== TODAY SECTION ===== */
.today-section {
  margin: 14px 0;
}

.today-title {
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  margin-bottom: 12px;
}

.today-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 5px;
}

.today-tabs::-webkit-scrollbar {
  display: none;
}

.today-tab {
  background: #f5f5f5;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: clamp(12px, 2.5vw, 14px);
  white-space: nowrap;
  transition: all 0.3s;
  flex-shrink: 0;
  min-height: 44px;
}

.today-tab.active {
  color: #ee4d2d;
  font-weight: 600;
  background: #fff2ee;
}

.today-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.today-card {
  border: 1px solid #eee;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  transition: all 0.3s;
}

.today-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.today-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin-bottom: 8px;
  background: #fafafa;
  padding: 8px;
  border-radius: 8px;
}

.today-card h4 {
  font-size: clamp(12px, 2.5vw, 14px);
  min-height: 36px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.today-more {
  text-align: center;
  margin-top: 16px;
}

.today-more a {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(13px, 2.5vw, 14px);
}

/* ===== NEWS SECTION ===== */
.news-section {
  padding-bottom: 10px;
  margin-bottom: 8px;
}

.news-section .container {
  background: #f5f7ff;
  padding: 18px;
  border-radius: 12px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.news-main {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #111;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: all 0.3s;
}

.news-main:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.news-main img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.news-main h3 {
  padding: 12px;
  font-size: clamp(16px, 3.5vw, 20px);
  line-height: 1.4;
}

.news-main p {
  padding: 0 12px 12px;
  color: #666;
  font-size: clamp(13px, 2.5vw, 14px);
}

.news-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-item {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  text-decoration: none;
  color: #111;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: all 0.3s;
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.news-item img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.news-item h4 {
  font-size: clamp(13px, 2.5vw, 14px);
  margin-bottom: 4px;
}

.news-item p {
  font-size: clamp(12px, 2.2vw, 13px);
  color: #666;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding-top: 16px;
  margin-top: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.contact-item {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.06);
  transition: all 0.3s;
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.contact-item i {
  font-size: clamp(24px, 5vw, 28px);
  color: #ff5722;
  min-width: 40px;
}

.contact-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(14px, 2.5vw, 16px);
}

.contact-item p {
  font-size: clamp(13px, 2.5vw, 14px);
  margin: 0;
  word-break: break-word;
}

.contact-item a {
  color: #333;
  text-decoration: none;
  word-break: break-word;
}

.contact-item a:hover {
  color: #ff5722;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-size: clamp(12px, 2.5vw, 14px);
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, #0d6efd, #0099ff);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0056d2, #0078cc);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #f1f5ff;
  color: #0d6efd;
  border: 2px solid #0d6efd;
}

.btn-secondary:hover {
  background: #0d6efd;
  color: white;
}

.btn-compare {
  background: #0d6efd;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: clamp(12px, 2.5vw, 13px);
  font-weight: 600;
  transition: all 0.3s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-compare:hover {
  background: #0056d2;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, #222, #333);
  color: white;
  padding: 20px 0 16px;
  margin-top: 32px;
  text-align: center;
  font-size: clamp(13px, 2.5vw, 14px);
}

/* ===== PRODUCT PAGE ===== */
.product-page {
  margin-top: 20px;
}

.product-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.product-gallery {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  width: 100%;
}

.main-image-wrapper {
  width: 100%;
  position: relative;
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.album-section {
  width: 100%;
  margin-top: 16px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.album-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-item:hover {
  border-color: #0d6efd;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.2);
}

/* Product Info */
.product-info {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-info h1 {
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  color: #222;
  margin: 0;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stars {
  color: #ffc107;
  font-size: clamp(16px, 3.5vw, 18px);
  letter-spacing: 2px;
}

.rating-count {
  font-size: clamp(12px, 2.5vw, 14px);
  color: #666;
}

.price-section {
  background: linear-gradient(135deg, #fff7e6, #fff);
  border: 2px solid #ffc107;
  border-radius: 10px;
  padding: 16px;
}

.price-display {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.price-value {
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 800;
  color: #d32f2f;
}

.flash-sale-badge {
  background: #ff5252;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: clamp(12px, 2.5vw, 14px);
  font-weight: 600;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.description-section {
  border-top: 1px solid #eee;
  padding-top: 16px;
}

.description-section h3 {
  font-size: clamp(14px, 3vw, 16px);
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}

.description-section p {
  font-size: clamp(13px, 2.5vw, 14px);
  color: #555;
  line-height: 1.6;
}

.benefits-section {
  background: #f0f7ff;
  border-left: 4px solid #0d6efd;
  padding: 16px;
  border-radius: 8px;
}

.benefits-section h3 {
  font-size: clamp(13px, 2.5vw, 14px);
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(12px, 2.5vw, 14px);
  color: #333;
  font-weight: 500;
}

.benefit-icon {
  font-size: clamp(16px, 3.5vw, 18px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

.vouchers-section {
  padding: 14px;
  background: #fff8f1;
  border-radius: 8px;
  border: 1px dashed #ffd8a8;
}

.vouchers-section h3 {
  margin: 0 0 10px 0;
  font-size: clamp(13px, 2.5vw, 14px);
  color: #b45309;
  font-weight: 700;
}

.vouchers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.voucher-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #ffe7c2;
  flex-wrap: wrap;
}

.voucher-code {
  background: #fff3e0;
  color: #b45309;
  padding: 6px 10px;
  border-radius: 4px;
  font-weight: 800;
  font-size: clamp(11px, 2.2vw, 13px);
  flex-shrink: 0;
}

.voucher-desc {
  color: #666;
  font-size: clamp(11px, 2.2vw, 13px);
  flex: 1;
  min-width: 150px;
}

.voucher-apply {
  background: #ff8c42;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: clamp(11px, 2.2vw, 12px);
  transition: all 0.3s;
  min-height: 36px;
}

.voucher-apply:hover {
  background: #e67a2e;
}

.action-buttons {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
  flex-wrap: wrap;
}

/* Price Comparison Section */
.Websitesosanhgia {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.Websitesosanhgia h2 {
  font-size: clamp(18px, 4vw, 24px);
  margin-bottom: 16px;
  color: #222;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 15px;
  align-items: center;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  border: 2px solid #f0f0f0;
  transition: all 0.3s;
}

.price-item:hover {
  border-color: #0d6efd;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.price-item .store {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: clamp(13px, 2.5vw, 15px);
}

.price-item .store img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.price-item .price {
  color: #e53935;
  font-size: clamp(16px, 3.5vw, 20px);
  font-weight: 700;
  white-space: nowrap;
}

.buy-btn {
  background: #0d6efd;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: clamp(12px, 2.5vw, 14px);
  font-weight: 600;
  transition: all 0.3s;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.buy-btn:hover {
  background: #0056d2;
  transform: translateY(-2px);
}

.best-price {
  border: 2px solid #4caf50;
  background: linear-gradient(90deg, #f1fff4, #ffffff);
}

/* Related Products */
.related-products, .suggest-products, .featured-news {
  margin: 20px 0;
  padding: 18px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-products h2, .suggest-products h2, .featured-news h2 {
  margin-bottom: 14px;
  color: #222;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.related-item {
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  transition: all 0.3s ease;
  background: #fafafa;
}

.related-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: #0d6efd;
}

.related-item a {
  text-decoration: none;
  color: #333;
}

.related-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 8px;
  background: white;
  padding: 8px;
}

.related-item h4 {
  font-size: clamp(11px, 2.2vw, 13px);
  margin-top: 6px;
  color: #222;
  line-height: 1.3;
  min-height: 32px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Banner in suggest products */
.banner {
  width: 100%;
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* News List */
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news-img-box {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.news-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card h3, .news-card h4 {
  padding: 14px 16px 8px;
  font-size: clamp(14px, 3vw, 17px);
  line-height: 1.5;
  font-weight: 600;
  color: #222;
}

.news-card p {
  padding: 0 16px 14px;
  color: #666;
  font-size: clamp(12px, 2.5vw, 14px);
  line-height: 1.6;
  flex-grow: 1;
}

.news-link, .view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 16px 16px;
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(12px, 2.5vw, 14px);
  transition: all 0.3s;
}

.news-link:hover, .view-more-btn:hover {
  color: #0056d2;
  gap: 10px;
}

/* ===============================================
   RESPONSIVE BREAKPOINTS
   =============================================== */

/* ===== LARGE DESKTOP (>= 1200px) ===== */
@media (min-width: 1200px) {
  .banner-wrapper {
    grid-template-columns: 2.8fr 1fr;
  }
  
  .banner-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .banner-side-item {
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .banner-side-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }
  
  .product-overview {
    grid-template-columns: 420px 1fr;
    gap: 40px;
  }

  .product-info {
    position: sticky;
    top: 110px;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-quick-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .products, .flash-products {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .today-products {
    grid-template-columns: repeat(4, 1fr);
  }

  .viewed-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ===== DESKTOP (>= 1025px) ===== */
@media (min-width: 1025px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .search-box {
    order: 0;
  }

  .price-item {
    grid-template-columns: 2fr 1fr auto;
  }
  
  .banner-slider {
    aspect-ratio: 21 / 9;
  }
  
  .banner-slider img {
    object-fit: contain;
  }
}

/* ===== TABLET (768px - 1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .search-box {
    order: 3;
    width: 100%;
    max-width: 100%;
  }

  .banner-slider {
    aspect-ratio: 4 / 3;
  }
  
  .banner-slider img {
    object-fit: contain;
  }

  .products, .flash-products {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .category-quick-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .product-overview {
    grid-template-columns: 1fr;
  }

  .product-info {
    position: static;
  }

  .today-products {
    grid-template-columns: repeat(3, 1fr);
  }

  .viewed-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .price-item {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }
}

/* ===== MOBILE (< 768px) ===== */
@media (max-width: 767px) {
  .header-inner {
    gap: 10px;
  }

  .logo {
    width: 100%;
    justify-content: center;
    order: 1;
  
  }
  .banner-slider {
    aspect-ratio: 3 / 2;
  }

  .search-box {
    order: 3;
    width: 100%;
  }

  .category-btn, .news-btn {
    flex: 1;
    order: 2;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px 12px;
  }

  .category-grid a {
    padding: 12px 8px;
    min-height: 90px;
  }

  .category-quick-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  /* Product Detail Page */
  .main-image-wrapper {
    max-height: 300px;
  }

  .main-image {
    max-width: 80%;
    max-height: 80%;
  }

  .product-info {
    padding: 14px;
    gap: 12px;
  }

  .product-info h1 {
    font-size: 17px;
  }

  .price-section {
    padding: 12px;
  }

  .price-display {
    gap: 10px;
  }

  /* Action Buttons */
  .action-buttons {
    flex-direction: row;
    gap: 8px;
  }

  .action-buttons .btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 13px;
  }

  /* Grid Sections */
  .products, .flash-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .today-products {
    grid-template-columns: repeat(2, 1fr);
  }

  .viewed-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .album-grid {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .album-grid::-webkit-scrollbar {
    display: none;
  }

  .album-item {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 6px;
  }

  .related-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .price-item {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }

  .price-item .store {
    justify-content: center;
  }

  .buy-btn {
    width: 100%;
  }

  footer {
    margin-top: 24px;
    padding: 16px 0 12px;
  }
}

/* ===== SMALL MOBILE (< 480px) ===== */
@media (max-width: 479px) {
  .container {
    padding: 0 10px;
  }
  
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .category-grid a {
    padding: 10px 6px;
    min-height: 80px;
  }

  .category-quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .flash-products, .products {
    gap: 8px;
  }

  .today-tab {
    font-size: 11px;
    padding: 6px 12px;
  }
  
  .product-img-box img,
  .flash-card img,
  .today-card img,
  .viewed-card img {
    padding: 6px;
  }

  .main-image-wrapper {
    max-height: 260px;
  }

  .main-image {
    max-width: 75%;
    max-height: 75%;
  }
}

/* ===== EXTRA SMALL (< 360px) ===== */
@media (max-width: 359px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .flash-sale {
    padding: 12px 15px;
  }

  .flash-content {
    gap: 15px;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .main-header,
  .category-panel,
  .news-panel,
  .search-box,
  .category-btn,
  .news-btn,
  .action-buttons,
  footer {
    display: none;
  }

  body {
    background: white;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .product-card,
  .flash-card,
  .news-card {
    break-inside: avoid;
  }
}

/* ===== FIX BANNER MOBILE – HIỆN ĐẦY ĐỦ ẢNH ===== */
@media (max-width: 767px) {
  .banner-slider {
    aspect-ratio: unset;     /* BỎ ÉP TỈ LỆ */
    height: auto;
    min-height: auto;
  }

  .banner-slider .slides,
  .banner-slider .slide {
    height: auto;
  }

  .banner-slider img {
    width: 100%;
    height: auto;            /* CHÌA KHÓA */
    object-fit: contain;
  }
} 

.social-proof {
  font-size: clamp(12px, 2.5vw, 14px);
  color: #444;
  background: #f1f5ff;
  padding: 10px 14px;
  border-radius: 8px;
}

.sale-timeline {
  background: #fff7e6;
  border-left: 4px solid #ff9800;
  padding: 16px;
  border-radius: 8px;
  margin: 20px 0;
}
.sale-timeline ul {
  margin-top: 8px;
  padding-left: 20px;
}
.sale-timeline li {
  margin-bottom: 6px;
  font-size: clamp(13px, 2.5vw, 14px);
}
.faq-section {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  margin: 20px 0;
}

.faq-item h4 {
  cursor: pointer;
  font-size: clamp(14px, 3vw, 16px);
  margin-bottom: 6px;
}

.faq-item p {
  display: none;
  font-size: clamp(13px, 2.5vw, 14px);
  color: #555;
}

.faq-item h4.open + p {
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
}
/* ===== FEATURED NEWS – PRODUCT PAGE ===== */
.featured-news {
  background: linear-gradient(135deg, #f8fafb 0%, #f1f5fa 100%);
  padding: 40px 0;
  margin: 32px 0;
}

.featured-news .section-title {
  margin-bottom: 28px;
}

.featured-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.featured-news-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.featured-news-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f0f0f0;
}

.featured-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-news-card:hover .featured-news-image img {
  transform: scale(1.05);
}

.featured-news-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.featured-news-card h3 {
  font-size: clamp(15px, 3.5vw, 18px);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.featured-news-card p {
  font-size: clamp(13px, 2.5vw, 15px);
  color: #666;
  margin: 0 0 16px 0;
  line-height: 1.6;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(12px, 2.5vw, 14px);
  transition: all 0.3s ease;
  width: fit-content;
}

.featured-news-link:hover {
  color: #0056d2;
  gap: 10px;
}

.featured-news-link i {
  font-size: 0.9em;
}

/* Desktop */
@media (min-width: 1025px) {
  .featured-news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .featured-news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .featured-news-image {
    height: 200px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .featured-news {
    padding: 24px 0;
    margin: 20px 0;
  }

  .featured-news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .featured-news-image {
    height: 180px;
  }

  .featured-news-content {
    padding: 16px;
  }

  .featured-news-card h3 {
    margin-bottom: 10px;
  }

  .featured-news-card p {
    margin-bottom: 12px;
  }
}
.price-insight {
  background: #f1fff4;
  border-left: 4px solid #4caf50;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: clamp(13px, 2.5vw, 14px);
  color: #333;
}

.price-insight span {
  display: block;
  margin-top: 4px;
  color: #555;
}

.price-advice {
  margin-top: 6px;
  font-weight: 600;
  color: #2e7d32;
}
.price-meta {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.sticky-cta {
  display: none;
}

/* ===== NEWS DETAIL PAGE - HERO SECTION ===== */
.news-detail-page {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.news-detail-page .news-card {
  background: transparent;
  box-shadow: none;
  position: relative;
}

.news-detail-page .news-img-box {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  margin: 0 !important;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 60vh;
  min-height: 400px;
}

.news-detail-page .news-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: brightness(0.95);
  background: #000;
}

/* Overlay tối trên ảnh */
.news-detail-page .news-img-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* SEO-friendly content layout */
.news-detail-page .article-wrapper {
  background: #fff;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 40px 30px;
  box-sizing: border-box;
}

/* News detail wrapper - center content on mobile */
.news-detail-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.news-detail-page .article-main {
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.news-detail-page .article-toc {
  position: sticky;
  top: 80px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.news-detail-page .article-toc h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0d6efd;
  margin: 0 0 12px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #0d6efd;
}

.news-detail-page .article-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-detail-page .article-toc li {
  margin: 0;
  padding: 0;
}

.news-detail-page .article-toc a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  border-left: 3px solid transparent;
  padding-left: 8px;
  transition: all 0.2s ease;
}

.news-detail-page .article-toc a:hover {
  color: #0d6efd;
  border-left-color: #0d6efd;
  background: #f0f0f0;
}

/* Breadcrumb */
.news-detail-page .breadcrumb {
  background: #f5f5f5;
  padding: 12px 30px;
  font-size: 13px;
  color: #666;
  margin: 0;
  border-bottom: 1px solid #e0e0e0;
  box-sizing: border-box;
}

.news-detail-page .breadcrumb a {
  color: #0d6efd;
  text-decoration: none;
}

.news-detail-page .breadcrumb a:hover {
  text-decoration: underline;
}

/* Article meta info */
.news-detail-page .article-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
  color: #666;
}

.news-detail-page .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-detail-page .meta-item strong {
  color: #333;
}

/* Heading trong nội dung */
.news-detail-page .article-main h2 {
  font-size: 24px;
  margin: 32px 0 16px 0;
  color: #111;
  font-weight: 700;
  line-height: 1.35;
  scroll-margin-top: 80px;
}

.news-detail-page .article-main h2::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #0d6efd, transparent);
  margin-bottom: 12px;
  width: 60px;
}

.news-detail-page .article-main h3 {
  font-size: 18px;
  margin: 24px 0 12px 0;
  color: #222;
  font-weight: 700;
  line-height: 1.35;
  scroll-margin-top: 80px;
}

/* Paragraphs */
.news-detail-page .article-main p {
  margin: 0 0 16px 0;
  font-size: 16px;
  line-height: 1.9;
  color: #444;
  word-wrap: break-word;
}

.news-detail-page .article-main p strong {
  color: #0d6efd;
  font-weight: 700;
}

/* Lists */
.news-detail-page .article-main ul,
.news-detail-page .article-main ol {
  margin: 16px 0;
  padding-left: 24px;
  line-height: 1.9;
}

.news-detail-page .article-main li {
  margin-bottom: 10px;
  color: #444;
}

.news-detail-page .article-main li strong {
  color: #0d6efd;
}

/* Highlight boxes */
.news-detail-page .highlight-box {
  background: linear-gradient(135deg, #fff8f1, #ffe7c2);
  border-left: 4px solid #ff9800;
  border-radius: 6px;
  padding: 20px;
  margin: 20px 0;
  line-height: 1.8;
}

.news-detail-page .highlight-box p {
  margin: 0 0 10px 0;
}

.news-detail-page .highlight-box strong {
  color: #e65100;
}

/* Author section */
.news-detail-page .author-section {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  margin: 40px 0;
  display: flex;
  gap: 16px;
  align-items: center;
}

.news-detail-page .author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0d6efd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
}

.news-detail-page .author-info h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

.news-detail-page .author-info p {
  margin: 0;
  font-size: 13px;
  color: #666;
}

/* Share buttons */
.news-detail-page .share-section {
  display: flex;
  gap: 12px;
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.news-detail-page .share-btn {
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  background: #fff;
  color: #333;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-detail-page .share-btn:hover {
  background: #0d6efd;
  color: white;
  border-color: #0d6efd;
}

/* Related articles */
.news-detail-page .related-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
}

.news-detail-page .related-section h2 {
  margin-top: 0;
}

.news-detail-page .related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.news-detail-page .related-card {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-detail-page .related-card:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.news-detail-page .related-card a {
  text-decoration: none;
  color: #333;
  display: block;
  padding: 12px;
}

.news-detail-page .related-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .news-detail-page .news-img-box {
    height: 50vh;
    min-height: 350px;
  }

  .news-detail-page .article-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 20px;
  }

  .news-detail-page .article-toc {
    position: relative;
    top: 0;
    max-height: none;
  }

  .news-detail-page .article-main h2 {
    font-size: 22px;
  }

  .news-detail-page .breadcrumb {
    padding: 10px 20px;
    font-size: 12px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  /* Wrapper - center content with padding */
  .news-detail-wrapper {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .news-detail-page .news-img-box {
    height: 45vh;
    min-height: 300px;
    margin-left: calc(-50vw + 50%);
    width: 100vw;
  }

  /* Breadcrumb */
  .news-detail-page .breadcrumb {
    padding: 10px 18px;
    font-size: 11px;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
  }

  .news-detail-page .article-wrapper {
    padding: 20px 18px;
    gap: 16px;
    margin: 0 auto;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .news-detail-page .article-main {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .news-detail-page .article-main h2 {
    font-size: 18px;
    margin: 20px 0 12px 0;
  }

  .news-detail-page .article-main h3 {
    font-size: 16px;
    margin: 16px 0 10px 0;
  }

  .news-detail-page .article-main p {
    font-size: 15px;
    line-height: 1.8;
  }

  .news-detail-page .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 0;
  }

  .news-detail-page .highlight-box {
    padding: 16px;
    margin: 16px 0;
  }

  .news-detail-page .author-section {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .news-detail-page .share-section {
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
    padding: 16px 0;
  }

  .news-detail-page .share-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }

  .news-detail-page .related-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }

  .news-detail-page .article-toc {
    background: #f5f5f5;
    border: none;
    padding: 14px;
    margin-bottom: 16px;
    max-height: none;
  }

  .news-detail-page .article-toc h3 {
    font-size: 12px;
    margin: 0 0 10px 0;
  }

  .news-detail-page .article-toc a {
    padding: 4px 0;
    font-size: 12px;
  }

  .news-detail-page .breadcrumb {
    padding: 8px 18px;
    font-size: 11px;
    box-sizing: border-box;
  }
}

/* Responsive - Small Mobile (480px - 767px) */
@media (max-width: 479px) {
  .news-detail-page .news-img-box {
    height: 40vh;
    min-height: 260px;
    margin-left: calc(-50vw + 50%);
    width: 100vw;
  }

  .news-detail-page h1 {
    font-size: clamp(18px, 5vw, 26px);
    padding: 0 14px;
    line-height: 1.25;
  }

  .news-detail-page .article-wrapper {
    padding: 16px 16px;
    gap: 12px;
    margin: 0 auto;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }

  .news-detail-page .article-main h2 {
    font-size: 17px;
    margin: 18px 0 10px 0;
  }

  .news-detail-page .article-main h3 {
    font-size: 15px;
  }

  .news-detail-page .article-main p {
    font-size: 14px;
    line-height: 1.7;
  }

  .news-detail-page .article-main ul,
  .news-detail-page .article-main ol {
    padding-left: 20px;
    margin: 12px 0;
  }

  .news-detail-page .article-main li {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .news-detail-page .highlight-box {
    padding: 12px;
    margin: 12px 0;
    font-size: 14px;
  }

  .news-detail-page .highlight-box p {
    margin: 0 0 8px 0;
    font-size: 14px;
  }

  .news-detail-page .author-avatar {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .news-detail-page .author-info h4 {
    font-size: 13px;
  }

  .news-detail-page .author-info p {
    font-size: 12px;
  }

  .news-detail-page .share-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .news-detail-page .related-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .news-detail-page .related-card-title {
    font-size: 13px;
  }

  .news-detail-page .article-toc {
    padding: 12px;
    margin-bottom: 12px;
  }

  .news-detail-page .article-toc h3 {
    font-size: 12px;
    margin: 0 0 8px 0;
  }

  .news-detail-page .article-toc a {
    padding: 3px 0;
    font-size: 11px;
  }

  .news-detail-page .breadcrumb {
    padding: 6px 16px;
    font-size: 10px;
    box-sizing: border-box;
  }
}

/* Responsive - Extra Small (< 360px) */
@media (max-width: 359px) {
  .news-detail-page .news-img-box {
    height: 38vh;
    min-height: 240px;
    margin-left: calc(-50vw + 50%);
    width: 100vw;
  }

  .news-detail-page h1 {
    font-size: clamp(16px, 4.5vw, 24px);
    padding: 0 12px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .news-detail-page h1::before {
    margin-bottom: 8px;
    font-size: 9px;
    letter-spacing: 1px;
  }

  .news-detail-page > div[style*="color:#888"] {
    bottom: 16px;
    font-size: 9px;
  }

  .news-detail-page .article-wrapper {
    padding: 14px 14px;
    margin: 0 auto;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }

  .news-detail-page > div[style*="margin-top:14px"] {
    padding: 14px 12px;
    font-size: 14px;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    margin: 0 auto !important;
    box-sizing: border-box;
  }

  .news-detail-page > div[style*="margin-top:14px"] p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
    word-wrap: break-word;
  }

  .news-detail-page .breadcrumb {
    padding: 6px 14px;
    font-size: 10px;
    box-sizing: border-box;
  }
}

@media (max-width: 767px) {
  .sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    z-index: 999;
  }

  .cta-price {
    font-size: 16px;
    font-weight: 700;
    color: #d32f2f;
  }

  .cta-btn {
    background: #0d6efd;
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-img-box {
    height: 200px;
  }
}

/* ===== NEWS DETAIL - ADVANCED FEATURES ===== */
/* Responsive - Tablet (768px - 1024px) for news detail */
@media (min-width: 768px) and (max-width: 1024px) {
  .news-detail-page > div[style*="margin-top:14px"] {
    max-width: 100%;
    padding: 40px 30px;
  }

  .news-detail-page > div[style*="margin-top:14px"] h2 {
    font-size: 18px;
  }
}

/* Small Mobile Optimization (< 480px) */
@media (max-width: 479px) {
  .news-detail-page > div[style*="margin-top:14px"] h2 {
    font-size: 16px;
    margin: 16px 0 10px 0;
  }

  .news-detail-page > div[style*="margin-top:14px"] ul li {
    font-size: 14px;
  }
}
