/* ===== Single Collection ===== */

.collection-single .lasco-container{
  max-width: 1100px;
}
/* ===== Story section: title + text inside one colored box ===== */

.collection-story{
  margin-top: 40px;
}

/* Одна спільна плашка для H2 + тексту */
.collection-story .lasco-container{
  max-width: 920px;          /* ширина плашки */
  margin: 0 auto;            /* центрування */
  padding: 28px 32px;        /* внутрішні відступи */

  background: #ebe6df;       /* фон як на фото */
  border-radius: 12px;

  text-align: center;
}

/* H2 всередині плашки */
.collection-story .collection-h2{
  margin: 0 0 14px;
  text-align: center;
}

/* Текст (всередині box) — без власного фону */
.collection-story__box{
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* Типографіка */
.collection-story__box p{
  margin: 0;
  line-height: 1.6;
  opacity: 0.9;
}


/* Back link */
.collection-back{
  padding: 16px 0 0;
}
.collection-back__link{
  text-decoration: none;
  font-size: 14px;
}

/* Hero */
.collection-hero{
  padding: 24px 0 8px;
  text-align: center;
}

.collection-hero__title{
  margin: 18px 0 0;
  line-height: 1.1;
}

.collection-hero__subtitle{
  margin: 10px auto 0;
  max-width: 760px;
  line-height: 1.6;
  opacity: .85;
}

/* ===== Slider (HERO) ===== */
.collection-slider{
  position: relative;
  max-width: 920px;
  margin: 0 auto 18px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f4f6;
}

/* Track */
.collection-slider__track{
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  transform: translateX(0);
  transition: transform .35s ease;
  will-change: transform;
}

/* Slide */
.collection-slider__slide{
  flex: 0 0 100%;
  width: 100%;
}

.collection-slider__slide img{
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* nav arrows */
/* ===== Collection slider arrows — SVG version (like home categories) ===== */
.collection-slider__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;
  border-radius: 999px;

  border: none;
  background: #8b6b4d;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  cursor: pointer;
  z-index: 5;

  outline: none;
  box-shadow: none;
  transition: background .15s ease;
}

.collection-slider__nav--prev{ left: 0; }
.collection-slider__nav--next{ right: 0; }

/* SVG inside */
.collection-slider__nav img{
  width: 70px;
  height: 70px;
  display: block;
  object-fit: contain;
}

/* hover */
.collection-slider__nav:hover{
  background: #9a7a5d;
}

/* focus/active */
.collection-slider__nav:focus,
.collection-slider__nav:focus-visible,
.collection-slider__nav:active{
  background: #8b6b4d;
  outline: none;
  box-shadow: none;
}


/* dots */
.collection-slider__dots{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 5;
}

.collection-slider__dot{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.6);
  cursor: pointer;
  padding: 0;
}

.collection-slider__dot.is-active{
  background: rgba(255,255,255,.95);
}

/* Responsive */
@media (max-width: 768px){
  .collection-slider__slide img{
    height: 240px;
  }
}

