/*
Theme Name: Yarnelo Child
Description: Custom storefront styling for Yarnelo.
Author: Yarnelo
Template: blocksy
Version: 0.2.0
Text Domain: yarnelo
*/

:root {
  --yarnelo-cream: #fbf7f0;
  --yarnelo-blush: #dca0a9;
  --yarnelo-sage: #829780;
  --yarnelo-ink: #302b2a;
  --yarnelo-paper: #ffffff;
  --yarnelo-coral: #c95339;
  --yarnelo-butter: #fff1bd;
  --yarnelo-border: #eadfd6;
}

body {
  color: var(--yarnelo-ink);
  background: var(--yarnelo-cream);
}

.wp-block-button__link,
.single_add_to_cart_button,
.checkout-button {
  border-radius: 999px;
}

.single-product div.product .summary .single_add_to_cart_button {
  min-height: 52px;
  padding-inline: 2rem;
  background: var(--yarnelo-coral);
  font-weight: 700;
}

.yarnelo-product-sections {
  clear: both;
  margin-top: 4rem;
}

.yarnelo-section {
  padding: clamp(2.5rem, 5vw, 5rem) 1.25rem;
  border-top: 1px solid var(--yarnelo-border);
}

.yarnelo-section:nth-child(odd) {
  background: var(--yarnelo-cream);
}

.yarnelo-section-inner {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.yarnelo-section h2 {
  margin: 0 0 1.5rem;
  color: var(--yarnelo-ink);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.yarnelo-feature-grid,
.yarnelo-policy-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yarnelo-feature-grid li,
.yarnelo-policy-links a {
  padding: 1.5rem;
  border: 1px solid var(--yarnelo-border);
  border-radius: 18px;
  background: var(--yarnelo-paper);
}

.yarnelo-feature-grid li {
  font-size: 1.05rem;
}

.yarnelo-product-facts dl {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--yarnelo-border);
  border-radius: 18px;
  background: var(--yarnelo-paper);
}

.yarnelo-product-facts dl > div {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) 1fr;
  border-bottom: 1px solid var(--yarnelo-border);
}

.yarnelo-product-facts dl > div:last-child {
  border-bottom: 0;
}

.yarnelo-product-facts dt,
.yarnelo-product-facts dd {
  margin: 0;
  padding: 1rem 1.25rem;
}

.yarnelo-product-facts dt {
  background: #fffaf4;
  font-weight: 700;
}

.yarnelo-policy-summary {
  background: #eef2e9 !important;
}

.yarnelo-policy-links a {
  color: var(--yarnelo-ink);
  text-decoration: none;
}

.yarnelo-policy-links strong,
.yarnelo-policy-links span {
  display: block;
}

.yarnelo-policy-links strong {
  margin-bottom: 0.5rem;
  color: var(--yarnelo-coral);
}

@media (max-width: 767px) {
  .yarnelo-feature-grid,
  .yarnelo-policy-links {
    grid-template-columns: 1fr;
  }

  .yarnelo-product-facts dl > div {
    grid-template-columns: 1fr;
  }

  .yarnelo-product-facts dd {
    padding-top: 0;
  }
}

