/* ==========================================================================
   CMS9 · Тема "Default" — CONTENT-сторінки (blog / article / contacts /
   delivery+static / thank-you). Переклад монохромного Claude-Design макета
   (sec-blog / sec-article / sec-contacts / sec-delivery / sec-thankyou) у
   storefront-стиль. Продовження theme.css + theme-shop.css: ті самі токени
   (--accent / --radius / --surface / --line / --font …), namespace .dt-* .
   Завантажується ПІСЛЯ theme.css / theme-shop.css / final.min.css.
   Дані/хуки НЕ чіпаються — тут лише візуал; goodlook-розмітку включень
   (order_view_summary / order_view_info / countdown / tags-cloud) обгортаємо
   за вагою через .dt-thankyou / .dt-article / .dt-staticpage (без !important).
   ========================================================================== */

/* ---- shared page header ------------------------------------------------- */
.dt-page { padding: 8px 0 40px; }
.dt-page__head { padding: 6px 0 4px; }
.dt-page__title { font-size: 30px; font-weight: 600; margin: 0; line-height: 1.15; }
.dt-page__sub { font-size: 13px; font-weight: 300; color: var(--muted); margin-top: 6px; }

/* ==========================================================================
   BLOG — LIST (sec-blog)
   ========================================================================== */
.dt-blog { display: flex; flex-direction: column; gap: 24px; padding: 16px 0 40px; }
.dt-blog__meta { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }

