

/* ========== INFO BOX STYLES ========== */
.box {
  background-color: var(--background-light);
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.info-item {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  margin: 10px 0;
  padding: 0 15px;
}

.info-icon {
  margin-right: 15px;
  color: #6c757d;
}

.info-text h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
}

.info-text p {
  margin: 0;
  font-size: 14px;
  color: #6c757d;
}


@media (max-width: 768px) {
.box {
padding: 15px 10px;
margin-bottom: 15px;
flex-direction: column;
justify-content: flex-start;
}

.info-item {
flex: 1 1 100%;
margin: 8px 0;
padding: 10px 5px;
width: 100%;
border-bottom: 1px solid rgba(108, 117, 125, 0.2);
}

.info-item:last-child {
border-bottom: none;
}

.info-icon {
margin-right: 12px;
font-size: 18px;
min-width: 24px;
text-align: center;
}

.info-text h4 {
font-size: 15px;
margin: 0 0 3px 0;
}

.info-text p {
font-size: 13px;
line-height: 1.4;
}
}

/* Für sehr kleine Bildschirme */
@media (max-width: 480px) {
.box {
padding: 12px 8px;
border-radius: 6px;
}

.info-item {
padding: 8px 3px;
}

.info-icon {
margin-right: 10px;
font-size: 16px;
}

.info-text h4 {
font-size: 14px;
}

.info-text p {
font-size: 12px;
}
}



/* ========== FEATURED PRODUCTS STYLES ========== */
.featured-products {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  position: relative;
}

/* Featured Product Slider */
.featured-slider-container {
  background-color: var(--background-light);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  position: relative;
}

.featured-slider-title {
  margin-bottom: 20px;
  text-align: center;
}

.featured-slider {
  display: flex;
  align-items: center;
  position: relative;
}

.featured-slide {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease;
}

.featured-slide.hidden {
  display: none;
}

.featured-image-container {
  flex: 1;
  padding-right: 30px;
}

.featured-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.featured-info {
  flex: 1;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-info h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2d3748;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4a5568;
  margin-bottom: 1.5rem;
}

.product-description {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 500px;
}
.btn-view-details {
  align-self: flex-start;
  background-color: var(--shop-second-btn);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.5s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}



/* ========== MOBILE STYLES ========== */
@media (max-width: 768px) {
.featured-products {
padding: 15px;
margin-bottom: 20px;
border-radius: 6px;
}

.featured-slider-container {
padding: 20px 15px;
margin-bottom: 20px;
border-radius: 6px;
}

.featured-slider {
flex-direction: column;
}

.featured-slide {
flex-direction: column;
}

.featured-image-container {
padding-right: 0;
margin-bottom: 20px;
}

.featured-info {
padding-left: 0;
text-align: center;
}

.featured-info h3 {
font-size: 1.4rem;
margin-bottom: 0.8rem;
}

.product-price {
font-size: 1.3rem;
margin-bottom: 1.2rem;
}

.product-description {
font-size: 0.9rem;
margin-bottom: 1.5rem;
line-height: 1.5;
}

.btn-view-details {
align-self: center;
padding: 10px 20px;
font-size: 0.9rem;
}
}

/* Für sehr kleine Bildschirme (z.B. Smartphones im Hochformat) */
@media (max-width: 480px) {
.featured-info h3 {
font-size: 1.2rem;
}

.product-price {
font-size: 1.1rem;
}

.product-description {
font-size: 0.85rem;
}

.btn-view-details {
width: 100%;
padding: 12px;
}
}


/* Hover-Effekt: Button verändert sich leicht */
.btn-view-details:hover {
  background-color: var(--shop-second-btn-hover);
  padding: 12px 50px 12px 24px; /* mehr Platz rechts für den Fuchs */
}

/* Fox erscheint rechts */
.btn-view-details::after {
  content: "🦋";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.5s ease;
}

/* beim Hover sichtbar */
.btn-view-details:hover::after {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

/* Fox erscheint rechts */
.btn-view-details::after {
  content: "🦋";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.5s ease;
}

/* beim Hover sichtbar */
.btn-view-details:hover::after {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}


.btn-view-details:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Slider Navigation */
.slider-nav {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.slider-arrow.prev {
  left: 10px;
}

.slider-arrow.next {
  right: 10px;
}

.slider-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #ddd;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.slider-dot.active {
  background: #333;
}

/* ========== NAVBAR STYLES ========== */
.navbar {
  flex-grow: 1;
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--background-light);
  padding: 0.75rem 1rem;
  border-radius: 12px;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  position: fixed;
  z-index: 1000;
}

.nav-item {
  position: relative;
}

.drop-nav-link {
  color: rgb(104, 104, 104);
  text-decoration: none;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  position: relative;
}

drop-nav-link:hover {
  background-color: rgb(48, 55, 64);
}

.dropdown-icon {
  margin-left: 8px;
  font-size: 0.6em;
  transition: transform 0.2s ease;
}

/* Dropdown Menu */
.dropdown-menu {

  position: absolute;
  left: 100%;
  top: 5rem;
  background-color: #ffffff;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  border-radius: 0 4px 4px 4px;

  /* NEU: Horizontal statt Grid */
  display: flex;
  flex-direction: row; /* horizontale Anordnung */
  gap: 10px;
  padding: 15px;
  width: max-content; /* passt sich an Inhalte an */

}

.dropdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 5px;
  text-decoration: none;
  color: rgb(107, 107, 107);
  transition: all 0.2s ease;
  border-radius: 4px;
}


