/* DTFX HEADER & SIDEBAR REFRESH 1.0.0
   Presentation only. All original navigation, forms and WooCommerce actions remain.
   Staging-only plugin; deactivate to revert. */

/* Colours: reference BigCommerce design = near-black, white, electric blue */
:root {
  --dtfx-black: #202020;
  --dtfx-black-2: #272727;
  --dtfx-blue: #4288ee;
  --dtfx-bg: #f1f1f1;
  --dtfx-border: #dedede;
}

/* Main header canvas, avoiding WooCommerce account and checkout panels */
body .site-header,
body #masthead,
body .dtfx-header,
body .header-wrapper,
body .main-header,
body .header-area {
  background: var(--dtfx-black) !important;
  color: #fff;
}

/* Keep logo, search and basket horizontally balanced on desktop */
@media (min-width: 992px) {
  body .site-header .header-inner,
  body .site-header .header-main,
  body .site-header .header-content,
  body .dtfx-header-inner,
  body .dtfx-header-main,
  body .main-header .container {
    display: flex;
    align-items: center;
    gap: clamp(18px,3vw,46px);
    min-height: 91px;
  }

  body .site-header .site-branding,
  body .site-header .custom-logo-link,
  body .dtfx-header .site-branding {
    flex: 0 0 auto;
  }
  body .site-header .search-form,
  body .site-header .woocommerce-product-search,
  body .dtfx-header .search-form,
  body .main-header .woocommerce-product-search {
    flex: 1 1 460px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Search: long white rectangle with a blue search button */
body .site-header form[role="search"],
body .site-header form.search-form,
body .site-header form.woocommerce-product-search,
body .dtfx-header form[role="search"],
body .dtfx-header form.search-form,
body .dtfx-header form.woocommerce-product-search,
body .main-header form.woocommerce-product-search {
  display: flex;
  min-width: 0;
  align-items: stretch;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}
body .site-header input[type="search"],
body .site-header input.search-field,
body .dtfx-header input[type="search"],
body .dtfx-header input.search-field,
body .main-header input[type="search"] {
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
  padding: 13px 16px;
  background: #fff !important;
  color: #222 !important;
  border: 1px solid #fff !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-size: 15px;
  outline-offset: -2px;
}
body .site-header form[role="search"] button,
body .site-header form.search-form button,
body .site-header form.woocommerce-product-search button,
body .dtfx-header form[role="search"] button,
body .dtfx-header form.search-form button,
body .dtfx-header form.woocommerce-product-search button,
body .main-header form.woocommerce-product-search button {
  flex: 0 0 auto;
  min-width: 54px;
  padding: 12px 17px;
  color: #fff !important;
  background: var(--dtfx-blue) !important;
  border: 0 !important;
  border-radius: 0 !important;
  cursor: pointer;
}

/* Horizontal desktop primary menu */
body .main-navigation,
body #site-navigation,
body .dtfx-primary-nav,
body .dtfx-main-nav,
body .header-navigation,
body .primary-navigation,
body .nav-primary,
body .header-nav {
  background: var(--dtfx-black-2) !important;
  color: #fff !important;
}
@media (min-width: 992px) {
  body .main-navigation ul.menu,
  body #site-navigation ul.menu,
  body .dtfx-primary-nav ul.menu,
  body .dtfx-main-nav ul.menu,
  body .primary-navigation ul.menu,
  body .header-nav ul.menu {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding: 0;
  }
  body .main-navigation ul.menu > li,
  body #site-navigation ul.menu > li,
  body .dtfx-primary-nav ul.menu > li,
  body .dtfx-main-nav ul.menu > li,
  body .primary-navigation ul.menu > li,
  body .header-nav ul.menu > li {
    flex: 1 1 0;
    min-width: 0;
    list-style: none;
  }
}
body .main-navigation ul.menu > li > a,
body #site-navigation ul.menu > li > a,
body .dtfx-primary-nav ul.menu > li > a,
body .dtfx-main-nav ul.menu > li > a,
body .primary-navigation ul.menu > li > a,
body .header-nav ul.menu > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 10px;
  color: #fff !important;
  background: transparent !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  letter-spacing: .01em;
}
body .main-navigation ul.menu > li > a:hover,
body #site-navigation ul.menu > li > a:hover,
body .dtfx-primary-nav ul.menu > li > a:hover,
body .dtfx-main-nav ul.menu > li > a:hover,
body .primary-navigation ul.menu > li > a:hover,
body .header-nav ul.menu > li > a:hover,
body .main-navigation ul.menu > li.current-menu-item > a,
body #site-navigation ul.menu > li.current-menu-item > a {
  color: #94c0ff !important;
}

