@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700&display=swap');
:root {
  --navy:       #0a2342;
  --navy-light: #163966;
  --gold:       #d4b26a;
  --gold-light: #f5edcc;
  --cream:      #f9f7f2;
  --white:      #ffffff;
  --gray-100:   #f2f1ef;
  --gray-200:   #e2e0db;
  --gray-400:   #9e9b94;
  --text-main:  #1a1917;
  --text-muted: #6b6861;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --shadow-sm:  0 2px 10px rgba(0,0,0,.06);
  --shadow-md:  0 8px 24px rgba(0,0,0,.12);
  --transition: .3s ease;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: 'Be Vietnam Pro', Arial, sans-serif;
  background: var(--cream);
  color: var(--text-main);
  overflow-x: hidden;
}

a { text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }


#wrapper {
  width: 100%;
  background: var(--white);
}

#container {
  width: 80%;
  margin: auto;
}


#top {
  background: var(--navy);
  color: #d8e6f0;
  font-size: 13px;
  padding: 8px 0;
}

#topcontent-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-cate a {
  color: #d8e6f0;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.list-cate a:hover {
  background: var(--gold);
  color: var(--white);
}


#banner {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

#banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  min-height: 110px;
}

#logo img {
  width: 120px;
  border-radius: 18px;
  border: 2px solid var(--gold-light);
  transition: var(--transition);
}

#logo img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

#deliver,
#support,
#time {
  display: flex;
  align-items: center;
  gap: 10px;
}

#deliver img,
#support img,
#time img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

#cart {
  display: flex;
  align-items: center;
  justify-content: center;
}

#cart a {
  height: 52px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  color: var(--white);
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

#cart a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.search-section {
  background: #f4f7fb;
  padding: 24px 0;
}

.search-box {
  max-width: 820px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 8px;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--navy);
  box-shadow: 0 6px 24px rgba(10,35,66,.15);
}

.search-category {
  border: none;
  outline: none;
  background: #f7f9fc;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 14px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  height: 46px;
  padding: 0 12px;
}

.search-btn {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
}

.search-btn:hover { transform: scale(1.05); }

#menu {
  background: linear-gradient(90deg, var(--navy), var(--navy-light));
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

#menu ul {
  display: flex;
  justify-content: center;
}

#menu > #container > ul > li > a,
#menu > div > ul > li > a {
  display: block;
  padding: 16px 22px;
  color: #d8e6f0;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}
#menu li a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--gold);
  transition: var(--transition);
}

#menu > #container > ul > li > a:hover,
#menu > div > ul > li > a:hover { color: var(--gold-light); }

#menu li a:hover::after {
  width: 100%;
  left: 0;
}

.dropdown { position: relative; }

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 260px;
  background: #ffffff;
  border-radius: 18px;
  padding: 10px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  opacity: 0;
  visibility: hidden;
  transition: .3s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.dropdown:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.submenu li a {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 20px;
  font-size: 15px;
  color: #1a1917  ;
  background: #ffffff  ;
  white-space: nowrap;
  opacity: 1  ;
}

.submenu li a:hover {
  background: #f5edcc  ;
  color: #0a2342  ;
  padding-left: 28px;
}
#list-cate {
  width: 24%;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.category-menu li {
  border-bottom: 1px solid var(--gray-200);
}

.category-menu li:last-child { border-bottom: none; }

.category-menu li a {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 18px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}

.category-menu li a:hover {
  background: var(--gold-light);
  color: var(--navy);
  padding-left: 24px;
}

#slogan-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-md);
  width: 24%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#slogan-box::before,
#slogan-box::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}

#slogan-box::before {
  width: 200px; height: 200px;
  top: -60px; right: -60px;
}

#slogan-box::after {
  width: 140px; height: 140px;
  bottom: -40px; left: -40px;
}

.slogan-icon {
  font-size: 40px;
  margin-bottom: 14px;
  display: block;
}

.slogan-text {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.65;
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}

.slogan-divider {
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 0 auto;
}

#slideshow {
  flex: 1;
  height: 500px;
  border-radius: 25px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}

#slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.section-title {
  width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(10,35,66,.12);
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-light));
}

.section-title h1 {
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
}

.ads {
  width: 100%;
  display: flex;
  gap: 25px;
  margin-top: 40px;
}

.ads img {
  flex: 1;
  height: 220px;
  border-radius: 25px;
  object-fit: cover;
  cursor: pointer;
  transition: var(--transition);
}

