* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto Serif', serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 100%;
  margin: 0;
  background-color: white;
  overflow: hidden;
}

.top-bar {
  width: 100%;
  height: 50px;
  background-color: #073550;
  top: 0;
  left: 0;
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
}

header {
  display: flex;
  align-items: center;
  padding: 20px 40px;
  background-color: #060807;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fixed-width-img {
  width: 1000px; /* Fixed width for desktop */
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0px auto; /* Centers the image */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo img {
  max-height: 80px;
  height: 50px;
  width: 150px;
  vertical-align: middle;
}

.logo {
  margin-right: 50px;
}

.nav-menu-desktop {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
}

.nav-menu-desktop li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 22px;
  color: #fafafa;
}

.nav-menu-desktop li a.active {
  color: #daa800;
  font-weight: 600;
  text-decoration: underline;
}

.nav-menu-desktop li a:hover {
  color: #daa800;
  text-decoration: underline;
}

.icons {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.icon img {
  max-height: 40px;
  width: auto;
  vertical-align: middle;
  transition: filter 0.3s ease;
}

.icon:hover img {
  filter: brightness(0.8);
}

.banner {
  width: 100%;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
	/*max-height: 500px;*/
}

.content {
  padding: 40px 20px 20px;
  margin-top: 0;
  text-align: center;
}

.content p {
  font-size: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.main-content-title {
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
}

/* Category Selector Styles */
.category-selector {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  gap: 20px;
}

.category-btn {
  padding: 12px 30px;
  font-size: 20px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #f0f0f0;
  color: #333;
  text-decoration: none;
}

.category-btn.active {
  background-color: #073550;
  color: white;
}

.category-btn:hover {
  background-color: #daa800;
  color: white;
}

/* Product Gallery Styles */
.product-gallery {
  padding: 20px 20px 40px;
  text-align: center;
}

.product-gallery h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
}

.product-grid {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.product-item {
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  transition: transform 0.3s ease;
}

.product-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-item:hover {
  transform: scale(1.05);
}

/* Product List Page Styles */
.product-list-container {
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.product-list-title {
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
  color: #073550;
}

.product-list-subtitle {
  font-size: 20px;
  text-align: center;
  margin-bottom: 40px;
  color: #555;
}

.product-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image-link {
  display: block;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.03);
}

.product-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.product-name {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #073550;
}

.product-description {
	min-height: 72px; /* Adjust as needed based on your content */
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.5;
}

.product-price {
  margin-top: auto; /* Push price to bottom */
  font-size: 20px;
  font-weight: 600;
  color: #daa800;
  padding-top: 15px; /* Add some spacing above price */
}

.product-view-btn {
  margin-top: auto; /* Push button to bottom */
  align-self: center; /* Center button horizontally */
  /* Keep all other existing button styles */
  display: inline-block;
  padding: 10px 20px;
  background-color: #073550;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.product-view-btn:hover {
  background-color: #daa800;
}

/* Dropdown Styles */
.dropdown {
  display: none;
}

.dropbtn {
  background-color: #060807;
  color: #c3c5c4;
  padding: 10px 20px;
  font-size: 20px;
  border: 1px solid #c3c5c4;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  line-height: 1;
}

.dropbtn:hover {
  background-color: #073550;
}

.nav-menu-mobile {
  display: none;
  position: absolute;
  background-color: #060807;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  border-radius: 4px;
  margin-top: 5px;
}

.nav-menu-mobile li {
  padding: 10px 20px;
  font-size: 16px;
}

.nav-menu-mobile li a {
  display: block;
  color: #fafafa;
  font-weight: 500;
}

.nav-menu-mobile li a.active {
  color: #daa800;
  font-weight: 600;
  text-decoration: underline;
}

.nav-menu-mobile li a:hover {
  color: #daa800;
}

/* Customize Mattress Section Styles */
.customize-section {
  background-color: #f9f9f9;
  padding: 40px 20px;
  margin: 40px 0;
}

.customize-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.customize-subtitle {
  font-size: 20px;
  margin-bottom: 40px;
  color: #555;
}

.customize-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.customize-item {
  flex: 1;
  min-width: 150px;
  max-width: 200px;
  transition: transform 0.3s ease;
}

.customize-item:hover {
  transform: translateY(-5px);
}

.customize-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

.customize-item p {
  font-size: 18px;
  font-weight: 500;
  color: #073550;
}

.customize-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #073550;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.customize-btn:hover {
  background-color: #daa800;
  transform: translateY(-2px);
}

/* Benefits of Negative Ions Section */
.benefits-section {
  padding: 40px 20px;
  background-color: #f0f8ff;
  text-align: center;
}

.benefits-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
  color: #073550;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.benefit-text {
  font-size: 18px;
  color: #333;
  line-height: 1.5;
}

/* Responsive styles for benefits section */
@media (max-width: 900px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .benefits-title {
    font-size: 18px;
  }
  
  .benefit-item {
    padding: 15px;
  }
}

