@font-face {
  font-family: 'Metropolis-Regular';
  src: url('https://www.dealfuel.com/wp-content/themes/astra-child/fonts/Metropolis-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  margin: 0;
  background-color: #ffffff;
}

body.dfh-menu-open {
  overflow: hidden;
}

/* Base Header Layout */
.dfh-header-wrapper {
  font-family: 'Metropolis-Regular', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #3A3A3A;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dfh-header-wrapper * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.dfh-site-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
  padding: 12px 24px;
  position: relative;
  z-index: 100;
}

.dfh-header-container {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/* Left / Brand Elements */
.dfh-mobile-top-bar {
  display: flex;
  align-items: center;
  gap: 28px;
}

.dfh-hamburger-btn {
  display: none;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer;
  padding: 4px;
}

.dfh-hamburger-btn svg {
  width: 22px;
  height: 22px;
  fill: #3A3A3A;
  display: block;
}

.dfh-logo {
  display: flex;
  align-items: center;
}

.dfh-logo img {
  height: 38px;
  display: block;
}

.dfh-drawer-header {
  display: none;
}

/* Navigation Links Base */
.dfh-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.df-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.dfh-nav-links a {
  text-decoration: none;
  display: inline-block;
  color: #3A3A3A;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.dfh-nav-links a:hover,
.df-menu-item:hover > .df-menu-header > a {
  color: #F05A28;
}

.arrow-icon {
  width: 20px;
  height: 20px;
  fill: #3A3A3A;
  display: block;
  transition: transform 0.25s ease, fill 0.2s ease;
}

.df-arrow-wrap {
  display: none;
}

.dfh-mobile-nav-actions {
  display: none;
}

/* Desktop Megamenu Dropdown */
.df-menu-item {
  --top-offset: 14px;
  --x-offset: 0px;
  --alive-time: 0.2s;
  position: relative;
}

.df-menu-dropdown {
  position: absolute;
  top: calc(100% + var(--top-offset));
  left: var(--x-offset);
  transform: none;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  overflow: visible;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease var(--alive-time),
              visibility 0.2s ease var(--alive-time),
              pointer-events 0s linear var(--alive-time);
}

.df-menu-dropdown * {
  font-weight: 400;
}

.df-menu-dropdown::before {
  content: "";
  position: absolute;
  top: calc(-1 * (var(--top-offset) + 6px));
  left: 0;
  right: 0;
  height: calc(var(--top-offset) + 6px);
}

.df-menu-item:hover .df-menu-dropdown,
.df-menu-dropdown:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

/* Search Box */
.dfh-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  max-width: 320px;
}

.dfh-search-wrapper input {
  height: 42px;
  padding: 0 42px 0 14px;
  border: 1px solid #DCDCDC;
  border-radius: 6px;
  width: 100%;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: #3A3A3A;
  font-weight: 600;
}

.dfh-search-wrapper input::placeholder {
  color: #8C8C8C;
  font-weight: 500;
  font-size: 15px;
}

.dfh-search-wrapper input:focus {
  border-color: #3A3A3A;
}

.dfh-search-wrapper .dfh-search-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.dfh-search-wrapper .dfh-search-btn svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: #3A3A3A;
}

/* Desktop Actions Group */
.dfh-desktop-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.dfh-action-link {
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  color: #3A3A3A;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s;
}

.dfh-action-link:hover {
  color: #F05A28;
}

/* Desktop My Account Dropdown */
.dfh-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

html body .dfh-dropdown-btn {
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  color: #3A3A3A;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.dfh-dropdown-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.dfh-dropdown:hover .dfh-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dfh-dropdown:hover .dfh-dropdown-btn {
  color: #F05A28;
}

.dfh-dropdown:hover .dfh-dropdown-arrow .arrow-icon {
  transform: rotate(180deg);
  fill: #F05A28;
}

.dfh-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 190px;
  width: max-content;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}

.dfh-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.dfh-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 15px;
  color: #3A3A3A;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dfh-dropdown-menu a:hover {
  background-color: #F9F9F9;
  color: #F05A28;
}

/* Single Cart Button (Base) */
body .dfh-cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  text-decoration: none;
  order: 5;
}

.dfh-cart-btn svg {
  width: 22px;
  height: 22px;
  fill: #3A3A3A;
  display: block;
}

.dfh-cart-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #D34819;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  height: 18px;
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Backdrop Overlay */
.dfh-drawer-overlay {
  display: none;
}