@media (max-width: 480px){
  .collection-slider__slide img{
    height: 210px;
  }
  .collection-slider__nav{
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}
/* Center "Products in collection" block */
.collection-products{
  text-align: center;
}

.collection-products .collection-h2{
  text-align: center;
  font-size: 80%;      /* рівно вдвічі від базового h2 */
  line-height: 1.25;
}

.collection-products p{
  margin-left: auto;
  margin-right: auto;
  font-size: 50%;      /* рівно вдвічі від базового body */
  line-height: 1.4;
}
/* Scale down single collection content to 80% */
.collection-single{
  font-size: 80%;
}
/* ===== Other collections (like home slider) ===== */

.collection-more .collection-h2{
  margin-bottom: 16px;
}

.collection-more__wrap{
  position: relative;
}

/* горизонтальний трек */
.collection-more__track{
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 56px; /* місце під стрілки */
}

/* прибрати скролбар (опційно) */
.collection-more__track::-webkit-scrollbar{ height: 0; }

/* картка: 2 на екран */
.collection-more__card{
  flex: 0 0 calc(50% - 9px);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
}

.collection-more__img{
  border-radius: 14px;
  overflow: hidden;
  background: #f3f4f6;
}

.collection-more__img img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.collection-more__img--ph{
  width: 100%;
  height: 240px;
  background: #f3f4f6;
}

.collection-more__meta{
  padding-top: 10px;
}

.collection-more__title{
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
}

.collection-more__desc{
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  opacity: .75;
}

/* стрілки — позиціонування для цієї секції */
.collection-more__wrap .home-cats__arrow{
  top: 120px; /* по центру картинки */
}

.collection-more__wrap .home-cats__arrow--prev{ left: 0; }
.collection-more__wrap .home-cats__arrow--next{ right: 0; }

/* mobile: 1 картка на екран */
@media (max-width: 768px){
  .collection-more__track{
    padding: 0 46px;
  }
  .collection-more__card{
    flex: 0 0 85%;
  }
  .collection-more__img img,
  .collection-more__img--ph{
    height: 220px;
  }
}
/* Limit width of "Other collections" to match hero slider */
.collection-more{
  max-width: 920px;
  margin-top: 34px;
  margin: 0 auto;
}
/* ===== Collection products grid ===== */

.collection-products{
  margin-top: 28px;
}

.collection-products .collection-h2{
  text-align: center;
  margin-bottom: 12px;
}

/* Grid */
.collection-products__grid{
  max-width: 920px;    /* 920 * 0.7 ≈ 644 */
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Card */
.collection-products__card{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}


/* Image wrapper */
.collection-products__img{
  background: #f3f4f6;
  border-radius: 14px;
  overflow: hidden;
}

/* Product image */
.collection-products__img img{
  width: 100%;
  aspect-ratio: 1 / 1;   /* квадрат */
  object-fit: cover; /* ключ */
  display: block;
}

/* Title */
.collection-products__title{
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;

  /* clamp 2 lines */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;

  /* safety for long strings */
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Price */
.collection-products__price{
  margin-top: 4px;
  font-size: 12px;
  opacity: .85;
  text-align: center;
}

/* Hover */
.collection-products__card:hover .collection-products__img{
  filter: brightness(0.98);
}

/* Responsive */
@media (max-width: 900px){
  .collection-products__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .collection-products__img img{
    height: 200px;
  }
}
.collection-products__btn{
  width: 100%;
  margin-top: 10px;

  background: #8b6b4d;
  color: #fff;
  border: 0;
  border-radius: 10px;

  padding: 10px 12px;
  font-size: 13px;
  line-height: 1;
  text-align: center;

  cursor: pointer;
  transition: opacity .15s ease, background .15s ease;
}

.collection-products__btn:hover{
  opacity: .92;
}

.collection-products__btn.is-in-cart{
  opacity: .55;      /* бліда */
}

.collection-products__btn:disabled{
  opacity: .75;
  cursor: default;
}
/* Arrows (shared like home categories) */
.collection-more__wrap{
  position: relative;
}

.collection-more__wrap .home-cats__arrow{
  position: absolute;
  top: 120px;                 /* як ти хотів */
  transform: translateY(-50%);

  width: 44px;
  height: 44px;
  border-radius: 999px;

  border: none;
  background: #8b6b4d;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  cursor: pointer;
  z-index: 5;

  outline: none;
  box-shadow: none;
  transition: background .15s ease;
}

.collection-more__wrap .home-cats__arrow--prev{ left: 0; }
.collection-more__wrap .home-cats__arrow--next{ right: 0; }

.collection-more__wrap .home-cats__arrow img{
  width: 22px;               /* важливо: не 70px */
  height: 22px;
  display: block;
  object-fit: contain;
}

.collection-more__wrap .home-cats__arrow:hover{
  background: #9a7a5d;
}

.collection-more__wrap .home-cats__arrow:focus,
.collection-more__wrap .home-cats__arrow:focus-visible,
.collection-more__wrap .home-cats__arrow:active{
  background: #8b6b4d;
  outline: none;
  box-shadow: none;
}
.collection-bulk{
  max-width: 920px;
  margin: 30px auto 0;
  text-align: center;
}

.collection-bulk__btn{
  width: 100%;
  max-width: 420px;
  background: #705641;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: opacity .15s ease;
}

.collection-bulk__btn:hover{ opacity: .92; }
.collection-bulk__btn:disabled{ opacity: .6; cursor: not-allowed; }

/* =========================================================
   Single Collection — narrower content width
   ========================================================= */

.collection-single{
  --collection-content-width: 760px;
  --collection-wide-width: 820px;
}

/* Загальний контейнер сторінки */
.collection-single .lasco-container{
  max-width: var(--collection-wide-width);
}

/* Hero slider */
.collection-slider{
  max-width: var(--collection-content-width);
}

/* Subtitle */
.collection-hero__subtitle{
  max-width: var(--collection-content-width);
}

/* Products grid */
.collection-products__grid{
  max-width: var(--collection-content-width);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* Bulk button block */
.collection-bulk{
  max-width: var(--collection-content-width);
}

/* Story box */
.collection-story .lasco-container{
  max-width: var(--collection-content-width);
}

/* Other collections */
.collection-more{
  max-width: var(--collection-content-width);
}

.collection-more__track{
  gap: 14px;
}

/* Desktop image height трохи компактніше */
.collection-slider__slide img{
  height: 280px;
}

.collection-more__img img,
.collection-more__img--ph{
  height: 210px;
}
/* =========================================================
   Single Collection — mobile refined spacing
   ========================================================= */

@media (max-width: 768px){

  .collection-single{
    --collection-mobile-width: 342px;
    --collection-mobile-padding: 20px;

    font-size: 78%;
  }

  .collection-single .lasco-container{
    width: 100%;
    max-width: var(--collection-mobile-width);
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
  }

  /* Back */
  .collection-back{
    padding: 14px 0 0;
  }

  .collection-back__link{
    font-size: 12px;
  }

  /* Hero */
  .collection-hero{
    padding: 18px 0 8px;
  }

  .collection-slider{
    width: 100%;
    max-width: var(--collection-mobile-width);
    border-radius: 12px;
    margin-bottom: 16px;
  }

  .collection-slider__slide img{
    height: 190px;
    object-fit: cover;
  }

  .collection-slider__nav{
    width: 30px;
    height: 30px;
  }

  .collection-slider__nav img{
    width: 48px;
    height: 48px;
  }

  .collection-hero__title{
    max-width: 300px;
    margin: 16px auto 0;
    font-size: 26px;
    line-height: 1.12;
  }

  .collection-hero__subtitle{
    max-width: 280px;
    margin: 10px auto 0;
    font-size: 11px;
    line-height: 1.5;
  }

  /* Products */
  .collection-products{
    max-width: var(--collection-mobile-width);
    margin: 24px auto 0;
    padding: 0;
  }

  .collection-products .collection-h2{
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.3;
  }

  .collection-products__grid{
    width: 100%;
    max-width: 260px;
    margin: 16px auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .collection-products__card{
    width: 100%;
    gap: 8px;
  }

  .collection-products__img{
    border-radius: 12px;
  }

  .collection-products__img img{
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .collection-products__title{
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.3;
  }

  .collection-products__price{
    font-size: 11px;
  }

  .collection-products__btn{
    width: 100%;
    margin-top: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 12px;
  }

  /* Bulk button */
  .collection-bulk{
    width: 100%;
    max-width: 260px;
    margin: 24px auto 0;
    padding: 0;
  }

  .collection-bulk__btn{
    width: 100%;
    max-width: none;
    padding: 11px 12px;
    border-radius: 9px;
    font-size: 12px;
  }

  /* Story */
  .collection-story{
    margin-top: 30px;
  }

  .collection-story .lasco-container{
    max-width: var(--collection-mobile-width);
    padding: 22px 20px;
    border-radius: 12px;
  }

  .collection-story .collection-h2{
    font-size: 18px;
    margin-bottom: 12px;
  }

  .collection-story__box p{
    font-size: 12px;
    line-height: 1.65;
  }

  /* Other collections */
  .collection-more{
    max-width: var(--collection-mobile-width);
    margin: 30px auto 0;
  }

  .collection-more .collection-h2{
    font-size: 18px;
    margin-bottom: 14px;
    text-align: center;
  }

  .collection-more__track{
    gap: 12px;
    padding: 0;
  }

  .collection-more__card{
    flex: 0 0 100%;
  }

  .collection-more__img img,
  .collection-more__img--ph{
    height: 190px;
  }

  .collection-more__wrap .home-cats__arrow{
    display: none;
  }
}

@media (max-width: 380px){

  .collection-single{
    --collection-mobile-width: 320px;
  }

  .collection-products__grid,
  .collection-bulk{
    max-width: 248px;
  }

  .collection-slider__slide img{
    height: 180px;
  }
}
/* =========================================================
   Other Collections — mobile peek carousel
   ========================================================= */

@media (max-width: 768px){

  .collection-more{
    max-width: var(--collection-mobile-width);
    margin: 30px auto 0;
    overflow: visible;
  }

  .collection-more__wrap{
    position: relative;
    overflow: visible;
  }

  .collection-more__track{
    display: flex;
    gap: 12px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    padding: 0 38px 4px 0;
    margin-right: -38px;

    scrollbar-width: none;
  }

  .collection-more__track::-webkit-scrollbar{
    display: none;
  }

  .collection-more__card{
    flex: 0 0 86%;
    scroll-snap-align: start;
  }

  .collection-more__img{
    border-radius: 12px;
  }

  .collection-more__img img,
  .collection-more__img--ph{
    height: 180px;
  }

  .collection-more__title{
    font-size: 13px;
    line-height: 1.25;
  }

  .collection-more__desc{
    font-size: 11px;
    line-height: 1.4;
  }

  /* Стрілки вимикаємо, бо підказка тепер через видимий край наступної картки */
  .collection-more__wrap .home-cats__arrow{
    display: none !important;
  }
}

@media (max-width: 380px){

  .collection-more__card{
    flex-basis: 84%;
  }

  .collection-more__track{
    padding-right: 34px;
    margin-right: -34px;
  }

  .collection-more__img img,
  .collection-more__img--ph{
    height: 170px;
  }
}
/* =========================================================
   Collection products — mobile 2 columns
   ========================================================= */

@media (max-width: 768px){

  .collection-products__grid{
    width: 100%;
    max-width: var(--collection-mobile-width);
    margin: 16px auto 0;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }

  .collection-products__card{
    width: 100%;
    gap: 6px;
  }

  .collection-products__img{
    border-radius: 10px;
  }

  .collection-products__img img{
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
  }

  .collection-products__title{
    margin-top: 6px;
    font-size: 10.5px;
    line-height: 1.25;
    -webkit-line-clamp: 2;
  }

  .collection-products__price{
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.25;
  }

  .collection-products__btn{
    margin-top: 6px;
    padding: 8px 6px;
    border-radius: 8px;
    font-size: 10.5px;
    line-height: 1.15;
  }

  .collection-bulk{
    max-width: var(--collection-mobile-width);
  }
}

@media (max-width: 380px){

  .collection-single{
    --collection-mobile-width: 320px;
  }

  .collection-products__grid{
    gap: 12px 10px;
  }

  .collection-products__title{
    font-size: 10px;
  }

  .collection-products__price{
    font-size: 9.5px;
  }

  .collection-products__btn{
    font-size: 10px;
    padding: 7px 5px;
  }
}