:root {
  --dffc-black: #0d0d0d;
  --dffc-blue: #0a3d91;
  --dffc-orange: #ff6a00;
  --dffc-red: #a61e16;
  --dffc-gold: #d4af37;
  --dffc-white: #ffffff;
  --dffc-border: rgba(255, 255, 255, 0.14);
}

/* Minha conta */
.dffc-account-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.dffc-account-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--dffc-border);
  border-left: 3px solid var(--dffc-orange);
  border-radius: 6px;
  background: linear-gradient(145deg, #181614, #0d0c0b);
  color: #fff;
  text-decoration: none;
}

.dffc-account-card:hover,
.dffc-account-card:focus-visible {
  border-color: var(--dffc-orange);
  color: #fff;
  outline: none;
}

.dffc-account-card strong {
  color: var(--dffc-gold);
  font-size: 1rem;
  text-transform: uppercase;
}

.dffc-account-card span {
  color: #bdb5ae;
  font-size: 0.88rem;
}

.dffc-account-fields {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--dffc-border);
  border-radius: 6px;
}

.dffc-account-fields legend {
  padding: 0 8px;
  color: var(--dffc-gold);
  font-weight: 800;
  text-transform: uppercase;
}

.dffc-nav,
.dffc-nav * {
  box-sizing: border-box;
}

