/* Domovská stránka - hero, kolekce hlavních kategorií, karusely produktů podle
   kategorie a časté dotazy. Barevně navazuje na site.css (--wine = teplá
   červená, --cream/--paper = krémové pozadí), jen s vlastním hero/gradientem. */

.home-hero {
  background: linear-gradient(135deg, #f4c3b3, var(--cream) 55%, #eda88f);
  color: var(--ink);
  padding: 4.5rem 6vw;
  text-align: center;
}

.home-hero-copy {
  max-width: 680px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  color: var(--wine);
  margin: 0 0 .8rem;
}

.home-hero h1 {
  font-family: 'Srisakdi', cursive;
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 0 1.2rem;
  color: var(--wine);
  -webkit-text-stroke: 1.5px var(--wine);
}

.home-hero-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

.hero-btn {
  display: inline-block;
  background: var(--wine);
  color: #fff;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  padding: .9rem 2.2rem;
  border-radius: 999px;
  transition: background .15s ease;
}

  .hero-btn:hover {
    background: var(--wine-2);
  }

.home-main {
  /* Explicitní width místo spoléhání na flex "stretch" (main{flex:1 0 auto}
     v site.css, kvůli sticky footeru) - se širokým obsahem uvnitř (karusely
     produktů s overflow-x:auto, mřížka kolekcí) prohlížeč jinak home-main
     nezmenšil na šířku obrazovky, ale roztáhl na šířku obsahu (až do
     max-width) - na mobilu tak byla celá homepage vylezlá mimo viewport a
     neresponzivní, zbytek (ořezaný přes overflow-x:hidden na body) neviditelný. */
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 3.5rem 3vw 4rem;
}

.section-title {
  font-family: 'Srisakdi', cursive;
  font-weight: 700;
  text-transform: none;
  font-size: 1.725rem;
  color: var(--ink);
  margin: 0;
}

.section-title--center {
  text-align: center;
  margin-bottom: 2.2rem;
}

.collections .section-title{ margin-bottom: 1.4rem; }

/* ---------- Kolekce ---------- */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

@media (max-width: 900px) {
  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .collections-grid {
    grid-template-columns: 1fr;
  }
}

.collection-card {
  text-align: left;
}

  .collection-card:hover h3{ color: var(--wine); }

.collection-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  color: var(--wine);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #f4c3b3, var(--cream) 70%);
  border-radius: 16px;
  margin: 0 0 1rem;
  overflow: hidden;
}

  .collection-art svg {
    width: 40%;
    height: 40%;
  }

  .collection-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

/* ---------- Tužka pro změnu obrázku kolekce (Manager) ---------- */
.collection-card-wrap {
  position: relative;
}
.collection-edit-form {
  position: absolute;
  top: .6rem;
  right: .6rem;
  z-index: 3;
}
.collection-edit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(32,26,23,.25);
  cursor: pointer;
}
.collection-edit-btn:hover { color: var(--wine); }
.collection-edit-btn svg { width: 17px; height: 17px; }
.collection-edit-btn input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.collection-card h3 {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 .4rem;
  color: var(--ink);
  transition: color .15s ease;
}

.collection-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.5;
}

/* ---------- Sekce produktů (karusely) ---------- */
.product-section {
  margin-top: 3rem;
  background: linear-gradient(135deg, #f4c3b3, var(--cream) 60%);
  border-radius: 20px;
  padding: 2.2rem 2rem 2.4rem;
}

.product-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.3rem;
  gap: 1rem;
}

@media (max-width: 640px) {
  .product-section{ padding: 1.6rem 1.2rem 1.8rem; border-radius: 16px; }
}

.section-link {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--wine);
  white-space: nowrap;
}

.carousel-wrap {
  position: relative;
}

.product-carousel {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding-bottom: .2rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

  .product-carousel::-webkit-scrollbar {
    display: none;
  }

/* .carousel-arrow základ je v site.css (sdílené i s přepínačem Fotka/3D na
   Produkt.cshtml) - tady jen věc specifická pro homepage karusely. */
@media (max-width: 640px) {
  .carousel-wrap .carousel-arrow { display: none; }
}

.carousel-item {
  flex: 0 0 auto;
  width: 340px;
  scroll-snap-align: start;
  display: flex;
}

/* Všechny karty v karuselu stejně vysoké - obal (.carousel-item) se ve
   flex řádku natáhne na výšku nejvyšší karty a karta ho teď vyplní celý
   (zarovnání ceny + tlačítka dolů je společné s katalogem, viz Catalog.css
   .card .price). */
.carousel-item > .card {
  flex: 1;
  min-width: 0;
}

@media (max-width: 640px) {
  .carousel-item {
    width: 250px;
  }
}

/* ---------- Banner: sezónní novinky ---------- */
.seasonal-banner {
  display: block;
  margin: 0 0 2.4rem;
  padding: 1.6rem 1.5rem;
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--wine-2), var(--wine) 50%, var(--wine-2));
}
.seasonal-banner-text {
  font-family: 'Srisakdi', cursive;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}
.seasonal-banner:hover .seasonal-banner-text { text-decoration: underline; }

/* ---------- Sekce: objednávky na zakázku ---------- */
/* Stejný box jako .product-section (kulaté rohy, stejné odsazení), jen s
   červeným přechodem místo krémového - vizuálně patří mezi ostatní sekce
   homepage, ne jako odlišný "banner" pruh. */
.custom-order-section {
  margin-top: 3rem;
  background: linear-gradient(135deg, var(--wine), var(--wine-2) 70%);
  border-radius: 20px;
  padding: 2.2rem 2rem 2.4rem;
  text-align: center;
}
.custom-order-section .section-title {
  color: #fff;
  margin: 0 0 .8rem;
}
.custom-order-text {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #fbe2dd;
  max-width: 560px;
  margin: 0 auto 1.4rem;
}
.custom-order-btn {
  display: inline-block;
  background: #fff;
  color: var(--wine);
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  padding: .85rem 2.1rem;
  border-radius: 999px;
  transition: background .15s ease;
}
.custom-order-btn:hover { background: var(--cream); }

@media (max-width: 640px) {
  .custom-order-section { padding: 1.6rem 1.2rem 1.8rem; border-radius: 16px; }
}

/* ---------- FAQ ---------- */
.faq-section {
  margin-top: 4rem;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.3rem;
}

  .faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
  }

  .faq-item p {
    margin: .7rem 0 0;
    color: var(--ink-soft);
    line-height: 1.55;
  }
