/* GamePC category mega-menus v3 — extension for menus 793, 1820, 826, 714, 1832 */
@media (min-width: 992px) {
  :root {
    --gpc-mega-border: #ded6ef;
    --gpc-mega-text: #211439;
    --gpc-mega-muted: #716a7f;
    --gpc-mega-accent: #5a22d0;
    --gpc-mega-soft: #f7f4fc;
  }

  #header#header :is(#navigation, .menu-helper)
  :is(.menu-item-793, .menu-item-1820, .menu-item-826, .menu-item-714, .menu-item-1832)
  > .menu-level-2 {
    position: fixed !important;
    z-index: 1100 !important;
    top: var(--gpc-retail-menu-top, 103px) !important;
    left: 50% !important;
    display: block !important;
    width: min(1440px, calc(100vw - 32px)) !important;
    max-width: none !important;
    max-height: calc(100dvh - var(--gpc-retail-menu-top, 103px) - 16px) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: auto !important;
    visibility: hidden !important;
    transform: translate(-50%, -8px) !important;
    opacity: 0 !important;
    border: 1px solid var(--gpc-mega-border) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 24px 60px rgb(30 8 70 / 24%) !important;
    transition: opacity .16s ease, transform .16s ease, visibility .16s !important;
  }

  #header#header :is(#navigation, .menu-helper)
  :is(.menu-item-793, .menu-item-1820, .menu-item-826, .menu-item-714, .menu-item-1832):is(:hover, .exp)
  > .menu-level-2,
  #header#header :is(#navigation, .menu-helper)
  :is(.menu-item-793, .menu-item-1820, .menu-item-826, .menu-item-714, .menu-item-1832)
  > .menu-level-2:focus-within {
    visibility: visible !important;
    transform: translate(-50%) !important;
    opacity: 1 !important;
  }

  #header#header :is(#navigation, .menu-helper)
  :is(.menu-item-793, .menu-item-1820, .menu-item-826, .menu-item-714, .menu-item-1832)
  > .menu-level-2 > li {
    display: none !important;
  }

  .gpc-cat-mega,
  .gpc-cat-mega * {
    box-sizing: border-box;
  }

  .gpc-cat-mega {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    padding: 28px;
    color: var(--gpc-mega-text);
    font-family: inherit;
  }

  .gpc-cat-mega__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8e2f2;
  }

  .gpc-cat-mega__head h3,
  .gpc-cat-mega__section h4 {
    margin: 0;
    font-weight: 900;
  }

  .gpc-cat-mega__head h3 {
    font-size: 21px;
    letter-spacing: -.025em;
  }

  .gpc-cat-mega__head p {
    max-width: 420px;
    margin: 0;
    color: var(--gpc-mega-muted);
    font-size: 13px;
    line-height: 1.45;
    text-align: right;
  }

  .gpc-cat-mega__sections {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .gpc-cat-mega__section {
    min-width: 0;
    padding: 16px;
    border: 1px solid #e7dffa;
    border-radius: 12px;
    background: #fff;
  }

  .gpc-cat-mega__section h4 {
    margin-bottom: 10px;
    color: var(--gpc-mega-accent);
    font-size: 15px;
  }

  .gpc-cat-mega__links {
    display: grid;
    gap: 3px;
  }

  .gpc-cat-mega__links a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 29px;
    padding: 0 !important;
    color: #4c4561 !important;
    background: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3;
    text-decoration: none !important;
  }

  .gpc-cat-mega__links a::after {
    content: "›";
    flex: 0 0 auto;
    color: #8069ae;
    font-size: 20px;
  }

  .gpc-cat-mega__links a:hover {
    color: var(--gpc-mega-accent) !important;
  }

  .gpc-cat-mega__promo {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 26px;
    overflow: hidden;
    border-radius: 14px;
    color: #fff;
    background: radial-gradient(circle at 100% 95%, #8f48ff 0, transparent 35%), linear-gradient(142deg, #210253, #5d0fd0);
  }

  .gpc-cat-mega__promo::after {
    position: absolute;
    right: -35px;
    bottom: -50px;
    width: 190px;
    height: 190px;
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 50%;
    content: "";
  }

  .gpc-cat-mega__eyebrow {
    margin-bottom: 15px;
    color: #dbcaff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .gpc-cat-mega__promo h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: 27px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.035em;
  }

  .gpc-cat-mega__promo p {
    position: relative;
    z-index: 1;
    margin: 13px 0 24px;
    color: #e7ddff;
    font-size: 13px;
    line-height: 1.5;
  }

  .gpc-cat-mega__button,
  .gpc-cat-mega__all {
    display: inline-flex !important;
    align-items: center;
    gap: 9px;
    text-decoration: none !important;
  }

  .gpc-cat-mega__button {
    position: relative;
    z-index: 1;
    justify-content: space-between;
    width: max-content;
    min-width: 170px;
    margin-top: auto;
    padding: 11px 14px !important;
    border-radius: 9px;
    color: #4610ae !important;
    background: #fff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  .gpc-cat-mega__all {
    margin-top: 16px;
    padding: 0 !important;
    color: var(--gpc-mega-accent) !important;
    background: none !important;
    font-size: 14px !important;
    font-weight: 900 !important;
  }

  .gpc-cat-mega--ai .gpc-cat-mega__sections {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gpc-cat-mega--ai .gpc-cat-mega__section {
    min-height: 150px;
    background: linear-gradient(145deg, #fff, var(--gpc-mega-soft));
  }

  .gpc-cat-mega--apple .gpc-cat-mega__sections,
  .gpc-cat-mega--accessories .gpc-cat-mega__sections {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 992px) and (max-width: 1180px) {
  .gpc-cat-mega {
    grid-template-columns: 1fr 250px;
    gap: 18px;
    padding: 20px;
  }

  .gpc-cat-mega__sections,
  .gpc-cat-mega--apple .gpc-cat-mega__sections,
  .gpc-cat-mega--accessories .gpc-cat-mega__sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
