/* Shop filter sidebar: filters left, products right */
.cnet-shop {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  margin: 1.5rem 0 3rem;
}
.cnet-shop__products { min-width: 0; }
.cnet-shop__filters {
  position: sticky;
  top: 1.5rem;
  background: #ffffff;
  border: 1px solid #DDE3EA;
  border-radius: 8px;
  padding: 1.25rem 1.25rem 0.5rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}
.cnet-shop__toggle-label {
  display: none;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1rem;
  color: #0B1F3A;
}
.cnet-shop__toggle-label::-webkit-details-marker { display: none; }
.cnet-shop__widget {
  padding: 0 0 1.1rem;
  margin: 0 0 1.1rem;
  border-bottom: 1px solid #DDE3EA;
}
.cnet-shop__widget:last-child { border-bottom: 0; margin-bottom: 0; }
.cnet-shop__widget-title {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0B1F3A;
}
.cnet-shop__widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cnet-shop__widget ul ul { padding-left: 0.85rem; margin-top: 0.25rem; }
.cnet-shop__widget li {
  margin: 0;
  padding: 0.22rem 0;
  font-size: 0.9375rem;
  color: #1B2430;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem;
}
.cnet-shop__widget li > ul { flex-basis: 100%; }
.cnet-shop__widget a { color: #1B2430; text-decoration: none; }
.cnet-shop__widget a:hover { color: #FF7A00; }
.cnet-shop__widget .count { color: #6B7785; font-size: 0.8125rem; }

/* Attribute filters as tick boxes: empty box = off, orange box with a tick = on */
.cnet-shop .woocommerce-widget-layered-nav-list__item {
  align-items: center;
  flex-wrap: nowrap;
}
.cnet-shop .woocommerce-widget-layered-nav-list__item a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.1rem 0;
  color: #1B2430;
  font-weight: 400;
}
.cnet-shop .woocommerce-widget-layered-nav-list__item a::before {
  content: '' !important;
  font-family: inherit !important;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0 !important;
  border: 1.5px solid #9AA6B2;
  border-radius: 4px;
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.15s, background-color 0.15s;
}
.cnet-shop .woocommerce-widget-layered-nav-list__item a:hover::before { border-color: #FF7A00; }
.cnet-shop .woocommerce-widget-layered-nav-list__item--chosen a,
.cnet-shop .woocommerce-widget-layered-nav-list__item.chosen a { color: #0B1F3A; font-weight: 600; }
.cnet-shop .woocommerce-widget-layered-nav-list__item--chosen a::before,
.cnet-shop .woocommerce-widget-layered-nav-list__item.chosen a::before {
  border-color: #FF7A00;
  background: #FF7A00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.cnet-shop .woocommerce-widget-layered-nav-list__item .count { flex: 0 0 auto; }

/* Active filters as removable pills */
.cnet-shop__widget.widget_layered_nav_filters ul { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cnet-shop__widget.widget_layered_nav_filters li { padding: 0; }
.cnet-shop__widget.widget_layered_nav_filters a {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #0B1F3A;
  color: #ffffff;
  font-size: 0.8125rem;
}
.cnet-shop__widget.widget_layered_nav_filters a:hover { background: #FF7A00; color: #ffffff; }
/* Price slider in brand colours */
.cnet-shop .price_slider_wrapper .ui-slider .ui-slider-range,
.cnet-shop .price_slider_wrapper .ui-slider .ui-slider-handle { background-color: #FF7A00; }
.cnet-shop .price_slider_wrapper .ui-widget-content { background-color: #DDE3EA; }
.cnet-shop .price_slider_amount .button {
  background: #FF7A00;
  color: #ffffff;
  border: 0;
  border-radius: 4px;
  padding: 0.4rem 0.9rem;
  font-weight: 700;
}
.cnet-shop .price_slider_amount .button:hover { background: #ff8f2b; color: #0B1F3A; }
.cnet-shop .price_slider_amount { font-size: 0.875rem; }

/* List / tiles view buttons, beside the sorting dropdown */
.cnet-view-toggle {
  float: right;
  display: inline-flex;
  gap: 0.35rem;
  margin: 0 0 1em 0.75rem;
}
.cnet-view-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #DDE3EA;
  border-radius: 6px;
  background: #ffffff;
  color: #6B7785;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.cnet-view-toggle button svg { width: 18px; height: 18px; fill: currentColor; }
.cnet-view-toggle button:hover { border-color: #FF7A00; color: #FF7A00; background: #ffffff; }
.cnet-view-toggle button[aria-pressed="true"] { background: #0B1F3A; border-color: #0B1F3A; color: #ffffff; }
.cnet-shop__products .woocommerce-ordering { margin-bottom: 1em; }
.cnet-shop__products .woocommerce-ordering select { height: 40px; }

/* Results as a list: one product per row (default view) */
.woocommerce .cnet-shop__products ul.products,
.woocommerce-page .cnet-shop__products ul.products {
  clear: both;
  display: flex !important;
  flex-direction: column;
  gap: 1rem;
  margin: 0 !important;
}
.woocommerce .cnet-shop__products ul.products::before,
.woocommerce .cnet-shop__products ul.products::after { display: none !important; }
.woocommerce .cnet-shop__products ul.products li.product,
.woocommerce-page .cnet-shop__products ul.products li.product {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 1.25rem !important;
  display: flex !important;
  align-items: center;
  gap: 1.5rem;
  background: #ffffff;
  border: 1px solid #DDE3EA;
  border-radius: 8px;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.woocommerce .cnet-shop__products ul.products li.product:hover {
  border-color: #FF7A00;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.08);
}
.cnet-shop__products ul.products li.product a.woocommerce-LoopProduct-link {
  flex: 1 1 auto;
  min-width: 0;
  display: grid !important;
  grid-template-columns: 140px minmax(0, 1fr);
  grid-auto-rows: auto;
  column-gap: 1.5rem;
  row-gap: 0.4rem;
  align-items: start;
  text-decoration: none;
}
.woocommerce .cnet-shop__products ul.products li.product a img {
  grid-column: 1;
  grid-row: 1 / span 6;
  width: 140px !important;
  height: 140px !important;
  object-fit: contain;
  margin: 0 !important;
  align-self: center;
}
.cnet-shop__products ul.products li.product a.woocommerce-LoopProduct-link > *:not(img) { grid-column: 2; }
.woocommerce .cnet-shop__products ul.products li.product .woocommerce-loop-product__title {
  padding: 0 !important;
  margin: 0 !important;
  font-size: 1.0625rem !important;
  font-weight: 700;
  line-height: 1.35;
  color: #0B1F3A;
}
.woocommerce .cnet-shop__products ul.products li.product .price {
  margin: 0 !important;
  font-size: 1.125rem !important;
  font-weight: 700;
}
.woocommerce .cnet-shop__products ul.products li.product .onsale { display: none; }
.cnet-list__details { display: flex; flex-direction: column; gap: 0.35rem; }
.cnet-list__sku { font-size: 0.8125rem; color: #6B7785; letter-spacing: 0.02em; }
.cnet-list__specs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.cnet-list__specs li { font-size: 0.875rem; color: #1B2430; margin: 0; }
.cnet-list__specs li strong { color: #6B7785; font-weight: 600; }
.cnet-list__specs p { margin: 0; font-size: 0.875rem; color: #1B2430; }
.woocommerce .cnet-shop__products ul.products li.product .button,
.woocommerce .cnet-shop__products ul.products li.product .added_to_cart {
  flex: 0 0 auto;
  margin: 0 !important;
  white-space: nowrap;
  border-radius: 4px;
  padding: 0.75rem 1.25rem;
}

/* Tiled view: three across on desktop */
.woocommerce .cnet-shop__products.is-grid ul.products,
.woocommerce-page .cnet-shop__products.is-grid ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.woocommerce .cnet-shop__products.is-grid ul.products li.product,
.woocommerce-page .cnet-shop__products.is-grid ul.products li.product {
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
  padding: 1rem !important;
}
.cnet-shop__products.is-grid ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex !important;
  flex-direction: column;
  gap: 0.45rem;
}
.woocommerce .cnet-shop__products.is-grid ul.products li.product a img {
  width: 100% !important;
  height: 190px !important;
  margin: 0 0 0.35rem !important;
  align-self: stretch;
}
.cnet-shop__products.is-grid .cnet-list__specs ul { flex-direction: column; gap: 0.15rem; }
.woocommerce .cnet-shop__products.is-grid ul.products li.product .button,
.woocommerce .cnet-shop__products.is-grid ul.products li.product .added_to_cart {
  margin-top: auto !important;
  text-align: center;
  white-space: normal;
}

/* Tablet and phone: filters stack above the products and collapse */
@media (max-width: 1024px) {
  .cnet-shop { grid-template-columns: 1fr; gap: 1.25rem; }
  .cnet-shop__filters { position: static; max-height: none; padding: 0.9rem 1rem; }
  .cnet-shop__toggle-label { display: flex; justify-content: space-between; align-items: center; }
  .cnet-shop__toggle-label::after { content: '+'; font-size: 1.25rem; color: #FF7A00; }
  .cnet-shop__toggle[open] .cnet-shop__toggle-label::after { content: '\2212'; }
  .cnet-shop__toggle[open] .cnet-shop__filter-list { margin-top: 1rem; }
  .cnet-shop .woocommerce-widget-layered-nav-list__item a { padding: 0.3rem 0; }
  .woocommerce .cnet-shop__products.is-grid ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phone: image smaller, button drops under the details */
@media (max-width: 767px) {
  .woocommerce .cnet-shop__products ul.products li.product,
  .woocommerce-page .cnet-shop__products ul.products li.product {
    flex-wrap: wrap;
    padding: 1rem !important;
    gap: 0.9rem;
  }
  .cnet-shop__products ul.products li.product a.woocommerce-LoopProduct-link {
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 1rem;
  }
  .woocommerce .cnet-shop__products ul.products li.product a img {
    width: 88px !important;
    height: 88px !important;
    align-self: start;
  }
  .woocommerce .cnet-shop__products ul.products li.product .button,
  .woocommerce .cnet-shop__products ul.products li.product .added_to_cart {
    flex: 1 1 100%;
    text-align: center;
  }
  .woocommerce .cnet-shop__products.is-grid ul.products li.product a img { height: 130px !important; }
}
@media (max-width: 480px) {
  .woocommerce .cnet-shop__products.is-grid ul.products { grid-template-columns: 1fr; }
  .cnet-view-toggle { float: none; margin: 0 0 0.75rem; }
}
