* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f7fb;
  color: #14213d;
}

.topbar {
  background: #003b7a;
  color: white;
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.header {
  background: white;
  padding: 22px 32px;
  display: grid;
  grid-template-columns: 280px 1fr 160px;
  align-items: center;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  font-size: 48px;
  font-weight: 900;
  color: #005bac;
  border-right: 2px solid #005bac;
  padding-right: 15px;
}

.brand h2 {
  margin: 0;
  font-size: 18px;
  color: #005bac;
}

.brand p {
  margin: 5px 0 0;
  font-size: 13px;
  color: #333;
}

.search {
  display: flex;
}

.search input {
  width: 100%;
  padding: 13px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
}

.search button {
  width: 55px;
  background: #005bac;
  color: white;
  border: none;
  font-size: 18px;
  border-radius: 0 4px 4px 0;
}

.cart {
  text-align: right;
  font-size: 15px;
}

.menu {
  background: #005bac;
  padding: 0 32px;
}

.menu a {
  display: inline-block;
  color: white;
  text-decoration: none;
  padding: 15px 18px;
  font-weight: bold;
  font-size: 14px;
}

.menu a:hover {
  background: #003b7a;
}

.breadcrumb {
  max-width: 1200px;
  margin: 18px auto;
  color: #555;
  font-size: 14px;
}

.product-layout {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 270px;
  gap: 18px;
}

.card {
  background: white;
  border: 1px solid #e4e8ef;
  border-radius: 8px;
  padding: 22px;
}

.omron-logo {
  color: #005bac;
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 20px;
}

.main-image {
  width: 100%;
  height: 350px;
  object-fit: contain;
}

.thumbs {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.thumbs img {
  width: 72px;
  height: 65px;
  object-fit: contain;
  border: 1px solid #d8e2f0;
  border-radius: 6px;
  padding: 5px;
}

.product-info h1 {
  margin-top: 0;
  font-size: 28px;
}

.product-info h3 {
  margin-top: -5px;
  font-weight: normal;
}

.rating {
  color: #ff9800;
  margin: 15px 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.rating span {
  color: #333;
}

table {
  width: 100%;
  border-collapse: collapse;
}

td {
  padding: 7px 0;
  font-size: 14px;
}

td:first-child {
  color: #666;
  width: 42%;
}

.stock {
  color: green;
  font-weight: bold;
  margin-top: 18px;
}

.price {
  color: #e60000;
  font-size: 31px;
  font-weight: 900;
}

.vat {
  color: #555;
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.qty {
  width: 36px;
  height: 38px;
  border: 1px solid #ddd;
  background: white;
}

.btn {
  background: #005bac;
  color: white;
  border: none;
  padding: 11px 18px;
  border-radius: 4px;
  font-weight: bold;
}

.btn.outline {
  background: white;
  color: #005bac;
  border: 1px solid #005bac;
}

.policy-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 25px;
  font-size: 12px;
  color: #005bac;
  text-align: center;
}

.sidebar .card {
  margin-bottom: 15px;
}

.sidebar h3 {
  color: #005bac;
  margin-top: 0;
}

.red {
  color: red;
  font-size: 18px;
}

.related-item {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.related-item img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.related-item p {
  margin: 5px 0 0;
  color: #005bac;
  font-weight: bold;
}

.view-all {
  width: 100%;
  padding: 12px;
  background: white;
  border: 1px solid #005bac;
  color: #005bac;
  font-weight: bold;
  border-radius: 4px;
}

.description {
  max-width: 1200px;
  margin: 18px auto;
  padding: 0;
  overflow: hidden;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #e4e8ef;
}

.tabs div {
  padding: 16px;
  text-align: center;
  font-weight: bold;
  border-right: 1px solid #e4e8ef;
}

.tabs .active {
  background: #005bac;
  color: white;
}

.desc-content {
  padding: 25px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  line-height: 1.7;
}

.desc-content img {
  width: 100%;
  height: 220px;
  object-fit: contain;
}

.benefits {
  max-width: 1200px;
  margin: 18px auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: white;
  border: 1px solid #e4e8ef;
  border-radius: 8px;
}

.benefits div {
  padding: 22px;
  border-right: 1px solid #e4e8ef;
  color: #005bac;
}

.footer {
  background: #003b78;
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1.1fr 1fr 1.5fr;
  gap: 35px;
  padding: 35px 40px;
  line-height: 1.7;
  margin-top: 30px;
}

.footer h3 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 17px;
}

.footer p {
  margin: 6px 0;
  color: #fff;
}

.footer a {
  color: #fff !important;
  text-decoration: none;
}

.footer a:hover {
  color: #ffd54f !important;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .footer {
    grid-template-columns: 1fr;
    padding: 25px 20px;
  }
  }


@media (max-width: 900px) {

  .topbar,
  .header,
  .footer {
    grid-template-columns: repeat(2, 1fr);
  }

  
  .search select {
    display: none;
  }

  .header-right {
    justify-content: center;
  }
  }


  

  .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;
  }

  

  .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;
}



  .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;
}
.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;
}

.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;
}


