/* ===== Alap testreszabások ===== */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'DM Sans', sans-serif;
  background: url('https://images.unsplash.com/photo-1604112900927-e4b42c07b3f5') no-repeat center center fixed;
  background-size: cover;
}

/* ===== Fejléc ===== */
.desktop-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 20px;
  background-color: rgba(0, 77, 64, 0.8);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}
.desktop-header a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: 0.3s;
}
.desktop-header .cart-link {
  font-size: 1.5rem;
}
.desktop-header a:hover,
.desktop-header a.active {
  color: #b2dfdb;
  border-bottom: 2px solid #b2dfdb;
}

/* ===== Mobil fejléc alapból rejtve ===== */
.mobile-header {
  display: none;
}

/* ===== Görgethető ruhasor ===== */
.scrolling-container {
  margin-top: 120px;
  overflow: hidden;
  width: 100%;
  position: relative;
  height: 360px;
  padding: 20px 0;
  box-sizing: border-box;
}
.clothes-track {
  display: flex;
  width: max-content;
  animation: scroll 48s linear infinite;
}
.clothes-wrapper {
  display: flex;
  gap: 60px;
}
.clothes-wrapper img {
  width: 14vw;
  min-width: 200px;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.clothes-wrapper img:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Info szekció ===== */
.info-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1100px;
  margin: 60px auto;
}
.info-section {
  max-width: 60%;
  background: #ffffffee;
  padding: 60px 40px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  margin-left: 20px;
}
.info-section:hover {
  transform: translateY(-3px);
}
.info-panda {
  width: 200px;
  opacity: 0.85;
}
.info-section h2 {
  font-size: 2rem;
  color: #2e7d32;
  margin-bottom: 20px;
}
.info-section p {
  font-size: 1.15rem;
  color: #333;
}

/* ===== Lábléc ===== */
.footer {
  background: rgba(0, 77, 64, 0.9);
  color: white;
  text-align: center;
  padding: 30px;
  font-size: 1rem;
  border-top: 4px solid #66bb6a;
}
.payment-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 40px;
}
.payment-icons img {
  width: 60px;
  transition: transform 0.3s;
}
.payment-icons img:hover {
  transform: scale(1.2);
}

/* ===== Mobilbarát fejléc és menü ===== */
@media (max-width: 900px) {
  .desktop-header { display: none; }
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2e7d32;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    padding: 10px 16px;
    z-index: 1000;
    box-sizing: border-box;
  }
  .menu-left {
    display: flex;
    align-items: center;
    position: relative;
  }
  .menu-icon {
    font-size: 2.2rem;
    cursor: pointer;
    padding: 4px 10px;
    user-select: none;
  }
  #menu-toggle {
    display: none;
  }
  .dropdown-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 110%;
    left: 0;
    width: 60vw;
    min-width: 180px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    z-index: 9999;
    animation: dropdown-fade-in 0.2s;
  }
  #menu-toggle:checked + .menu-icon + .dropdown-menu {
    display: flex;
  }
  .dropdown-menu a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 14px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    transition: background 0.2s;
  }
  .dropdown-menu a:last-child {
    border-bottom: none;
  }
  .dropdown-menu a:hover {
    background: #e8f5e9;
  }
  .page-title {
    font-size: 1rem;
    font-weight: bold;
    color: white;
    margin: 0 10px;
    flex: 1;
    text-align: center;
  }
  .cart-icon {
    font-size: 1.3rem;
    color: white;
    text-decoration: none;
    margin-left: 10px;
    transition: color 0.2s;
  }
  .cart-icon:hover {
    color: #b2dfdb;
  }
  
  /* ---- Mobilos nagy képes húzható ruhasor ---- */
  .clothes-wrapper {
    display: none !important;
  }
  .clothes-row-mobile {
    display: flex !important;
    flex-direction: row;
    gap: 35px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 4vw 55px 4vw;
    margin: 0 auto;
    scroll-snap-type: x mandatory;
    width: 100vw;
    align-items: center;
    background: transparent;
  }
  .clothes-row-mobile img {
    width: 85vw;
    min-width: 290px;
    max-width: 480px;
    height: 85vw;
    min-height: 290px;
    max-height: 480px;
    object-fit: contain;
    background: #fff;
    border-radius: 22px;
    margin: 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.13);
    scroll-snap-align: start;
    transition: transform 0.3s;
    flex-shrink: 0;
  }
  .clothes-row-mobile img:active {
    transform: scale(1.05);
  }
  
  .scroll-indicator {
    display: block !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    width: 93vw;
    height: 6px;
    background: #eeeeee;
    border-radius: 9px;
    opacity: 0.7;
    z-index: 2;
    pointer-events: none;
  }
}

@media (max-width: 480px) {
  .clothes-row-mobile img {
    width: 94vw;
    min-width: 180px;
    max-width: 400px;
    height: 94vw;
    min-height: 180px;
    max-height: 400px;
  }
  .scroll-indicator {
    width: 99vw;
    height: 5px;
    bottom: 8px;
  }
}

/* Keyframe animáció a menühöz */
@keyframes dropdown-fade-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SHOP elrendezés – reszponzív ===== */
.shop-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  justify-items: center;
  box-sizing: border-box;
  margin-top: 100px;
}
.product-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  padding: 16px;
  max-width: 300px;
  width: 100%;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.product-card img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}
.product-card h2 {
  font-size: 1.2rem;
  margin: 8px 0;
  color: #2e7d32;
}
.product-card .price {
  font-size: 1rem;
  color: #333;
  margin-bottom: 10px;
}
.product-card a {
  display: inline-block;
  background-color: #2e7d32;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.product-card a:hover {
  background-color: #388e3c;
}
.favorite-icon {
  font-size: 1.2rem;
  margin-left: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}
.favorite-icon:hover {
  transform: scale(1.2);
}

/* Reszponzív design mobilra és kisebb képernyőkre */
@media (max-width: 1024px) {
  .shop-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px 20px;
  }
  .product-card img {
    height: 230px;
  }
}
@media (max-width: 768px) {
  .shop-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px;
    gap: 16px;
  }
  .product-card {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .shop-container {
    grid-template-columns: 1fr;
  }
}