/* Content region and BigCommerce-inspired category panels */
body .site-content,
body .dtfx-main,
body .main-content {
  background: var(--dtfx-bg);
}
body #secondary,
body .site-sidebar,
body .shop-sidebar,
body .dtfx-sidebar,
body .left-sidebar {
  min-width: 0;
}
body #secondary .widget,
body .site-sidebar .widget,
body .shop-sidebar .widget,
body .dtfx-sidebar .widget,
body .left-sidebar .widget {
  background: #fff;
  border: 1px solid var(--dtfx-border);
  border-radius: 3px;
  margin-bottom: 20px;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  overflow: hidden;
}
body #secondary .widget-title,
body .site-sidebar .widget-title,
body .shop-sidebar .widget-title,
body .dtfx-sidebar .widget-title,
body .left-sidebar .widget-title,
body #secondary .wp-block-heading,
body .dtfx-sidebar .wp-block-heading {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid #e9e9e9;
  background: #fafafa;
  color: #202020;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  text-transform: uppercase;
}
body #secondary .widget ul,
body .site-sidebar .widget ul,
body .shop-sidebar .widget ul,
body .dtfx-sidebar .widget ul,
body .left-sidebar .widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
body #secondary .widget li,
body .site-sidebar .widget li,
body .shop-sidebar .widget li,
body .dtfx-sidebar .widget li,
body .left-sidebar .widget li {
  margin: 0;
  list-style: none;
  border-bottom: 1px solid #f2f2f2;
}
body #secondary .widget li:last-child,
body .dtfx-sidebar .widget li:last-child {
  border-bottom: none;
}
body #secondary .widget li a,
body .site-sidebar .widget li a,
body .shop-sidebar .widget li a,
body .dtfx-sidebar .widget li a,
body .left-sidebar .widget li a {
  display: block;
  padding: 13px 15px;
  color: #242424;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}
body #secondary .widget li a:hover,
body .site-sidebar .widget li a:hover,
body .shop-sidebar .widget li a:hover,
body .dtfx-sidebar .widget li a:hover,
body .left-sidebar .widget li a:hover,
body #secondary .current-menu-item > a,
body .dtfx-sidebar .current-menu-item > a {
  color: #2379ef;
  background: #f8fbff;
}
body #secondary .widget ul ul a,
body .dtfx-sidebar .widget ul ul a {
  padding-left: 26px;
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
}

/* White content panels on WooCommerce product pages */
body.single-product .site-main > .product,
body.single-product .content-area .product,
body.woocommerce-page .dtfx-product-content {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
}

/* Responsive safeguards: no cramped desktop menus or overflow */
@media (max-width: 991px) {
  body .site-header .header-inner,
  body .site-header .header-main,
  body .site-header .header-content,
  body .dtfx-header-inner,
  body .dtfx-header-main {
    flex-wrap: wrap;
    gap: 12px;
  }
  body .site-header form[role="search"],
  body .site-header form.search-form,
  body .site-header form.woocommerce-product-search,
  body .dtfx-header form[role="search"],
  body .dtfx-header form.search-form,
  body .dtfx-header form.woocommerce-product-search {
    width: 100%;
    max-width: none;
  }
  body .main-navigation,
  body #site-navigation,
  body .dtfx-primary-nav,
  body .dtfx-main-nav {
    max-width: 100%;
  }
}
@media (max-width: 767px) {
  body #secondary,
  body .site-sidebar,
  body .shop-sidebar,
  body .dtfx-sidebar,
  body .left-sidebar {
    display: none !important;
  }
  body .site-header .custom-logo,
  body .dtfx-header .custom-logo {
    max-height: 62px;
    width: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}


/* v1.1 — Simplified navigation approved for staging.
   Preserve proper case: DTF | UV DTF | Shop | Gang Sheet Builder | Delivery | Contact */
body .main-navigation ul.menu > li > a,
body #site-navigation ul.menu > li > a,
body .dtfx-primary-nav ul.menu > li > a,
body .dtfx-main-nav ul.menu > li > a,
body .primary-navigation ul.menu > li > a,
body .header-nav ul.menu > li > a {
    text-transform: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0 !important;
    padding: 14px 19px !important;
    line-height: 1.35 !important;
    min-height: 54px !important;
}
/* Sidebar should look like a normal shop department list, not shouting */
body #secondary .widget li a,
body .site-sidebar .widget li a,
body .shop-sidebar .widget li a,
body .dtfx-sidebar .widget li a,
body .left-sidebar .widget li a {
    text-transform: none !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
    letter-spacing: 0 !important;
    padding: 11px 16px !important;
    line-height: 1.5 !important;
}
body #secondary .widget-title,
body .site-sidebar .widget-title,
body .shop-sidebar .widget-title,
body .dtfx-sidebar .widget-title,
body .left-sidebar .widget-title,
body #secondary .wp-block-heading,
body .dtfx-sidebar .wp-block-heading {
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    padding: 13px 16px !important;
}
@media (max-width: 991px) {
    body .main-navigation ul.menu > li > a,
    body #site-navigation ul.menu > li > a,
    body .dtfx-primary-nav ul.menu > li > a,
    body .dtfx-main-nav ul.menu > li > a,
    body .primary-navigation ul.menu > li > a,
    body .header-nav ul.menu > li > a {
        justify-content: flex-start !important;
        text-align: left !important;
        font-size: 15px !important;
        min-height: 44px !important;
        padding: 11px 17px !important;
    }
}
