/**
 * Product browse arrows (Entity Pager module, view: product_pager).
 * Fixed buttons pinned to the left/right edges of product pages.
 *
 * The arrow heads are drawn purely in CSS (no images, no font glyphs) using
 * the rotated-border technique, so the SHAPE and COLOURS are fully under our
 * control. Everything tunable lives in the variables below — change a value
 * once and both arrows update.
 *
 * The full link text ("‹ Previous" / "Next ›") stays in the DOM for screen
 * readers; only the drawn arrow is shown visually.
 */

:root {
  --pager-size: 50px;            /* button diameter */
  --pager-bg: #5f4b8b;           /* button colour (brand purple) */
  --pager-bg-hover: #4a3a6f;     /* button colour on hover */
  --pager-arrow: #ffffff;        /* arrow colour */
  --pager-arrow-size: 11px;      /* arrow head size */
  --pager-arrow-thickness: 3px;  /* arrow stroke weight */
  --pager-radius: 50%;           /* 50% = circle; lower (e.g. 12px) = rounded square */
}

.entity-pager {
  margin: 0;
}

.entity-pager-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entity-pager-item {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 95;
  margin: 0;
}

.entity-pager-item-prev {
  left: 14px;
}

.entity-pager-item-next {
  right: 14px;
}

/* The button */
.entity-pager-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--pager-size);
  height: var(--pager-size);
  border-radius: var(--pager-radius);
  background: var(--pager-bg);
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  font-size: 0; /* hide the literal "Previous"/"Next" words, keep them for a11y */
  line-height: 1;
}

.entity-pager-item a:hover,
.entity-pager-item a:focus {
  background: var(--pager-bg-hover);
  transform: scale(1.09);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.24);
  outline: none;
}

.entity-pager-item a:focus-visible {
  outline: 2px solid var(--pager-bg-hover);
  outline-offset: 3px;
}

/* CSS-drawn arrow head: two borders forming a corner, rotated into a chevron */
.entity-pager-item a::before {
  content: "";
  display: block;
  width: var(--pager-arrow-size);
  height: var(--pager-arrow-size);
  border-style: solid;
  border-color: var(--pager-arrow);
  border-width: var(--pager-arrow-thickness) var(--pager-arrow-thickness) 0 0;
}

.entity-pager-item-next a::before {
  transform: rotate(45deg);    /* points right */
  margin-left: -3px;           /* optical centring */
}

.entity-pager-item-prev a::before {
  transform: rotate(-135deg);  /* points left */
  margin-right: -3px;          /* optical centring */
}

/* Tablet / phone: smaller, softer so they never cover product imagery or CTAs */
@media (max-width: 768px) {
  :root {
    --pager-size: 40px;
    --pager-arrow-size: 9px;
  }
  .entity-pager-item a {
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
  }
  .entity-pager-item-prev {
    left: 6px;
  }
  .entity-pager-item-next {
    right: 6px;
  }
}
