/* Dana inner pages: what every inner page shares. Linked by the component that
 * draws it (the same address twice is fetched once), never by the layout:
 *   the title bar and its breadcrumb   components/page-title.jinja, breadcrumb.jinja
 *   the numbered pagination            components/pagination.jinja (listings, blog, reviews)
 *   the benefits strip                 components/benefits-strip.jinja (category, cart)
 *
 * Measured on the bought template (Vineta, design/css/styles.css), English, at
 * 1440 / 1024 / 768 / 390, 2026-09-29: shop-default.html's .tf-page-title
 * (17267), .wg-pagination (9623) and the .flat-wrap-iconbox strip (2692,
 * 7171, 19836). Sizes are px (the starter's root is 12px); colours only from
 * the --dana-* tokens (core.css); one sheet for both directions. */

/* ---- The title bar (.tf-page-title) ----------------------------------------
   52px above and below, 64px from 768px; the box 560px wide at most, 12px
   between its lines (24px from 768px); the title the template's h4 (36/44,
   30/38 to 1024px, 24/32 under 768px, -0.02em), the breadcrumb 14/20 in
   #757575 with a 4px dot in a 16px box between crumbs, the line 16/24 (14/22
   under 768px) in the muted text colour. The template draws its own gradient
   picture behind it (images/section/page-title.jpg, 1920 x 286: #fceabc at
   its left to #ffddd3 at its right, sampled at mid-height); Dana draws the
   merchant's picture (group «Inner pages title bar»), else the group's two
   band colours as that gradient from the reading start (--tint, written by
   page-title.jinja; the template's pair by default), else the panel colour,
   so the bar still reads as a band above the page (#f5f5f5, the template's
   --surface). */
.dana-page-title {
  --dana-pt-ink: var(--dana-heading);
  --dana-pt-crumb: color-mix(in srgb, var(--dana-pt-ink) 54%, var(--dana-bg));
  --dana-pt-line: var(--dana-muted);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 52px;
  background-color: var(--dana-surface);
  color: var(--dana-pt-ink);
  text-align: center;
}
/* A colour the merchant chose for the bar's words: the title and the current
   crumb in it, the other crumbs and the line a little softer, over the picture
   (mixed with transparent, not the page, so a white on a dark picture stays white). */
.dana-page-title--ink {
  --dana-pt-crumb: color-mix(in srgb, var(--dana-pt-ink) 75%, transparent);
  --dana-pt-line: color-mix(in srgb, var(--dana-pt-ink) 85%, transparent);
}
.dana-page-title--image { background-color: transparent; }
.dana-page-title--tint {
  --dana-pt-from: var(--dana-pt-bg1, var(--dana-surface));
  --dana-pt-to: var(--dana-pt-bg2, var(--dana-pt-from));
  background-color: var(--dana-pt-from);
  background-image: linear-gradient(to right, var(--dana-pt-from), var(--dana-pt-to));
}
[dir="rtl"] .dana-page-title--tint { background-image: linear-gradient(to left, var(--dana-pt-from), var(--dana-pt-to)); }
/* No picture and light words the panel would lose (page-title.jinja): the heading colour is
   the bar's ground. */
.dana-page-title--ground { background-color: var(--dana-heading); }
@media (min-width: 768px) { .dana-page-title { padding-block: 64px; } }
.dana-page-title__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
}
/* Light words chosen over a picture: a 40% dark wash between them. */
.dana-page-title--wash::before { content: ""; position: absolute; inset: 0; z-index: -1; background-color: rgba(0, 0, 0, .4); }
.dana-page-title__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  max-inline-size: 560px;
  margin-inline: auto;
}
@media (min-width: 768px) { .dana-page-title__box { gap: 24px; } }
.dana-page-title__h {
  margin: 0;
  font-family: var(--dana-font-heading);
  font-size: var(--dana-fs-h4);
  line-height: var(--dana-lh-h4);
  font-weight: var(--dana-fw-heading);
  letter-spacing: var(--dana-ls-h4);
  color: var(--dana-pt-ink);
  overflow-wrap: anywhere;
}
.dana-page-title__text {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--dana-pt-line);
  overflow-wrap: anywhere;
}
@media (max-width: 767px) { .dana-page-title__text { font-size: 14px; line-height: 22px; } }
/* A logo over the title (the brand page): on its own white tile, held to the
   tile's box whatever its shape (Zid's brand form asks for 1200 x 1200;
   defects 44). */
