/* ==========================================================================
   CBD Custom Product Detail – Frontend CSS
   ========================================================================== */

/* --- Base --- */

.cd-sec {
  margin: 32px 0;
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.cd-sec *,
.cd-sec *::before,
.cd-sec *::after {
  box-sizing: border-box;
}

/* --- Intro + Aroma --- */

.cd-sec-intro h2 {
  max-width: 50%;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  font-weight: 500 !important;
  font-size: 30px;
}

.cd-sec-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.cd-sec-intro-grid.cd-has-aroma {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
}

.cd-sec-intro-grid.cd-no-aroma {
  grid-template-columns: minmax(0, 1fr);
}

.cd-sec-intro-grid.cd-no-aroma .cd-intro-left {
  max-width: 100%;
}

.cd-intro-left {
  font-size: 16px;
  line-height: 1.7;
  color: #394941;
  max-width: 650px;
}

.cd-intro-left ul {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}

.cd-intro-left li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 16px;
  color: #21352c;
  font-size: 16px;
  line-height: 1.6;
}

.cd-intro-left li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #ffc107;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

/* Aroma */

.aroma-header {
  font-weight: 600;
  font-size: 20px;
  padding-bottom: 20px;
  text-decoration: underline;
}

.cd-intro-aroma {
  text-align: center;
}

.cd-aroma-circles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.cd-aroma-circle {
  background: #f7f7f7;
  border-radius: 14px;
  border: solid #f5f5f5 1px;
  padding: 20px 15px;
}

.cd-aroma-circle img {
  width: 100%;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 45px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.cd-aroma-circle span {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #21352c;
}

/* --- Ueberblick --- */

.cd-sec-overview {
  background: #eef3ef;
  border-radius: 16px;
  padding: 20px 24px 32px;
  margin-top: 80px;
  margin-bottom: 80px;
}

.cd-sec-overview h2 {
  font-size: 20px !important;
  font-weight: 500 !important;
  color: #333;
  margin: 0 0 16px;
  padding-top: 15px !important;
}

/* Altes Tabellenformat (Fallback) */
.cd-overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  color: #555;
}

.cd-overview-table th {
  text-align: left;
  padding: 8px 12px;
  font-weight: 600;
  color: #333;
}

.cd-overview-table td {
  padding: 8px 12px;
  vertical-align: top;
}

/* Neues 2-Gruppen Layout */
.cd-overview-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
}

.cd-overview-group h3 {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #333;
  margin: 0 0 12px;
}

.cd-overview-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.cd-overview-item {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

.cd-overview-label {
  font-weight: 600;
  color: #333;
}

.cd-overview-value {
  color: #555;
}

/* --- Bild + Text + Fun Fact --- */

.cd-special-text h2 {
  font-size: 20px !important;
  font-weight: 500 !important;
  margin: 0 0 16px;
}

.cd-special-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 3.5fr);
  align-items: start;
}

.cd-special-grid.cd-no-image {
  grid-template-columns: 1fr;
}

.cd-special-image {
  max-width: 350px;
  margin: 0;
}

.cd-special-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.cd-special-text {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

.cd-special-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  counter-reset: special-counter;
}

.cd-special-list li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 12px;
  font-size: 15px;
  color: #555;
  line-height: 1.5;
}

.cd-special-list li::before {
  counter-increment: special-counter;
  content: counter(special-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: #ffc107;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cd-special-funfact {
  margin-top: 24px;
  background: #fff4d7;
  border-radius: 12px;
  padding: 16px 20px 5px 16px;
  font-size: 15px;
  color: #555;
}

/* --- Anwendungstipps --- */

.cd-sec-usage h2 {
  font-size: 25px;
  font-weight: 500 !important;
  color: #333;
  margin: 0 0 20px;
}

.cd-usage-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2fr);
  gap: 40px;
}

.cd-usage-grid.cd-usage-no-table {
  grid-template-columns: 1fr;
}

.cd-usage-no-table .cd-usage-left {
  max-width: 100%;
}

.cd-usage-left {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

.cd-usage-tips {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.cd-usage-tips li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 12px;
  font-size: 15px;
  color: #555;
  line-height: 1.5;
}

.cd-usage-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #ffc107;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;
}

.cd-usage-right {
  overflow-x: auto;
}

.cd-usage-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  font-size: 15px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
}

