/* DFA Deals site header, nav bar, and sidebar */
#top, .dfa-original-menu { display: none !important; }

.dfa-promo-bar {
  background: #e60012;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.dfa-promo-bar i {
  margin-right: 8px;
  opacity: 0.95;
}

.dfa-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 16px 0;
  position: relative;
  z-index: 20;
}

.dfa-header-inner {
  display: grid;
  grid-template-columns: 220px 1fr 300px;
  align-items: center;
  gap: 35px;
}

.dfa-logo {
  display: flex;
  align-items: center;
  text-align: left;
}

.dfa-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.dfa-logo img {
  max-width: 240px;
  max-height: 80px;
  width: auto;
}

.dfa-search-wrap form,
.dfa-search-wrap #search {
  display: flex;
  width: 100%;
  margin: 0;
}

.dfa-search-wrap input[type="text"],
.dfa-search-wrap #search input {
  height: 48px;
  border: 1px solid #ddd;
  border-radius: 24px 0 0 24px;
  padding: 0 16px;
  font-size: 15px;
  box-shadow: none;
  flex: 1;
}

.dfa-search-wrap button,
.dfa-search-wrap #search button {
  height: 48px;
  width: 58px;
  background: #e60012;
  color: #fff;
  border: none;
  border-radius: 0 24px 24px 0;
  font-size: 18px;
}

.dfa-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
}

.dfa-action {
  color: #111;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  position: relative;
  background: none;
  border: none;
}

.dfa-action i {
  display: block;
  font-size: 24px;
  margin-bottom: 5px;
  color: #111;
}

.dfa-action:hover,
.dfa-action:hover i {
  color: #e60012;
}

.dfa-cart-badge {
  position: absolute;
  top: -7px;
  right: 7px;
  background: #e60012;
  color: #fff;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  font-size: 11px;
  font-weight: 900;
  padding: 0 4px;
  text-align: center;
}

.dfa-nav-bar {
  background: #050505;
  color: #fff;
  position: relative;
  z-index: 19;
}

.dfa-nav-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
}

.dfa-categories-btn {
  min-width: 190px;
  color: #fff;
  background: none;
  border: none;
  border-right: 1px solid #333;
  font-weight: 900;
  text-transform: uppercase;
  padding: 18px 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.dfa-nav-links {
  display: flex;
  gap: 34px;
  margin-left: 28px;
  flex: 1;
}

.dfa-nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.dfa-nav-links a:hover {
  color: #e60012;
}

.dfa-hot-deals {
  color: #e60012;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dfa-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9998;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.dfa-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: min(340px, 88vw);
  max-width: 88vw;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  z-index: 9999;
  transform: translateX(-105%);
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.18), 1px 0 0 rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.dfa-sidebar-open .dfa-sidebar {
  transform: translateX(0);
}

body.dfa-sidebar-open .dfa-sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

.dfa-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 14px;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.dfa-sidebar-logo img {
  max-height: 44px;
  max-width: 160px;
  width: auto;
  display: block;
}

.dfa-sidebar-logo-text {
  font-size: 18px;
  font-weight: 900;
  color: #111;
  letter-spacing: 0.04em;
}

.dfa-sidebar-logo-text span {
  color: #e60012;
}

.dfa-sidebar-tagline {
  font-size: 11px;
  color: #888;
  font-weight: 600;
  margin-top: 3px;
  letter-spacing: 0.02em;
}

.dfa-sidebar-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff0f0;
  color: #e60012;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}

.dfa-sidebar-close:hover {
  background: #ffe0e0;
}

.dfa-sidebar-close:active {
  transform: scale(0.92);
}

.dfa-sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.dfa-sidebar-nav {
  list-style: none;
  padding: 6px 0;
  margin: 0;
}

.dfa-sidebar-parent {
  border-bottom: 1px solid #f0f0f0;
}

.dfa-sidebar-parent-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: none;
  background: none;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.dfa-sidebar-parent-btn:hover,
.dfa-sidebar-parent-btn:focus-visible {
  background: #fff5f5;
  color: #e60012;
}

.dfa-sidebar-parent-btn:active {
  background: #ffecec;
}

.dfa-sidebar-parent-btn .dfa-nav-icon {
  width: 22px;
  text-align: center;
  font-size: 18px;
  color: #555;
  flex-shrink: 0;
  transition: color 0.2s;
}

.dfa-sidebar-parent-btn:hover .dfa-nav-icon {
  color: #e60012;
}

.dfa-sidebar-parent-btn .dfa-nav-label {
  flex: 1;
}

.dfa-sidebar-parent-btn .dfa-nav-chevron {
  font-size: 13px;
  color: #aaa;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
}

.dfa-sidebar-parent.is-open .dfa-nav-chevron {
  transform: rotate(90deg);
  color: #e60012;
}

.dfa-sidebar-sub {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fafafa;
}

.dfa-sidebar-parent.is-open .dfa-sidebar-sub {
  max-height: 400px;
}

.dfa-sidebar-sub li a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px 12px 54px;
  color: #444;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
}