.dropdown-item:hover {
  background-color: rgb(255, 255, 255);
  padding-left: 25px;
}

.dropdown-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  left: 100%;
  top: 0;
  background-color: #3d566e;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  border-radius: 0 4px 4px 4px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  padding: 15px;
  width: 100%;
}

.submenu-item {
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
}

.submenu-item:hover {
  background-color: #46627d;
  padding-left: 25px;
}

.category-icon, .collection-icon {
    width: 20px;
    height: 20px;
    object-fit: cover;
    margin-right: 8px;
    vertical-align: middle;
}

.dropdown-item img, .submenu-item img {
    width: 160px;
    height: 160px;
    margin-right: 5px;
}

.menu-item-text {
  display: block;
  font-size: 1em;
  line-height: 1.2;
  margin-top: 6px;
}

.menu-item-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* Hover Effects */
.nav-item:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-submenu:hover > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.nav-item:hover > .drop-nav-link > .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-submenu:hover > .dropdown-item > .dropdown-icon {
  transform: rotate(90deg);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: rgb(0, 0, 0);
  font-size: 24px;
  padding: 15px;
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 0;
  z-index: 1002; /* Höher als die Navigation */
  -webkit-appearance: none; /* Wichtig für iOS/Safari */
  -moz-appearance: none;
  appearance: none;
}

/* ========== SHOP STYLES ========== */
.shop-container {
  display: flex;
  background: var(--background);
  gap: 2rem;
  padding: 2rem;
  margin: 0 auto;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  align-self: flex-start;
  height: calc(100vh - 40px);
  overflow-y: auto;
  padding-right: 10px;
  background: var(--background);
  border-radius: 8px;
}

.sidebar-inner {
  padding-bottom: 2rem;
}

.collection-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.collection-list li {
  margin-bottom: 0.5rem;
}

.collection-link {
  display: block;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.collection-link:hover {
  background-color: #f5f5f5;
}

.collection-list li.selected .collection-link {
  background-color: var(--primary-color);
  color: white;
}

/* Products Section */
.products {
  flex-grow: 1;
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--background-light);
  padding: 0.75rem 1rem;
  border-radius: 12px;
}

.collection-title {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--background-light)
}

.product-card:hover {
  transform: translateY(-5px);

}

.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: #f9f9f9;
  position: relative;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 1rem;
}

.product-name {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: #333;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--secondary-color);
}

/* Stock Badges */
.out-of-stock-badge,
.low-stock-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
  color: white;
}

.out-of-stock-badge {
  background-color: #ff4757;
}

.low-stock-badge {
  background-color: #ffa502;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 30px;
  border-radius: 8px;
  width: 80%;
  max-width: 900px;
  position: relative;
  animation: modalopen 0.3s;
}

@keyframes modalopen {
  from {opacity: 0; transform: translateY(-50px)}
  to {opacity: 1; transform: translateY(0)}
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 10px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: black;
}

.loading-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px 40px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1001;
  pointer-events: auto;
}

/* Custom Scrollbar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Sidebar Toggle */
#sidebarToggleBtn {
  display: none;
  position: fixed;
  top: 10px;
  right: 2px;
  background: var(--primary-color);
  color: var(--text-color);
  border: none;
  padding: 5px 5px;
  border-radius: 4px;
  z-index: 1100;
  cursor: pointer;
}

#sidebarOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
  /* Info Box */
  .info-box {
    flex-direction: column;
  }
  .info-item {
    flex: 1 1 auto;
  }
  
  /* Featured Slider */
  .featured-slide {
    flex-direction: column;
    width: 250px;
  }
  
  .featured-image-container,
  .featured-info {
    padding: 0;
    flex: none;
    width: 100%;
  }
  
  .featured-info {
    margin-top: 20px;
    padding-left: 0;
  }
  
  .featured-info h3 {
    font-size: 1.5rem;
  }
  
  .product-price {
    font-size: 1.3rem;
  }
  
  .btn-view-details {
    width: 100%;
    text-align: center;
  }
  
  /* Navbar */
  .navbar {
    padding: 0;
    position: relative;
    min-height: 60px;
  }
  
  .navbar-nav {
    display: none;
    position: fixed;
    top: 57px;
    left: 0;
    width: 100%;
    background-color: rgb(255, 255, 255);
    flex-direction: column;
    z-index: 1001;
  }
  
  .navbar-nav.active {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .drop-nav-link {
    color: rgb(102, 102, 102);
    text-decoration: none;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
  }
  
  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    width: 100%;
    background-color: rgba(0,0,0,0.1);
    border-radius: 0;
    padding-left: 20px;
  }
  
  .dropdown-item {
    padding: 12px 20px;
    color: white;
  }
  
  .submenu {
    position: static;
    display: none;
    padding-left: 20px;
    background-color: rgba(0,0,0,0.1);
    box-shadow: none;
  }
  
  .nav-item.active > .dropdown-menu {
    display: block;
  }
  
  .dropdown-submenu.active > .submenu {
    display: block;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  /* Shop Layout */
  .shop-container {
    flex-direction: column;
    padding: 1rem;
    padding-top: 70px;
  }
  
  #sidebarToggleBtn {
    display: block;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    transform: translateX(-100%);
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  #sidebarOverlay.active {
    display: block;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .product-image-container {
    height: 180px;
  }
  
  .modal-content {
    width: 95%;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-name {
    font-size: 1rem;
  }
  
  .product-price {
    font-size: 1.1rem;
  }
}