.cd-usage-table th {
  background: #eef3ef;
  text-align: left;
  padding: 14px 20px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #e5e5e5;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.cd-usage-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #e5e5e5;
  color: #666;
}

.cd-usage-table tbody tr:nth-child(even) {
  background: #f7faf7;
}

.cd-usage-table tbody tr:last-child th,
.cd-usage-table tbody tr:last-child td {
  border-bottom: none;
}

.cd-usage-table th[scope="row"] {
  background: transparent;
  font-weight: 600;
  color: #333;
  text-transform: none;
  font-size: 15px;
  letter-spacing: normal;
  width: 35%;
}

/* Vergleichstabelle (3 Spalten) */
.cd-compare-table thead th {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 12px 20px;
  background: #eef3ef;
  border-bottom: 1px solid #e5e5e5;
}

.cd-compare-table thead th:first-child {
  background: transparent;
  font-weight: 600;
}

/* Vergleich (alt/Legacy) */

.cd-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.cd-compare-card {
  border-radius: 5px;
  border: 1px solid #dfe5df;
  background: #fff;
  overflow: hidden;
}

.cd-highlight {
  background: #f5f9f3;
  border-color: #b8c7b4;
}

.cd-compare-head {
  background: #eef3ef;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  border-bottom: 1px solid #d0d6d0;
  color: #333;
}

.cd-compare-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: repeat(7, auto);
}

.cd-compare-card li {
  padding: 3px 17px;
  font-size: 14px;
  display: flex;
  align-items: center;
  min-height: 60px;
  border-bottom: none;
}

.cd-compare-col:first-child li,
.cd-compare-col:first-child .cd-compare-head {
  font-weight: 700;
}

/* --- Kauftipps --- */

.cd-sec-buy h2 {
  font-size: 24px;
  font-weight: 500 !important;
  color: #333;
  margin: 0 0 16px;
}

.cd-buy-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2.2fr);
  gap: 32px;
}

.cd-buy-left {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

.cd-buy-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cd-buy-tile {
  background: #f0f7f4;
  border-radius: 12px;
  padding: 14px 16px;
}

.cd-buy-tile h3 {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #21352c;
  margin: 0 0 10px !important;
  line-height: 1.3;
}

.cd-buy-tile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cd-buy-tile li {
  position: relative;
  font-size: 13.5px;
  color: #555;
  line-height: 1.45;
  margin-bottom: 6px;
  padding-left: 18px;
}

.cd-buy-tile li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  background: #ffd700;
  border-radius: 50%;
}

/* --- FAQ --- */

.cd-sec-faq {
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  margin-top: 80px;
}

.cd-sec-faq h2 {
  padding-top: 15px !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  color: #333;
  margin: 0 0 12px;
}

.cd-sec-faq details {
  margin-bottom: 12px;
}

.cd-sec-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  cursor: pointer;
  list-style: none;
}

.cd-sec.cd-sec-faq summary h3 {
  margin: 0;
  padding: 0;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #333;
  line-height: 1.4;
}

.cd-sec-faq summary::-webkit-details-marker {
  display: none;
}

.cd-sec-faq summary::after {
  content: "";
  background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333" width="18px" height="18px"%3E%3Cpath d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/%3E%3C/svg%3E');
  background-size: contain;
  background-repeat: no-repeat;
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.cd-sec-faq details[open] summary::after {
  transform: rotate(90deg);
}

.cd-sec-faq details > :not(summary) {
  padding: 4px 0 12px;
  color: #555;
  font-size: 15px;
}

/* --- Trustpilot --- */

.cd-sec-trustpilot,
.cd-trustpilot-wrapper,
.cd-trustpilot-wrapper .trustpilot-widget {
  max-width: 100%;
  box-sizing: border-box;
}

.cd-trustpilot-wrapper iframe {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
}

/* --- Extra-Sektionen --- */

.cd-sec-extra {
  margin: 32px 0;
}

/* Extra: Grid Layout mit Bild */
.cd-extra-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 3.5fr);
  align-items: start;
}

.cd-extra-grid.cd-extra-grid-right {
  grid-template-columns: minmax(0, 3.5fr) minmax(0, 1.4fr);
}

.cd-extra-grid.cd-extra-grid-right .cd-extra-image {
  order: 2;
}

.cd-extra-grid.cd-extra-grid-right .cd-extra-content {
  order: 1;
}

