
/* =============================================
   ADDITIONS — Reviews, Recruit, Gallery, Tuyen dung
   ============================================= */

/* ---- REVIEWS SECTION ---- */
.reviews-section {
  background: var(--gray-bg);
  padding: 36px 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.review-card {
  background: var(--white);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
  transform: translateY(-3px);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-card__header > div:nth-child(2) { flex: 1; }
.review-card__header strong { display: block; font-size: 14px; color: #222; }
.review-card__header span   { font-size: 11px; color: #999; }
.review-card__stars { color: #f39c12; font-size: 14px; letter-spacing: 1px; }

.review-card > p {
  font-size: 13px;
  color: #555;
  line-height: 1.65;
  font-style: italic;
  flex: 1;
  position: relative;
  padding-left: 14px;
}
.review-card > p::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 28px;
  color: var(--orange);
  font-style: normal;
  line-height: 1;
}

.review-card__service {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--orange);
  background: var(--orange-pale);
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
}
.review-card__service i { font-size: 11px; }

/* Facebook review card */
.review-card--fb {
  background: linear-gradient(135deg, #1877f2 0%, #0d5ec9 100%);
  border: none;
  color: #fff;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
}
.review-card--fb:hover { transform: translateY(-3px); border: none; }
.review-fb-content { width: 100%; }
.review-fb-icon {
  font-size: 48px;
  color: rgba(255,255,255,0.9);
  display: block;
  margin-bottom: 12px;
}
.review-card--fb h3 { font-size: 17px; color: #fff; margin-bottom: 8px; }
.review-card--fb p  { font-size: 13px; color: rgba(255,255,255,0.85); margin-bottom: 4px; font-style: normal; padding: 0; }
.review-card--fb p::before { display: none; }
.review-stars-big { font-size: 22px; color: #ffd54f; letter-spacing: 3px; margin: 8px 0; }

/* Stats bar */
.reviews-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--orange);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.stat-item {
  background: var(--white);
  text-align: center;
  padding: 20px 16px;
  transition: background 0.2s;
}
.stat-item:hover { background: var(--orange-pale); }
.stat-item strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1.1;
}
.stat-item span { font-size: 12px; color: #777; margin-top: 4px; display: block; }

/* ---- RECRUIT BANNER ---- */
.recruit-banner {
  background: linear-gradient(135deg, #1a237e 0%, #1565c0 50%, #0288d1 100%);
  padding: 24px 0;
}
.recruit-banner__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.recruit-banner__icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  flex-shrink: 0;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.recruit-banner__content { flex: 1; }
.recruit-banner__content h2 {
  font-size: 20px;
  color: #fff;
  font-weight: 800;
  margin-bottom: 4px;
}
.recruit-banner__content > p { font-size: 13px; color: rgba(255,255,255,0.9); margin-bottom: 10px; }
.recruit-banner__tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.recruit-banner__tags span {
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.recruit-banner__tags span i { color: #69f0ae; }
.recruit-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ---- COMPANY GALLERY ---- */
.company-gallery {
  background: var(--white);
  padding: 36px 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.gallery-item--wide {}

.gallery-fb-embed {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.gallery-fb-placeholder {
  background: linear-gradient(135deg, #1877f2 0%, #0d5ec9 100%);
  padding: 48px 36px;
  text-align: center;
  color: #fff;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.gallery-fb-placeholder i {
  font-size: 60px;
  color: rgba(255,255,255,0.9);
}
.gallery-fb-placeholder strong { font-size: 20px; display: block; margin-bottom: 6px; }
.gallery-fb-placeholder p  { font-size: 13px; color: rgba(255,255,255,0.85); }

.gallery-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gallery-info__card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s;
}
.gallery-info__card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-sm);
  background: var(--orange-pale);
}
.gallery-info__card > i {
  font-size: 22px;
  color: var(--orange);
  min-width: 24px;
  margin-top: 2px;
}
.gallery-info__card h3 { font-size: 14px; color: #222; margin-bottom: 4px; }
.gallery-info__card p  { font-size: 12px; color: #777; line-height: 1.5; margin: 0; }

.gallery-fb-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #1877f2;
  color: #fff !important;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s;
  margin-top: 4px;
}
.gallery-fb-link:hover { background: #1565c0; color: #fff !important; }
.gallery-fb-link i:last-child { font-size: 11px; }

/* ---- TUYEN DUNG PAGE ---- */
.recruit-page { padding: 36px 0; background: var(--gray-bg); min-height: 60vh; }
.recruit-hero {
  background: linear-gradient(135deg, #1a237e, #1565c0);
  color: #fff;
  padding: 48px 0;
  text-align: center;
  margin-bottom: 32px;
}
.recruit-hero h1 { font-size: 32px; margin-bottom: 10px; }
.recruit-hero p   { font-size: 16px; opacity: 0.9; }
.recruit-box {
  background: #fff;
  border-radius: 10px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  max-width: 860px;
  margin: 0 auto;
}
.recruit-box h2 {
  font-size: 20px;
  color: var(--orange);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
  display: flex;
  align-items: center;
  gap: 8px;
}
.recruit-list { list-style: none; }
.recruit-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.recruit-list li::before {
  content: '✔';
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.recruit-salary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.salary-card {
  background: var(--orange-pale);
  border: 1px solid #ffcc80;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.salary-card i  { font-size: 24px; color: var(--orange); margin-bottom: 6px; display: block; }
.salary-card strong { display: block; font-size: 15px; color: #222; margin-bottom: 3px; }
.salary-card span   { font-size: 12px; color: #777; }

.recruit-contact-box {
  background: linear-gradient(135deg, var(--orange), #ff8f00);
  border-radius: 10px;
  padding: 24px;
  color: #fff;
  text-align: center;
  margin-top: 24px;
}
.recruit-contact-box h3 { font-size: 18px; margin-bottom: 12px; }
.recruit-contact-box .contact-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- RESPONSIVE ADDITIONS ---- */
@media (max-width: 1024px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-stats { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .recruit-banner__inner { flex-direction: column; text-align: center; }
  .recruit-banner__tags { justify-content: center; }
  .recruit-banner__actions { justify-content: center; }
  .recruit-salary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .reviews-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-item strong { font-size: 22px; }
}


/* ---- SEARCH SUGGESTIONS DROPDOWN ---- */
.header__search {
  position: relative;
}
.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  z-index: 9999;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  display: none;
}
.search-suggestions.show {
  display: block;
}
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: #333;
  transition: background 0.15s;
}
.suggestion-item:last-child {
  border-bottom: none;
}
.suggestion-item:hover {
  background: #fff7ed;
}
.suggestion-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #eee;
  flex-shrink: 0;
}
.suggestion-item__info {
  flex: 1;
  min-width: 0;
}
.suggestion-item__name {
  font-size: 13.5px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestion-item__specs {
  font-size: 11.5px;
  color: #777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.suggestion-item__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  margin-top: 2px;
}
.suggestion-footer {
  padding: 8px 14px;
  background: #f8fafc;
  text-align: center;
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
  border-top: 1px solid #eee;
}
.suggestion-footer:hover {
  background: #f1f5f9;
  text-decoration: underline;
}

/* ===== V2 additions ===== */
@media print {
  .float-btns, .back-to-top, .top-bar, .header, .navbar, .footer, .cart-sidebar, #overlay, .modal { display: none !important; }
  body { background: #fff !important; }
}
.product-card__btn[disabled], .btn-action[disabled] { pointer-events: none; }
.toast { z-index: 100000; }
.search-suggestions { z-index: 999; }

/* ===== V3.1: MENUBAR ĐÓNG BĂNG + PANEL DANH MỤC ===== */
html { scroll-padding-top: 64px; }
.navbar__menu { flex-wrap: nowrap; }
.navbar__menu > li > a { white-space: nowrap; padding: 13px 9px; font-size: 12.5px; }
.navbar__categories { position: relative; white-space: nowrap; padding: 0 14px; font-size: 13px; cursor: pointer; }
.cat-panel {
  position: absolute; top: 100%; left: 0; width: 620px; max-width: 92vw;
  background: #fff; border-radius: 0 0 10px 10px; box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  padding: 14px; display: none; grid-template-columns: 1fr 1fr; gap: 8px; z-index: 1002; cursor: default;
}
.cat-panel.open { display: grid; }
.cat-panel__item {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px;
  color: #222 !important; font-size: 14px; font-weight: 600; background: #f8fafc; border: 1px solid #eef2f7;
}
.cat-panel__item i { color: var(--orange); font-size: 17px; width: 22px; text-align: center; }
.cat-panel__item em { margin-left: auto; font-style: normal; font-weight: 500; font-size: 12px; color: #888; }
.cat-panel__item:hover { background: var(--orange-pale); border-color: #ffd8b8; }
.cat-panel__foot { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px dashed #e2e8f0; padding-top: 10px; }
.cat-panel__foot a { font-size: 13px; font-weight: 700; color: var(--blue) !important; padding: 6px 10px; background: #e3f2fd; border-radius: 20px; }
.cat-panel__foot a:hover { background: #bbdefb; }
@media (max-width: 640px) { .cat-panel { grid-template-columns: 1fr; } }
