/* 
  HD-INOX Global Styles (main.css)
  Shared Variables, Resets, Global Layout & Components
*/

@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800;900&family=Oswald:wght@500;700&display=swap");

:root {
  --blue-primary: #000e52;
  --blue-main-one: #003293;
  --blue-hover: #00157a;
  --blue-bright: #00aeef;
  --cyan-accent: #00aeef;
  --text-main: #222222;
  --text-light: #555555;
  --bg-light: #f4f6f8;
  --border-color: #e5e5e5;
  --white: #ffffff;
  --danger: #d32f2f;
  --color-main-icon: #1c1b1f;
  --font-family: "Be Vietnam Pro", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--text-main);
  background: white;
  line-height: 1.85;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family);
  font-weight: 600;
  line-height: 1.4;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

.container {
  width: 1265px;
  max-width: 95%;
  margin: 0 auto;
  padding: 0 15px;
}

/* UTILS */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-wrapper {
  padding: 50px 0;
}

/* --- HEADER COMPONENTS --- */
.top-promo-bar {
  background-color: var(--blue-primary);
  color: white;
  font-size: 12px;
  padding: 8px 0;
  font-weight: 500;
}
.top-bar-content {
  overflow: hidden; /* Hide overflow */
}
.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: flex;
  gap: 50px; /* Space between items */
  animation: marquee-scroll 20s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex;
  align-items: center;
}
@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%); /* Scroll half way (assuming content is doubled/repeated enough) */
  }
}
.top-bar-content a {
  color: #ffd700;
  font-weight: 700;
  margin-left: 5px;
}

.main-header {
  background: white;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: -1px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.menu-toggle {
  display: none;
  background: transparent;
  font-size: 20px;
  color: #333;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--blue-primary);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-wrapper {
  flex: 1;
  max-width: 550px;
  position: relative;
}
.search-form {
  display: flex;
  align-items: center;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f5f5f5;
  overflow: hidden;
}
.search-input {
  flex: 1;
  border: none;
  padding: 0 15px;
  font-size: 13px;
  outline: none;
  background: transparent;
}
.search-btn-icon {
  padding: 0 15px;
  background: transparent;
  color: #666;
  font-size: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.action-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.action-item:hover {
  color: var(--blue-primary);
}

.nav-bar {
  background: white;
  border-bottom: 1px solid #eee;
}
.nav-list {
  display: flex;
  justify-content: space-between;
}
.nav-item {
  position: relative;
}
.nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 15px 0px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #333;
}
.nav-item a:hover {
  color: var(--blue-primary);
}
.nav-item a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--blue-primary);
  transition: width 0.3s;
}
.nav-item a:hover::after {
  width: 100%;
}

/* Submenu Desktop */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--blue-primary);
  display: none;
  padding: 10px 0;
  z-index: 1500;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}
.submenu li a {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  color: #555;
  border: none;
  display: block;
}
.submenu li a:hover {
  background: #f9f9f9;
  color: var(--blue-primary);
  padding-left: 25px;
}
.submenu li a::after {
  display: none;
}

.nav-item:hover > .submenu {
  display: block;
}
.nav-arrow {
  font-size: 10px;
  margin-left: 3px;
  color: #888;
}