.dfa-sidebar-sub li a:hover,
.dfa-sidebar-sub li a:active {
  color: #e60012;
  background: #fff0f0;
  padding-left: 58px;
}

.dfa-sidebar-hot {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 14px 18px;
  color: #e60012;
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.dfa-sidebar-hot:hover {
  background: #fff5f5;
}

.dfa-sidebar-hot .dfa-nav-icon {
  width: 22px;
  text-align: center;
  font-size: 18px;
}

.dfa-sidebar-hot-badge {
  margin-left: auto;
  background: #e60012;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.dfa-sidebar-foot {
  flex-shrink: 0;
  padding: 14px 18px 18px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.dfa-sidebar-shipping {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.dfa-sidebar-shipping i {
  color: #e60012;
  font-size: 18px;
}

.dfa-sidebar-social {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.dfa-sidebar-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, transform 0.15s;
}

.dfa-sidebar-social a:hover {
  color: #e60012;
  border-color: #e60012;
  transform: translateY(-2px);
}

.dfa-red {
  color: #e60012 !important;
  font-weight: 900;
}

.dfa-mobile-menu {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #e60012 !important;
}

.dfa-mobile-menu i {
  color: #e60012 !important;
  font-size: 30px;
}

.dfa-header-search-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #111;
  text-decoration: none;
  font-size: 22px;
}

.dfa-header-search-icon:hover {
  color: #e60012;
}

.dfa-header-nav {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.dfa-header-nav a {
  color: #111;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.dfa-header-nav a:hover {
  color: #e60012;
}

.dfa-mobile-search {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #111;
  text-decoration: none;
  font-size: 22px;
}

body.dfa-product-page .dfa-search-wrap {
  display: none !important;
}

body.dfa-product-page .dfa-header-inner {
  grid-template-columns: 200px 1fr auto;
  gap: 20px;
}

body.dfa-product-page .dfa-header-nav {
  display: flex;
}

body.dfa-product-page .dfa-header-search-icon {
  display: inline-flex;
}

body.dfa-product-page .dfa-mobile-search {
  display: none;
}

body.dfa-product-page .dfa-nav-bar {
  display: none;
}

.dfa-hidden-cart {
  display: none !important;
}

@media (max-width: 768px) {
  .dfa-header {
    padding: 10px 0 8px;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.04);
  }

  .dfa-header > .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .dfa-header-inner {
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
    min-height: 52px;
    align-items: center;
  }

  .dfa-mobile-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    line-height: 1;
  }

  .dfa-mobile-menu i {
    font-size: 26px;
  }

  .dfa-logo {
    justify-content: center;
    text-align: center;
    min-height: 0;
    width: 100%;
    max-width: 100%;
  }

  .dfa-logo-link {
    justify-content: center;
    width: 100%;
  }

  .dfa-logo img {
    max-width: 100%;
    max-height: 56px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
  }

  .dfa-search-wrap {
    grid-column: 1 / 4;
    grid-row: 2;
    margin-top: 10px;
  }

  .dfa-search-wrap input[type="text"],
  .dfa-search-wrap #search input {
    height: 58px;
    font-size: 22px;
  }

  .dfa-search-wrap button,
  .dfa-search-wrap #search button {
    height: 58px;
    width: 70px;
    background: #fff;
    color: #111;
    border: 1px solid #ddd;
    border-left: none;
  }

  .dfa-actions {
    gap: 0;
    justify-content: flex-end;
  }

  .dfa-action span:not(.dfa-cart-badge) {
    display: none;
  }

  .dfa-action-account,
  .dfa-action-wishlist {
    display: none;
  }

  .dfa-action.dfa-action-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
  }

  .dfa-action i {
    font-size: 26px;
    margin-bottom: 0;
    line-height: 1;
  }

  .dfa-cart-badge {
    top: 4px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 10px;
  }

  .dfa-nav-bar {
    display: none;
  }

  body.dfa-product-page .dfa-search-wrap {
    display: none !important;
  }

  body.dfa-product-page .dfa-header-search-icon {
    display: none !important;
  }

  body.dfa-product-page .dfa-mobile-search {
    display: inline-flex !important;
  }

  body.dfa-product-page .dfa-header-inner {
    grid-template-columns: 44px 1fr auto;
  }

  body.dfa-product-page .dfa-header-nav {
    display: none;
  }

  body.dfa-product-page .dfa-actions {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  body.dfa-product-page .dfa-action.dfa-action-cart {
    display: flex;
  }
}
