/*
 * Product description cards (the .cgvd-grid markup written into each product).
 * Ported from vyxo.ro, where the description had the full page width. Here it
 * lives in the column under the gallery, so the breakpoints read the column
 * with @container instead of the window: the cards drop to one column when the
 * column is narrow, whatever the screen is.
 */

.cg-product__desc-body{ container: cgdesc / inline-size; }

/* The theme colours every heading and link; inside the cards they have to follow
   the card, which can sit on a dark panel. */
body.cg .cg-product__desc-body :is(h2, h3, h4){ color: inherit; }
body.cg .cg-product__desc-body .cgvd-grid a{ color: inherit; }

/* The first photo repeats the gallery right above it, so it is left out here. */
.cg-product__desc-body .cgvd-grid__media--hero{ display: none; }
.cg-product__desc-body .cgvd-grid__intro{ grid-template-columns: 1fr; }

.cgvd-grid,
.cgvd-grid * {
  box-sizing: border-box;
}

.cgvd-grid {
  --cgvd-accent: #f97316;
  --cgvd-accent-dark: #e9530d;
  --cgvd-black: #141414;
  --cgvd-muted: #5a5a5a;
  --cgvd-soft: #f7f7f5;
  --cgvd-border: #ececec;
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 20px;
  color: var(--cgvd-black);
  font-family: inherit;
}

.cgvd-grid figure,
.cgvd-grid h2,
.cgvd-grid h3,
.cgvd-grid h4,
.cgvd-grid p {
  margin: 0;
}

.cgvd-grid h2,
.cgvd-grid h3,
.cgvd-grid h4 {
  color: inherit;
  font-family: inherit;
}

.cgvd-grid p {
  font-size: 14px;
  line-height: 1.6;
}

.cgvd-grid__intro,
.cgvd-grid__technology-grid,
.cgvd-grid__three-columns,
.cgvd-grid__two-columns,
.cgvd-grid__benefits {
  display: grid;
  gap: 16px;
}

.cgvd-grid__intro {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.cgvd-grid__intro-copy {
  --cgvd-copy-title-size: clamp(24px, 3cqw, 30px);
  --cgvd-copy-body-size: 15px;
  --cgvd-copy-line-height: 1.6;
  --cgvd-copy-padding: 28px 32px;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--cgvd-copy-padding);
  border-radius: 6px;
  background: var(--cgvd-soft);
}

.cgvd-grid__intro-copy h2 {
  margin-bottom: 12px;
  font-size: var(--cgvd-copy-title-size);
  font-weight: 800;
  line-height: 1.12;
  text-wrap: balance;
}

.cgvd-grid__intro-copy p {
  color: #555;
  font-size: var(--cgvd-copy-body-size);
  line-height: var(--cgvd-copy-line-height);
}

.cgvd-grid__badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: var(--cgvd-badge-size, 11px);
  font-weight: 700;
  line-height: 1.35;
}

.cgvd-grid__badge--accent {
  color: #fff;
  background: linear-gradient(135deg, var(--cgvd-accent), var(--cgvd-accent-dark));
}

.cgvd-grid__badge--dark {
  color: #fff;
  background: #3a3a3a;
}

.cgvd-grid__badge--light {
  color: var(--cgvd-accent-dark);
  background: #f0f0ee;
  text-transform: uppercase;
}

.cgvd-grid__media {
  position: relative;
  display: grid;
  min-width: 0;
  max-height: 600px;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #f1f1f1;
}

.cgvd-grid__media img {
  /* Source files may be up to 1050x1050; this is only the display cap. */
  display: block;
  width: 100%;
  height: auto;
  max-width: 600px;
  max-height: 600px;
  object-fit: contain;
}

.cgvd-grid__media--hero {
  min-height: 300px;
}

.cgvd-grid__media--technology {
  min-height: 220px;
  border-radius: 0;
}

