.gdm-root { display: none; }

@media (min-width: 1025px) {
  .gdm-header {
    --gdm-orange: #ff790a;
    --gdm-gold: #ffab20;
    --gdm-bg: #080808;
    --gdm-panel: #111111;
    --gdm-line: #ffffff19;
    --gdm-text: #f7f5f2;
    --gdm-font: "Tektur", "Arial Narrow", system-ui, sans-serif;
  }

  .gdm-header .whb-top-bar {
    border-bottom: 1px solid #ff790a64 !important;
  }

  .gdm-header .whb-general-header,
  .gdm-header .whb-general-header-inner,
  .gdm-header .gdm-nav-row {
    background: var(--gdm-bg) !important;
  }

  .gdm-header .whb-general-header .wd-logo img {
    width: clamp(190px, 22vw, 355px) !important;
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
  }

  .gdm-header .whb-general-header .searchform input[name="s"] {
    --wd-form-bg: #151515;
    --wd-form-color: #f7f5f2;
    --wd-form-placeholder-color: #b7b2ac;
    background-color: #151515 !important;
    border: 1px solid #77716d !important;
    color: #f7f5f2 !important;
    border-radius: 12px !important;
  }

  .gdm-header .whb-general-header .searchform button {
    color: var(--gdm-orange);
  }

  .gdm-header .whb-general-header
    :is(.wd-header-my-account, .wd-header-cart) > a {
    color: var(--gdm-text);
    border: 1px solid #ff790aaf;
    border-radius: 12px;
    padding-inline: clamp(8px, 1.1vw, 17px);
  }

  .gdm-header .gdm-nav-row {
    position: relative;
    z-index: 6;
    border-top: 1px solid #ff790a35;
    border-bottom: 1px solid #ff790a5e;
    overflow: visible !important;
  }

  .gdm-header .gdm-nav-row > .container {
    width: min(calc(100% - clamp(24px, 2.8vw, 52px)), 1760px);
    max-width: 1760px;
    overflow: visible !important;
  }

  .gdm-header .gdm-nav-row :is(.whb-flex-row, .whb-column) {
    min-width: 0;
    overflow: visible !important;
  }

  .gdm-header .gdm-nav-row .whb-flex-row:has(.gdm-ready) {
    height: auto !important;
    max-height: none !important;
  }

  .gdm-ready {
    display: block !important;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    overflow: visible !important;
    text-align: start;
  }

  .gdm-ready > ul { display: none !important; }

  .wd-header-main-nav > #menu-megamenu[data-gdm-deferred]
    > li:not(:hover, :focus-within, .wd-opened) > .wd-dropdown:not(.wd-opened) { display: none !important; }

  .gdm-root {
    display: block;
    position: relative;
    isolation: isolate;
    min-width: 0;
    color: var(--gdm-text);
    font: 600 16px/1.35 var(--gdm-font);
  }

  .gdm-rail, .gdm-links {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .gdm-rail {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.02fr) minmax(0, .98fr) minmax(0, 1.22fr)
      minmax(0, 1.09fr) minmax(0, 1.18fr) minmax(0, .8fr) minmax(0, .78fr) minmax(0, 1.19fr)
      minmax(0, .99fr) minmax(0, .9fr);
    gap: clamp(1px, .34vw, 6px);
    padding-block: 4px;
  }

  .gdm-item {
    position: relative;
    display: flex;
    min-width: 0;
    margin: 0;
  }

  /* Keep WoodMart generic button rules from repainting or repositioning rail controls. */
  .gdm-main, .gdm-toggle,
  :where(.whb-header, .whb-clone.gdm-header) .gdm-rail :is(a, button).gdm-main,
  :where(.whb-header, .whb-clone.gdm-header) .gdm-rail button.gdm-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--gdm-text);
    font: inherit;
    cursor: pointer;
    box-shadow: none;
  }

  .gdm-main, :where(.whb-header, .whb-clone.gdm-header) .gdm-rail :is(a, button).gdm-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    min-width: 0;
    min-height: clamp(78px, 6.4vw, 113px);
    border: 1px solid transparent;
    border-radius: 13px;
    padding: 5px 2px 12px;
    color: var(--gdm-text) !important;
    background: transparent;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    white-space: normal;
  }

  .gdm-main-label {
    font-size: clamp(14px, 1.32vw, 20px);
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
  }

  .gdm-main svg {
    width: clamp(36px, 3.2vw, 48px);
    height: clamp(36px, 3.2vw, 48px);
    fill: none;
    stroke: var(--gdm-orange);
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
  }

  .gdm-toggle, :where(.whb-header, .whb-clone.gdm-header) .gdm-rail button.gdm-toggle {
    position: absolute;
    right: 3px;
    bottom: 1px;
    width: 24px;
    height: 24px;
    min-height: 0;
    min-width: 0;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 5px;
  }

  /* WoodMart puts the navigation, logo and account/cart in sibling columns
     of one fixed clone. Give its navigation the entire second grid row. */
  .whb-clone.gdm-header .gdm-nav-row .whb-general-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand tools" "rail rail";
    align-items: center;
  }

  .whb-clone.gdm-header .whb-general-header-inner > .whb-col-left {
    grid-area: brand;
  }

  .whb-clone.gdm-header .whb-general-header-inner > .whb-col-right {
    grid-area: tools;
    justify-self: end;
  }

  .whb-clone.gdm-header .whb-general-header-inner > .whb-col-center:has(.gdm-ready) {
    grid-area: rail;
  }

  .whb-clone.gdm-header .whb-general-header .wd-logo img {
    width: auto !important;
    max-height: 52px;
  }

  .whb-clone.gdm-header .gdm-ready {
    padding-inline: 0;
  }

  .whb-clone.gdm-header .gdm-rail :is(a, button).gdm-main {
    /* Reserve the disclosure's 24px focus target below the label. */
    padding-bottom: 26px;
  }

  /* The bottom privacy notice occupies 81–99px on the desktop storefront.
     Keep its choices and the panel's last links independently reachable. */
  body:has(#moove_gdpr_cookie_info_bar.gdpr_infobar_postion_bottom:not(.moove-gdpr-info-bar-hidden))
    .whb-clone.gdm-header .gdm-panel {
    max-height: calc(var(--gdm-available, 72vh) - max(104px, 6.5rem));
  }

  .gdm-toggle::before {
    content: "";
    border: solid var(--gdm-orange);
    border-width: 0 1.5px 1.5px 0;
    width: 5px;
    height: 5px;
    transform: translateY(-2px) rotate(45deg);
  }

  .gdm-item.gdm-open .gdm-main,
  .gdm-rail .gdm-main[aria-current="page"] {
    border-color: var(--gdm-orange);
    background: radial-gradient(ellipse at 50% 20%, #482004, #100b08 76%) !important;
    box-shadow: inset 0 0 18px #ff790a48, 0 0 12px #ff790a52;
  }

  .gdm-open::after {
    content: "";
    position: absolute;
    left: calc(50% - 5px);
    bottom: -7px;
    width: 10px;
    height: 10px;
    background: var(--gdm-orange);
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 5;
  }

  .gdm-root :is(a, button):focus-visible {
    --wd-otl-style: solid;
    --wd-otl-color: #ffd3a6;
    outline: 2px solid #ffd3a6;
    outline-offset: -2px;
  }

  .gdm-panel {
    box-sizing: border-box;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, .82fr) minmax(0, 1.85fr);
    gap: clamp(10px, 1.25vw, 22px);
    align-items: stretch;
    max-height: var(--gdm-available, min(72vh, 590px));
    overflow: hidden auto;
    overscroll-behavior: contain;
    border: 2px solid var(--gdm-orange);
    border-radius: 19px;
    padding: clamp(12px, 1.5vw, 24px);
    background: radial-gradient(ellipse at 75% 0, #241910 0, transparent 65%), var(--gdm-panel);
    box-shadow: 0 15px 32px #000b, 0 0 16px #ff790a48, inset 0 0 13px #ff790a18;
    color: var(--gdm-text);
    scrollbar-color: #8d5a39 #17110e;
  }

  .gdm-panel[hidden] { display: none !important; }

  .gdm-panel.gdm-compact {
    grid-template-columns: minmax(155px, .75fr) minmax(0, 2fr);
  }

  .gdm-compact .gdm-banner {
    aspect-ratio: 2.6 / 1;
    max-height: 355px;
  }

  .gdm-column {
    min-width: 0;
    padding-inline-end: clamp(7px, 1vw, 16px);
    border-inline-end: 1px solid var(--gdm-line);
    align-self: stretch;
  }

  .gdm-brush {
    display: inline-block;
    margin: 3px 0 7px;
    padding: 8px 17px 7px;
    background: linear-gradient(100deg, #ff6903, #ffa51a);
    clip-path: polygon(3% 17%, 9% 12%, 13% 13%, 17% 8%, 35% 9%, 66% 4%, 98% 0, 94% 13%, 99% 16%, 95% 26%, 100% 32%, 96% 41%, 98% 54%, 96% 58%, 99% 69%, 95% 75%, 100% 83%, 92% 91%, 65% 94%, 38% 96%, 3% 100%, 5% 87%, 0 84%, 4% 70%, 2% 63%, 5% 51%, 0 47%, 4% 31%, 1% 28%);
    color: #100701;
    font: 700 clamp(20px, 1.9vw, 28px)/1.16 var(--gdm-font);
    text-transform: uppercase;
    overflow-wrap: anywhere;
  }

  .gdm-links li { margin: 0; border-bottom: 1px solid var(--gdm-line); }

  .gdm-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 38px;
    padding: 6px 6px;
    border-radius: 3px;
    color: var(--gdm-text) !important;
    font: 600 clamp(15px, 1.2vw, 18px)/1.25 var(--gdm-font);
    overflow-wrap: anywhere;
    text-decoration: none;
  }

  .gdm-links a::after, .gdm-cta::after {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    border: solid var(--gdm-orange);
    border-width: 2px 2px 0 0;
    transform: rotate(45deg);
  }

  .gdm-links a:hover { background-color: #ff790a17; }

  .gdm-banner {
    --gdm-scene-hot: #ff6b09;
    --gdm-scene-cool: #4a2bb5;
    position: relative;
    align-self: center;
    display: flex;
    align-items: end;
    min-width: 0;
    aspect-ratio: 2 / 1;
    min-height: 185px;
    border: 1.5px solid var(--gdm-orange);
    border-radius: 13px;
    overflow: hidden;
    background: #131019;
  }

  .gdm-banner[data-collection="disena"] { --gdm-scene-cool: #b62095; }
  .gdm-banner[data-collection="camisetas"] { --gdm-scene-cool: #045aaf; }
  .gdm-banner[data-collection="oversize"] { --gdm-scene-cool: #6722bb; }
  .gdm-banner[data-collection="pantalones"] { --gdm-scene-cool: #196b51; }
  .gdm-banner[data-collection="sudaderas"] { --gdm-scene-cool: #3448a9; }
  .gdm-banner[data-collection="despedidas"] { --gdm-scene-cool: #c72475; }
  .gdm-banner[data-collection="bebes"] { --gdm-scene-hot: #ffa450; --gdm-scene-cool: #713eae; }
  .gdm-banner[data-collection="tazas"] { --gdm-scene-cool: #0c638b; }
  .gdm-banner[data-collection="accesorios"] { --gdm-scene-cool: #234ea6; }
  .gdm-banner[data-collection="eventos"] { --gdm-scene-cool: #80389c; }
  .gdm-banner[data-collection="espadas"] { --gdm-scene-cool: #8d173a; }

  .gdm-banner--catalog::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(118deg, #09080df2 5%, #09080d86 42%, transparent 76%),
      radial-gradient(ellipse at 88% 26%, var(--gdm-scene-hot), transparent 58%),
      conic-gradient(from 220deg at 82% 55%, transparent, #ffae3566, transparent 19%, #f8d9946b, transparent 44%),
      linear-gradient(138deg, #0e0b15 10%, var(--gdm-scene-cool) 75%);
  }

  .gdm-art {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gdm-banner--store-art .gdm-art {
    filter: brightness(1.15) saturate(1.24);
  }

  .gdm-banner--catalog .gdm-art {
    inset: 6% 3% auto auto;
    width: 55%;
    height: 88%;
    object-fit: contain;
    object-position: center right;
    filter: drop-shadow(0 11px 14px #0009);
  }

  .gdm-banner-copy {
    position: relative;
    width: 100%;
    padding: clamp(12px, 1.3vw, 22px);
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: linear-gradient(transparent, #090504e8 63%);
  }

  .gdm-banner-title {
    margin: 0;
    color: white;
    text-shadow: 0 2px 6px black;
    font: 700 clamp(22px, 2.2vw, 42px)/1.02 var(--gdm-font);
    text-transform: uppercase;
  }

  .gdm-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 8px;
    background: linear-gradient(100deg, var(--gdm-gold), var(--gdm-orange));
    color: #120702 !important;
    font: 700 clamp(15px, 1.2vw, 19px)/1.2 var(--gdm-font);
    text-transform: uppercase;
    text-decoration: none;
  }

  .gdm-cta::after { border-color: currentColor; }
  .gdm-cta:hover { background: #ffbd51; }

  .gdm-banner--catalog .gdm-banner-copy {
    flex-direction: column;
    align-items: flex-start;
    width: 53%;
    background: none;
  }

  .gdm-banner--catalog .gdm-banner-title { overflow-wrap: anywhere; }

  .gdm-panel .gdm-banner--provided {
    display: block;
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .gdm-provided-frame {
    margin-inline: auto;
    width: min(100%, calc(clamp(132px, var(--gdm-available, 600px) - 100px, 480px) * var(--gdm-art-ratio)));
  }

  .gdm-provided-frame .gdm-art {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: none;
  }

  .gdm-provided-actions {
    display: flex;
    justify-content: flex-end;
    padding-block-start: 10px;
  }

  @media (max-width: 1150px) {
    .gdm-main-label { font-size: clamp(13px, 1.28vw, 14px); letter-spacing: -.045em; }
    .gdm-banner-copy { align-items: start; flex-direction: column; }
    .gdm-column { padding-inline-end: 6px; }
  }
}
