/* Dana category carousel, design 1: a picture tile with the name on a white
   pill button over its foot. Vineta index.html:1198 (.wg-cls.style-abs.asp-1,
   styles.css 10393-10406, 19331, 19592), and the .fs-cls tiles of
   home-fashion-02:1106 / home-fashion-women:1211 (styles.css 10631, 19262,
   20980-20994) as the large button sizes. Every rule scoped to .dana-cc--d1. */

/* Own spacing: .pt-24, 24px above. Under it the template has nothing (the
   next section's .flat-spacing-3 spaces it: 120, 75 to 1024, 60 on phones).
   A default of 0 let the tiles touch a section placed after them (Phase 7
   L1), so that space is the default under; a preset that copies the page's
   composition writes 00 there. */
.mt-section.dana-cc--d1 { padding-block-start: var(--mt-space-top, 24px); padding-block-end: var(--mt-space-bottom, 120px); }
@media (max-width: 1024px) {
  .mt-section.dana-cc--d1 { padding-block-end: var(--mt-space-bottom, 75px); }
}
@media (max-width: 767px) {
  .mt-section.dana-cc--d1 { padding-block-start: var(--mt-space-top-mobile, var(--mt-space-top, 24px)); padding-block-end: var(--mt-space-bottom-mobile, var(--mt-space-bottom, 60px)); }
}

/* The tile: the picture's corners, the picture at 9:10 (asp-1) or its own
   ratio; a colour behind a cut-out picture when the merchant picks one. */
.dana-cc--d1 .dana-cc__tile { position: relative; display: grid; gap: 20px; overflow: hidden; border-radius: var(--dana-cc-radius); background-color: var(--dana-cc-panel, transparent); }
@media (max-width: 991px) { .dana-cc--d1 .dana-cc__tile { gap: 12px; } }
.dana-cc--d1 .dana-cc__media { aspect-ratio: .9009708738; }
.dana-cc--d1.dana-cc--r3-4 .dana-cc__media { aspect-ratio: 3 / 4; }
.dana-cc--d1.dana-cc--r1-1 .dana-cc__media { aspect-ratio: 1; }
.dana-cc--d1.dana-cc--roriginal .dana-cc__media { aspect-ratio: var(--dana-cc-ar, auto); }
.dana-cc--d1.dana-cc--roriginal:not([style*="--dana-cc-ar"]) .dana-cc__media img { block-size: auto; }

/* The button's row: 12px from the foot and the sides, 24 from 768, 40 from
   the foot from 992 (.cls-btn); the large sizes sit as .fs-cls .content:
   24, 32 from 768, 42 from 1200. */
