/**
 * Hải Long Shop & Product List Design System
 * Primary Brand Color: #c21a1b
 * Clean, Modern, UX/UI Pro-Max
 * Unified Styles for Shop & Homepage Product Lists
 */

/* ==========================================================================
   1. SHOP TITLE & BREADCRUMBS TOOLBAR
   ========================================================================== */
.shop-page-title.category-page-title {
  background: radial-gradient(circle at 88% 12%, rgba(194, 26, 27, 0.08) 0%, rgba(194, 26, 27, 0) 46%), linear-gradient(180deg, #ffffff 0%, #fff7f7 55%, #f8fafc 100%) !important;
  color: #0f172a !important;
  padding: 30px 0 !important;
  margin-bottom: 30px !important;
  border-top: 1px solid #f1f5f9;
  border-bottom: 3px solid #c21a1b;
}

.shop-page-title.category-page-title .page-title-bg,
.shop-page-title.category-page-title .title-overlay {
  display: none !important;
  background: transparent !important;
}

.shop-page-title .woocommerce-breadcrumb {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  color: #0f172a !important;
}

.shop-page-title .woocommerce-breadcrumb a {
  color: #475569 !important;
  transition: color 0.2s ease;
}

.shop-page-title .woocommerce-breadcrumb a:hover {
  color: #c21a1b !important;
}

.shop-page-title .woocommerce-breadcrumb .divider {
  color: #94a3b8 !important;
  margin: 0 8px !important;
}

.shop-page-title h1,
.shop-page-title .shop-page-title-heading {
  color: #0f172a !important;
}

/* ==========================================================================
   2. ORDERING FORM & RESULT COUNT TOOLBAR
   ========================================================================== */
.shop-page-title .form-flat {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 15px !important;
}

.shop-page-title .woocommerce-result-count {
  margin: 0 !important;
  font-size: 13.5px !important;
  color: #475569 !important;
  font-weight: 600 !important;
}

form.woocommerce-ordering {
  margin: 0 !important;
  position: relative !important;
}

form.woocommerce-ordering select.orderby {
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 30px !important;
  padding: 8px 36px 8px 18px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
  transition: all 0.25s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23c21a1b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 11px 11px !important;
}

form.woocommerce-ordering select.orderby:hover,
form.woocommerce-ordering select.orderby:focus {
  border-color: #c21a1b !important;
  box-shadow: 0 0 0 3px rgba(194, 26, 27, 0.15) !important;
}

/* ==========================================================================
   3. CATEGORY PILLS FILTER BAR
   ========================================================================== */
.hl-category-filter-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #ffffff;
  padding: 16px 22px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  margin-bottom: 30px;
}

.hl-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hl-pill-item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.hl-pill-item a:hover {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #c21a1b;
  transform: translateY(-1px);
}

.hl-pill-item.active a {
  background: #c21a1b;
  border-color: #c21a1b;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(194, 26, 27, 0.25);
}

.hl-pill-item a i {
  font-size: 14px;
}

/* ==========================================================================
   4. UNIFIED PRODUCT GRID & CARD STYLES (SHOP & HOMEPAGE)
   ========================================================================== */
.product-small.col {
  margin-bottom: 28px !important;
}

.product-small .col-inner {
  background: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.product-small.col:hover .col-inner {
  transform: translateY(-6px) !important;
  border-color: rgba(194, 26, 27, 0.35) !important;
  box-shadow: 0 16px 32px rgba(194, 26, 27, 0.1) !important;
}

.product-small.box {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.product-small .box-image {
  background: #f8fafc !important;
  padding: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-bottom: 1px solid #f1f5f9 !important;
  position: relative !important;
}

.product-small .box-image img {
  max-height: 220px !important;
  width: auto !important;
  object-fit: contain !important;
  transition: transform 0.4s ease !important;
}

.product-small.col:hover .box-image img {
  transform: scale(1.06) !important;
}

.product-small .box-text.box-text-products {
  padding: 20px 18px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  text-align: center !important;
}

.product-small .title-wrapper {
  margin-bottom: 12px !important;
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.product-small .product-title {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

.product-small .product-title a {
  color: #0f172a !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.product-small .product-title a:hover {
  color: #c21a1b !important;
}

/* Price / Hotline Pill */
.product-small .price-wrapper {
  margin-bottom: 16px !important;
}

.product-small .price {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: #fff1f2 !important;
  color: #c21a1b !important;
  border: 1px solid #fecdd3 !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
}

.product-small .price::before {
  content: "095";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
}

/* Action Button */
.product-small .add-to-cart-button {
  margin-top: auto !important;
}

.product-small .add-to-cart-button a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 10px 18px !important;
  background: linear-gradient(135deg, #c21a1b 0%, #9e1213 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 25px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 12px rgba(194, 26, 27, 0.25) !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}

.product-small .add-to-cart-button a::after {
  content: "061";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 11px;
  transition: transform 0.2s ease;
}

.product-small .add-to-cart-button a:hover {
  background: linear-gradient(135deg, #df2021 0%, #c21a1b 100%) !important;
  box-shadow: 0 6px 18px rgba(194, 26, 27, 0.35) !important;
  transform: translateY(-2px) !important;
}

.product-small .add-to-cart-button a:hover::after {
  transform: translateX(4px);
}

/* View All CTA on Homepage */
.btn-view-all-products {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #c21a1b;
  border: 2px solid #c21a1b;
  border-radius: 30px;
  padding: 12px 28px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(194, 26, 27, 0.1);
  transition: all 0.3s ease;
}

.btn-view-all-products:hover {
  background: #c21a1b;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(194, 26, 27, 0.25);
  transform: translateY(-2px);
}

.btn-view-all-products i {
  transition: transform 0.2s ease;
}

.btn-view-all-products:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   5. WOOCOMMERCE PAGINATION
   ========================================================================== */
.woocommerce-pagination {
  margin: 35px 0 20px !important;
}

.woocommerce-pagination ul.page-numbers {
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  border: none !important;
  padding: 0 !important;
}

.woocommerce-pagination ul.page-numbers li {
  margin: 0 !important;
  border: none !important;
}

.woocommerce-pagination .page-numbers:not(ul) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}

.woocommerce-pagination .page-numbers:not(ul):hover {
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
  color: #c21a1b !important;
  transform: translateY(-2px) !important;
}

.woocommerce-pagination .page-numbers.current {
  background: #c21a1b !important;
  border-color: #c21a1b !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(194, 26, 27, 0.3) !important;
}

/* ==========================================================================
   6. WIDGET PRODUCT LIST (product_list_widget)
   ========================================================================== */
ul.product_list_widget {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

ul.product_list_widget li {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  transition: all 0.2s ease !important;
}

ul.product_list_widget li:hover {
  background: #fff5f5 !important;
}

ul.product_list_widget li img {
  width: 60px !important;
  height: 60px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  margin: 0 !important;
}

ul.product_list_widget li .product-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  display: block !important;
  margin-bottom: 4px !important;
}

ul.product_list_widget li .amount,
ul.product_list_widget li .price {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #c21a1b !important;
}