.ads img:hover { transform: scale(1.03); }

.top-home {
  width: 100%;
  display: flex;
  gap: 25px;
  margin-top: 40px;
}

.cate {
  width: 100%;
  margin-top: 60px;
}

.cate h1 {
  width: fit-content;
  background: linear-gradient(90deg, #001a4d, #003b8e);
  color: var(--white);
  padding: 12px 30px;
  border-radius: var(--radius-md);
  font-size: 20px;
  margin-bottom: 25px;
}

.product-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.product {
  flex: 1 1 calc(25% - 20px);
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 25px;
  text-align: center;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.product img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 0 auto;
  transition: var(--transition);
}

.product:hover img { transform: scale(1.05); }

.product h2 {
  margin-top: 12px;
  font-size: 16px;
}

.product h2:first-of-type { color: var(--text-main); }
.product h2:last-of-type  { color: var(--gold); font-size: 18px; }

#footer {
  background: linear-gradient(135deg, var(--navy), #061c38);
  color: #d8e6f0;
  margin-top: 60px;
  padding: 50px 0 25px;
}

#footer-content {
  width: 90%;
  max-width: 1320px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1 1 calc(25% - 30px);
  min-width: 0;
}

.footer-col h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--gold-light);
}

.footer-col ul { padding: 0; }

.footer-col ul li { margin-bottom: 14px; }

.footer-col ul li a,
#footer a {
  color: #d8e6f0;
  transition: var(--transition);
}

.footer-col ul li a:hover,
#footer a:hover {
  color: var(--gold-light);
  padding-left: 5px;
}

.footer-col p {
  line-height: 1.8;
  color: #d8e6f0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 35px;
  padding-top: 20px;
  text-align: center;
  color: #cfd8e3;
  font-size: 14px;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb {
  background: var(--navy-light);
  border-radius: 10px;
}



@media (min-width: 1440px) {
  #container { width: 1320px; }
}


@media (max-width: 1200px) {
  #container { width: 95%; }
}


@media (max-width: 1024px) {
  #container { width: 92%; }

  .top-home { flex-direction: column; }

  #list-cate,
  #slogan-box { width: 100%; }

  #slideshow { width: 100%; height: 400px; }

  .slogan-text { font-size: 16px; }

  .section-title h1 { font-size: 28px; line-height: 55px; }

  .product { min-width: calc(50% - 15px); }

  .ads { flex-wrap: wrap; }
  .ads img { min-width: calc(50% - 15px); }
}

@media (max-width: 992px) {
  #banner-content {
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    text-align: center;
  }

  .search-box { max-width: 100%; }

  #menu ul { flex-wrap: wrap; justify-content: center; }
  #menu li a { padding: 14px 18px; }

  .product { flex: 1 1 calc(50% - 20px); }
}

@media (max-width: 768px) {
  #container { width: 95%; }

  #topcontent {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  #banner-content { flex-direction: column; text-align: center; }

  #deliver, #support, #time { display: none; }

  #cart, #cart a { width: 100%; }

  #menu { overflow-x: auto; }

  .search-box { flex-direction: column; }
  .search-category, .search-input, .search-btn { width: 100%; }

  #list-cate, #slogan-box { display: none; }

  #slideshow { height: 250px; }

  .product { flex: 1 1 calc(50% - 8px); padding: 15px; border-radius: 18px; }
  .product img { width: 120px; height: 120px; }
  .product h2 { font-size: 15px; }

  .product-list { gap: 15px; }

  .ads { flex-direction: column; }
  .ads img { width: 100%; height: 180px; }

  .cate h1 { font-size: 16px; padding: 10px 20px; }

  .section-title h1 { font-size: 22px; line-height: 50px; border-radius: 14px; }

  .category-menu li a { font-size: 15px; padding: 16px; }

  #footer-content { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-col { flex: 1 1 100%; min-width: 100%; }

  .submenu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    transform: none;
  }

  .dropdown:hover .submenu { transform: none; }
}

@media (max-width: 480px) {
  .product { min-width: calc(50% - 8px); }
  .product img { width: 100px; height: 100px; }
  .product h2 { font-size: 13px; }

  .section-title h1 { font-size: 18px; }

  #footer-content { gap: 20px; }
  .footer-col { width: calc(50% - 10px); flex: unset; }
}