/* Reset and base styles */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: #222;
  line-height: 1.6;
}

a {
  color: #005fa3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header and Nav */
header {
  background: #111;
  color: #fff;
  padding: 0.5rem 1rem;
}

/* Logo Image */
.logo-img {
  height: auto;
  width: 75px;
  object-fit: contain;
  display: block;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.25rem;
}

.nav-links li a {
  color: #fff;
  font-weight: 500;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
}

/* Google Translate Widget */
.translate-container {
  display: inline-block;
  font-size: 0.9rem;
  font-family: inherit;
}

.cat-feature {
  width: 100%;
  max-width: 450px;           /* Set max width for uniform size */
  min-height: 220px;
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 100% auto;
  background-color: #ffffff;

  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  color: #000;
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  word-wrap: break-word;
  box-sizing: border-box;
}



.cat-feature:hover {
  transform: translateY(-4px);
}

.cat-feature h3 {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: bold;
}

.cat-feature p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #000;
}

.cat-feature h3,
.cat-feature p {
  white-space: normal;
  overflow-wrap: break-word;
}


.cat-feature .btn-primary {
  position: relative;
  z-index: 2;
}


.cat-feature-text {
  width: 70%;
  color: #000;
  word-wrap: break-word;
}

.cat-feature-text h3,
.cat-feature-text p {
  white-space: normal;
  overflow-wrap: break-word;
}

.cat-feature-text .btn-primary {
  margin-top: 1rem;
}

.product-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1rem;
  max-width: 250px;
  text-align: center;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card h3 {
  font-size: 1rem;
  margin: 0.5rem 0 0.25rem;
  color: #222;
  min-height: 2.5rem;
}

.product-card .product-details {
  font-size: 0.9rem;
  color: #666;
  margin: 0.25rem 0 0.75rem;
  min-height: 2rem;
}

.product-thumb {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.product-detail {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  align-items: flex-start;
}

.product-image-container {
  width: 100%;
  max-width: 500px;
  height: 500px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-detail-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}



.product-detail-info {
  flex: 1;
  min-width: 240px;
  max-width: 500px;
  margin: 0 auto;
}

.login-prompt {
  background: #f9f9f9;
  padding: 0.75rem;
  border-left: 4px solid #005fa3;
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.login-prompt a {
  font-weight: bold;
  text-decoration: underline;
}

.product-detail-info h2 {
  margin-top: 0;
}

.qr-code {
  max-width: 150px;
  margin: 1rem auto;
  display: block;
}

/* Cart Table Responsiveness */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.cart-table th,
.cart-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
  vertical-align: middle;
}

.cart-table img.cart-thumb {
  max-height: 60px;
  object-fit: contain;
  vertical-align: middle;
  border-radius: 6px;
}

@media screen and (max-width: 768px) {
  .cart-table,
  .cart-table thead,
  .cart-table tbody,
  .cart-table th,
  .cart-table td,
  .cart-table tr {
    display: block;
    width: 100%;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table tr {
    margin-bottom: 1rem;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }

  .cart-table td {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
  }

  .cart-table td::before {
    content: attr(data-label);
    font-weight: bold;
    flex: 0 0 50%;
    color: #333;
  }
}


.features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.goog-te-gadget {
  color: #333;
  font-family: inherit;
}

.goog-te-gadget select {
  background: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #222;
  cursor: pointer;
}

/* Prevent Google top frame from overlapping header */
body {
  position: relative;
  top: 0 !important;
  transition: margin-top 0.3s ease;
}

.goog-te-banner-frame {
  position: absolute;
  width: 100%;
  z-index: 10000;
}

.translate-bar {
  background-color: #f2f2f2;
  padding: 0.5rem 1rem;
  text-align: left;
  position: relative;
  z-index: 10001;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}


body.has-translate-banner {
  margin-top: 40px; /* Adjust if banner is taller */
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #222;
  padding: 1rem;
}

.mobile-nav a {
  color: #fff;
  padding: 0.5rem 0;
}

.mobile-nav.hidden {
  display: none;
}

@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-nav {
    display: flex;
  }
}

/* Hero */
.hero {
  background: url('/assets/images/slide1.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 5rem 1rem;
  position: relative;
}

.hero-content {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  max-width: 600px;
  margin: auto;
  border-radius: 8px;
}

.hero-content h1 {
  font-size: 2rem;
}

.hero-content a {
  color: #fff;
  text-decoration: none;
}

.hero-content a:hover {
  text-decoration: underline;
}

.btn-primary {
  background: #007acc;
  color: white;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 4px;
  display: inline-block;
  margin-top: 1rem;
}

/* Sections */
.features, .who-we-serve, .compliance {
  padding: 3rem 1rem;
  max-width: 1000px;
  margin: auto;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.feature {
  flex: 1 1 30%;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.hero-slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slider img.active {
  opacity: 1;
  z-index: 1;
}

.content-logo-wrapper {
  display: flex;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
}

.content-logo {
  width: 300px;
  height: auto;
  margin: 0 auto 0 auto;
  display: block;
}

/* Footer */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1.5rem 1rem;
  background: #111;
  color: #eee;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1 1 100%;
  text-align: center;
  margin-bottom: 1rem;
}

.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
}

.footer-logo {
  width: 150px;
  height: auto;
}

@media screen and (min-width: 768px) {
  .footer-left,
  .footer-center,
  .footer-right {
    flex: 1;
    margin-bottom: 0;
  }
}

.footer-disclaimer {
  font-size: 0.875rem;
  color: #ccc;
  text-align: center;
  margin-top: 1rem;
  padding: 0 1rem;
}

footer a {
  color: #eee;
  font-weight: 500;
}

#age-verification-popup .popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#age-verification-popup .popup-box {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 300px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

#age-verification-popup .popup-box h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

#age-verification-popup .popup-box button {
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
}

.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.related-item {
  width: 120px;
  text-align: center;
}

.related-item img.thumbnail {
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* === Translator Bar Enhancements === */
.translate-container {
  background-color: #000;        /* black bar to match header */
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;         /* push to top-right */
}

.translate-label {
  color: #fff;                   /* white text for contrast */
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
}

#google_translate_element {
  display: flex;
  justify-content: flex-end;     /* dropdown aligned right */
}

.goog-te-gadget select {
  background: #fff;              /* dropdown stands out */
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 0.9rem;
  color: #000;
  cursor: pointer;
}

.translate-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid red;     /* upward red triangle */
  margin-top: 4px;
}

#orderOverlay {
	display:none;
	position:fixed;
	inset:0;
	background:rgba(0,0,0,.6);
	z-index:9999;
	align-items:center;
	justify-content:center;
}

#orderOverlay .overlay-content {
	background:#fff;
	padding:16px;
	border-radius:12px;
	max-width:700px;
	max-height:90%;
	overflow:auto;
}