.dffc-nav {
  position: relative;
  z-index: 800;
  width: 100%;
  border-top: 1px solid rgba(255, 106, 0, 0.28);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  background: linear-gradient(90deg, #050505, var(--dffc-black) 42%, #210b05);
  color: var(--dffc-white);
  font-family: inherit;
}

.dffc-nav__scroller {
  position: relative;
  width: 100%;
  overflow: visible;
}

.dffc-nav__list {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0 clamp(8px, 2vw, 34px);
  list-style: none;
}

.dffc-nav__item {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
}

.dffc-nav__heading {
  display: flex;
  align-items: stretch;
  min-height: 48px;
  border-bottom: 2px solid transparent;
}

.dffc-nav__heading > a {
  display: flex;
  align-items: center;
  padding: 0 2px 0 clamp(5px, 0.7vw, 13px);
  color: #f7f2ed;
  font-size: clamp(0.62rem, 0.7vw, 0.75rem);
  font-weight: 800;
  letter-spacing: 0.025em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.dffc-nav__toggle {
  display: grid;
  place-items: center;
  width: clamp(21px, 2vw, 30px);
  min-width: clamp(21px, 2vw, 30px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #d7cec7;
  cursor: pointer;
}

.dffc-nav__toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.dffc-nav__item:hover .dffc-nav__heading,
.dffc-nav__item.is-open .dffc-nav__heading,
.dffc-nav__item.is-current .dffc-nav__heading {
  border-color: var(--dffc-orange);
  background: rgba(255, 106, 0, 0.08);
}

.dffc-nav__item.is-open .dffc-nav__toggle svg {
  transform: rotate(180deg);
}

.dffc-nav__item--accessories {
  margin-left: 8px;
  border-left: 1px solid rgba(212, 175, 55, 0.45);
}

.dffc-nav__item--accessories .dffc-nav__heading > a {
  color: var(--dffc-gold);
}

.dffc-nav__submenu {
  position: fixed;
  z-index: 9999;
  display: grid;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(255, 106, 0, 0.35);
  border-radius: 0 0 7px 7px;
  background: #101010;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.58);
}

.dffc-nav__submenu[hidden] {
  display: none !important;
}

.dffc-nav__submenu a {
  padding: 10px 12px;
  border-radius: 4px;
  color: #e8e1dc;
  font-size: 0.88rem;
  line-height: 1.25;
  text-decoration: none;
}

.dffc-nav__submenu a:hover,
.dffc-nav__submenu a:focus-visible,
.dffc-nav__submenu a.is-current,
.df-game-nav__submenu a.is-current {
  outline: none;
  background: linear-gradient(90deg, rgba(166, 30, 22, 0.75), rgba(255, 106, 0, 0.15));
  color: var(--dffc-white);
}

.dffc-nav__all {
  margin-bottom: 5px;
  border-bottom: 1px solid var(--dffc-border);
  color: var(--dffc-gold) !important;
  font-weight: 800;
  text-transform: uppercase;
}

.dffc-nav__fade {
  display: none;
}

/* Compatibilidade com o menu horizontal do tema Dragon & Flame TCG 1.0. */
@media (min-width: 1024px) {
  .df-game-nav.dffc-menu-expanded,
  .df-game-nav.dffc-menu-expanded .dffc-menu-shell {
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
    scrollbar-width: none !important;
  }

  .df-game-nav.dffc-menu-expanded .dffc-menu-shell::-webkit-scrollbar {
    display: none !important;
  }

  .df-game-nav.dffc-menu-expanded .dffc-menu-list {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-inline: clamp(8px, 3vw, 56px) !important;
  }

  .df-game-nav.dffc-menu-expanded .df-game-nav__item {
    flex: 0 1 auto !important;
    min-width: 0 !important;
  }

  .df-game-nav.dffc-menu-expanded .df-game-nav__heading > a {
    padding-inline: clamp(5px, 0.55vw, 10px) 2px !important;
    font-size: clamp(0.62rem, 0.68vw, 0.73rem) !important;
    letter-spacing: 0.01em !important;
    white-space: nowrap;
  }

  .df-game-nav.dffc-menu-expanded .df-game-nav__toggle {
    width: clamp(20px, 1.7vw, 27px) !important;
    min-width: clamp(20px, 1.7vw, 27px) !important;
  }

  .df-game-nav.dffc-menu-expanded.dffc-menu-tight .dffc-menu-list {
    padding-inline: 8px !important;
  }

  .df-game-nav.dffc-menu-expanded.dffc-menu-tight .df-game-nav__heading > a {
    padding-left: 4px !important;
    font-size: 0.61rem !important;
    letter-spacing: 0 !important;
  }

  .df-game-nav.dffc-menu-expanded.dffc-menu-tight .df-game-nav__toggle {
    width: 19px !important;
    min-width: 19px !important;
  }

  .df-game-nav.dffc-menu-expanded.dffc-menu-wrap .dffc-menu-list {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.dffc-institutional {
  max-width: 900px;
}

.dffc-institutional h2 {
  margin-top: 1.6em;
}

.dffc-institutional li + li {
  margin-top: 0.55em;
}

.dffc-institutional__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 10px !important;
  border-color: var(--dffc-orange) !important;
  background: var(--dffc-red) !important;
  color: #fff !important;
  text-decoration: none !important;
}

.dffc-institutional__links a {
  color: var(--dffc-orange);
  font-weight: 700;
}

.dffc-filters {
  clear: both;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
  gap: 14px;
  align-items: end;
  width: 100%;
  margin: 0 0 26px;
  padding: 18px;
  border: 1px solid var(--dffc-border);
  border-radius: 7px;
  background: linear-gradient(135deg, #171717, #0a0a0a);
  color: #f5f0eb;
}

.dffc-filters__field {
  display: grid;
  gap: 6px;
}

.dffc-filters label {
  color: #d8d0c9;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dffc-filters select,
.dffc-filters input[type="search"] {
  width: 100%;
  min-height: 43px;
  padding: 8px 10px;
  border: 1px solid var(--dffc-border);
  border-radius: 4px;
  background: #0d0d0d;
  color: #fff;
}

.dffc-filters input[type="search"]::placeholder {
  color: #8f8781;
}

.dffc-filters select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.dffc-filters__checks {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 18px;
}

.dffc-filters__checks label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.dffc-filters__actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 8px;
}

.dffc-filters__actions button,
.dffc-filters__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 9px 14px;
  border: 1px solid var(--dffc-orange);
  border-radius: 4px;
  background: var(--dffc-red);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.dffc-filters__actions a {
  border-color: var(--dffc-border);
  background: transparent;
}

.dffc-sort {
  clear: both;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 24px;
  color: #d8d0c9;
}

.dffc-sort > span {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dffc-sort__scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-color: var(--dffc-orange) #090909;
  scrollbar-width: thin;
}

.dffc-sort a {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid var(--dffc-border);
  border-radius: 999px;
  background: #111;
  color: #d8d0c9;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.dffc-sort a:hover,
.dffc-sort a:focus-visible,
.dffc-sort a.is-active {
  border-color: var(--dffc-red);
  background: var(--dffc-red);
  color: #fff;
}

body.woocommerce #sidebar,
body.woocommerce .widget-area,
body.woocommerce-page #sidebar,
body.woocommerce-page .widget-area,
body.woocommerce-shop #sidebar,
body.woocommerce-shop .widget-area {
  display: none !important;
}

.dffc-product-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 16px 8px;
}

.dffc-product-labels span {
  padding: 3px 7px;
  border: 1px solid var(--dffc-border);
  border-radius: 3px;
  color: #c9c0b9;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

body.single-product .dffc-product-labels {
  margin: 0 0 10px;
}

.dffc-preorder-badge {
  position: absolute;
  z-index: 5;
  top: 11px;
  right: 11px;
  padding: 6px 9px;
  border-radius: 3px;
  background: var(--dffc-gold);
  color: #111;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.single-product .dffc-preorder-badge {
  position: static;
  display: inline-flex;
  margin-bottom: 10px;
}

.dffc-empty-products {
  clear: both;
  padding: 28px;
  border: 1px solid var(--dffc-border);
  border-radius: 6px;
  background: #141414;
  color: #d5cec8;
  text-align: center;
}

.dffc-back {
  margin: 0 0 18px;
}

.dffc-back a {
  color: var(--dffc-orange);
  font-weight: 700;
  text-decoration: none;
}

.dffc-product-collection {
  color: #bfb7b1;
}

@media (max-width: 1023px) {
  .dffc-nav__scroller {
    overflow: visible;
  }

  .dffc-nav__list {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 8px 14px 16px;
  }

  .dffc-nav__item {
    border-bottom: 1px solid var(--dffc-border);
  }

  .dffc-nav__item--accessories {
    margin-left: 0;
    border-left: 0;
  }

  .dffc-nav__heading > a {
    flex: 1;
    min-height: 48px;
  }

  .dffc-nav__toggle {
    width: 48px;
  }

  .dffc-nav__submenu {
    position: static;
    width: 100% !important;
    max-height: none;
    padding: 3px 0 12px 12px;
    border: 0;
    border-left: 2px solid var(--dffc-orange);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .dffc-nav__fade {
    display: none;
  }

  .dffc-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .dffc-account-cards {
    grid-template-columns: 1fr;
  }

  .dffc-filters {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .dffc-filters__checks {
    grid-column: auto;
  }

  .dffc-filters__actions {
    flex-direction: column;
  }

  .dffc-sort {
    align-items: flex-start;
    flex-direction: column;
  }

  .dffc-sort__scroller {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dffc-nav__toggle svg {
    transition: none;
  }
}
