/* Dana product tabs - what both designs share: the panels, the product grid,
 * the «View all» button and the colours the merchant sets. Each design's
 * own sheet (product-tabs-1.css, product-tabs-2.css) holds its layout.
 * Measured against the template (Vineta, design/css/styles.css; cited as
 * css:<line>). Sizes in px: the starter's root is 12px (runbook 5.0). One
 * sheet for both directions: logical properties. */

/* ---- The section as a panel (bg_shape, product-carousel-1.css's rules) -----
   15px in from the page's edges on phones, 24px from 768, 40px from 1200
   (.mx_40, phonecase 1925 «Just Arrivals»); square, 16px corners
   (.radius-16) or 80px corners from 768. The picture and the overlay stay
   inside the corners. Both designs. */
.mt-section.dana-pt:is(.dana-pt--shape-inset, .dana-pt--shape-rounded, .dana-pt--shape-round) {
  margin-inline: 15px;
  overflow: hidden;
}
.mt-section.dana-pt.dana-pt--shape-rounded { border-radius: 16px; }
@media (min-width: 768px) {
  .mt-section.dana-pt:is(.dana-pt--shape-inset, .dana-pt--shape-rounded, .dana-pt--shape-round) { margin-inline: 24px; }
  .mt-section.dana-pt.dana-pt--shape-round { border-radius: 80px; }
}
@media (min-width: 1200px) {
  .mt-section.dana-pt:is(.dana-pt--shape-inset, .dana-pt--shape-rounded, .dana-pt--shape-round) { margin-inline: 40px; }
}

/* ---- Panels (the template's .flat-animate-tab .tab-pane, css:7321-7351) ---
   One panel shows; ui.js keeps the others hidden. When the shopper changes
   tab the new one rises 30px and fades in, after the old one's 0.3s, as the
   template's panes do. product-tabs.js marks the section once a tab has been
   changed, so the panel on screen at load never animates. */
.dana-pt__panel { position: relative; }
.dana-pt__panel[hidden] { display: none; }
.dana-pt[data-dana-pt-switched] .dana-pt__panel:not([hidden]) { animation: dana-pt-in .3s ease-out .3s backwards; }
@keyframes dana-pt-in { from { opacity: 0; transform: translateY(30px); } }
@media (prefers-reduced-motion: reduce) {
  .dana-pt[data-dana-pt-switched] .dana-pt__panel:not([hidden]) { animation: none; }
}

/* ---- The grid (.tf-grid-layout tf-col-2 md-col-3 xl-col-4, css:1990,
   19104-19119, 20679-20694): 12px between columns and 24px between rows,
   18 / 40 from 992px inside the tabs (.tab-content .tf-grid-layout,
   css:19704), 24 / 24 on the book page (lg-gap-24, css:19742; `gap` wide).
   The columns are the merchant's (--dana-pt-cm / -ct / -cd on the
   section). A grid track never grows past its share (a slider or a long
   name inside a card must not widen it). */
.dana-pt__grid {
  display: grid;
  grid-template-columns: repeat(var(--dana-pt-cm, 2), minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 24px;
}
.dana-pt__grid > * { min-inline-size: 0; }
@media (min-width: 768px) {
  .dana-pt__grid { grid-template-columns: repeat(var(--dana-pt-ct, 3), minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .dana-pt__grid { column-gap: 18px; row-gap: 40px; }
  .dana-pt--wide .dana-pt__grid { column-gap: 24px; row-gap: 24px; }
}
@media (min-width: 1200px) {
  .dana-pt__grid { grid-template-columns: repeat(var(--dana-pt-cd, 4), minmax(0, 1fr)); }
}

/* ---- The slider: never wider than its column (a slider in a flex or grid
   item grows without end, conventions.md). The framed and panel cards
   stretch their own slide to the row's height (card-2.css, card-3.css). -- */
.dana-pt__slider { min-inline-size: 0; }

/* ---- «View all» under the products (fashion-women's .box-btn with an
   outline .tf-btn.btn-out-line-dark-2, css:18031, 19708): 24px under the
   panel, 32px from 992px; the template's small text (text-sm 14/20). ------ */
.dana-pt__foot { margin-block-start: 24px; text-align: center; }
.dana-pt__all { font-size: 14px; line-height: 20px; }
@media (min-width: 992px) { .dana-pt__foot { margin-block-start: 32px; } }

/* ---- Titles take the merchant's colour --------------------------------- */
.dana-pt .dana-pt__title { color: var(--dana-pt-title, var(--dana-heading)); }

/* The long arrow (.nav-swiper.style-1, css:5086) never draws a ground, even
   where there is nowhere to go: the template's !important keeps it clear.
   core.css's disabled rule would paint the grey circle under it. */
.dana-pt .dana-sw-nav--plain.swiper-button-disabled { background-color: transparent; border-color: transparent; }

/* ---- Tabs: the words a tab button would otherwise take from the browser ---- */
.dana-pt__tab {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}
