/* ===== RESET + BASE ===== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f0f2f5; /* nền giống Facebook */
  color: #333;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between; /* logo left, menu right */
  align-items: center;
  background: #fff;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Menu right */
.nav-right {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.nav-right li a {
  display: inline-block;
  padding: 6px 12px;
  line-height: 1.5;
  font-weight: 700 !important;
  text-decoration: none;
  color: #333;
  border-radius: 6px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

/* Hover for normal links */
.nav-right li a:hover {
  background: #f0f2f5;  /* light gray background */
  color: #1877f2;       /* blue text */
  transform: scale(1.1);
}

/* Special style for Home */
.nav-right li a[href="index.html"] {
  font-weight: bold;
  font-size: 1.1em;
  background: #1877f2; /* Facebook blue */
  color: #fff;
  text-transform: uppercase;
}

/* Hover for Home */
.nav-right li a[href="index.html"]:hover {
  background: #145dbf; /* darker blue */
  color: #fff;
  transform: scale(1.1);
}

/* Logo + Brand (left nav) */
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.nav-left .brand {
  color: #1877f2;
  font-weight: bold;
  font-size: 1.3em;
}
.nav-left img {
  pointer-events: none; /* để logo không chặn sự kiện click */
}

/* Hover logo + brand (no background) */
.nav-left:hover {
  transform: scale(1.1);
}
.nav-left:hover .brand { color: #145dbf; }
.nav-left:hover .nav-logo { filter: brightness(1.2); }

/* ===== HAMBURGER MENU (MOBILE) ===== */
.hamburger {
  display: none;
  font-size: 1.8em;
  cursor: pointer;
  color: #1877f2;
}

/* menu xổ xuống khi mở */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  padding: 10px 0;
}

.mobile-menu a {
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.mobile-menu a:hover {
  background: #f0f2f5;
  color: #1877f2;
}

/* mobile hiển thị hamburger, ẩn menu ngang */
@media (max-width: 768px) {
  .nav-right {
    display: none; /* ẩn menu ngang */
  }
  .hamburger {
    display: block; /* hiện nút ☰ */
  }
}


.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: 40px;
  border-radius: 50%;
}

.brand {
  font-size: 1.3em;
  font-weight: bold;
  color: #1877f2; /* xanh Facebook */
}

.nav-right {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-right li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.3s;
}

.nav-right li a:hover {
  color: #1877f2;
}

/* ===== COVER ===== */
.cover {
  position: relative;
  max-width: 1400px;   /* giới hạn bề ngang */
  height: 320px;       /* chiều cao ảnh bìa */
  margin: 20px auto;   /* căn giữa */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ảnh luôn phủ kín khung */
}

.cover-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%); /* căn giữa */
  text-align: center;
  color: white;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

.cover-overlay h2 {
  margin: 0;
  font-size: 3em;          /* chữ to nổi bật */
  font-weight: bold;
  color: #ffcc00;          /* vàng nổi */
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
}

.cover-overlay p {
  margin: 10px 0 0 0;
  font-size: 1.4em;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* ===== LAYOUT ===== */
.container {
  display: flex;
  gap: 20px;
  padding: 20px;
  max-width: 90%;
  margin: auto;
}

.sidebar {
  flex: 1;
}

.sidebar-right {
  flex: 1.3;
}

.content {
  flex: 2;
}

/* ===== SIDEBAR ===== */
.sidebar {
  text-align: center;
}

.sidebar h2 {
  margin: 10px 0 5px 0;
  font-size: 1.5em;
  color: #1877f2;
}

.sidebar p {
  margin: 15px;
  color: #666;
  font-size: 1em;
}

.profile-logo {
  width: 100px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 10px;
}

/* ===== GIỚI THIỆU ===== */
.about-text {
  margin-bottom: 15px;
}

.about-text ul {
  margin: 15px 0;
  padding-left: 20px;
}

.about-text ul li {
  margin-bottom: 8px;
  color: #444;
  line-height: 1.5;
}

.about-text .slogan {
  margin-top: 15px;
  font-size: 1.1em;
  color: #1877f2;
  font-weight: bold;
}

.about-img {
  text-align: center;
  margin-top: 15px;
}

.about-img img {
  width: 100%;
  max-width: 600px;   /* gọn, không tràn hết */
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ===== CARD ===== */
.card {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.card h3 {
  color: #1877f2;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.3em;
  font-weight: bold;
}

/* ===== ẢNH TRONG CONTENT ===== */
.img-full {
  display: block;
  max-width: 600px;
  max-height: 350px;
  object-fit: cover;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ===== KIỂU TÓC ===== */
.styles {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.style-card {
  flex: 1 1 200px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 10px;
  text-align: center;
}

.style-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.style-card h4 {
  margin: 5px 0;
  color: #1877f2;
}

.style-card p {
  font-size: 0.9em;
  color: #555;
}

/* ===== DỊCH VỤ ===== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.service-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card i {
  font-size: 2em;
  color: #1877f2;  /* xanh Facebook */
  margin-bottom: 10px;
}

.service-card h4 {
  margin: 10px 0 8px 0;
  color: #1877f2;
}

.service-card p {
  font-size: 0.9em;
  color: #555;
}

/* ===== BẢNG GIÁ ===== */
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dotted #ccc;
  font-size: 1em;
  color: #333;
}

.price-list li span:last-child {
  font-weight: bold;
  color: #1877f2;
}

#prices h4 {
  margin-top: 15px;
  margin-bottom: 8px;
  color: #333;
  font-size: 1.1em;
  font-weight: bold;
  border-left: 4px solid #1877f2;
  padding-left: 8px;
}

/* ===== FORM ĐẶT LỊCH ===== */
form input, form button {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

form button {
  background: #1877f2;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

form button:hover {
  background: #145dbf;
}

/* ===== ALBUM HÌNH ẢNH ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* ===== LIÊN HỆ ===== */
#contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  color: #333;
  font-size: 0.95em;
}

#contact i {
  color: #1877f2;
  min-width: 18px;
  text-align: center;
}

#contact p a {
  color: #1877f2;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

#contact p a:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
  margin-top: 30px;
}

.footer-bottom {
  max-width: 1200px;        /* cùng chiều ngang với .container */
  margin: auto;             /* căn giữa */
  background: #fff;
  padding: 15px;
  text-align: center;
  color: #666;
  font-size: 0.9em;
  border-top: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ===== RESPONSIVE (Mobile) ===== */
@media (max-width: 768px) {
  /* bố cục 3 cột thành cột dọc */
  .container {
    flex-direction: column;
  }

  /* đổi thứ tự hiển thị */
  .content {
    order: 1;   /* Giới thiệu cửa hàng trước */
  }
  .sidebar {
    order: 2;   /* Sidebar trái xuống sau */
  }
  .sidebar-right {
    order: 3;   /* Sidebar phải cuối cùng */
  }

  /* ảnh bìa nhỏ hơn */
  .cover {
    height: 220px;
  }
  .cover-overlay h2 {
    font-size: 1.5em;
  }

  /* navbar trên mobile */
  .nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .brand {
    display: inline;
    font-size: 1.1em;
    white-space: nowrap;
  }
  .nav-right {
    display: none;   /* ẩn menu bên phải */
  }

  /* phần giới thiệu */
  .about-wrapper, .about {
    flex-direction: column;
  }
  .about-img img {
    max-width: 100%;
  }
}
