/* Shop page extracted styles (phase 1) */

.category-header-wrapper {
    margin-bottom: 40px;
    width: 100%;
}

.cat-banner-full {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    object-fit: cover;
}

.cat-main-title {
    font-size: 32px;
    font-weight: 800;
    color: #232323;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.shop-page-wrapper { padding: 50px 20px; }
.shop-layout { display: grid; grid-template-columns: 320px 1fr; gap: 50px; align-items: start; }
.shop-sidebar { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 30px 25px; position: sticky; top: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.02); }

#filterBrands {
  margin:0; padding:0;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
}

#filterBrands::-webkit-scrollbar {
  width: 6px;
}

#filterBrands::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#filterBrands::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

#filterBrands::-webkit-scrollbar-thumb:hover {
  background: var(--blue);
}

#filterBrands li{ list-style:none; }

.filter-check{
  display:flex;
  align-items:center;
  gap:5px;
  padding:12px 2px;
  cursor:pointer;
}

.filter-check__box{
  width:16px;
  height:16px;
  accent-color: var(--blue);
  cursor:pointer;
}

.filter-check-item.filter-active .filter-check__text{
  color: var(--blue);
  font-weight: 500;
}

.filter-section h2 { font-size: 15px; font-weight: 600; color: var(--blue); text-transform: uppercase; margin-bottom: 20px; border-bottom: 2px solid var(--bg-light); padding-bottom: 10px; letter-spacing: 0.5px; }