.cgvd-grid__media--square {
  min-height: 260px;
}

.cgvd-grid__media--wide {
  min-height: 220px;
}

.cgvd-grid__technology {
  padding: 40px;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(150deg, #1e1e1e, #141414);
}

.cgvd-grid__technology > h2 {
  margin-bottom: 24px;
  font-size: clamp(21px, 2.8cqw, 24px);
  font-weight: 800;
  line-height: 1.25;
}

.cgvd-grid__technology > h2 span {
  color: #9c9c9c;
  font-weight: 600;
}

.cgvd-grid__technology-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.cgvd-grid__split-card {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}

.cgvd-grid__card-copy {
  --cgvd-copy-title-size: 21px;
  --cgvd-copy-body-size: 14px;
  --cgvd-copy-line-height: 1.6;
  --cgvd-copy-padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--cgvd-copy-padding);
  color: var(--cgvd-black);
}

.cgvd-grid__card-copy h3,
.cgvd-grid__card h3 {
  margin-bottom: 8px;
  font-size: var(--cgvd-copy-title-size);
  font-weight: 800;
  line-height: 1.2;
  text-wrap: balance;
}

.cgvd-grid__card-copy p {
  color: var(--cgvd-muted);
  font-size: var(--cgvd-copy-body-size);
  line-height: var(--cgvd-copy-line-height);
}

.cgvd-grid__card {
  --cgvd-copy-title-size: 21px;
  --cgvd-copy-body-size: 14px;
  --cgvd-copy-line-height: 1.6;
  --cgvd-copy-padding: 28px;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: var(--cgvd-copy-padding);
  border-radius: 6px;
  color: #fff;
}

.cgvd-grid__card p {
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--cgvd-copy-body-size);
  line-height: var(--cgvd-copy-line-height);
}

/*
 * Densitatea este aleasa in HTML dupa lungimea paragrafului.
 * short mareste textul, regular pastreaza scara de baza,
 * iar long compacteaza continutul fara JavaScript.
 */
.cgvd-grid__intro-copy.cgvd-grid__copy--short {
  --cgvd-badge-size: 12px;
  --cgvd-copy-title-size: clamp(28px, 3.4cqw, 36px);
  --cgvd-copy-body-size: clamp(16px, 1.35cqw, 18px);
  --cgvd-copy-line-height: 1.55;
  --cgvd-copy-padding: 34px 38px;
}

.cgvd-grid__intro-copy.cgvd-grid__copy--long {
  --cgvd-badge-size: 10.5px;
  --cgvd-copy-title-size: clamp(22px, 2.6cqw, 26px);
  --cgvd-copy-body-size: 13px;
  --cgvd-copy-line-height: 1.52;
  --cgvd-copy-padding: 24px 28px;
}

.cgvd-grid__card-copy.cgvd-grid__copy--short,
.cgvd-grid__card.cgvd-grid__copy--short {
  --cgvd-badge-size: 12px;
  --cgvd-copy-title-size: clamp(23px, 1.75cqw, 28px);
  --cgvd-copy-body-size: clamp(15.5px, 1.2cqw, 17px);
  --cgvd-copy-line-height: 1.55;
  --cgvd-copy-padding: 32px;
}

.cgvd-grid__card-copy.cgvd-grid__copy--long,
.cgvd-grid__card.cgvd-grid__copy--long {
  --cgvd-badge-size: 10px;
  --cgvd-copy-title-size: 18px;
  --cgvd-copy-body-size: 12.5px;
  --cgvd-copy-line-height: 1.5;
  --cgvd-copy-padding: 24px;
}

.cgvd-grid__card--orange {
  background: linear-gradient(135deg, var(--cgvd-accent), var(--cgvd-accent-dark));
}

