* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f7fb;
  color: #12213a;
}

.topbar {
  background: #003b78;
  color: white;
  padding: 7px 38px;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.5fr 1fr 1fr;
  gap: 15px;
  font-size: 14px;
  align-items: center;
}

.header {
  background: white;
  padding: 18px 38px;
  display: grid;
  grid-template-columns: 360px 1fr 260px;
  align-items: center;
  gap: 25px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-size: 52px;
  font-weight: 900;
  color: #005bac;
  line-height: 1;
  border-right: 2px solid #005bac;
  padding-right: 18px;
}

.logo::after {
  content: "INDUSTRIAL";
  display: block;
  font-size: 16px;
  letter-spacing: 1px;
  margin-top: 4px;
}

.brand-text h1 {
  margin: 0;
  font-size: 20px;
  color: #005bac;
  line-height: 1.25;
}

.brand-text p {
  margin: 5px 0 0;
  font-size: 13px;
}

.search {
  display: grid;
  grid-template-columns: 1fr 150px 48px;
}

.search input,
.search select {
  height: 42px;
  border: 1px solid #d6dce7;
  padding: 0 14px;
  outline: none;
}

.search input {
  border-radius: 4px 0 0 4px;
}

.search button {
  border: none;
  background: #005bac;
  color: white;
  font-size: 18px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.header-right {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  align-items: center;
  font-size: 15px;
}

.cart-box {
  position: relative;
  width: 62px;
  height: 62px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;

  font-size: 28px;

  box-shadow:
    0 4px 15px rgba(0,0,0,0.25);

  animation:
    pulse 1.8s infinite;
}

.cart-box span {
  position: absolute;
  top: -18px;
  left: 25px;
  background: #005bac;
  color: white;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 12px;
}

.menu {
  background: #005bac;
  padding: 0 38px;
  white-space: nowrap;
  overflow-x: auto;
}

.menu a {
  display: inline-block;
  color: white;
  text-decoration: none;
  padding: 15px 18px;
  font-weight: bold;
  font-size: 14px;
}

.menu a:hover {
  background: #003b78;
}

.page {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  padding: 0 38px 0;
}

.main-content {
  min-width: 0;
}

.hero {
  background: linear-gradient(90deg, #f7fbff 0%, #eef6ff 55%, #dcebff 100%);
  min-height: 275px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-bottom: 1px solid #dfe7f2;
}

.hero-text {
  padding: 42px 36px;
}

.hero-text h2 {
  margin: 0;
  font-size: 31px;
  color: #005bac;
  line-height: 1.18;
}

.hero-text h2 span {
  font-size: 42px;
  font-weight: 900;
}

.hero-text p {
  font-size: 18px;
  margin: 12px 0 22px;
}

.hero-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  font-size: 13px;
  margin-bottom: 22px;
}

.hero-icons div {
  color: #12213a;
}

.hero-btn {
  display: inline-block;
  background: #005bac;
  color: white;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 4px;
  font-weight: bold;
}

.hero-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img img {
  width: 100%;
  height: 275px;
  object-fit: contain;
}

.section {
  background: white;
  margin-top: 12px;
  border: 1px solid #e1e7ef;
  border-radius: 6px;
  padding: 12px;
}

.section h2 {
  color: #005bac;
  margin: 0 0 12px;
  font-size: 18px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title-row a {
  color: #005bac;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.category-card {
  border: 1px solid #e1e7ef;
  border-radius: 5px;
  text-align: center;
  padding: 10px 6px;
  min-height: 100px;
  background: white;
}

.category-card img {
  width: 70px;
  height: 55px;
  object-fit: contain;
}

.category-card b {
  display: block;
  font-size: 13px;
}

.category-card span {
  font-size: 12px;
  color: #555;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e1e7ef;
  border-radius: 6px;
  text-align: center;
  padding: 12px;
  background: white;
  transition: 0.25s;
}

.product-card:hover {
  box-shadow: 0 5px 18px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.product-card img {
  width: 100%;
  height: 110px;
  object-fit: contain;
}

.product-card h3 {
  font-size: 14px;
  margin: 10px 0 4px;
  color: #003b78;
}

.product-card p {
  font-size: 13px;
  margin: 0 0 6px;
}

.product-card strong {
  display: block;
  color: #005bac;
  font-size: 18px;
  margin-bottom: 8px;
}

.product-card button {
  width: 100%;
  border: 1px solid #005bac;
  background: white;
  color: #005bac;
  padding: 8px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.product-card button:hover {
  background: #005bac;
  color: white;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: white;
  border: 1px solid #e1e7ef;
  border-radius: 6px;
  margin-top: 12px;
}

.benefits div {
  padding: 18px;
  border-right: 1px solid #e1e7ef;
  color: #005bac;
  font-size: 14px;
}

.sidebar {
  padding-top: 12px;
}

.side-card {
  background: white;
  border: 1px solid #e1e7ef;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
}

.side-card h3 {
  color: #005bac;
  margin: 0 0 12px;
  font-size: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 55px 1fr 20px;
  gap: 8px;
  border-bottom: 1px solid #e9edf4;
  padding: 10px 0;
  align-items: center;
}

.cart-item img {
  width: 55px;
  height: 45px;
  object-fit: contain;
}

.cart-item b {
  font-size: 13px;
}

.cart-item p {
  margin: 5px 0 0;
  font-size: 12px;
}

.cart-item strong {
  font-size: 13px;
}

.cart-item button {
  border: none;
  background: transparent;
  color: #999;
  font-size: 18px;
  cursor: pointer;
}

.side-total {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  font-weight: bold;
}

.side-total b {
  color: red;
}

.outline-btn,
.blue-btn,
.zalo-btn {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.outline-btn {
  border: 1px solid #005bac;
  background: white;
  color: #005bac;
}

.blue-btn {
  border: none;
  background: #005bac;
  color: white;
}

.zalo-btn {
  border: none;
  background: #005bac;
  color: white;
  font-size: 16px;
}

.side-card input,
.side-card textarea {
  width: 100%;
  border: 1px solid #d6dce7;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.side-card textarea {
  height: 95px;
  resize: none;
}

.side-card > p {
  font-size: 12px;
  color: #666;
  text-align: center;
}

.footer {
  background: #003366;
  color: white;
  margin-top: 0;
  padding: 25px 70px;
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1.1fr 1.2fr 1.5fr;
  gap: 30px;
}

.footer h3 {
  font-size: 15px;
  margin: 0 0 12px;
}

.footer p {
  font-size: 13px;
  line-height: 1.5;
  margin: 5px 0;
}

.subscribe {
  display: flex;
}

.subscribe input {
  flex: 1;
  padding: 11px;
  border: none;
}

.subscribe button {
  background: #005bac;
  color: white;
  border: none;
  padding: 11px 16px;
  font-weight: bold;
}

.copyright {
  background: #003366;
  color: white;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 12px 70px;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .header {
    grid-template-columns: 1fr;
  }

  .page {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .product-grid,
  .benefits,
  .footer {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .category-grid,
  .product-grid,
  .benefits,
  .footer,
  .hero-icons {
    grid-template-columns: 1fr;
  }
  }

  .search {
    grid-template-columns: 1fr 48px;
  }

  .search select {
    display: none;
  }

  .header-right {
    justify-content: center;
  }
 /*tạo số trang */
 
.page-title {
  margin: 25px 38px 15px;
  color: #005bac;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 0 38px 30px;
}

.product-card {
  display: block;
  text-decoration: none;
  color: #12213a;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  background: white;
  padding: 12px;
  text-align: center;
}

.product-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}

.product-card h3 {
  color: #005bac;
  font-size: 14px;
}

.product-card strong {
  color: #005bac;
  font-size: 18px;
}

/* phần liên hệ */
.contact-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 40px;
}

.contact-info, .contact-form {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.contact-form button {
  width: 100%;
  padding: 14px;
  background: #005bac;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.contact-form button:hover {
  background: #003b78;
}

@media (max-width: 650px) {
  .category-grid,
  .product-grid,
  .benefits,
  .footer,
  .hero-icons {
    grid-template-columns: 1fr;
  }
  

  .search {
    grid-template-columns: 1fr 48px;
  }

  .search select {
    display: none;
  }

  .header-right {
    justify-content: center;
  }
}

/* tạo số trang */

.page-title {
  margin: 25px 38px 15px;
  color: #005bac;
}

.contact-hero {
  background: linear-gradient(120deg, #005bac, #003b78);
  color: white;
  padding: 45px 40px;
  text-align: center;
}

.contact-hero h1 {
  margin: 0;
  font-size: 36px;
}

.contact-page {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 25px;
  padding: 35px 40px;
  background: #f4f7fb;
}

.contact-info,
.quote-card {
  background: white;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  padding: 25px;
}

.contact-info h2,
.quote-card h2 {
  color: #005bac;
  margin-top: 0;
}

.map {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.quote-sub,
.form-note {
  color: #666;
  font-size: 14px;
}

.quote-card input,
.quote-card textarea {
  width: 100%;
  padding: 13px;
  margin-bottom: 12px;
  border: 1px solid #d6dce7;
  border-radius: 6px;
}

.quote-card textarea {
  height: 120px;
  resize: none;
}

.quote-card button {
  width: 100%;
  padding: 14px;
  background: #005bac;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.quote-card button:hover {
  background: #003b78;
}

@media (max-width: 650px) {
  .category-grid,
  .product-grid,
  .benefits,
  .footer,
  .hero-icons {
    grid-template-columns: 1fr;
  }

  .search {
    grid-template-columns: 1fr 48px;
  }

  .search select {
    display: none;
  }

  .header-right {
    justify-content: center;
  }
}

/* tạo số trang */

.page-title {
  margin: 25px 38px 15px;
  color: #005bac;
}

/* xem thêm sản phẩm  */
.load-more-btn {
  display: block;
  margin: 30px auto; /* 👉 căn giữa */
  padding: 14px 32px;

  background: linear-gradient(90deg, #005bac, #007bff);
  color: #fff;

  border: none;
  border-radius: 6px;

  font-size: 16px;
  font-weight: bold;

  cursor: pointer;
  transition: 0.3s;

  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


.load-more-btn:hover {
  background: linear-gradient(90deg, #003b78, #005bac);
  transform: translateY(-2px);
}

.load-more-btn:active {
  transform: scale(0.97);
}

/*điều khiển cho chính sách bảo hành*/
.policy-page {
  max-width: 1000px;
  margin: 35px auto;
  background: #ffffff;

  padding: 45px;

  border-radius: 10px;

  box-shadow:
    0 4px 18px rgba(0,0,0,0.08);

  line-height: 1.8;
}

.policy-page h1 {
  color: #005bac;
  font-size: 34px;
  margin-bottom: 25px;

  border-bottom: 3px solid #005bac;
  padding-bottom: 12px;
}

.policy-page h2 {
  color: #003b78;
  margin-top: 35px;
  margin-bottom: 12px;

  font-size: 24px;
}

.policy-page p {
  color: #333;
  font-size: 16px;
}

.policy-page ul {
  padding-left: 22px;
}

.policy-page li {
  margin-bottom: 8px;
}

body {
  background: #f4f7fb;
}
.footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer a:hover {
  color: #ffd54f;
  text-decoration: underline;
}

.floating-contact {
  position: fixed;

  left: 18px;
  bottom: 25px;

  z-index: 9999;

  display: flex;
  flex-direction: column;

  gap: 14px;
}

.float-btn {
  width: 62px;
  height: 62px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;

  font-size: 28px;

  box-shadow:
    0 4px 15px rgba(0,0,0,0.25);

  animation:
    pulse 1.8s infinite;
}

.float-btn img {
  width: 34px;
  height: 34px;
}

.zalo {
  background: #1e88ff;
}

.phone {
  background: #19c700;
  color: white;
}

@keyframes pulse {

  0% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(0,91,172,0.5);
  }

  70% {
    transform: scale(1.06);
    box-shadow:
      0 0 0 18px rgba(0,91,172,0);
  }

  100% {
    transform: scale(1);
  }
}

.floating-contact {
  position: fixed !important;
  left: 16px !important;
  bottom: 20px !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.float-btn {
  width: 56px !important;
  height: 56px !important;
  position: relative !important;
}