.dana-cc--d1 .dana-cc__foot { position: absolute; inset-inline: 12px; inset-block-end: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
/* The item's short line, when the merchant writes one: a small white label
   over the picture, above the button (the template has no such line). */
.dana-cc--d1 .dana-cc__tag { max-inline-size: 100%; padding: 2px 12px; border-radius: 99px; background-color: rgba(255, 255, 255, .92); color: #000000; font-size: 12px; line-height: 18px; font-weight: 500; overflow-wrap: anywhere; text-align: center; }
.dana-cc--d1 .dana-cc__btn { pointer-events: auto; min-inline-size: 0; max-inline-size: 100%; white-space: normal; text-align: center; }
@media (min-width: 768px) { .dana-cc--d1 .dana-cc__foot { inset-inline: 24px; inset-block-end: 24px; } }
@media (min-width: 992px) { .dana-cc--d1 .dana-cc__foot { inset-block-end: 40px; } }
.dana-cc--d1:not(.dana-cc--btn-default) .dana-cc__foot { inset-inline: 12px; inset-block-end: 24px; }
@media (min-width: 768px) { .dana-cc--d1:not(.dana-cc--btn-default) .dana-cc__foot { inset-block-end: 32px; } }
@media (min-width: 1200px) { .dana-cc--d1:not(.dana-cc--btn-default) .dana-cc__foot { inset-block-end: 42px; } }

/* The arrow slides into the button on hover (.hover-icon-2: scale 0 and no
   width at rest, 14px wide and 10px from the name on hover, 16 from 1600);
   12px (.btn-cls). */
.dana-cc--d1 .dana-cc__btn { gap: 0; }
.dana-cc--d1 .dana-cc__btn .di { flex: none; inline-size: 0; font-size: 12px; transform: scale(0); transition: transform .3s var(--dana-ease), inline-size .3s var(--dana-ease), margin .3s var(--dana-ease); }
[dir="rtl"] .dana-cc--d1 .dana-cc__btn .di { transform: scale(0) scaleX(-1); }
.dana-cc--d1 .dana-cc__btn:is(:hover, :focus-visible) .di { inline-size: 14px; margin-inline-start: 10px; transform: scale(1); }
[dir="rtl"] .dana-cc--d1 .dana-cc__btn:is(:hover, :focus-visible) .di { transform: scale(1) scaleX(-1); }
@media (min-width: 1600px) { .dana-cc--d1 .dana-cc__btn:is(:hover, :focus-visible) .di { margin-inline-start: 16px; } }
/* `name_arrow` (pod's .tf-btn with its arrow always beside the name): the
   arrow at rest as it shows on hover, 14px wide and 10px from the name (8 on
   phones), and it stays put on hover. */
.dana-cc--d1.dana-cc--arrow .dana-cc__btn .di,
.dana-cc--d1.dana-cc--arrow .dana-cc__btn:is(:hover, :focus-visible) .di { inline-size: 14px; margin-inline-start: 10px; transform: scale(1); }
[dir="rtl"] .dana-cc--d1.dana-cc--arrow .dana-cc__btn .di,
[dir="rtl"] .dana-cc--d1.dana-cc--arrow .dana-cc__btn:is(:hover, :focus-visible) .di { transform: scale(1) scaleX(-1); }
/* 8px on phones, as the template's .tf-btn there. */
@media (max-width: 767px) {
  .dana-cc--d1.dana-cc--arrow .dana-cc__btn .di,
  .dana-cc--d1.dana-cc--arrow .dana-cc__btn:is(:hover, :focus-visible) .di { margin-inline-start: 8px; }
}

/* Large (.fs-cls): 20/30 and 200px wide at least from 1200. Extra large
   (.fs-cls.lg): 18/26 from 768, 24/30, 248px and 20px above and under from
   1200. */
@media (min-width: 1200px) {
  .dana-cc--d1.dana-cc--btn-large .dana-cc__btn { min-inline-size: 200px; font-size: 20px; line-height: 30px; }
  .dana-cc--d1.dana-cc--btn-xlarge .dana-cc__btn { min-inline-size: 248px; padding-block: 20px; font-size: 24px; line-height: 30px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .dana-cc--d1.dana-cc--btn-xlarge .dana-cc__btn { font-size: 18px; line-height: 26px; }
}

/* Filling the first screen (home-fashion-02: main.js handleSliderViewPort,
   from 1440 the row is the window's height less the top bar and header).
   category-carousel.js writes --dana-cc-h from where the section starts;
   before it runs, the usual top bar and header (130px) are taken off. */
@media (min-width: 1440px) {
  .dana-cc--d1.dana-cc--fit .dana-cc__tile { block-size: var(--dana-cc-h, calc(100svh - 130px)); }
  .dana-cc--d1.dana-cc--fit .dana-cc__media { block-size: 100%; aspect-ratio: auto; }
  .dana-cc--d1.dana-cc--fit .dana-cc__media img { block-size: 100%; }
}

/* Full width: 30px from the screen's sides from 1440 (.slider-fashion-2,
   styles.css 21276); the gutter under it. */
@media (min-width: 1440px) {
  .dana-cc--d1.mt-section--full > .mt-section__content { padding-inline: 30px; }
}