/* featured (first) post */
.dt-blog__feat { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; }
.dt-blog__feat-media { width: 440px; flex: none; background: var(--surface); overflow: hidden; min-height: 240px; }
.dt-blog__feat-media img { width: 100%; height: 100%; object-fit: cover; }
.dt-blog__feat-body { flex: 1; min-width: 0; padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; }
.dt-blog__feat-title { font-size: 26px; font-weight: 600; line-height: 1.25; margin: 10px 0 0; }
.dt-blog__feat-excerpt { font-size: 13px; font-weight: 300; color: #666; line-height: 1.7; margin-top: 10px; }
.dt-blog__feat .dt-btn { margin-top: 20px; align-self: flex-start; }

/* grid of remaining posts */
.dt-blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dt-blogpost { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.dt-blogpost__media { display: block; height: 158px; background: var(--surface); overflow: hidden; }
.dt-blogpost__media img { width: 100%; height: 100%; object-fit: cover; }
.dt-blogpost__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dt-blogpost__title { font-size: 15px; font-weight: 600; line-height: 1.35; margin: 0; }
.dt-blogpost__excerpt { font-size: 12px; font-weight: 300; color: #666; line-height: 1.6; }
.dt-blogpost__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 10px; gap: 10px; }
.dt-blogpost__date { font-size: 10.5px; color: var(--muted-2); font-weight: 300; }
.dt-blogpost__more { font-size: 11.5px; font-weight: 500; border-bottom: 1px solid var(--ink); white-space: nowrap; }

.dt-blog__pagination { display: flex; justify-content: center; padding: 6px 0 0; }
.dt-blog__empty { font-size: 14px; color: var(--muted); padding: 40px 0; }

/* ==========================================================================
   BLOG — SINGLE ARTICLE (sec-article)
   ========================================================================== */
.dt-article { padding: 8px 0 40px; }
.dt-article__head { max-width: 760px; margin: 0 auto; padding: 14px 0 8px; }
.dt-article__eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.dt-article__title { font-size: 34px; font-weight: 600; line-height: 1.2; margin: 10px 0 0; }
.dt-article__byline { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 12px; color: var(--muted-2); font-weight: 300; flex-wrap: wrap; }
.dt-article__byline .who { color: var(--ink); font-weight: 500; }

.dt-article__hero { max-width: 900px; margin: 0 auto; padding: 18px 0 0; }
.dt-article__hero-img { height: 340px; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.dt-article__hero-img img { width: 100%; height: 100%; object-fit: cover; }

.dt-article__body { max-width: 760px; margin: 0 auto; padding: 26px 0 8px; }
.dt-article__body .dt-seo { font-size: 14.5px; color: #333; line-height: 1.85; }
.dt-article__body .dt-seo p { margin-top: 16px; }
.dt-article__body .dt-seo h2, .dt-article__body .dt-seo h3 { font-size: 21px; font-weight: 600; color: var(--ink); margin: 26px 0 10px; }
.dt-article__body .dt-seo blockquote {
  margin: 24px 0; padding: 16px 22px; border-left: 3px solid var(--accent); background: #f7f7f7;
  border-radius: 0 10px 10px 0; font-size: 15px; color: #333; font-style: italic;
}

.dt-article__footer { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.dt-article__share, .dt-article__tags { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dt-article__share-label { font-size: 12px; color: var(--muted-2); }
.dt-article .tags-cloud__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.dt-article .tags-cloud__item { margin: 0; }
.dt-article .tags-cloud__link { display: inline-block; background: var(--surface); border-radius: var(--pill); padding: 6px 14px; font-size: 11.5px; color: var(--ink-2); }
.dt-article .tags-cloud__link:hover { background: var(--accent); color: #fff; }

.dt-article__comments { max-width: 760px; margin: 26px auto 0; }
.dt-article__comments-title { font-size: 20px; font-weight: 600; margin-bottom: 16px; }

/* ==========================================================================
   CONTACTS (sec-contacts)
   ========================================================================== */
.dt-contacts { display: flex; gap: 28px; padding: 22px 0 40px; align-items: flex-start; }
.dt-contacts__aside { width: 360px; flex: none; }
.dt-contacts__card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.dt-contacts__row { display: flex; gap: 13px; align-items: flex-start; }
.dt-contacts__row + .dt-contacts__row { border-top: 1px solid var(--line-2); padding-top: 16px; }
.dt-contacts__ico { width: 34px; height: 34px; border-radius: 9px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.dt-contacts__ico svg { width: 16px; height: 16px; }
.dt-contacts__k { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--muted-2); text-transform: uppercase; }
.dt-contacts__v { font-size: 14px; font-weight: 600; margin-top: 4px; line-height: 1.5; }
.dt-contacts__v--sm { font-size: 13px; font-weight: 500; }
.dt-contacts__socials { display: flex; gap: 10px; border-top: 1px solid var(--line-2); padding-top: 16px; }
.dt-contacts__soc { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.dt-contacts__soc:hover { opacity: .85; color: #fff; }

.dt-contacts__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.dt-contacts__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.dt-contacts__map iframe, .dt-contacts__map .map, .dt-contacts__map > div { width: 100%; min-height: 300px; display: block; border: 0; }
.dt-contacts__form { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.dt-contacts__form-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }

/* ==========================================================================
   STATIC / DELIVERY & PAYMENT PAGE (sec-delivery — body from CMS content)
   ========================================================================== */
.dt-staticpage { padding: 8px 0 40px; }
.dt-staticpage__body { max-width: 940px; }
.dt-staticpage__sectitle { font-size: 20px; font-weight: 600; margin: 30px 0 16px; }
.dt-staticpage__products { margin-top: 8px; }
.dt-staticpage__comments { margin-top: 8px; }

/* mod_link countdown (goodlook markup, restyled) */
.dt-staticpage .countdown-post { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; flex-wrap: wrap; }
.dt-staticpage .countdown-post__title { font-size: 13px; font-weight: 600; }
.dt-staticpage .countdown-post__date { display: flex; align-items: center; gap: 10px; }
.dt-staticpage .countdown-post__item { font-size: 18px; font-weight: 700; }
.dt-staticpage .countdown-post__label { font-size: 11px; color: var(--muted-2); }

/* ==========================================================================
   THANK-YOU / ORDER ACCEPTED (sec-thankyou — order_view + includes)
   ========================================================================== */
.dt-thankyou { padding: 8px 0 44px; }
.dt-thankyou__hero { max-width: 1000px; margin: 0 auto; padding: 34px 0 8px; text-align: center; }
.dt-thankyou__check { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.dt-thankyou__check svg { width: 32px; height: 32px; }
.dt-thankyou__htitle { font-size: 30px; font-weight: 600; margin-top: 18px; }
.dt-thankyou__hsub { font-size: 14px; font-weight: 300; color: var(--ink-2); margin-top: 8px; }
.dt-thankyou__hsub b { font-weight: 600; color: var(--ink); }
.dt-thankyou__hnote { font-size: 12.5px; font-weight: 300; color: var(--muted-2); margin-top: 6px; }
.dt-thankyou__ordhead { text-align: center; padding: 20px 0 4px; }

.dt-thankyou__layout { display: flex; gap: 28px; max-width: 1000px; margin: 0 auto; padding: 30px 0 0; align-items: flex-start; }
.dt-thankyou__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.dt-thankyou__aside { width: 330px; flex: none; display: flex; flex-direction: column; gap: 16px; }
.dt-thankyou__card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.dt-thankyou__caption { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--muted-2); text-transform: uppercase; margin-bottom: 4px; }

/* --- order composition (wraps order_view_summary → cart-summary markup) --- */
.dt-thankyou__card .content__row { margin: 0; }
.dt-thankyou__card .cart-summary { border: 0; }
.dt-thankyou__card .cart-prod-table__row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.dt-thankyou__card .cart-prod-table__info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; flex-wrap: wrap; }
.dt-thankyou__card .cart-prod-table__products-wrapper { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.dt-thankyou__card .cart-product { display: flex; align-items: center; gap: 12px; }
.dt-thankyou__card .cart-product__photo { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--surface-2); flex: none; }
.dt-thankyou__card .cart-product__photo .product-photo__item { display: block; width: 100%; height: 100%; padding: 0; border: 0; }
.dt-thankyou__card .cart-product__photo .product-photo__img { position: static; width: 100%; height: 100%; object-fit: contain; margin: 0; }
.dt-thankyou__card .cart-product__title { font-size: 13px; font-weight: 400; line-height: 1.4; }
.dt-thankyou__card .cart-product__title a { color: var(--ink); }
.dt-thankyou__card .cart-product__row { font-size: 11px; color: var(--muted-2); margin-top: 3px; }
.dt-thankyou__card .cart-product__price .cart-price__item--old { color: #bbb; text-decoration: line-through; margin-right: 6px; }
.dt-thankyou__card .cart-prod-table__purchase { display: flex; align-items: center; gap: 14px; margin-left: auto; flex: none; }
.dt-thankyou__card .cart-prod-table__quantity { font-size: 11px; color: var(--muted-2); white-space: nowrap; }
.dt-thankyou__card .cart-prod-table__price { font-size: 14px; font-weight: 600; white-space: nowrap; }
.dt-thankyou__card .cart-prod-table__icon { display: none; }
.dt-thankyou__card .cart-summary__total { margin-top: 4px; }
.dt-thankyou__card .cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eee; }
.dt-thankyou__card .cart-total__label { font-size: 14px; font-weight: 600; }
.dt-thankyou__card .cart-total__value .cart-price__item { font-size: 22px; font-weight: 700; }
.dt-thankyou__card .cart-price__addition { font-size: 11px; color: var(--muted-2); font-weight: 400; }

/* --- order details (wraps order_view_info → frame-content / order-details) --- */
.dt-thankyou__card .frame-content { border: 0; padding: 0; }
.dt-thankyou__card .frame-content__body { padding: 0; border: 0; }
.dt-thankyou__card .frame-content__body + .frame-content__body { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.dt-thankyou__card .order-details__group { display: flex; flex-direction: column; gap: 6px; }
.dt-thankyou__card .order-details__row { display: flex; justify-content: space-between; gap: 16px; font-size: 12.5px; }
.dt-thankyou__card .order-details__cell--title { color: var(--muted-2); font-weight: 300; flex: none; }
.dt-thankyou__card .order-details__cell { color: var(--ink); text-align: right; }
.dt-thankyou__card .order-details__cell .btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--ink); border-radius: var(--pill); padding: 7px 14px; font-size: 11.5px; color: var(--ink); background: #fff; }
.dt-thankyou__card .order-details__cell .btn.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.dt-thankyou__card .order-details__cell .btn .svg-icon { width: 13px; height: 13px; fill: currentColor; }

/* --- aside: "what is next?" steps + points --- */
.dt-thankyou__steps { display: flex; flex-direction: column; margin-top: 14px; }
.dt-thankyou__step { display: flex; gap: 12px; }
.dt-thankyou__step-rail { display: flex; flex-direction: column; align-items: center; }
.dt-thankyou__step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex: none; }
.dt-thankyou__step-num--todo { background: #fff; color: var(--muted-2); border: 1.5px solid #ddd; }
.dt-thankyou__step-line { width: 1.5px; flex: 1; background: var(--line); margin: 4px 0; }
.dt-thankyou__step-body { padding-bottom: 16px; }
.dt-thankyou__step-title { font-size: 13px; font-weight: 600; }
.dt-thankyou__step-text { font-size: 11.5px; font-weight: 300; color: #777; line-height: 1.6; margin-top: 3px; }
.dt-thankyou__points { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; font-size: 12px; color: #444; line-height: 1.6; }
.dt-thankyou__points b { font-weight: 600; color: var(--accent); }

/* ---- link/button color fixes: beat base ".dt a{color:inherit}" (0,1,1) ---- */
.dt .dt-contacts__soc { color: #fff; }
.dt .dt-contacts__soc:hover { color: #fff; }
.dt .dt-article .tags-cloud__link:hover { color: #fff; }
.dt .dt-thankyou__card .order-details__cell .btn.btn-primary { color: #fff; }

/* ==========================================================================
   COMMENTS / REVIEW + FEEDBACK FORMS → dt style (appended)
   Leftover goodlook styling (grey box, blue .btn-primary / .btn-default submit,
   yellow #ffb300 star rating) restyled to dt. CSS only — markup/field names/submit
   logic untouched. Two auditable scopes so no unrelated goodlook .btn is restyled:
     • .dt [data-comments]                — comments module (.comments[data-comments]):
       product-page reviews tab + contacts-page comments block (both under .dt).
     • .content form[action*="feedback"]  — the standalone Feedback page form.
   ========================================================================== */

/* text inputs + textarea → pill / rounded dt fields */
.dt [data-comments] .form-control,
.content form[action*="feedback"] .form-control {
  width: 100%; border: 1px solid var(--line); border-radius: var(--pill);
  padding: 11px 18px; font: 300 12.5px var(--font); color: var(--ink);
  background: #fff; outline: none;
}
.dt [data-comments] textarea.form-control,
.content form[action*="feedback"] textarea.form-control { border-radius: 16px; min-height: 84px; resize: vertical; }
.dt [data-comments] .form-control:focus,
.content form[action*="feedback"] .form-control:focus { border-color: var(--accent); border-width: 1.5px; }
.dt [data-comments] .form-control::placeholder,
.content form[action*="feedback"] .form-control::placeholder { color: #bbb; }

/* labels + required marker */
.dt [data-comments] .form__label,
.content form[action*="feedback"] .form__label { font-size: 11.5px; font-weight: 500; margin-bottom: 6px; color: var(--ink); }
.dt [data-comments] .form__label--required::after,
.content form[action*="feedback"] .form__label--required::after { content: " *"; color: var(--accent); }
.dt [data-comments] .form__require-mark,
.content form[action*="feedback"] .form__require-mark { color: var(--accent); }
.dt [data-comments] .form__info--error,
.content form[action*="feedback"] .form__info--error { color: #c0392b; font-size: 11px; margin-top: 5px; }

/* form container: neutralise goodlook grey "Write a review" header */
.dt [data-comments] .comments__form-header { background: none; padding: 0 0 8px; color: var(--ink); font-size: 16px; font-weight: 600; }
.dt [data-comments] .message--info { background: var(--surface); color: var(--ink-2); border-radius: 10px; padding: 12px 16px; font-size: 12px; }

/* submit buttons → dt accent pill (comments: .btn/.btn-default; feedback: .btn-primary) */
.dt [data-comments] .btn,
.dt [data-comments] .btn-default,
.content form[action*="feedback"] input.btn-primary,
.content form[action*="feedback"] .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  border-radius: var(--pill); padding: 12px 28px; font: 500 12.5px var(--font);
  white-space: nowrap; cursor: pointer; line-height: 1; -webkit-appearance: none; appearance: none;
}
.dt [data-comments] .btn:hover,
.dt [data-comments] .btn-default:hover,
.content form[action*="feedback"] input.btn-primary:hover,
.content form[action*="feedback"] .btn-primary:hover { opacity: .9; color: #fff; }

/* star-voting (review form) — override yellow #ffb300 with accent / #d9d9d9.
   Mirrors goodlook selectors (.star-voting__icon .svg-icon uses stroke; active
   state fills), scoped + higher specificity so it wins over final.min.css. */
.dt [data-comments] .star-voting__icon .svg-icon { stroke: #d9d9d9; fill: none; }
.dt [data-comments] .star-voting__icon:hover .svg-icon,
.dt [data-comments] .star-voting__icon:hover ~ .star-voting__icon .svg-icon,
.dt [data-comments] .star-voting__input:checked ~ .star-voting__icon .svg-icon { fill: var(--accent); stroke: var(--accent); }

/* star-rating (review list display stars) — filled accent, empty #d9d9d9 */
.dt [data-comments] .star-rating__star { color: var(--accent); stroke: var(--accent); }
.dt [data-comments] .star-rating__star--empty { color: #d9d9d9; stroke: #d9d9d9; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .dt-thankyou__layout { flex-direction: column; }
  .dt-thankyou__aside { width: 100%; }
}
@media (max-width: 900px) {
  .dt-blog__feat { flex-direction: column; }
  .dt-blog__feat-media { width: 100%; height: 220px; }
  .dt-blog__grid { grid-template-columns: repeat(2, 1fr); }
  .dt-contacts { flex-direction: column; }
  .dt-contacts__aside { width: 100%; }
  .dt-article__title { font-size: 28px; }
}
@media (max-width: 640px) {
  .dt-blog__grid { grid-template-columns: 1fr; }
  .dt-page__title { font-size: 24px; }
  .dt-article__hero-img { height: 220px; }
}