.cgvd-grid__card--black {
  background: linear-gradient(150deg, #1e1e1e, #141414);
}

.cgvd-grid__card--navy {
  background: linear-gradient(340deg, #070737, #000, #181818, #121212, rgba(5, 4, 29, 0.9));
}

.cgvd-grid__three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cgvd-grid__two-columns {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.cgvd-grid__benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 8px 0;
}

.cgvd-grid__benefit {
  padding-top: 16px;
  border-top: 2px solid var(--cgvd-accent);
}

.cgvd-grid__benefit h2,
.cgvd-grid__benefit h4 {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.cgvd-grid__benefit p {
  color: var(--cgvd-muted);
  font-size: 13px;
}

.cgvd-grid__specs {
  padding: 28px;
  border: 1px solid var(--cgvd-border);
  border-radius: 6px;
  background: #fff;
}

.cgvd-grid__specs > h2 {
  margin-bottom: 18px;
  font-size: clamp(21px, 2.8cqw, 24px);
  font-weight: 800;
  line-height: 1.25;
}

.cgvd-grid__table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--cgvd-border);
  border-radius: 6px;
}

.cgvd-grid__specs table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

.cgvd-grid__specs th,
.cgvd-grid__specs td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--cgvd-border);
  text-align: left;
  vertical-align: top;
}

.cgvd-grid__specs tr:last-child th,
.cgvd-grid__specs tr:last-child td {
  border-bottom: 0;
}

.cgvd-grid__specs th {
  width: 34%;
  color: var(--cgvd-black);
  background: var(--cgvd-soft);
  font-weight: 700;
}

.cgvd-grid__specs td {
  color: var(--cgvd-muted);
}

.cgvd-grid__faq > h2 {
  margin-bottom: 16px;
  font-size: clamp(21px, 2.8cqw, 24px);
  font-weight: 800;
}

.cgvd-grid__faq details {
  padding: 16px 0;
  border-top: 1px solid var(--cgvd-border);
}

.cgvd-grid__faq details:last-child {
  border-bottom: 1px solid var(--cgvd-border);
}

.cgvd-grid__faq summary {
  position: relative;
  padding-right: 30px;
  color: var(--cgvd-black);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.cgvd-grid__faq summary::-webkit-details-marker {
  display: none;
}

.cgvd-grid__faq summary::after {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--cgvd-accent-dark);
  border-bottom: 2px solid var(--cgvd-accent-dark);
  content: "";
  transform: rotate(45deg);
  transition: top 160ms ease, transform 160ms ease;
}

.cgvd-grid__faq details[open] summary::after {
  top: 9px;
  transform: rotate(225deg);
}

.cgvd-grid__faq details p {
  margin-top: 10px;
  color: var(--cgvd-muted);
}

.cgvd-grid__offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(150deg, #1e1e1e, #141414);
}