/* --- FOOTER COMPONENTS --- */
.footer-top {
  background: white;
  padding: 40px 0;
  border-top: 1px solid #eee;
}
.features-grid {
  display: flex;
  justify-content: space-around;
  text-align: center;
}
.feature-box i {
  font-size: 24px;
  color: var(--blue-primary);
  margin-bottom: 10px;
}
.feature-box h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.main-footer {
  background: var(--blue-primary);
  color: white;
  padding: 80px 0 40px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-top-section {
  align-items: flex-start;
}
.footer-brand-side {
  flex: 1;
  min-width: 300px;
}
.footer-brand-side .logo {
  color: white;
  margin-bottom: 25px;
  font-size: 32px;
}
.social-circles {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  transition: 0.3s;
}
.social-icon:hover {
  background: var(--blue-bright);
  transform: translateY(-3px);
  color: white;
}
.footer-address-info h4 {
  font-size: 20px;
  margin-bottom: 15px;
  color: white;
  text-transform: none;
}
.footer-address-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-newsletter-side {
  flex: 1;
  min-width: 300px;
}
.footer-newsletter-side h4 {
  font-size: 22px;
  margin-bottom: 25px;
  color: white;
  text-transform: none;
}
.newsletter-form .input-group {
  display: flex;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 4px;
  max-width: 450px;
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 15px;
  color: white;
  outline: none;
  font-family: inherit;
}
.newsletter-form button {
  background: white;
  color: var(--blue-primary);
  padding: 0 25px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  transition: 0.3s;
}
.newsletter-form button:hover {
  background: var(--blue-bright);
  color: white;
}

.footer-links-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 50px;
}
.f-col h4 {
  font-size: 18px;
  margin-bottom: 25px;
  color: white;
  font-weight: 700;
  text-transform: none;
}
.f-links li {
  margin-bottom: 12px;
}
.f-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: 0.3s;
}
.f-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
}
.f-copy {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* --- RESPONSIVE BASICS --- */
@media (max-width: 991px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 10px;
  }

  .top-promo-bar {
    font-size: 11px;
    text-align: center;
  }
  .top-bar-content {
    justify-content: center;
  }
  .top-bar-content a {
    display: none;
  } /* Hide "Mua ngay" on very small if needed */

  .main-header {
    padding: 10px 0;
  }
  .header-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .logo {
    font-size: 22px;
    grid-column: 1;
  }

  .header-actions {
    grid-column: 2;
    gap: 15px;
  }
  .action-item span {
    display: none;
  } /* Only icons on mobile */
  .action-item i {
    font-size: 18px;
  }

  .menu-toggle {
    display: block;
    grid-row: 2;
    grid-column: 1;
    align-self: center;
  }

  .search-wrapper {
    grid-row: 2;
    grid-column: 1 / span 2;
    max-width: 100%;
    margin-left: 35px;
  }
  .search-form {
    height: 36px;
  }

  .nav-bar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 2000;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 60px;
  }
  .nav-bar.active {
    left: 0;
  }
  .nav-list {
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
    padding-bottom: 50px;
  }
  .nav-item a {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    width: 100%;
  }
  .nav-item a::after {
    display: none;
  }

  /* Submenu Mobile */
  .submenu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    display: none;
    background: #fcfcfc;
    padding: 0;
  }
  .submenu.active {
    display: block;
  }
  .submenu li a {
    padding: 12px 35px;
    background: transparent;
    border-bottom: 1px solid #f0f0f0;
  }
  .nav-item.open > .submenu {
    display: block;
  }
  .nav-item.open > a .nav-arrow {
    transform: rotate(180deg);
  }
  .nav-arrow {
    transition: transform 0.3s;
  }

  .footer-row {
    flex-direction: column;
    gap: 30px;
  }
  .footer-links-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .f-links a:hover {
    padding-left: 0;
  }
  .newsletter-form .input-group {
    max-width: 100%;
  }
  .logo {
    justify-content: center;
  }
  .social-circles {
    justify-content: center;
  }
  .social-icon:hover {
    transform: none;
  }
}

/* --- BREADCRUMBS --- */
.breadCrumbs {
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  /* margin-bottom: 30px; */
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumb-item {
  display: flex;
  align-items: center;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 8px;
  margin-left: 3px;
  color: #ccc;
}
.breadcrumb-item a {
  color: var(--text-light);
  font-weight: 500;
}
.breadcrumb-item a:hover {
  color: var(--blue-primary);
}
.breadcrumb-item.active {
  color: var(--blue-primary);
  font-weight: 700;
}
.wrap-content {
  max-width: 1265px;
  margin: auto;
  padding: 0 15px;
}