.filter-group { border-bottom: 1px solid #f8f9fa; margin-bottom: 8px; }
.filter-parent { padding: 14px 0; font-size: 13.5px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #333; }
.filter-parent span { display: inline-block; text-transform: uppercase; }
.filter-parent:hover { color: var(--blue); }
.filter-parent i { font-size: 11px; opacity: 0.5; transition: 0.3s; }
.filter-group.active .filter-parent { color: var(--blue); }
.filter-group.active .filter-parent i { transform: rotate(180deg); opacity: 1; }

.filter-subs { max-height: 0; overflow: hidden; list-style: none; transition: max-height 0.4s ease; background: #f8f7f7; margin: 0 -25px; padding: 0; }
.filter-group.active .filter-subs { max-height: 800px; padding: 0px 0; margin-bottom: 10px; border-top: 1px solid #f0f0f0; }
.filter-subs li { padding: 10px 40px; font-size: 13px; color: #666; cursor: pointer; transition: 0.2s; text-transform: capitalize; }
.filter-subs li:hover { color: var(--blue); background: #e1efff; }
.filter-subs li.selected { color: var(--blue); font-weight: 700; background: #e7f4ff; border-right: 4px solid var(--blue); }

.filter-list li { padding: 10px 0; font-size: 13px; color: #555; cursor: pointer; text-transform: capitalize; border-bottom: 1px solid #f8f8f8; }
.filter-list li:hover { color: var(--blue);}
.filter-list li.filter-active { color: var(--blue); font-weight: 500; }

.btn-clear-filters {font-family: 'Lato', sans-serif ; width: 100%; padding: 14px; margin-top: 25px; background: #fdfdfd; border: 1px solid #096CB1; border-radius: 6px; font-size: 15px; font-weight: 600; color: #096CB1; cursor: pointer; transition: 0.3s; text-transform: uppercase; }
.btn-clear-filters:hover { background: #096CB1; color: #fff; }

.shop-grid-3 { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 25px; }
.shop-grid-3 { align-content: start; }
.shop-grid-3 .product-modern { width: 100% !important; max-width: 100% !important; margin: 0 !important; flex: none !important; }
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px 20px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border-radius: 8px;
  color: #888;
}

.shop-grid-3.is-empty {
  min-height: 0 !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

.shop-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-header-clear {
    background: #e4f3fd;
    border: 1px solid #e4f3fd;
    color: #575757;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-header-clear:hover {
    background: #d0e7f7;
    border-color: #d0e7f7;
    color: #333;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  color: #777;
  font-size: 14px;
}

.count-text {
  margin: 0;
}

.sort-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-select {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #555;
  background-color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.sort-select:hover, .sort-select:focus {
  border-color: var(--blue);
}

@media (max-width: 600px) {
  .shop-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .sort-box {
    width: 100%;
    justify-content: space-between;
  }
}

.shop-mobile-bar { display: none; margin-bottom: 18px; align-items: stretch; }
.btn-open-filters,
.btn-mobile-clear {
  min-height: 44px;
  line-height: 1;
}
.btn-open-filters {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--dark);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
}
.shop-mobile-bar .material-symbols-rounded,
.btn-header-clear .material-symbols-rounded {
  gap: 2px;
  vertical-align: middle;
  color: #575757;
  font-size: 18px;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 350, 'GRAD' 0, 'opsz' 20;
}
.btn-open-filters i { color: var(--blue); }
.filters-overlay { display: none; position: fixed; inset: 0; background: none; opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 199999; }
.filters-drawer-head { display:none;top: 0; background: #fff; border-bottom: none; z-index: 1; align-items: center; justify-content: space-between; }
.filters-close { cursor: pointer; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: none; background: #fff; }

.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
  font-family: 'Lato', sans-serif;
}

.page-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.page-btn.active {
  background-color: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f9f9f9;
}

/* Extracted from style.css (phase 2) */
.filter-parent {
  gap: 12px;
}

.filter-key:hover {
  color: #004B82;
}

.filter-parent__title,
.filter-sub__title,
.filter-key {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  font-size: 12px;
  font-weight: 500;
  color: #555;
}

.filter-parent__title:hover {
  color: #246393;
}

#filterCategories .filter-parent__title.is-selected,
#filterCategories .filter-sub__title.is-selected {
  font-weight: 500 !important;
  color: var(--blue) !important;
}

#filterCategories .filter-parent__title.is-selected {
  text-decoration: none;
  text-underline-offset: 4px;
}

.filter-parent__toggle,
.filter-sub__toggle {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-transform: uppercase;
}

.filter-parent__toggle .material-symbols-rounded[data-icon="keyboard_arrow_down"],
.filter-sub__toggle .material-symbols-rounded[data-icon="keyboard_arrow_down"] {
  font-size: 20px;
  line-height: 1;
}

.filter-sub__toggle--ghost {
  width: 34px;
  height: 34px;
  display: block;
}

.filter-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-keys {
  overflow: hidden;
  max-height: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  transition: max-height .25s ease;
}

.filter-keys.is-open {
  padding-bottom: 10px;
}

.filter-keys li {
  padding: 15px 40px 0 40px;
}

.filter-key.selected {
  font-weight: 700;
  color: #004B82;
}

@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 280px 1fr;
    gap: 30px;
  }

  .shop-grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .btn-header-clear {
    display: none !important;
  }

  .shop-mobile-bar {
    display: flex !important;
    gap: 12px;
    margin-bottom: 18px;
    align-items: stretch;
  }

  .btn-open-filters {
    flex: 1;
    justify-content: center;
    max-width: 100%;
    border-radius: 8px;
    color: #575757;
  }

  .btn-mobile-clear {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid #e4f3fd;
    background: #e4f3fd;
    color: #575757;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Lato', sans-serif;
    transition: all 0.2s ease;
  }

  .shop-layout {
    display: block !important;
    gap: 0 !important;
  }

  .shop-content {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .shop-sidebar {
    background: #fff;
    padding-bottom: 100px !important;
    height: 100dvh;
    position: relative;
    top: 0;
    margin-bottom: 40px;
  }

  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 200000;
    overflow-y: auto;
    border-radius: 0;
  }

  .filters-drawer-head {
    display: flex;
    font-size: 25px;
    color: #888;
  }

  #filter-toggle:checked ~ .filters-overlay {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  #filter-toggle:checked ~ .shop-layout .shop-sidebar {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .btn-header-clear {
    display: none !important;
  }

  .cat-main-title {
    font-size: 24px;
    text-align: center;
    margin-top: 20px;
  }

  .shop-grid-3 { min-height: 0; }
}

@media (max-width: 600px) {
  .btn-header-clear {
    display: none !important;
  }

  .shop-grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .shop-grid-3 .product-modern {
    padding: 10px;
    border-radius: 10px;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .shop-grid-3 .product-img {
    height: 130px;
  }

  .shop-grid-3 .product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

@media (max-width: 450px) {
  .btn-header-clear {
    display: none !important;
  }

  .shop-grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .shop-grid-3 .product-modern {
    padding: 7px;
    border-radius: 10px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  #filterCategories .filter-parent__title,
  #filterCategories .filter-sub__title,
  #filterCategories .filter-key {
    font-size: 14px;
    line-height: 1.25;
  }

  .filter-subs li,
  .filter-list li {
    font-size: 14px;
  }
}

.shop-grid-3 { min-height: 0; }

.shop-sidebar {
  min-height: 600px;
}

.filter-section {
  min-height: 150px;
}

.pagination-wrapper {
  min-height: 60px;
}

.shop-header {
  min-height: 60px;
}

.category-header-wrapper {
  min-height: 80px;
}
