/* ============================================================
   Premium Shop UI - additive overrides on top of style.css.
   Nothing here is removed/edited in style.css itself.
   ============================================================ */

/* ---- Sidebar shell ---- */
.sidebar-area {
  width: 100%;
  background: transparent;
}
.sidebar-area .widget {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  padding: 24px;
  margin-bottom: 24px;
  transition: box-shadow .3s;
}
.sidebar-area .widget:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, .1);
}

/* ---- Search box ---- */
.shop-search-box {
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
.shop-search-box input {
  flex: 1;
  border: 1px solid #eee;
  border-right: none;
  border-radius: 12px 0 0 12px;
  padding: 0 16px;
  height: 48px;
  font-size: 14px;
}
.shop-search-btn {
  width: 52px;
  border: none;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  cursor: pointer;
  transition: .3s;
}
.shop-search-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* ---- Category accordion tree ---- */
.cat-tree, .cat-tree-children, .checkbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cat-tree-item {
  border-bottom: 1px solid #f1f1f1;
}
.cat-tree-item:last-child { border-bottom: none; }
.cat-tree-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.cat-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14.5px;
  flex: 1;
  margin: 0;
}
.cat-checkbox input { accent-color: #2563eb; width: 16px; height: 16px; }
.cat-count { color: #999; font-size: 13px; }
.cat-toggle {
  border: none;
  background: #f3f4f6;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .25s;
}
.cat-tree-item.open > .cat-tree-row .cat-toggle,
.cat-tree-item.open > .cat-tree-row .cat-toggle i {
  transform: rotate(180deg);
}
.cat-tree-children {
  padding-left: 20px;
  border-left: 2px solid #eef2ff;
  margin-left: 4px;
}
.checkbox-list li { padding: 6px 0; }

/* ---- Apply / Reset buttons ---- */
.filters-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.apply-filters-btn {
  flex: 1;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 10px !important;
  text-align: center;
  justify-content: center;
}
.apply-filters-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a) !important;
}
.reset-filters-btn {
  flex: 1;
  background: #111 !important;
  border: none !important;
  color: #fff !important;
  border-radius: 10px !important;
  text-align: center;
  justify-content: center;
}
.reset-filters-btn:hover { background: #333 !important; }

/* ---- Mobile filter trigger ---- */
.mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 8px;
  border: none;
  background: #111;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
}

/* ---- Category / quick-filter tabs ---- */
.shop-tabs-wrap {
  margin-bottom: 20px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.shop-tabs-wrap::-webkit-scrollbar { display: none; }
.shop-tabs {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.shop-tabs li { flex: 0 0 auto; }
.shop-tabs li a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: .25s;
}
.shop-tabs li a:hover { background: #e5e7eb; }
.shop-tabs li.active a {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}

/* ---- Toolbar / view toggle ---- */
.view-toggle {
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.view-btn {
  border: none;
  background: #fff;
  width: 38px;
  height: 38px;
  cursor: pointer;
  color: #666;
}
.view-btn.active {
  background: #2563eb;
  color: #fff;
}
.woocommerce-ordering .orderby {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 8px 16px;
  font-size: 14px;
}

/* ---- Product cards ---- */
.product-style1 {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.product-style1:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
}
.product-style1 .product-img {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.product-style1 .product-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform .5s, opacity .3s;
}
.product-style1:hover .product-img .primary-img {
  transform: scale(1.08);
}
.product-style1 .post-box {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 2;
}
.product-style1 .post-box li {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
  text-transform: uppercase;
}
.badge-hot { background: #1976D2; }
.badge-discount { background: #ef4444; }
.badge-stock { background: #6b7280; }

.product-style1 .product-btns {
  position: absolute;
  right: 14px;
  top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity .3s, transform .3s;
}
.product-style1:hover .product-btns {
  opacity: 1;
  transform: translateX(0);
}
.product-style1 .product-btns .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .25s;
}
.product-style1 .product-btns .icon-btn:hover {
  background: #2563eb;
  color: #fff;
}
.product-style1 .product-btns .wishlist.active {
  background: #ef4444;
  color: #fff;
}
.product-content .product-category {
  display: block;
  font-size: 13px;
  color: #888;
}
.list-add-to-cart-btn {
  margin-top: 10px;
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ---- List view ---- */
#shop-product-grid.list-view .product-grid-col {
  flex: 0 0 100%;
  max-width: 100%;
}
#shop-product-grid.list-view .product-style1 {
  display: flex;
  flex-direction: row;
}
#shop-product-grid.list-view .product-style1 .product-img {
  flex: 0 0 220px;
  height: 220px;
}
#shop-product-grid.list-view .product-style1 .product-img img {
  height: 220px;
}
#shop-product-grid.list-view .product-content {
  flex: 1;
}

/* ---- Pagination ---- */
.vs-pagination ul { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.vs-pagination ul li a,
.vs-pagination ul li span,
.vs-pagination .pagi-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f3f4f6;
  color: #333;
  transition: .25s;
}
.vs-pagination ul li a:hover,
.vs-pagination .pagi-btn:hover {
  background: #dbeafe;
  color: #2563eb;
}
.vs-pagination ul li a.active {
  background: #2563eb;
  color: #fff;
}

/* ---- Quick view modal ---- */
.quick-view-content { border-radius: 16px; padding: 24px; }
.quick-view-loading { text-align: center; padding: 60px 0; }
.qv-layout { display: flex; gap: 24px; flex-wrap: wrap; }
.qv-image { flex: 0 0 260px; }
.qv-image img { width: 100%; border-radius: 12px; }
.qv-details { flex: 1; min-width: 240px; }
.qv-details h3 { margin-bottom: 8px; }
.qv-price del { color: #999; margin-right: 8px; }
.qv-price ins { color: #2563eb; text-decoration: none; font-weight: 700; }

/* ---- Mini cart empty state ---- */
.mini-cart-empty { padding: 16px; text-align: center; color: #888; }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .mobile-filter-btn { display: inline-flex; }
}
@media (max-width: 767.98px) {
  #shop-product-grid .product-grid-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .product-style1 .product-img,
  .product-style1 .product-img img {
    height: 220px;
  }
}
