/* Product list + PDP — PackFancy /collections/all + /product/* */

.catalog {
  padding: 28px 0 64px;
}

.catalog .pp-breadcrumb {
  margin-bottom: 20px;
}

.catalog__layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

.catalog__sidebar {
  background: var(--white);
  border: 1px solid #e8e8e8;
  padding: 0;
}

.catalog__sidebar-title {
  display: block;
  font-family: Manrope, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  padding: 18px 16px 14px;
  border-bottom: 1px solid #eee;
}

.catalog__sidebar-title.is-active,
.catalog__group-title.is-active,
.catalog__children a.is-active {
  color: var(--green);
}

.catalog__group {
  border-bottom: 1px solid #eee;
}

.catalog__group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 8px 0 16px;
}

.catalog__group-title {
  flex: 1;
  font-family: "DM Sans", Arial, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.35;
  padding: 12px 0;
}

.catalog__group-toggle {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  color: var(--ink);
}

/* + closed / − open */
.catalog__plus {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.catalog__plus::before,
.catalog__plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.catalog__plus::before {
  width: 14px;
  height: 2px;
}

.catalog__plus::after {
  width: 2px;
  height: 14px;
}

.catalog__group.is-open .catalog__plus::after {
  display: none;
}

.catalog__children {
  list-style: none;
  margin: 0;
  padding: 0 16px 12px 20px;
  display: none;
}

.catalog__group.is-open .catalog__children {
  display: block;
}

.catalog__children li {
  margin: 0 0 8px;
}

.catalog__children a {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
}

.catalog__children a:hover {
  color: var(--green);
}

.catalog__main h1 {
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  margin-bottom: 0.55em;
}

.catalog__lead {
  max-width: 48rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.catalog__empty {
  color: var(--muted);
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.catalog__grid--related {
  grid-template-columns: repeat(3, 1fr);
}

.catalog-card {
  background: var(--white);
  border: 0;
  padding: 0 0 8px;
  text-align: center;
}

.catalog-card__media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--soft);
  margin-bottom: 14px;
}

.catalog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-card__title {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 14px;
  min-height: 2.7em;
  text-align: center;
}

.catalog-card__title a {
  color: var(--ink);
}

.catalog-card__title a:hover {
  color: var(--green);
}

.catalog-card__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  max-width: 220px;
  margin: 0 auto;
}

.catalog-card__quote,
.catalog-card__customize {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55em 1em;
  font-family: Manrope, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 2px;
  box-sizing: border-box;
}

/* PackFancy: white outline FREE QUOTE */
.catalog-card__quote {
  background: #fff;
  color: #333;
  border: 1px solid #d0d0d0;
}

.catalog-card__quote:hover {
  border-color: var(--green);
  color: var(--green);
}

/* PackFancy: solid green Customize */
.catalog-card__customize {
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
}

.catalog-card__customize:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  color: #fff;
}

.catalog__cta {
  margin-top: 48px;
  padding: 28px 24px;
  background: var(--cream);
  text-align: center;
}

.catalog__cta h2 {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  text-align: center;
  margin-bottom: 0.4em;
}

.catalog__cta p {
  margin: 0;
  color: var(--muted);
}

/* —— PDP —— */
.pdp {
  padding: 28px 0 64px;
}

.pdp__top {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.pdp__main-img {
  background: var(--soft);
  border: 1px solid var(--line);
  aspect-ratio: 1;
  overflow: hidden;
}

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

.pdp__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.pdp__thumb {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 0;
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
}

.pdp__thumb.is-active {
  border-color: var(--green);
}

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

.pdp__sku {
  margin: 0 0 6px;
  color: var(--gray);
  font-size: 0.95rem;
}

.pdp__summary h1 {
  font-size: clamp(1.7rem, 2.3vw, 2.35rem);
  margin-bottom: 0.45em;
}

.pdp__bullets {
  margin: 0 0 1.25rem;
  padding-left: 1.15em;
  color: var(--muted);
}

.pdp__form {
  background: #fafafa;
  border: 1px solid var(--line);
  padding: 18px;
}

.pdp__form-label {
  font-family: Manrope, Arial, sans-serif;
  font-weight: 700;
  margin: 0 0 12px;
}

.pdp__form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.pdp__form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.pdp__form-grid label .req {
  color: #e11d48;
  margin-left: 2px;
}

.pdp__form-grid input,
.pdp__form-grid textarea {
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  padding: 0.65em 0.75em;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
}

.pdp__form-grid input::placeholder,
.pdp__form-grid textarea::placeholder {
  color: #9aa0a6;
}

.pdp__form-span2 {
  grid-column: span 2;
}

.pdp__form-full {
  grid-column: 1 / -1;
}

.pdp__form-note {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--green);
  font-weight: 600;
}

@media (max-width: 720px) {
  .pdp__form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pdp__form-span2 {
    grid-column: 1 / -1;
  }
}

.pdp__highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}

.pdp__highlights article {
  border: 1px solid var(--line);
  padding: 16px;
  background: var(--white);
}

.pdp__highlights strong {
  display: block;
  font-family: Manrope, Arial, sans-serif;
  margin-bottom: 6px;
}

.pdp__highlights span {
  color: var(--muted);
  font-size: 0.95rem;
}

.pdp__overview {
  margin-bottom: 40px;
}

.pdp__overview ul {
  color: var(--muted);
}

.pdp__details {
  margin-top: 1.5rem;
  padding: 18px;
  background: var(--cream);
}

.pdp__details h4 {
  margin: 1rem 0 0.35em;
  font-size: 1rem;
}

.pdp__howto {
  margin-bottom: 48px;
}

.pdp__howto-kicker {
  margin: 0 0 6px;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.pdp__steps {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
}

.pdp__steps li {
  border: 1px solid var(--line);
  padding: 16px;
  counter-increment: step;
  position: relative;
}

.pdp__steps li::before {
  content: counter(step);
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.pdp__steps strong {
  display: block;
  font-family: Manrope, Arial, sans-serif;
  margin-bottom: 4px;
}

.pdp__steps span {
  color: var(--muted);
  font-size: 0.95rem;
}

.pdp__related h2 {
  margin-bottom: 1rem;
}

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

  .catalog__grid,
  .catalog__grid--related,
  .pdp__highlights,
  .pdp__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .pdp__top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .catalog__grid,
  .catalog__grid--related,
  .pdp__highlights,
  .pdp__steps,
  .pdp__form-grid {
    grid-template-columns: 1fr;
  }
}
