/* WMF / PKM Project v154
   Desktop full-catalog price and action rail. */

@media (min-width: 992px) {
  /* Replace the legacy two-column action grid with one calm vertical rail. */
  #full-catalog .cat-actions {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    width: min(250px, 100%) !important;
    max-width: 250px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    justify-content: stretch !important;
    justify-items: stretch !important;
    align-content: start !important;
    gap: 12px !important;
    justify-self: end !important;
  }

  /* Keep only the three actions requested for the desktop catalogue. */
  #full-catalog .cat-actions > .cat-primary,
  #full-catalog .cat-actions > .cat-compare-add,
  #full-catalog .cat-actions > a[download][href*="instructions"] {
    display: none !important;
  }

  #full-catalog .cat-price-v153 {
    position: relative;
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 136px;
    margin: 0 !important;
    padding: 18px 20px !important;
    box-sizing: border-box !important;
    align-content: center;
    gap: 6px;
    overflow: hidden;
    border: 1px solid rgba(224, 173, 130, 0.6) !important;
    border-radius: 16px !important;
    background:
      radial-gradient(circle at 94% 6%, rgba(255, 255, 255, 0.16), transparent 36%),
      linear-gradient(145deg, rgba(194, 143, 103, 0.3), rgba(91, 58, 38, 0.17)) !important;
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  }

  #full-catalog .cat-price-v153::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -38px;
    width: 112px;
    height: 112px;
    border: 1px solid rgba(232, 187, 149, 0.1);
    border-radius: 50%;
    pointer-events: none;
  }

  #full-catalog .cat-price-v153 span,
  #full-catalog .cat-price-v153 strong,
  #full-catalog .cat-price-v153 small {
    position: relative;
    z-index: 1;
  }

  #full-catalog .cat-price-v153 span {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  #full-catalog .cat-price-v153 strong {
    display: block;
    max-width: 100%;
    color: #fff !important;
    font-size: clamp(23px, 1.45vw, 29px) !important;
    font-weight: 850 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.03em !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  #full-catalog .cat-price-v153 small {
    max-width: 190px;
    font-size: 11px !important;
    line-height: 1.38 !important;
  }

  #full-catalog .cat-actions > a[download][href*="brochure"],
  #full-catalog .cat-actions > a[data-lead-form="demo"] {
    position: relative;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    margin: 0 !important;
    padding: 0 42px 0 18px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border-radius: 15px !important;
    text-align: left !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.14 !important;
    white-space: normal !important;
    transition:
      transform 180ms ease,
      border-color 180ms ease,
      background 180ms ease,
      box-shadow 180ms ease !important;
  }

  #full-catalog .cat-actions > a[download][href*="brochure"] {
    border: 1px solid rgba(224, 173, 130, 0.42) !important;
    color: #fff !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)) !important;
  }

  #full-catalog .cat-actions > a[download][href*="brochure"]::after {
    content: "↓";
    position: absolute;
    right: 17px;
    top: 50%;
    color: #d9a77f;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-52%);
  }

  #full-catalog .cat-actions > a[data-lead-form="demo"] {
    border: 1px solid #c9966e !important;
    color: #17110d !important;
    background: linear-gradient(135deg, #ddb087, #bd8258) !important;
    box-shadow: 0 12px 26px rgba(125, 76, 44, 0.24) !important;
  }

  #full-catalog .cat-actions > a[data-lead-form="demo"]::after {
    content: "→";
    position: absolute;
    right: 17px;
    top: 50%;
    color: #2b1c13;
    font-size: 21px;
    font-weight: 600;
    line-height: 1;
    transform: translateY(-50%);
  }

  #full-catalog .cat-actions > a[download][href*="brochure"]:hover,
  #full-catalog .cat-actions > a[download][href*="brochure"]:focus-visible,
  #full-catalog .cat-actions > a[data-lead-form="demo"]:hover,
  #full-catalog .cat-actions > a[data-lead-form="demo"]:focus-visible {
    transform: translateY(-2px);
    outline: none;
  }

  #full-catalog .cat-actions > a[download][href*="brochure"]:hover,
  #full-catalog .cat-actions > a[download][href*="brochure"]:focus-visible {
    border-color: rgba(224, 173, 130, 0.78) !important;
    background: rgba(224, 173, 130, 0.08) !important;
  }

  #full-catalog .cat-actions > a[data-lead-form="demo"]:hover,
  #full-catalog .cat-actions > a[data-lead-form="demo"]:focus-visible {
    background: linear-gradient(135deg, #e8bd96, #ca8f64) !important;
    box-shadow: 0 16px 32px rgba(125, 76, 44, 0.32) !important;
  }
}

@media (min-width: 1180px) {
  /* A restrained right offset separates the rail from long model titles. */
  #full-catalog .cat-actions {
    transform: translateX(18px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #full-catalog .cat-actions > a[download][href*="brochure"],
  #full-catalog .cat-actions > a[data-lead-form="demo"] {
    transition: none !important;
  }
}
