/* ==========================================================================
   page-2025collection.css — BEM + SEO/Accessibility Refactor
   ========================================================================== */

/* --------------------------------------------------------------------------
   Utility: Screen‑reader only
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   General Page Styles
   -------------------------------------------------------------------------- */
body {
  background-color: #efefef;
}

.page-collection {
  margin: 0 auto;
  padding: 40px 0;
  text-align: left;
  box-sizing: border-box;
}


/* ==========================================================================
   Header / Animated Title (Single‑run Animation)
   ========================================================================== */
.page-collection__header {
  position: relative;
  display: inline-block;    /* shrink‑wrap to title width */
  margin-bottom: 30px;
}

.page-collection__title {
  font-size: 2.5rem;
  font-weight: bold;
  display: inline-block;
  color: #333;
  margin: 0;
}

/* original sizing & centering */
.page-collection__underline {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  transform: translate(-50%, -50%);
  overflow: visible;
}

.page-collection__underline path {
  stroke: #8eb63e;
  stroke-width: 12;
  fill: none;
  opacity: 1;
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  /* shorthand with explicit 1 iteration */
  animation: draw-underline 6s ease-out 0s 1 forwards;
}

/* only one keyframes block needed */
@keyframes draw-underline {
  from {
    stroke-dashoffset: 1500;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* ————————————
REMOVE any old rules like:

.animated-title svg path {
  animation: draw-underline 6s ease-out forwards;
}

so there’s only one selector applying the animation.
*/



/* ==========================================================================
   Announcement Section
   ========================================================================== */
.page-collection__announcement {
  margin-bottom: 20px;
}

.page-collection__announcement .page-collection__text {
  font-size: 1.25em;
  color: #333;
  margin: 0 0 10px;
  line-height: 1.5;
}


/* ==========================================================================
   Products Grid
   ========================================================================== */
.page-collection__products .page-collection__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-collection__item {
  flex: 1 1 calc(25% - 40px);
  background-color: #fff;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.page-collection__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.page-collection__figure {
  margin: 0;
}

.page-collection__image {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.page-collection__item:hover {
  box-shadow: 0 0 10px rgba(142, 182, 62, 0.7);
}

.page-collection__caption {
  display: block;
  font-size: 1.1em;
  margin-top: 10px;
  color: #333;
  font-weight: 600;
  transition: color 0.3s ease;
  text-align: center;
}

.page-collection__caption:hover {
  color: #8eb63e;
}

/* --------------------------------------------------------------------------
   Responsive Products Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
  .page-collection__item {
    flex: 1 1 calc(50% - 30px);
  }
}

@media (max-width: 768px) {
  .page-collection__item {
    flex: 1 1 100%;
  }
}


/* --------------------------------------------------------------------------
   Responsive Container Widths
   -------------------------------------------------------------------------- */
@media (min-width: 1921px) {
  .page-collection {
    width: 75%;
  }
}

@media (min-width: 1441px) and (max-width: 1920px) {
  .page-collection {
    width: 80%;
  }
}

@media (min-width: 1025px) and (max-width: 1440px) {
  .page-collection {
    width: 85%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .page-collection {
    width: 90%;
    padding: 30px 0;
  }
}

@media (max-width: 768px) {
  .page-collection {
    padding: 20px;
  }
  .page-collection__title {
      font-size: 1.5rem;
  }
}