.dana-page-title__logo {
  position: relative;
  display: block;
  justify-self: center;
  inline-size: 120px;
  block-size: 120px;
  border-radius: var(--dana-radius-card);
  background-color: #ffffff;
  box-shadow: 0 0 0 1px var(--dana-line);
}
.dana-page-title__logo img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-inline-size: calc(100% - 24px);
  max-block-size: calc(100% - 24px);
  inline-size: auto;
  block-size: auto;
  object-fit: contain;
}
.dana-page-title__widen { display: flex; justify-content: center; margin: 0; }

/* ---- The breadcrumb (.breadcrumb-list) --------------------------------------- */
.dana-crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 20px;
}
.dana-crumbs__item { display: inline-flex; align-items: center; gap: 8px; min-inline-size: 0; color: var(--dana-pt-crumb, #757575); }
.dana-crumbs__dot { display: inline-flex; align-items: center; justify-content: center; flex: none; inline-size: 16px; block-size: 16px; }
.dana-crumbs__dot::before { content: ""; inline-size: 4px; block-size: 4px; border-radius: 50%; background-color: currentColor; }
.dana-crumbs__link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color .3s var(--dana-ease), text-decoration-color .3s var(--dana-ease);
}
.dana-crumbs__link:hover, .dana-crumbs__link:focus-visible { color: var(--dana-pt-ink, var(--dana-heading)); text-decoration-color: currentColor; outline: none; }
/* A thumb's 44px on the bar's 20px crumbs (under 992px, or on a touch
   screen): a transparent layer 8px above and 16px under each link, 4px to
   its sides, the words drawn as before. Not 12 and 12: a trail that wraps
   has its lines 8px apart, and a later line's layer (painted over the
   earlier line) must stop at the line above it; the earlier line's layer
   reaches under the later line's link, which is painted over it and keeps
   its own taps. The line after the crumbs is 12px away (24 from 768): the
   tag under a search is lifted over the layer's last 4px. */
@media (max-width: 991.98px), (hover: none) {
  .dana-page-title .dana-crumbs__link { position: relative; }
  .dana-page-title .dana-crumbs__link::before { content: ""; position: absolute; inset-block: -8px -16px; inset-inline: -4px; }
  .dana-page-title__widen { position: relative; }
}
.dana-crumbs__current { color: var(--dana-pt-ink, var(--dana-heading)); overflow-wrap: anywhere; }
.dana-crumbs__text { overflow-wrap: anywhere; }

/* ---- A tag (the template's .filter-tag): a 1px line, 11px corners, 5px 14px,
   14/22.4; the line darkens on hover. --------------------------------------- */
.dana-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-inline-size: 100%;
  padding: 5px 14px;
  border: 1px solid var(--dana-line);
  border-radius: 11px;
  background-color: var(--dana-bg);
  color: var(--dana-heading);
  font-size: 14px;
  line-height: 22.4px;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color .3s var(--dana-ease), color .3s var(--dana-ease);
}
.dana-tag .di { font-size: 12px; }
.dana-tag:hover, .dana-tag:focus-visible { border-color: var(--dana-heading); color: var(--dana-heading); text-decoration: none; outline: none; }

/* ---- Numbered pagination (.wg-pagination) -------------------------------------
   44px rings 10px apart (36px and 8px under 992px), a line at 20% of the
   heading colour, 16px at 500 (14px under 992px); the current page and the one
   under the pointer filled with the heading colour. The template shows no
   arrow back on page 1 and an arrow on to the next page. Bootstrap 4's
   .page-link (the starter loads it) is restated here: its -1px margin, blue
   text, 3px corners and focus glow. */
.products-pagination { margin-block-start: 39px; }
@media (min-width: 1200px) { .products-pagination { margin-block-start: 60px; } }
.products-pagination .pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 992px) { .products-pagination .pagination { gap: 10px; } }
.products-pagination .page-item { display: flex; margin: 0; }
.products-pagination .page-link,
.products-pagination .page-item:first-child .page-link,
.products-pagination .page-item:last-child .page-link {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  inline-size: 36px;
  block-size: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--dana-heading) 20%, transparent);
  border-radius: 50%;
  background-color: transparent;
  box-shadow: none;
  color: var(--dana-heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 19px;
  text-decoration: none;
  transition: background-color .3s var(--dana-ease), border-color .3s var(--dana-ease), color .3s var(--dana-ease);
}
@media (min-width: 992px) {
  .products-pagination .page-link,
  .products-pagination .page-item:first-child .page-link,
  .products-pagination .page-item:last-child .page-link { inline-size: 44px; block-size: 44px; font-size: 16px; }
}
/* Under 992px the 36px rings (8px apart) are a thumb's 44px targets: a
   transparent layer 4px round each link (5px past its 1px line, where a
   positioned layer's box starts), the rings drawn as before; two
   neighbours' layers meet in the gap. */