/* =========================================================================
   RESPONSIVE LAYOUTS (<= 1300PX)
========================================================================= */
@media screen and (max-width: 1300px) {
  .dfh-site-header {
    z-index: 100;
  }

  .dfh-hamburger-btn {
    display: flex;
  }

  .dfh-desktop-actions {
    display: none;
  }

  .dfh-drawer-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .dfh-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .dfh-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 75vw;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 102;
    padding: 24px 20px 40px;
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dfh-nav-drawer.open {
    transform: translateX(0);
  }

  .dfh-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid #eaeaea;
  }

  .dfh-drawer-title {
    font-size: 20px;
    font-weight: 700;
    color: #3A3A3A;
  }

  .dfh-drawer-close-btn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #3A3A3A;
    padding: 0 4px;
  }

  .dfh-nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
  }

  .df-menu-item {
    width: 100%;
    border-bottom: 1px solid #f4f4f4;
    padding-bottom: 12px;
  }

  .df-menu-header {
    cursor: pointer;
    user-select: none;
  }

  .df-menu-header a.df-menu-link {
    white-space: normal;
    word-break: break-word;
  }

  .df-arrow-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
  }

  .df-menu-item.active .df-arrow-wrap .arrow-icon {
    transform: rotate(180deg);
    fill: #F05A28;
  }

  .df-menu-item.active .df-menu-header a {
    color: #F05A28;
  }

  /* Drawer Dropdown Content (Natural height, no inner scrollbar) */
  .df-menu-dropdown {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    border: none;
    background: #fafafa;
    padding: 12px;
    margin-top: 10px;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
    border-radius: 8px;
    overflow: visible;
    max-height: none;
    height: auto;
  }

  .df-menu-dropdown::before {
    display: none;
  }

  .df-menu-item.active .df-menu-dropdown {
    display: block;
  }

  .df-menu-dropdown .elementor,
  .df-menu-dropdown .elementor-inner,
  .df-menu-dropdown .elementor-section-wrap,
  .df-menu-dropdown [class*="elementor-container"] {
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
  }

  .dfh-mobile-nav-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid #eaeaea;
    width: 100%;
  }

  /* Mobile Drawer "My Account" Accordion */
  .dfh-drawer-account {
    width: 100%;
    border-bottom: 1px solid #f4f4f4;
    padding-bottom: 12px;
  }

  .dfh-drawer-account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    user-select: none;
    color: #3A3A3A;
    font-size: 16px;
    font-weight: 600;
  }

  .dfh-drawer-account.active .dfh-drawer-account-header {
    color: #F05A28;
  }

  .dfh-drawer-account.active .df-arrow-wrap .arrow-icon {
    transform: rotate(180deg);
    fill: #F05A28;
  }

  .dfh-drawer-account-menu {
    display: none;
    list-style: none;
    background: #fafafa;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 8px;
    width: 100%;
  }

  .dfh-drawer-account.active .dfh-drawer-account-menu {
    display: block;
  }

  .dfh-drawer-account-menu a {
    display: block;
    padding: 8px 6px;
    color: #3A3A3A;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .dfh-drawer-account-menu a:hover {
    color: #F05A28;
  }
}

/* Tablet Layout (768px to 1300px) */
@media screen and (min-width: 768px) and (max-width: 1300px) {
  .dfh-site-header {
    padding: 12px 20px;
  }

  .dfh-header-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .dfh-mobile-top-bar {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .dfh-search-wrapper {
    order: 2;
    flex: 1;
    max-width: 480px;
    margin: 0 auto;
  }

  .dfh-cart-btn {
    order: 3;
    margin-right: 4px;
  }
}

/* Mobile Layout (<= 767px) */
@media screen and (max-width: 767px) {
  .dfh-site-header {
    padding: 12px 16px;
  }

  .dfh-header-container {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    grid-template-rows: auto auto;
    grid-template-areas:
      "hamburger logo   cart"
      "search    search search";
    align-items: center;
    row-gap: 12px;
  }

  .dfh-mobile-top-bar {
    display: contents;
  }

  .dfh-hamburger-btn {
    grid-area: hamburger;
    display: flex;
    justify-self: start;
    padding: 4px 0;
  }

  .dfh-logo {
    grid-area: logo;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
  }

  .dfh-logo img {
    height: 30px;
  }

  .dfh-cart-btn {
    grid-area: cart;
    justify-self: end;
    margin-right: 4px;
  }

  .dfh-search-wrapper {
    grid-area: search;
    width: 100%;
    max-width: 100%;
  }

  .dfh-nav-drawer {
    display: flex;
  }
}

/* Misc */

html body li.elementor-icon-list-item {
    list-style: none;
    line-height: 1;
}