.cgvd-grid__offer h2 {
  margin-bottom: 6px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.cgvd-grid__offer p {
  color: rgba(255, 255, 255, 0.9);
}

.cgvd-grid__offer strong {
  color: #fff;
}

.cgvd-grid .cgvd-grid__button {
  flex: none;
  padding: 12px 24px;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, var(--cgvd-accent), var(--cgvd-accent-dark));
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cgvd-grid .cgvd-grid__button:hover,
.cgvd-grid .cgvd-grid__button:focus-visible {
  color: #fff;
  box-shadow: 0 10px 24px rgba(233, 83, 13, 0.28);
  text-decoration: none;
  transform: translateY(-1px);
}

@container cgdesc (max-width: 900px) {
  /* In one column a square photo would take the whole width and stretch the
     description; capped it stays a picture between two cards. */
  .cgvd-grid__media{ max-height: 380px; }

  .cgvd-grid__intro,
  .cgvd-grid__technology-grid,
  .cgvd-grid__two-columns {
    grid-template-columns: 1fr;
  }

  .cgvd-grid__three-columns,
  .cgvd-grid__benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cgvd-grid__three-columns > :last-child,
  .cgvd-grid__benefits > :last-child {
    grid-column: 1 / -1;
  }
}

@container cgdesc (max-width: 600px) {
  .cgvd-grid {
    gap: 14px;
  }

  .cgvd-grid__intro,
  .cgvd-grid__technology-grid,
  .cgvd-grid__three-columns,
  .cgvd-grid__two-columns,
  .cgvd-grid__benefits,
  .cgvd-grid__split-card {
    grid-template-columns: 1fr;
  }

  .cgvd-grid__three-columns > :last-child,
  .cgvd-grid__benefits > :last-child {
    grid-column: auto;
  }

  .cgvd-grid__intro-copy,
  .cgvd-grid__card,
  .cgvd-grid__card-copy {
    padding: 22px;
  }

  .cgvd-grid__intro-copy.cgvd-grid__copy--short {
    --cgvd-copy-title-size: clamp(26px, 8cqw, 31px);
    --cgvd-copy-body-size: 15px;
  }

  .cgvd-grid__card-copy.cgvd-grid__copy--short,
  .cgvd-grid__card.cgvd-grid__copy--short {
    --cgvd-copy-title-size: 22px;
    --cgvd-copy-body-size: 14.5px;
  }

  .cgvd-grid__intro-copy.cgvd-grid__copy--long {
    --cgvd-copy-title-size: 22px;
    --cgvd-copy-body-size: 13px;
  }

  .cgvd-grid__card-copy.cgvd-grid__copy--long,
  .cgvd-grid__card.cgvd-grid__copy--long {
    --cgvd-copy-title-size: 18px;
    --cgvd-copy-body-size: 12.5px;
  }

  .cgvd-grid__technology {
    padding: 24px 18px;
  }

  .cgvd-grid__specs {
    padding: 22px 16px;
  }

  .cgvd-grid__specs th,
  .cgvd-grid__specs td {
    min-width: 150px;
    padding: 11px 12px;
  }

  .cgvd-grid__media--hero,
  .cgvd-grid__media--square {
    min-height: 230px;
  }

  .cgvd-grid__media--technology,
  .cgvd-grid__media--wide {
    min-height: 210px;
  }

  .cgvd-grid__offer {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 22px;
  }

  .cgvd-grid .cgvd-grid__button {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cgvd-grid .cgvd-grid__button,
  .cgvd-grid__faq summary::after {
    transition: none;
  }
}


/* ------------------------------------------------------------------------
 * .cgd: the text description template (crowngsm). Plain HTML with these
 * classes in the product; every colour and size is here, none in the product.
 *
 *   .cgd                     wrapper
 *   .cgd__intro              chips, title (h2), lead, one more paragraph
 *   .cgd__section            h3 + paragraphs
 *   .cgd__verdict            .is-yes / .is-no lines ("Ideal dacă" / "Gândește-te dacă")
 *   .cgd__features           cards: h4 + p
 *   .cgd__cards              .cgd__card--info / --use / --yes / --no: h4, tags, p
 *   .cgd__faq                details > summary + p
 *   .cgd__specs              table: tr.cgd__group (th colspan 2), then th + td rows
 * ---------------------------------------------------------------------- */
.cgd{ display: flex; flex-direction: column; gap: 28px; color: var(--cg-text); font-size: 15px; line-height: 1.65; }
.cgd *, .cgd *::before, .cgd *::after{ box-sizing: border-box; }
.cg-product__desc-body .cgd :is(h2, h3, h4, p, ul, table){ margin: 0; }
.cg-product__desc-body .cgd p + p{ margin-top: 10px; }
.cgd p{ color: #4A4A4A; }

.cgd__intro{ display: flex; flex-direction: column; gap: 12px; }
.cgd__chips, .cgd__tags{ list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cg-product__desc-body .cgd :is(.cgd__chips, .cgd__tags){ padding-left: 0; } /* the rich-text list indent does not apply here */
.cgd__chips li{ font-size: 13px; font-weight: 600; line-height: 1; padding: 8px 12px; border-radius: 6px; background: var(--cg-brand-soft); color: var(--cg-brand); }
body.cg .cg-product__desc-body .cgd__title{ font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; color: var(--cg-text); text-wrap: balance; }
.cgd__lead{ font-size: 16px; }
body.cg .cg-product__desc-body .cgd h3{ font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--cg-text); margin-bottom: 10px; }
body.cg .cg-product__desc-body .cgd h4{ font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--cg-text); }

.cgd__verdict{ display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 6px; background: var(--cg-paper-2); }
.cg-product__desc-body .cgd__verdict p + p{ margin-top: 0; }
.cgd__verdict p{ position: relative; padding-left: 30px; }
.cgd__verdict p::before{ content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; }
.cgd__verdict .is-yes::before{ background: var(--cg-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 10.5 3 3 6-6.5'/%3E%3C/svg%3E") center / 20px no-repeat; }
.cgd__verdict .is-no::before{ background: #B45309 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M10 5.5v5.5M10 14.5v.1'/%3E%3C/svg%3E") center / 20px no-repeat; }
.cgd__verdict strong{ color: var(--cg-text); }

.cgd__features{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cgd__feature{ padding: 18px; border: 1px solid var(--cg-line); border-radius: 6px; display: flex; flex-direction: column; gap: 6px; }
.cgd__feature:first-child{ grid-column: 1 / -1; background: var(--cg-brand); border-color: var(--cg-brand); }
body.cg .cg-product__desc-body .cgd__feature:first-child h4, .cgd__feature:first-child p{ color: #fff; }
.cgd__feature:first-child p{ color: rgba(255,255,255,.8); }
.cgd__feature p{ font-size: 14px; }

.cgd__cards{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cgd__card{ padding: 18px; border-radius: 6px; background: var(--cg-paper-2); display: flex; flex-direction: column; gap: 10px; } /* the tone shows only in the tags */
.cgd__card p{ font-size: 14px; }
.cgd__card--info{ --cgd-tone: var(--cg-brand); }
.cgd__card--use{ --cgd-tone: #6B7280; }
.cgd__card--yes{ --cgd-tone: var(--cg-ok); }
.cgd__card--no{ --cgd-tone: var(--cg-sale); }
.cgd__tags li{ font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 6px; background: #fff; color: var(--cgd-tone, var(--cg-brand)); border: 1px solid var(--cg-line); }

.cgd__faq details{ border-bottom: 1px solid var(--cg-line-2); }
.cgd__faq details:first-of-type{ border-top: 1px solid var(--cg-line-2); }
.cgd__faq summary{ display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; font-weight: 600; color: var(--cg-text); cursor: pointer; list-style: none; }
.cgd__faq summary::-webkit-details-marker{ display: none; }
.cgd__faq summary::after{ content: "+"; flex: none; font-size: 20px; font-weight: 400; color: var(--cg-muted); }
.cgd__faq details[open] summary::after{ content: "\2212"; }
.cgd__faq details p{ padding: 0 0 16px; font-size: 14px; }

.cgd__table{ width: 100%; border-collapse: collapse; font-size: 14px; }
body.cg .cg-product__desc-body .cgd__table, body.cg .cg-product__desc-body .cgd__table :is(th, td){ border: 0; background: none; } /* the generic table borders stay out */
body.cg .cg-product__desc-body .cgd__table :is(th, td){ padding: 10px 0; border-bottom: 1px solid var(--cg-line-2); text-align: left; vertical-align: top; }
.cgd__table th{ width: 42%; padding-right: 16px; font-weight: 400; color: var(--cg-muted); }
.cgd__table td{ color: var(--cg-text); }
.cgd__table .cgd__group th{ width: auto; padding-top: 18px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cg-brand); }
.cgd__table tr:first-child.cgd__group th{ padding-top: 0; }

/* the column under the gallery is narrow on tablets and phones: one card per row */
@container cgdesc (max-width: 560px){
  .cgd__features, .cgd__cards{ grid-template-columns: 1fr; }
  body.cg .cg-product__desc-body .cgd__title{ font-size: 21px; }
}


/* ------------------------------------------------------------------------
 * .cgx: the description in rows of photo + text (crowngsm), written by
 * setup/desc-render.php. The number of photos sets the rows: .cgx--1, --2, --3.
 * Narrow (the column under the gallery, phones) everything stacks, text first,
 * so the clamped part shows words, not pictures. Opened on the full row
 * (>= 760px) the rows go side by side and alternate.
 *
 *   .cgx__title              h2
 *   .cgx__row                .cgx__media (1 or 2 .cgx__img) + .cgx__text; --flip, --text
 *   .cgx__icons              li.cgx-i-{name}: icon drawn from --cgx-i
 *   .cgx__fit                dl of div > dt + dd
 *   .cgx__block              "Ce primești" (.cgx__feat), FAQ (.cgx__faq), specs (.cgx__table)
 * ---------------------------------------------------------------------- */
.cgx{ display: flex; flex-direction: column; gap: 36px; color: var(--cg-text); font-size: 15px; line-height: 1.65; }
.cgx *, .cgx *::before, .cgx *::after{ box-sizing: border-box; }
.cg-product__desc-body .cgx :is(h2, h3, p, ul, dl, dd, table){ margin: 0; }
.cg-product__desc-body .cgx p + p{ margin-top: 10px; }
.cgx p, .cgx dd{ color: #4A4A4A; }
body.cg .cg-product__desc-body .cgx__title{ font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; color: var(--cg-text); text-wrap: balance; }
body.cg .cg-product__desc-body .cgx h3{ font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--cg-text); margin-bottom: 12px; }

.cgx__row{ display: flex; flex-direction: column; gap: 20px; }
.cgx__row .cgx__media{ order: 2; }
.cgx__media{ display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.cgx__media--two{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cgx__img{ display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--cg-r-md); border: 1px solid var(--cg-line); background: #fff; }
.cgx__img.is-cutout{ object-fit: contain; padding: 4%; } /* product shot on white: shown whole */

.cg-product__desc-body .cgx .cgx__icons{ list-style: none; padding: 0; margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.cgx__icons li{ display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.3; color: var(--cg-text); }
.cgx__icons li::before{ content: ""; flex: none; width: 26px; height: 26px; background: var(--cg-text); -webkit-mask: var(--cgx-i, none) center / contain no-repeat; mask: var(--cgx-i, none) center / contain no-repeat; }

.cgx__fit{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.cgx__fit > div{ padding-top: 12px; border-top: 1px solid var(--cg-line-2); }
.cgx__fit dt{ font-weight: 600; color: var(--cg-text); margin-bottom: 2px; }

.cg-product__desc-body .cgx__feat{ list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.cgx__feat li{ padding: 12px 0; border-top: 1px solid var(--cg-line-2); }
.cgx__feat strong{ display: block; color: var(--cg-text); font-weight: 600; }
.cgx__feat span{ font-size: 14px; color: #4A4A4A; }

.cgx__faq details{ border-bottom: 1px solid var(--cg-line-2); }
.cgx__faq details:first-of-type{ border-top: 1px solid var(--cg-line-2); }
.cgx__faq summary{ display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; font-weight: 600; color: var(--cg-text); cursor: pointer; list-style: none; }
.cgx__faq summary::-webkit-details-marker{ display: none; }
.cgx__faq summary::after{ content: "+"; flex: none; font-size: 20px; font-weight: 400; color: var(--cg-muted); }
.cgx__faq details[open] summary::after{ content: "\2212"; }
.cgx__faq details p{ padding: 0 0 16px; font-size: 14px; }

.cgx__table{ width: 100%; border-collapse: collapse; font-size: 14px; }
body.cg .cg-product__desc-body .cgx__table, body.cg .cg-product__desc-body .cgx__table :is(th, td){ border: 0; background: none; }
body.cg .cg-product__desc-body .cgx__table :is(th, td){ padding: 10px 12px; border-bottom: 1px solid var(--cg-line-2); text-align: left; vertical-align: top; }
body.cg .cg-product__desc-body .cgx__table tr:nth-child(odd) :is(th, td){ background: var(--cg-paper-2); }
.cgx__table th{ width: 42%; font-weight: 400; color: var(--cg-muted); }

/* the description opened on its own row: photo and text side by side, alternating */
@container cgdesc (min-width: 760px){
  .cgx{ gap: 56px; }
  .cgx__row{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
  .cgx__row .cgx__media{ order: 0; }
  .cgx__row--flip .cgx__media{ order: 2; }
  .cgx__media:not(.cgx__media--two) .cgx__img{ aspect-ratio: 4 / 3; } /* one photo on half the row is tall enough at 4:3 */
  .cgx__row--text, .cgx__block{ display: block; max-width: 820px; }
  .cg-product__desc-body .cgx .cgx__icons{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.cg .cg-product__desc-body .cgx__title{ font-size: 28px; }
  body.cg .cg-product__desc-body .cgx h3{ font-size: 22px; }
}
@container cgdesc (max-width: 480px){
  .cgx__fit, .cg-product__desc-body .cgx__feat{ grid-template-columns: 1fr; }
  body.cg .cg-product__desc-body .cgx__title{ font-size: 21px; }
}

.cgx-i-card{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h8l4 4v14H7z'/%3E%3Cpath d='M10 3v4M13 3v4M16 4v3'/%3E%3C/svg%3E"); }
.cgx-i-adapter{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Crect x='8' y='11' width='8' height='7' rx='1'/%3E%3C/svg%3E"); }
.cgx-i-chip{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='M9 2v4M15 2v4M9 18v4M15 18v4M2 9h4M2 15h4M18 9h4M18 15h4'/%3E%3C/svg%3E"); }
.cgx-i-battery{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='17' height='10' rx='2'/%3E%3Cpath d='M22 11v2M9 9l-2 3h4l-2 3'/%3E%3C/svg%3E"); }
.cgx-i-temp{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 14.8V5a2 2 0 0 0-4 0v9.8a4 4 0 1 0 4 0z'/%3E%3Cpath d='M12 11v5'/%3E%3C/svg%3E"); }
.cgx-i-bolt{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M13 6l-4 7h4l-2 5'/%3E%3C/svg%3E"); }
.cgx-i-video{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='14' height='12' rx='2'/%3E%3Cpath d='M16 10l6-3v10l-6-3'/%3E%3C/svg%3E"); }
.cgx-i-uv{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E"); }
.cgx-i-vortex{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h11a3 3 0 1 0-3-3'/%3E%3Cpath d='M3 12h16a3 3 0 1 1-3 3'/%3E%3Cpath d='M3 16h7'/%3E%3C/svg%3E"); }
.cgx-i-moon{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z'/%3E%3C/svg%3E"); }
.cgx-i-leaf{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-9 6-14 15-14 0 9-5 15-14 15'/%3E%3Cpath d='M5 19l7-7'/%3E%3C/svg%3E"); }
.cgx-i-usb{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 2h6v6H9zM7 8h10v6a5 5 0 0 1-10 0z'/%3E%3Cpath d='M12 19v3'/%3E%3C/svg%3E"); }
.cgx-i-cup{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7h14l-1.5 13h-11z'/%3E%3Cpath d='M4 4h16v3H4z'/%3E%3C/svg%3E"); }
.cgx-i-magnet{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3v9a6 6 0 0 0 12 0V3h-4v9a2 2 0 0 1-4 0V3z'/%3E%3Cpath d='M6 7h4M14 7h4'/%3E%3C/svg%3E"); }
.cgx-i-spark{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2 5 5 2-5 2-2 5-2-5-5-2 5-2z'/%3E%3Cpath d='M19 16l.8 2 2 .8-2 .8-.8 2-.8-2-2-.8 2-.8z'/%3E%3C/svg%3E"); }
.cgx-i-shield{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l8 3v6c0 5-3.5 9-8 11-4.5-2-8-6-8-11V5z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.cgx-i-phone{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2.5'/%3E%3Cpath d='M18 8h1.5M18 11h1.5'/%3E%3C/svg%3E"); }
.cgx-i-glass{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2.5'/%3E%3Cpath d='M8 7l4-3M8 12l8-6M11 15l5-4'/%3E%3C/svg%3E"); }
.cgx-i-check{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9.5'/%3E%3C/svg%3E"); }
.cgx-i-cable{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9.5' y='2' width='5' height='5' rx='1.5'/%3E%3Cpath d='M11.3 4.5h1.4'/%3E%3Crect x='8' y='7' width='8' height='7' rx='2'/%3E%3Cpath d='M12 14v2.5a3.5 3.5 0 0 0 3.5 3.5H21'/%3E%3C/svg%3E"); }
.cgx-i-ruler{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='8' width='20' height='8' rx='1.5'/%3E%3Cpath d='M6 8v3M10 8v4M14 8v3M18 8v4'/%3E%3C/svg%3E"); }
.cgx-i-sync{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 0 0-14.5-4.5L4 8'/%3E%3Cpath d='M4 4v4h4'/%3E%3Cpath d='M4 13a8 8 0 0 0 14.5 4.5L20 16'/%3E%3Cpath d='M20 20v-4h-4'/%3E%3C/svg%3E"); }
.cgx-i-layers{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5z'/%3E%3Cpath d='M3 13l9 5 9-5'/%3E%3C/svg%3E"); }
.cgx-i-plug{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 2v5M15 2v5'/%3E%3Cpath d='M6 7h12v4a6 6 0 0 1-12 0z'/%3E%3Cpath d='M12 17v5'/%3E%3C/svg%3E"); }
.cgx-i-car{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 16V11l2-5h10l2 5v5'/%3E%3Cpath d='M3 16h18v3H3z'/%3E%3Ccircle cx='7.5' cy='13' r='1'/%3E%3Ccircle cx='16.5' cy='13' r='1'/%3E%3C/svg%3E"); }
.cgx-i-headphones{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15v-3a8 8 0 0 1 16 0v3'/%3E%3Crect x='3' y='14' width='4' height='7' rx='1.5'/%3E%3Crect x='17' y='14' width='4' height='7' rx='1.5'/%3E%3C/svg%3E"); }
.cgx-i-speaker{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2.5'/%3E%3Ccircle cx='12' cy='14' r='4'/%3E%3Ccircle cx='12' cy='6.5' r='1'/%3E%3C/svg%3E"); }
.cgx-i-watch{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='3'/%3E%3Cpath d='M9 6l1-4h4l1 4M9 18l1 4h4l1-4M12 10v2.5l1.5 1'/%3E%3C/svg%3E"); }
.cgx-i-tablet{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='2' width='18' height='20' rx='2.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.cgx-i-laptop{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='11' rx='1.5'/%3E%3Cpath d='M2 19h20'/%3E%3C/svg%3E"); }
.cgx-i-drop{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3s6 7 6 11a6 6 0 0 1-12 0c0-4 6-11 6-11z'/%3E%3C/svg%3E"); }
.cgx-i-clock{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.cgx-i-bluetooth{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7l10 10-5 4V3l5 4L7 17'/%3E%3C/svg%3E"); }
.cgx-i-angle{ --cgx-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3v16h16'/%3E%3Cpath d='M5 11a8 8 0 0 1 8 8'/%3E%3C/svg%3E"); }
