/* =============================================================================
   Play It Louie — responsive header, categories fly-out, search
   Desktop + mobile (no hover mega-menus on touch)
   ============================================================================= */

.pil-header {
  position: relative;
  z-index: 1030;
}

.pil-top-line {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.pil-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
  align-items: center;
}

.pil-top-actions a {
  white-space: nowrap;
}

.pil-nav-inner {
  padding-top: 8px;
  padding-bottom: 8px;
}

.pil-nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  width: 100%;
}

.pil-logo-wrap {
  flex: 0 0 auto;
}

.pil-logo {
  display: block;
  width: auto !important;
  max-width: 220px;
}

.pil-logo img {
  display: block;
  max-height: 56px;
  width: auto;
  max-width: 100%;
  height: auto;
}

/* Categories button */
.pil-cats-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #222;
  border-radius: 4px;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.pil-cats-btn:hover,
.pil-cats-btn:focus,
.pil-cats-btn[aria-expanded="true"] {
  background: #000;
  color: #fff;
  outline: none;
}

.pil-cats-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 13px;
}

.pil-cats-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 1px;
}

/* Desktop site nav */
.pil-site-nav {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  gap: 2px 4px;
}

.pil-site-nav > .menu-item {
  float: none !important;
  display: block;
  margin: 0 !important;
}

.pil-site-nav > .menu-item > a {
  display: block;
  padding: 8px 10px !important;
  white-space: nowrap;
  font-weight: 600;
  font-size: 13px;
}

.pil-get-rocket > a {
  color: #2ac37d !important;
}

/* Search — single line input + Go */
.pil-search {
  display: flex !important;
  flex-direction: row;
  align-items: stretch;
  flex: 1 1 180px;
  max-width: 320px;
  min-width: 140px;
  position: relative !important;
  margin: 0 !important;
  height: 42px;
}

.pil-search .pil-search-input,
.pil-search input.form-control {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid #ccc !important;
  border-right: 0 !important;
  border-radius: 4px 0 0 4px !important;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 42px;
  background: #fff;
}

.pil-search-go {
  flex: 0 0 48px;
  width: 48px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: #1a1a1a;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.pil-search-go:hover,
.pil-search-go:focus {
  background: #000;
  color: #fff;
  outline: none;
}

.pil-search-go .ps-icon-search {
  font-size: 16px;
}

.pil-search-go-text {
  display: none;
  font-size: 13px;
  font-weight: 700;
}

/* Mobile site chips */
.pil-site-chips {
  display: none;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  width: 100%;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pil-site-chips::-webkit-scrollbar {
  display: none;
}

.pil-site-chips li {
  flex: 0 0 auto;
}

.pil-site-chips a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.pil-site-chips a:hover,
.pil-site-chips a:active {
  background: #111;
  border-color: #111;
  color: #fff;
}

/* Hide legacy hamburger / sidebar menu pattern */
.pil-header .menu-toggle,
.header.pil-header + .header--sidebar,
#pilHeaderSidebar {
  display: none !important;
}

/* ----- Fly-out drawer ----- */
.pil-cats-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10050;
}

.pil-cats-overlay.is-visible {
  display: block;
}

.pil-cats-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(340px, 90vw);
  height: 100%;
  max-height: 100vh;
  background: #fff;
  z-index: 10060;
  transform: translateX(-105%);
  transition: transform 0.25s ease;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pil-cats-drawer.is-open {
  transform: translateX(0);
}

.pil-cats-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e5e5;
  background: #1a1a1a;
  color: #fff;
  flex-shrink: 0;
}

.pil-cats-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.pil-cats-drawer-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  padding-bottom: 40px;
}

.pil-mnav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pil-mnav > li > a,
.pil-mnav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #eee;
  background: #fff;
  color: #222;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pil-mnav > li > a:hover,
.pil-mnav-toggle:hover,
.pil-mnav > li > a:active,
.pil-mnav-toggle:active {
  background: #f5f5f5;
  color: #111;
}

.pil-mnav-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f7f7f7;
}

.pil-mnav-sub a {
  display: block;
  padding: 12px 16px 12px 28px;
  border-bottom: 1px solid #ececec;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.pil-mnav-sub a:hover,
.pil-mnav-sub a:active {
  background: #eee;
  color: #000;
}

.pil-mnav-group.is-open > .pil-mnav-toggle i {
  transform: rotate(180deg);
}

.pil-mnav-toggle i {
  transition: transform 0.2s ease;
  font-size: 14px;
}

body.pil-cats-open {
  overflow: hidden;
}

/* Shop sidebar / pagination helpers */
.pil-shop-search {
  display: flex;
  width: 100%;
  height: 42px;
  margin-bottom: 16px;
}

.pil-shop-search input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 1px solid #ccc;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  padding: 0 12px;
  box-sizing: border-box;
}

.pil-shop-search button {
  flex: 0 0 48px;
  height: 42px;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: #1a1a1a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.pil-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pil-cat-list a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.pil-cat-list a:hover,
.pil-cat-list a:active,
.pil-cat-list a.is-active {
  color: #2ac37d;
}

.pil-page-meta {
  text-align: center;
  color: #777;
  font-size: 13px;
  margin-top: 8px;
}

/* Desktop */
@media (min-width: 992px) {
  .pil-site-chips {
    display: none !important;
  }

  .pil-nav-row {
    flex-wrap: nowrap;
  }

  .pil-cats-drawer {
    width: min(400px, 34vw);
  }

  .pil-search-go .ps-icon-search {
    display: none;
  }

  .pil-search-go-text {
    display: inline;
  }
}

/* Tablet / mobile */
@media (max-width: 991px) {
  .header__top .row > div {
    text-align: center;
  }

  .pil-top-actions {
    justify-content: center;
    margin-top: 4px;
  }

  .pil-site-nav {
    display: none !important;
  }

  .pil-site-chips {
    display: flex;
  }

  .pil-logo img {
    max-height: 42px;
  }

  .pil-cats-btn {
    margin-left: auto;
    padding: 8px 12px;
    font-size: 13px;
  }

  .pil-cats-label {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pil-search {
    flex: 1 1 100%;
    max-width: none;
    order: 5;
  }

  /* Product cards: no hover-reveal UI on touch */
  .ps-shoe .ps-shoe__variants {
    display: none !important;
  }

  .ps-shoe .ps-shoe__favorite {
    display: none !important;
  }

  .ps-shoe:before {
    display: none !important;
  }

  .ps-shoe .ps-shoe__content {
    -webkit-transform: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .ps-shoe .ps-shoe__detail {
    position: relative !important;
    background: #fff;
  }

  .ps-products-wrap {
    display: block;
  }

  .ps-products-wrap .ps-sidebar {
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
    padding: 0 15px;
  }

  .ps-products-wrap .ps-products {
    width: 100%;
    max-width: 100%;
  }
}

/* Prefer fine pointer for any remaining hover chrome */
@media (hover: none), (pointer: coarse) {
  .ps-shoe .ps-shoe__variants,
  .ps-shoe .ps-shoe__favorite {
    display: none !important;
  }

  .ps-shoe:hover .ps-shoe__variants,
  .ps-shoe:hover .ps-shoe__favorite {
    display: none !important;
  }

  .ps-shoe:hover:before {
    display: none !important;
  }
}