/* Responsive styles for customize section */
@media (max-width: 768px) {
  .customize-section {
    padding: 30px 15px;
    margin: 30px 0;
  }
  
  .customize-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
  }
  
  .customize-grid {
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .customize-item {
    min-width: 120px;
  }
  
  .customize-item p {
    font-size: 16px;
  }
  
  .customize-btn {
    padding: 10px 25px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .customize-section {
    padding: 20px 10px;
    margin: 20px 0;
  }
  
  .customize-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  .customize-grid {
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .customize-item {
    min-width: 100px;
    max-width: 120px;
  }
  
  .customize-item p {
    font-size: 14px;
  }
}

/* Footer Styles */
.site-footer {
  background-color: #060807;
  color: #fafafa;
  padding: 40px 0 0;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.footer-section {
  margin-bottom: 30px;
}

.footer-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #daa800;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: #daa800;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #fafafa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #daa800;
  text-decoration: underline;
}

.social-media, .ecommerce-links {
  display: flex;
  gap: 15px;
}

.social-media a, .ecommerce-links a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-media a:hover, .ecommerce-links a:hover {
  transform: translateY(-3px);
}

.social-media img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.ecommerce-links img {
  width: auto;
  height: 40px;
  object-fit: contain;
}

.footer-bottom {
  background-color: #073550;
  padding: 15px 0;
  text-align: center;
  font-size: 14px;
}

/* ===================== */
/* LANGUAGE SWITCHER CSS */
/* ===================== */

/* Base Styles for Both Desktop and Mobile */
.language-switcher,
.language-switcher-mobile {
  position: relative;
  margin-left: 10px;
}

.language-switcher select,
.language-switcher-mobile select {
  /* Basic Styling */
  background-color: transparent;
  color: #fafafa;
  border: 1px solid #fafafa;
  border-radius: 4px;
  padding: 5px 25px 5px 10px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  
  /* Remove default styling */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  
  /* Ensure proper height */
  height: 34px;
  line-height: 1;
}

/* Dropdown Arrow */
.language-switcher::after,
.language-switcher-mobile::after {
  content: "▼";
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: #fafafa;
  font-size: 10px;
  pointer-events: none;
}

/* Dropdown Options */
.language-switcher select option,
.language-switcher-mobile select option {
  background-color: #060807;
  color: #fafafa;
  padding: 8px 12px;
}

/* Hover States */
.language-switcher select:hover,
.language-switcher-mobile select:hover {
  border-color: #daa800;
}

/* Focus State (when dropdown is open) */
.language-switcher select:focus,
.language-switcher-mobile select:focus {
  outline: none;
  background-color: #060807;
  border-color: #daa800;
  box-shadow: 0 0 0 2px rgba(218, 168, 0, 0.3);
}

/* Option Hover State */
.language-switcher select option:hover,
.language-switcher-mobile select option:hover {
  background-color: #daa800 !important;
  color: #060807 !important;
}

/* Selected Option */
.language-switcher select option:checked,
.language-switcher-mobile select option:checked {
  background-color: #073550;
}

/* ==================== */
/* Browser Compatibility */
/* ==================== */

/* IE11 - Hide native arrow */
.language-switcher select::-ms-expand,
.language-switcher-mobile select::-ms-expand {
  display: none;
}

/* Firefox - Fix background color */
@-moz-document url-prefix() {
  .language-switcher select,
  .language-switcher-mobile select {
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='%23fafafa'%3E%3Cpath d='M5 6L0 1h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
  }
  
  .language-switcher::after,
  .language-switcher-mobile::after {
    display: none;
  }
}

/* Safari - Fix text alignment */
@media not all and (min-resolution:.001dpcm) { 
  @supports (-webkit-appearance:none) {
    .language-switcher select,
    .language-switcher-mobile select {
      padding-left: 8px;
    }
  }
}

/* ================ */
/* Responsive Styles */
/* ================ */

/* Desktop Specific */
@media (min-width: 769px) {
  .language-switcher select {
    font-size: 18px;
    min-width: 120px;
  }
  
  .language-switcher-mobile {
    display: none;
  }
}

/* Mobile Specific */
@media (max-width: 768px) {
  .language-switcher {
    display: none;
  }
  
  .language-switcher-mobile {
    display: block;
    padding: 10px 20px;
    width: 100%;
  }
  
  .language-switcher-mobile select {
    width: 100%;
    background-color: #060807;
    font-size: 16px;
  }
  
  .language-switcher-mobile::after {
    right: 25px;
  }
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .social-media, .ecommerce-links {
    justify-content: center;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .product-list-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 20px;
    justify-content: space-between;
  }

  .top-bar {
    padding: 5px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
  }

  .nav-menu-desktop {
    display: none;
  }

  .dropdown {
    display: block;
    order: 1;
  }

  .logo {
    margin: 0;
    order: 2;
    flex-grow: 1;
    text-align: center;
  }

  .menu-container {
    margin-left: 0;
  }

  .icons {
    margin-left: 0;
    margin-top: 0;
    order: 3;
  }

  .content {
    padding: 20px 15px 10px;
  }
  
  .main-content-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .product-gallery {
    padding: 10px 15px 20px;
  }

  .product-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .product-item {
    max-width: 100%;
    min-width: 0;
  }

  .product-list-title {
    font-size: 28px;
  }
  
  .product-list-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
  }
  
  .product-list-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 10px;
  }
  
  .product-name {
    font-size: 20px;
  }
  
  /* Category Selector Responsive */
  .category-selector {
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .category-btn {
    padding: 10px 20px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 10px 15px;
  }

  .logo img {
    max-height: 40px;
  }

  .dropbtn {
    padding: 8px 15px;
    font-size: 18px;
  }

  .nav-menu-mobile {
    min-width: 140px;
  }

  .nav-menu-mobile li {
    padding: 8px 15px;
  }

  .icons {
    gap: 15px;
  }

  .content {
    padding: 15px 10px 8px;
  }

  .product-gallery {
    padding: 8px 10px 15px;
  }

  .product-gallery h2 {
    font-size: 24px;
  }

  .product-list-container {
    padding: 20px 10px;
  }
  
  .product-list-title {
    font-size: 24px;
  }
  
  .product-list-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  .product-list-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .product-image {
    height: 200px;
  }
  
  /* Category Selector Responsive */
  .category-selector {
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .category-btn {
    padding: 8px 15px;
    font-size: 16px;
  }
}