@media (max-width: 991.98px) {
  .products-pagination ul.pagination > .page-item > a.page-link { position: relative; }
  .products-pagination ul.pagination > .page-item > a.page-link::before { content: ""; position: absolute; inset: min(0px, calc(50% - 22px)); }
}
/* The ends stay rings in Arabic too: the starter's custom.css squares them under .rtl
   (`.rtl .products-pagination .page-item:first-child .page-link`, 0,5,0); ul.pagination makes
   this 0,5,1, whatever order the sheets load in. */
.products-pagination ul.pagination > .page-item:is(:first-child, :last-child) > .page-link { border-radius: 50%; }
.products-pagination .page-item a.page-link:is(:hover, :focus-visible),
.products-pagination .page-item.active .page-link {
  border-color: var(--dana-heading);
  background-color: var(--dana-heading);
  color: var(--dana-bg);
  outline: none;
}
.products-pagination .page-link:focus { outline: none; box-shadow: none; }
.products-pagination .page-link .di { font-size: 12px; }
/* One arrow glyph (the template's icon-arr-right2), turned to point the way it
   goes: back points to the reading start, on points to the reading end. */
.products-pagination .page-item--prev .di { transform: scaleX(-1); }
[dir="rtl"] .products-pagination .page-item--next .di { transform: scaleX(-1); }
[dir="rtl"] .products-pagination .page-item--prev .di { transform: none; }
.products-pagination .page-item.disabled.page-item--prev,
.products-pagination .page-item.disabled.page-item--next { display: none; }
.products-pagination .page-item--gap .page-link { inline-size: 20px; border-color: transparent; color: var(--dana-muted); }
/* On a phone a long pager keeps one row: only the first, the current and the last page with
   the arrows (pagination.jinja marks the rest --wide and the holes --narrow), so the widest is
   «‹ 1 … 5 … 9 ›», 268px, inside the 300px row of a 360px phone. */
@media (max-width: 575px) { .products-pagination .page-item--wide { display: none; } }
@media (min-width: 576px) { .products-pagination .page-item--narrow { display: none; } }
.products-pagination[hidden] { display: none; }

/* ---- The benefits strip (.flat-wrap-iconbox .tf-icon-box.style-2) --------------
   A 1px line above, 43px above and below (30px under 768px); each benefit
   centred: a 48px line icon in #ababab (the heading at 33% over the page), 20px
   to the words, the title 20/20 at 500 (18/18 under 1200px), 10px, the line
   15/24 in #747474 (the title 18/18 and 8px under 992px). One benefit a view on
   a phone, two from 575px, three from 768px (every one of up to four from
   1200px), with the template's spacing (Swiper, ui.js); bullets under 1200px
   while there is more than one view to go through. */
.dana-benefits-strip {
  padding-block: 30px;
  border-block-start: 1px solid var(--dana-line);
  color: var(--dana-text);
}
@media (min-width: 768px) { .dana-benefits-strip { padding-block: 43px; } }
.dana-benefits-strip__list { margin: 0; padding: 0; list-style: none; }
.dana-benefits-strip__item {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  block-size: auto;
  text-align: center;
}
.dana-benefits-strip__icon { display: block; flex: none; inline-size: 48px; block-size: 48px; color: color-mix(in srgb, var(--dana-heading) 33%, var(--dana-bg)); }
.dana-benefits-strip__icon svg { display: block; inline-size: 100%; block-size: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.dana-benefits-strip__content { display: grid; gap: 8px; max-inline-size: 100%; }
@media (min-width: 992px) { .dana-benefits-strip__content { gap: 10px; } }
.dana-benefits-strip__title { margin: 0; font-family: var(--dana-font-heading); font-size: 18px; line-height: 18px; font-weight: 500; color: var(--dana-heading); overflow-wrap: anywhere; }
@media (min-width: 992px) { .dana-benefits-strip__title { font-size: 20px; line-height: 20px; } }
/* From 1440px the row keeps 65px clear at each end (.flat-wrap-iconbox .tf-swiper). */
@media (min-width: 1440px) { .dana-benefits-strip__swiper { padding-inline: 65px; } }
.dana-benefits-strip__text { margin: 0; font-size: 15px; line-height: 24px; color: color-mix(in srgb, var(--dana-heading) 55%, var(--dana-bg)); overflow-wrap: anywhere; }
.dana-benefits-strip .dana-dots { margin-block-start: 20px; }
@media (min-width: 1200px) { .dana-benefits-strip .dana-dots { display: none; } }