.cd-extra-image {
  max-width: 350px;
  margin: 0;
}

.cd-extra-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.cd-extra-content {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* Extra: Listen */
.cd-sec-extra ul {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}

.cd-sec-extra li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 12px;
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}

.cd-sec-extra ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #ffc107;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  /* Global mobile overflow fix */
  .cd-sec {
    overflow-x: hidden;
    max-width: 100vw;
    word-break: break-word;
  }

  .cd-usage-table,
  .cd-compare-table,
  .cd-overview-table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
  }

  /* Intro */
  .cd-sec-intro h2 {
    font-size: 24px !important;
    line-height: 1.3 !important;
    max-width: 100% !important;
    padding-right: 12px;
    padding-left: 12px;
    word-break: break-word !important;
    hyphens: auto;
    white-space: normal;
  }

  .cd-sec-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 12px;
  }

  .cd-aroma-circles {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .cd-aroma-circle img {
    width: 90px;
    height: 90px;
  }

  /* Grids einspaltig */
  .cd-sec-intro-grid.cd-has-aroma,
  .cd-special-grid,
  .cd-extra-grid,
  .cd-usage-grid,
  .cd-buy-grid {
    grid-template-columns: 1fr;
  }

  /* Ueberblick */
  .cd-sec-overview {
    padding: 10px 15px !important;
    margin: 0px 12px;
  }

  .cd-overview-table {
    display: flex;
    flex-direction: column;
  }

  .cd-overview-table tbody,
  .cd-overview-table tr {
    display: contents;
  }

  .cd-overview-table th,
  .cd-overview-table td {
    display: block;
    width: 100%;
    padding: 6px 8px;
    border: none;
    text-align: left;
    margin-top: 0px !important;
    order: 0;
  }

  .cd-overview-table tr:first-child th:nth-of-type(2),
  .cd-overview-table tr:first-child th:nth-of-type(4) {
    display: none;
  }

  .cd-overview-table tr:first-child th:nth-of-type(1),
  .cd-overview-table tr:first-child th:nth-of-type(3) {
    font-size: 18px;
    margin: 20px 0 8px 0;
  }

  .cd-overview-table tr:first-child th:nth-of-type(1) { order: 1; }
  .cd-overview-table tr:nth-of-type(2) td:nth-of-type(1) { order: 2; }
  .cd-overview-table tr:nth-of-type(3) td:nth-of-type(1) { order: 3; }
  .cd-overview-table tr:nth-of-type(4) td:nth-of-type(1) { order: 4; }
  .cd-overview-table tr:nth-of-type(2) td:nth-of-type(2) { order: 5; }
  .cd-overview-table tr:nth-of-type(3) td:nth-of-type(2) { order: 6; }
  .cd-overview-table tr:nth-of-type(4) td:nth-of-type(2) { order: 7; }
  .cd-overview-table tr:first-child th:nth-of-type(3) { order: 8; }
  .cd-overview-table tr:nth-of-type(2) td:nth-of-type(3) { order: 9; }
  .cd-overview-table tr:nth-of-type(4) td:nth-of-type(3) { order: 10; }
  .cd-overview-table tr:nth-of-type(3) td:nth-of-type(3) { order: 11; }
  .cd-overview-table tr:nth-of-type(2) td:nth-of-type(4) { order: 12; }
  .cd-overview-table tr:nth-of-type(3) td:nth-of-type(4) { order: 13; }
  .cd-overview-table tr:nth-of-type(4) td:nth-of-type(4) { order: 14; }

  /* Neues Überblick-Layout mobile */
  .cd-overview-groups {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cd-overview-items {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Special */
  .cd-sec-special {
    padding: 0 16px;
  }

  /* Kauftipps */
  .cd-buy-right {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cd-sec-buy {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Anwendungstipps */
  .cd-sec-usage {
    padding: 0 16px;
  }

  /* FAQ */
  .cd-sec-faq {
    margin: 16px 16px;
  }

  .cd-sec-faq h2 {
    padding-top: 0px !important;
  }

  /* Vergleich */
  .cd-compare-col:nth-child(3) {
    display: none;
  }

  .cd-compare-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .cd-compare-card li {
    min-height: 48px;
    padding: 6px 10px;
  }

  .cd-compare-head {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Trustpilot */
  .cd-sec-trustpilot {
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  .cd-trustpilot-wrapper {
    margin-left: 0;
    margin-right: 0;
    overflow-x: hidden;
  }
}

/* ==========================================================================
   CBD/THC/Qualitäts-Box (attr-box)
   ========================================================================== */

.cd-attr-band {
  background: #eef3ef;
  border: 1px solid #e1e7e2;
  border-radius: 12px;
  padding: 18px 16px;
  margin-top: 12px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 16px;
}

.cd-attr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.cd-attr-ico {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  position: relative;
}

.cd-attr-ico::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70px;
}

.cd-ico-cbd::after {
  background-image: url("../img/cbd-gehalt-icon.png");
}

.cd-ico-thc::after {
  background-image: url("../img/thc-gehalt-icon.png");
}

.cd-ico-cbg::after {
  background-image: url("../img/cbg-gehalt-icon.png");
}

.cd-ico-cbn::after {
  background-image: url("../img/cbn-gehalt-icon.png");
}

.cd-ico-h4cbd::after {
  background-image: url("../img/h4cbd-gehalt-icon.png");
}

.cd-ico-eu::after {
  background-image: url("../img/icon-eu-premium.png");
}

.cd-attr-text {
  font-size: 10px;
  line-height: 1.2;
  color: #2f3a34;
  font-weight: 500;
}

.cd-attr-text br { display: none; }
.cd-attr-text strong { font-weight: 500; }
.cd-attr-text strong::after { content: " "; }

@media (max-width: 900px) {
  .cd-attr-band {
    gap: 12px;
  }
  .cd-attr-ico { width: 64px; height: 64px; }
  .cd-attr-ico::after { background-size: 40px; }
  .cd-attr-text { font-size: 10px; }
}

@media (max-width: 420px) {
  .cd-attr-band {
    gap: 10px;
    padding: 14px 10px;
  }
  .cd-attr-ico { width: 56px; height: 56px; }
  .cd-attr-ico::after { background-size: 30px; }
  .cd-attr-text { font-size: 10px; }
}

/* Positionierung unter der Galerie */
.single-product .product .images .cd-attr-band {
  background: #eef3ef;
  border: 1px solid #e1e7e2;
  border-radius: 12px;
  padding: 18px 16px;
  margin-top: 12px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 16px;
}

/* ==========================================================================
   Mengen-Grid (qty-grid)
   ========================================================================== */

.cd-qty-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}

.cd-qty-pill {
  border: 1px solid #d9ded8;
  border-radius: 4px;
  background: #f8faf7;
  color: #21352c;
  padding: 6px 10px 4px;
  min-width: 60px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cd-qty-weight { font-weight: 600; }
.cd-qty-ppg { font-size: 11px; opacity: 0.8; }

.cd-qty-pill--active {
  background: #e4f0e4;
  border-color: #9bbf99;
  box-shadow: 0 0 0 1px #9bbf99;
}

.cd-qty-pill:hover { border-color: #b5c6b3; }

.cd-qty-pill--disabled,
.cd-qty-pill[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f5f5f5;
  border-style: dashed;
}

@media (max-width: 600px) {
  .cd-qty-pill { padding: 5px 8px 3px; min-width: 52px; font-size: 12px; }
  .cd-qty-ppg { font-size: 10px; }
}

/* ==========================================================================
   Magazin-Block (magazine-block)
   ========================================================================== */

.cd-magazine-section {
  margin: 40px 12px 20px;
  padding: 0 10px;
}

.cd-magazine-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cd-magazine-heading {
  font-size: 28px;
  font-weight: 700;
  color: #21352c;
  margin-bottom: 24px;
}

.cd-magazine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cd-magazine-card {
  background: #f5f7f6;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.cd-magazine-image-wrap {
  width: 100%;
  overflow: hidden;
}

.cd-magazine-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0 !important;
}

.cd-magazine-content {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cd-magazine-title {
  font-size: 18px;
  font-weight: 700;
  color: #21352c;
}

.cd-magazine-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: #394941;
  min-height: 60px;
}

.cd-magazine-button {
  align-self: flex-start;
  margin-top: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #ffc107;
  color: #000;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cd-magazine-button:hover {
  background: #ffcf2a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .cd-magazine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .cd-magazine-grid { grid-template-columns: 1fr; }
  .cd-magazine-image { height: 200px; }
}
