/* Product-description styling restored from the WP Customizer "Additional CSS"
   (the WooCommerce Store API strips inline <style> from product descriptions).
   Served as a plain stylesheet so this legacy CSS bypasses the build pipeline. */
.product-container-slimline {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  margin-top: 20px;
}

.main-description {
  font-size: 1.1em;
  color: #444;
  margin-bottom: 30px;
}

.section-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #252525;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-item {
  background: #fff1e3;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.feature-item .icon {
  font-size: 2.5em;
  color: #3f51b5;
}

.feature-item h3 {
  font-size: 1.1em;
  margin-top: 10px;
  margin-bottom: 5px;
  color: #252525;
}

.feature-item p {
  font-size: 0.9em;
  color: #666;
  margin: 0;
}

.specs-kit-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

.specs-table,
.kit-includes {
  background-color: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 25px;
}

.specs-table ul,
.kit-includes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.specs-table li,
.kit-includes li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.specs-table li:last-child,
.kit-includes li:last-child {
  border-bottom: none;
}

.specs-table strong,
.kit-includes strong {
  color: #333;
}

.kit-includes .example {
  font-size: 0.85em;
  color: #777;
  margin-top: 15px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 5px;
  border: 1px dashed #ddd;
}

.accordion {
  margin-top: 20px;
}

.accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.accordion-item input[type='checkbox'] {
  display: none;
}

.accordion-item label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #fcf4eb;
  font-weight: 600;
  font-size: 1.2em;
  color: #f68f28;
  cursor: pointer;
  position: relative;
}

.accordion-item label::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
  line-height: 1;
}

.accordion-item input:checked + label::after {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease-out,
    padding 0.4s ease-out;
  padding: 0 20px;
}

.accordion-item input:checked ~ .accordion-content {
  max-height: 500px;
  padding: 20px;
}

.accordion-content ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.accordion-content li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.accordion-content li::before {
  content: '\2713';
  color: #3f51b5;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.color-section {
  text-align: center;
  background: #f68f28;
  color: #fff;
  padding: 30px;
  border-radius: 8px;
  margin-top: 40px;
}

.color-section h2 {
  margin-top: 0;
  font-size: 1.8em;
  color: #fff;
}

.dispatch-notice {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.dispatch-notice .notice-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.dispatch-notice strong {
  display: block;
  margin-bottom: 4px;
  color: #533f03;
}

@media (max-width: 768px) {
  .specs-kit-container {
    grid-template-columns: 1fr;
  }
  .section-title,
  .color-section h2 {
    font-size: 1.5em;
  }
}

/* The CMS accordion's checkbox never survives the Store API, so the panels
   could never open. src/lib/text.ts rewrites the orphaned <label> to
   .accordion-heading and .accordion-content to .accordion-open. */
.accordion-heading {
  display: block;
  padding: 15px 20px;
  background: #fcf4eb;
  font-weight: 600;
  font-size: 1.1em;
  color: #f68f28;
  margin: 0;
}
.accordion-open {
  max-height: none;
  overflow: visible;
  padding: 20px;
}

/* Collapsed description on phones (the <details> in product/[slug].astro).
   This lives here, not in src/styles/, because only this file is served. */
.prod-desc-clip {
  position: relative;
  max-height: 34rem;
  overflow: hidden;
}
.prod-desc-clip::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 5rem;
  background: linear-gradient(to top, #fff, transparent);
  pointer-events: none;
}
