/* ============================================================
   Packagly — product/details.css
   Depends on: common.css (variables, reset, icon helpers)
   Responsive @media rules live in responsive.css
   ============================================================ */

/* ============================================================
   DETAILS / DESCRIPTION  (collapsible left + sticky visual)
   ============================================================ */
.details-section {
  background: #ffffff;
  padding: 40px 0 10px;
}
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ---- left content ---- */
.details-overline {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.details-collapse h2 {
  position: relative;
  margin: 0 0 24px;
  padding-left: 14px;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  color: #15241b;
}
.details-collapse h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 5px;
  background: var(--green);
  border-radius: 3px;
}
.details-collapse h2 .accent {
  color: var(--green);
}

.details-collapse {
  position: relative;
}
.details-collapse.is-collapsed {
  max-height: 520px;
  overflow: hidden;
}
.details-collapse.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 92%);
  pointer-events: none;
}
.details-h {
  margin: 22px 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #15241b;
}
.details-h .accent {
  color: var(--green);
}
.details-content p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.75;
  color: #5d6b62;
}
.details-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.details-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #5d6b62;
}
.details-check {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.details-list strong {
  color: #15241b;
  font-weight: 700;
}
.details-toggle {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 10px;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}
.details-toggle:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.details-toggle img {
  width: 16px;
  height: 16px;
}

/* ---- right sticky promo card ---- */
.details-visual {
  position: sticky;
  top: 100px;
}
.dv-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  padding: 26px 26px 22px;
  background: linear-gradient(135deg, #14351f 0%, #0a2114 55%, #06160d 100%);
}
.dv-top {
  position: relative;
}
.dv-body {
  max-width: 60%;
}
.dv-overline {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--white-70);
  margin-bottom: 10px;
}
.dv-title {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
}
.dv-title .accent {
  color: var(--green);
}
.dv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dv-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.dv-ico {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dv-ico img {
  width: 18px;
  height: 18px;
}
.dv-text {
  display: flex;
  flex-direction: column;
}
.dv-text strong {
  font-size: 13.5px;
  font-weight: 700;
}
.dv-text small {
  font-size: 11.5px;
  color: var(--white-70);
  line-height: 1.4;
}
.dv-art {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 42%;
  max-width: 230px;
}
.dv-art img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.4));
}
.dv-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.dv-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 10px;
  padding: 9px 10px;
}
.dv-badge img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.dv-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.dv-badge b {
  font-size: 11px;
  font-weight: 800;
  color: #15241b;
  text-transform: uppercase;
}
.dv-badge small {
  font-size: 10px;
  color: #7a877e;
  text-transform: uppercase;
}

/* ---- feature strip ---- */
.details-features {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #f4f6f4;
  border: 1px solid #e7ebe7;
  border-radius: 14px;
}
.df-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-left: 1px solid #e3e8e2;
}
.df-item:first-child {
  border-left: none;
}
.df-ico {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #eef5e3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.df-ico img {
  width: 22px;
  height: 22px;
}
.df-text {
  display: flex;
  flex-direction: column;
}
.df-text strong {
  font-size: 14px;
  font-weight: 800;
  color: #15241b;
  line-height: 1.15;
}
.df-text strong .accent {
  color: var(--green);
}
.df-text small {
  font-size: 11.5px;
  color: #7a877e;
  margin-top: 2px;
}
.details-collapse h3 {
  color: black;
}
