* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html,
body {
  height: 100%;
  font-family: Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial;
  background: #f7fbfc;
  color: #0b2a2f;
  overflow-x: hidden;
}

/* Header */
header {
  background: #faf8f8;
  border-bottom: 1px solid #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  width: 100%;
  margin: 0;
  padding: 15px 30px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Brand Section */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  max-width: 45px;
  height: auto;
  display: block;
}

.brand-text a {
  text-decoration: none;
  color: #27302f;
  font-weight: 800;
  font: size 20px;
  line-height: 1.1;
}

.Bname a {
  color: #00c2e8;
}

/* Search Bar */
/* Use shared header/search styles from home.css */
.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 720px;
  margin: 0 auto
}

.search-bar input {
  width: 100%;
  padding: 12px 54px 12px 16px;
  border: 1px solid #d9d9de;
  border-radius: 26px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08), 0 3px 8px rgba(0, 0, 0, .12);
  font-size: 15px;
  outline: none;
  background: #e9e9ec
}

.search-bar .filter-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  cursor: pointer;
  color: #00c2e8
}

.filter-select {
  position: absolute;
  left: 42px;
  top: 50%;
  transform: translateY(-50%);
  height: 28px;
  border: none;
  background: #fff;
  color: #333;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 13px
}

.search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #d9d9de;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  color: #333;
  cursor: pointer
}

/* Right Section */
.right-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-right: 10px;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 20px;
}

.nav-links a:hover {
  opacity: 0.8;
  color: rgba(63, 74, 172, 0.932);
}

/* Language Toggle */
.lang-toggle button {
  background-color: #eb29a0;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s ease;
}

.lang-toggle button:hover {
  background-color: #c2185b;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  user-select: none;
}

/* ===== Responsive design ===== */
@media (max-width: 850px) {
  .nav {
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }

  .brand {
    flex-direction: row;
    align-items: center;
    text-align: left;
    width: 100%;
  }

  .search-bar {
    width: 100%;
    flex: 0;
    left: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
  }

  .search-bar input {
    width: 100vw;
    max-width: none;
    padding: 8px 40px;
  }

  .search-bar .filter-icon {
    position: absolute;
    left: 2.2%;
    height: 18px;
    cursor: pointer;
  }

  .search-bar .search-icon {
    position: absolute;
    right: 3%;
    height: 18px;
    cursor: pointer;
  }

  .lang-toggle {
    position: absolute;
    right: 55px;
    top: 20px;
  }

  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 15px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #f8f8f800;
    padding: 10px 0;
    margin-top: 10px;
    border-radius: 6px;
    text-align: center;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
    font-weight: 500;
    color: #333;
  }
}

/* ----------MAIN SECTION------------ */
/* Categories */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 18px 0
}

.cat {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  border: 1px dashed #e6f0ef
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 230px));
  justify-content: center;
  gap: 16px;
  margin: 18px 0;
}

.p-card {
  background: #fff;
  border: 1px solid #e6f0ef;
  border-radius: 10px;
  padding: 12px;
}

.p-card .view-more {
  border: none
}

.p-card .p-price {
  color: #00b3ff;
  font-weight: 600;
  white-space: nowrap
}

.p-brand {
  font-weight: 700;
  color: #00c2e8;
}

.p-generic {
  font-size: 14px;
  color: #333;
}

.p-cat {
  font-size: 12px;
  color: #777;
}

/* Hide Google Translate UI banner/menu */
body .goog-te-banner-frame,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-menu-value,
.goog-te-menu-frame,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
}

/* FOOTER SECTION */
/* Footer */
.footer {
  background-color: #221f1f;
  color: #fff;
  padding: 40px 20px 10px;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer-left {
  flex: 1 1 220px;
  text-align: left;
}

.footer-left a {
  text-decoration: none;
  color: inherit;
}

.footer-left a:hover {
  text-decoration: none;
  color: inherit;
}

.footer-logo {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
  margin-left: 17px;
}

.footer-brand {
  color: #00c2e8;
  font-size: 20px;
  margin: 5px 0;
}

.footer-tagline {
  font-weight: 600;
  margin-bottom: 10px;
  /* ensure tagline stays white */
  color: #fff;
}

.footer-address {
  font-size: 14px;
  color: #ddd;
  transition: color 0.3s;
}

.footer-section {
  flex: 1 1 150px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 6px;
}

.footer-section a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #00c2e8;
  text-decoration: underline;
}

.footer-social {
  flex: 1 1 120px;
}

.footer-social h3 {
  margin-bottom: 10px;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-icons a img {
  width: 32px;
  height: 32px;
  margin: 6px 0;
  transition: transform 0.3s;
}

.social-icons a:hover img {
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid #666;
  margin-top: 30px;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 14px;
  color: #ccc;
  text-align: center;
}

/* Responsive */
@media (max-width: 850px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-left {
    text-align: center;
  }

  .footer-section {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .social-icons {
    flex-wrap: nowrap;
  }

  .social-icons a img {
    margin: 0 6px;
  }
}