/* Header & Layout Reset */
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100%;
  flex-direction: column;
  background-color: #f5f5f5; /* light grey */
}

main {
 flex: 1;
}

header {
  background-color: rgb(241, 91, 48);
  color: white;
  width: 100%;
  position: relative;
  z-index: 1000;
}

/* Header Styles */
.header-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  position: relative;
}

/* Logo */
.logo {
  width: 200px;
  height: auto;
  cursor: pointer;
}

/* Menu Button */
.menu-button {
  position: absolute;
  left: 20px;
  padding: 12px 24px;
  font-weight: bold;
  font-size: 18px;
  /*background-color: #e0e0e0; /* soft grey */
  /*background-color: rgb(241, 91,48);*/
  background-color: white;
  color: rgb(241, 91, 48);
  /*color: rgb(68, 71, 82);*/
  border: 2px solid rgb(241, 91, 48);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.menu-button:hover {
  /*backkground-color: #e0e0e0*/
  background-color: rgb(241, 91, 48);
  color: white;
}

/* Slideout Menu */
.slideout-menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: white;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: left 0.3s ease, opacity 0.3s ease;
  opacity: 1;
  z-index: 1000;
}

.slideout-menu.active {
  left: 0;
}

.slideout-menu.closing {
 opacity: 0;
}

.slideout-menu .nav-links {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.slideout-menu a {
  padding: 12px 10px;
  margin: 5px 0;
  text-decoration: none;
  color: rgb(68, 71, 82);
  border-radius: 8px;
  transition: background 0.3s ease;
  font-weight: bold;
}

.slideout-menu a:hover {
  background-color: rgba(241, 91, 48, 0.1);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 15px;
  border-top: 1px solid #ccc;
}

.flag-icon {
  width: 24px;
  height: 16px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.flag-icon:hover {
  transform: scale(1.1);
}

/* Footer */
footer {
  background-color: #444752;
  color: white;
  text-align: center;
  padding: 10px 0;
}

/* Carousel styles */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: auto;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: auto;
  height: 500px; /* fixed height for all items */
}

.carousel {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
}

.carousel-item img,
.carousel-item video {
  max-height: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Carousel arrows */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(241, 91, 48, 0.8);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0 10px;
  cursor: pointer;
  z-index: 10;
}

.carousel-control.prev {
  left: 10px;
}

.carousel-control.next {
  right: 10px;
}

/* Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-indicators span {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.carousel-indicators span.active {
  opacity: 1;
  background-color: rgb(241, 91, 48);
}

/* Category section */
.category-section {
  text-align: center;
  padding: 40px 20px;
}

.category-title {
  font-size: 24px;
  margin-bottom: 20px;
}

.category-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.category-card {
  text-align: center;
}

.category-img {
  width: 250px;
  height: 250px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-img:hover {
  transform: scale(1.05);
}

.category-label {
  margin-top: 10px;
  font-size: 18px;
  color: rgb(68, 71, 82);
  font-weight: bold;
}

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

.product-card {
  width: 250px;
  text-align: center;
}

.product-card img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

.product-card p {
  margin-top: 10px;
  font-size: 18px;
  color: rgb(68, 71, 82);
  font-weight: bold;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  margin: 20px;
  padding: 10px 15px;
  background-color: #f3f3f3;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  color: #444752;
}

.breadcrumb a {
  color: rgb(241, 91, 48);
  text-decoration: none;
  font-weight: bold;
  margin-right: 5px;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 5px;
  color: #888;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: calc(100% - 40px); /* 20px on each side */
  height: calc(100% - 70px);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal-content h3 {
  margin-top: 0;
}

.modal-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.modal-gallery img {
  width: calc(100% / 3.4);
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

.close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.buy-button {
  display: inline-block;
  background-color: rgb(241, 91, 48);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
}

.buy-button:hover {
  background-color: rgb(200, 70, 40);
}

.modal-title {
  text-align: center;
  color: #444752;
  margin-bottom: 10px;
}

.modal-description {
  text-align: center;
  color: #444752;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}
