/* ===================================
   PRODUCTS PAGE STYLES
   Anime Weebs - Product Listing & Filters
   =================================== */

/* Remove padding from main container for products page */
.main-container {
  padding: 0 !important;
}

/* ===================================
   JAPANESE STYLE HERO SECTION
   =================================== */

.products-hero-jp {
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Japanese Breadcrumb */
.jp-breadcrumb {
  background: transparent;
}

.jp-breadcrumb a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.jp-breadcrumb a:hover {
  color: #dc3545;
}

.jp-breadcrumb .active {
  color: #666;
  font-weight: 500;
}

/* Main Hero Banner */
.jp-hero-banner {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.jp-hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(220, 53, 69, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.jp-hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.jp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.jp-kanji {
  font-size: 1.5rem;
  font-weight: 900;
  border: 2px solid #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.jp-text {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.jp-hero-title {
  margin-bottom: 1rem;
}

.jp-title-main {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.jp-title-sub {
  display: block;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  letter-spacing: 4px;
}

.jp-hero-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin: 0;
}

/* Promotional Info Bar */
.jp-info-bar {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 1.25rem 0;
  position: relative;
}

.jp-info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-right: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.col-lg-4:last-child .jp-info-item,
.col-md-4:last-child .jp-info-item {
  border-right: none;
}

.jp-info-item:hover {
  background: #f8f9fa;
}

.jp-info-icon {
  font-size: 1.5rem;
  color: #dc3545;
  flex-shrink: 0;
}

.jp-info-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}

.jp-info-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #000;
  line-height: 1;
}

.jp-info-detail {
  font-size: 0.75rem;
  color: #666;
  line-height: 1;
}

/* Mobile responsiveness for info bar */
@media (max-width: 991px) {
  .jp-info-item {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem;
  }

  .col-12:last-child .jp-info-item {
    border-bottom: none;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .jp-title-main {
    font-size: 2.5rem;
  }

  .jp-title-sub {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .jp-hero-banner {
    padding: 2rem 0;
  }

  .jp-title-main {
    font-size: 2rem;
  }

  .jp-title-sub {
    font-size: 1rem;
  }
}

/* Main Container */
.products-container {
  padding: 0 0 5rem 0;
  background: #ffffff;
  min-height: 100vh;
}

/* ===================================
   VERTICAL SIDEBAR FILTERS
   =================================== */

.filters-sidebar {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  position: sticky;
  top: 110px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  animation: fadeInLeft 0.6s ease-out;
  border: 2px solid #e0e0e0;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scrollbar styling for sidebar */
.filters-sidebar::-webkit-scrollbar {
  width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.filters-sidebar::-webkit-scrollbar-thumb {
  background: #28a745;
  border-radius: 10px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
  background: #20c997;
}

/* Filter Header */
.filter-header-sidebar {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid #000;
}

.filter-header-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-icon {
  width: 45px;
  height: 45px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.filter-header-title h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #000;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-clear-sidebar {
  display: inline-block;
  background: #f8f9fa;
  color: #666;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-clear-sidebar:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: translateY(-2px);
}

/* Filter Groups */
.filter-group {
  margin-bottom: 2rem;
}

.filter-label {
  display: block;
  color: #000;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}

.filter-label i {
  color: #28a745;
  margin-right: 0.5rem;
}

.filter-group .form-control,
.filter-group .form-select {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.filter-group .form-control:focus,
.filter-group .form-select:focus {
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
  background: #fff;
}

/* Price Quick Filters - Vertical */
.price-quick-filters-vertical {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.price-quick-btn-vertical {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.price-quick-btn-vertical:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: translateY(-2px);
}

/* Price Range Inputs - Vertical */
.price-range-inputs-vertical {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.price-range-inputs-vertical .form-control {
  flex: 1;
  text-align: center;
}

.price-range-inputs-vertical .price-dash {
  color: #999;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Apply Button */
.btn-apply-sidebar {
  width: 100%;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-apply-sidebar:hover {
  background: #000;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-apply-sidebar:active {
  transform: translateY(0);
}

/* ===================================
   HORIZONTAL FILTERS (LEGACY - HIDDEN)
   =================================== */

.filters-horizontal {
  display: none !important;
}

/* Keep these for backwards compatibility */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e9ecef;
}

.filter-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-header-title h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
}

.filter-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.filter-quick-actions {
  display: flex;
  gap: 0.5rem;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 2fr auto;
  gap: 1.5rem;
  align-items: end;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-label-small {
  font-size: 0.9rem;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label-small i {
  color: #28a745;
  font-size: 1.1rem;
}

.price-label-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.price-label-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-quick-filters {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.price-quick-btn {
  padding: 0.35rem 0.75rem;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: normal;
}

.price-quick-btn:hover {
  background: #28a745;
  border-color: #28a745;
  color: white;
  transform: translateY(-2px);
}

/* Filter Search */
.filter-search {
  grid-column: span 1;
}

.filter-search .form-control {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
}

.filter-search .form-control:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
  outline: none;
}

/* Filter Select Wrapper */
.filter-select-wrapper {
  position: relative;
}

.filter-select-wrapper select {
  width: 100%;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 0.85rem 2.5rem 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
}

.filter-select-wrapper::after {
  content: '\f282';
  font-family: 'bootstrap-icons';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #28a745;
  font-size: 1rem;
}

.filter-select-wrapper select:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
  outline: none;
}

.filter-select-wrapper select:hover {
  border-color: #20c997;
}

/* Price Range Inputs */
.price-range-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.price-range-inputs input {
  flex: 1;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.price-range-inputs input:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
  outline: none;
}

.price-dash {
  color: #999;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Filter Actions */
.filter-actions-horizontal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-apply-horizontal {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-apply-horizontal:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.btn-apply-horizontal i {
  margin-right: 0.5rem;
}

.btn-clear-horizontal {
  background: white;
  color: #666;
  border: 2px solid #e0e0e0;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-clear-horizontal:hover {
  background: #000;
  border-color: #000;
  color: white;
  transform: translateY(-2px);
}

/* Active Filters */
.active-filters {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #e0e0e0;
}

.active-filters-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.5rem;
}

.active-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-tag {
  background: #28a745;
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-tag i {
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.filter-tag i:hover {
  opacity: 1;
}

/* ===================================
   PRODUCTS SECTION
   =================================== */

.products-section {
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Results Header */
.results-header-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
}

.results-count-new {
  font-size: 1rem;
  color: #666;
}

.results-count-new strong {
  font-size: 1.5rem;
  color: #28a745;
  font-weight: 700;
}

.results-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* View Toggle */
.view-toggle {
  display: flex;
  gap: 0.5rem;
  background: #f8f9fa;
  padding: 0.25rem;
  border-radius: 10px;
}

.view-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #666;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-btn:hover {
  color: #000;
}

.view-btn.active {
  background: white;
  color: #28a745;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.results-sort label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
  margin: 0;
}

/* ===================================
   PRODUCT CARDS
   =================================== */

.product-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* Product Image */
.product-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
  display: block;
  text-decoration: none;
}

/* Fixed height for grid layouts */
.jp-products-grid .product-image-wrapper {
  height: 320px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

/* Product overlay - desktop only */
.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-overlay .btn {
  pointer-events: auto;
}

/* Hide overlay on mobile/tablet to ensure image link works */
@media (max-width: 991px) {
  .product-overlay {
    display: none !important;
  }
}

.product-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-hover-overlay {
  opacity: 1;
}

.btn-view-product {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-view-product:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
  color: white;
}

/* Product Badges */
.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.badge-preorder {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  color: white;
}

.badge-stock {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.badge-low-stock {
  background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
  color: white;
}

.badge-out {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
}

/* Product Quick Actions */
.product-quick-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  z-index: 2;
}

.product-card:hover .product-quick-actions {
  opacity: 1;
  transform: translateX(0);
}

.quick-action-btn {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.quick-action-btn:hover {
  background: #28a745;
  color: white;
  transform: scale(1.1);
}

/* Product Info */
.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-meta {
  margin-bottom: 1rem;
}

.product-anime {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #666;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.product-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  min-height: 2.8rem;
}

.product-name a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-name a:hover {
  color: #28a745;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stars {
  color: #ffc107;
  font-size: 0.9rem;
}

.rating-count {
  color: #999;
  font-size: 0.85rem;
}

.product-stock {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.product-stock.low {
  color: #ff9800;
  font-weight: 600;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 2px solid #f0f0f0;
}

.product-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: #28a745;
}

.btn-view-details {
  color: #000;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.btn-view-details:hover {
  background: #000;
  color: white;
  transform: translateX(5px);
}

/* ===================================
   EMPTY STATE
   =================================== */

.empty-products {
  text-align: center;
  padding: 5rem 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.empty-icon {
  font-size: 6rem;
  color: #e0e0e0;
  margin-bottom: 1.5rem;
}

.empty-title {
  color: #000;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.empty-text {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.empty-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-empty-primary {
  background: #28a745;
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-empty-primary:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: white;
}

.btn-empty-secondary {
  background: transparent;
  color: #000;
  border: 2px solid #000;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-empty-secondary:hover {
  background: #000;
  color: white;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1200px) {
  .filter-row {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .filter-search {
    grid-column: span 3;
  }

  .price-range-wrapper {
    grid-column: span 2;
  }

  .filter-actions-horizontal {
    grid-column: span 1;
  }
}

@media (max-width: 991px) {
  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-search,
  .filter-price,
  .filter-checks {
    min-width: 100%;
  }

  .filter-actions-horizontal {
    margin-left: 0;
    justify-content: stretch;
  }

  .filter-actions-horizontal .btn {
    flex: 1;
  }

  .results-header-new {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .results-controls {
    flex-direction: column;
    width: 100%;
  }

  .view-toggle {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .products-container {
    padding: 1.5rem 0 1.5rem 0;
  }

  .filters-horizontal {
    padding: 1.5rem;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .filter-search,
  .price-range-wrapper,
  .filter-actions-horizontal {
    grid-column: span 1;
  }

  .filter-header-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .products-grid-new {
    grid-template-columns: 1fr;
  }

  /* REMOVED: .product-image-wrapper height rule that was causing spacing issues */
}
}

/* ===================================
   PAGINATION STYLES
   =================================== */

.pagination {
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination .page-item .page-link {
  background-color: #fff;
  border: 2px solid #000;
  color: #000;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.pagination .page-item .page-link:hover {
  background-color: #000;
  color: #fff;
  border-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pagination .page-item.active .page-link {
  background-color: #000;
  border-color: #000;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pagination .page-item.disabled .page-link {
  background-color: #f8f9fa;
  border-color: #ddd;
  color: #999;
  cursor: not-allowed;
}

.pagination .page-item.disabled .page-link:hover {
  transform: none;
  box-shadow: none;
  background-color: #f8f9fa;
  border-color: #ddd;
  color: #999;
}

/* Responsive Pagination */
@media (max-width: 576px) {
  .pagination .page-item .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .pagination {
    gap: 0.25rem;
  }
}


/* ===================================
   JAPANESE STYLE PRODUCTS SECTION
   Updated Modern Design
   =================================== */

/* Sort Bar - Cleaner */
.jp-sort-bar {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  gap: 1rem;
  flex-wrap: wrap;
}

.jp-sort-left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.jp-product-count {
  font-size: 0.9rem;
  color: #495057;
  font-weight: 500;
}

.jp-product-count strong {
  color: #dc3545;
  font-size: 1.1rem;
  font-weight: 700;
}

.jp-sort-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: flex-end;
}

.jp-sort-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.jp-sort-label {
  font-weight: 600;
  color: #495057;
  font-size: 0.875rem;
  margin: 0;
}

.jp-sort-select {
  background: #f8f9fa;
  color: #212529;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 0.375rem 0.875rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.jp-sort-select:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.jp-sort-select:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}

/* Compact Pagination Controls for Top Bar - Sleek Japanese Style */
.jp-pagination-compact {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: #fff;
  border-radius: 50px;
  border: 2px solid #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.jp-page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #000;
  border: none;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
}

.jp-page-arrow:hover {
  background: #dc3545;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.jp-page-arrow.disabled {
  display: none;
}

.jp-page-info {
  font-size: 0.875rem;
  color: #495057;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 0.5rem;
  letter-spacing: 0.3px;
}

.jp-page-info strong {
  color: #dc3545;
  font-weight: 700;
  font-size: 1rem;
}

/* Products Grid - Japanese Style */
.products-section-jp {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.jp-products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Product Card - Clean Japanese Design */
.jp-product-card {
  background: #fff;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.jp-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #dc3545;
}

/* Clickable Card Link */
.jp-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
  cursor: pointer;
}

/* Image Container */
.jp-product-image-container {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  aspect-ratio: 1;
  border-bottom: 1px solid #e9ecef;
}

.jp-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: all 0.4s ease;
}

.jp-product-card:hover .jp-product-img {
  transform: scale(1.08);
  padding: 1rem;
}

/* Badges - Cleaner Design */
.jp-badges {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  align-items: flex-end;
}

.jp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.jp-badge i {
  font-size: 0.75rem;
}

.jp-badge-preorder {
  background: #ffc107;
  color: #000;
}

.jp-badge-warning {
  background: #ff9800;
  color: #fff;
}

.jp-badge-sold {
  background: #6c757d;
  color: #fff;
}

/* Product Info */
.jp-product-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Anime Tag - Cleaner */
.jp-anime-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #f8f9fa;
  color: #495057;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  border-left: 3px solid #dc3545;
  width: fit-content;
}

.jp-anime-tag i {
  color: #dc3545;
  font-size: 0.75rem;
}

.jp-anime-tag span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

/* Product Name - Cleaner */
.jp-product-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  min-height: 2.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #212529;
}

.jp-product-card:hover .jp-product-name {
  color: #dc3545;
}

/* Rating & Price Row */
.jp-rating-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Rating - Simplified */
.jp-rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.jp-stars {
  display: flex;
  gap: 0.0625rem;
  color: #ffc107;
  font-size: 0.75rem;
}

.jp-rating-text {
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 600;
}

.jp-price-box {
  text-align: right;
}

.jp-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #dc3545;
  letter-spacing: -0.5px;
}

/* Card Actions - Add to Cart Button */
.jp-card-actions {
  padding: 0 1.25rem 1.25rem;
  margin-top: auto;
}

.jp-add-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: #dc3545;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.jp-add-cart-btn:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
  color: #fff;
}

.jp-add-cart-btn i {
  font-size: 1.125rem;
}

.jp-btn-disabled {
  background: #6c757d;
  cursor: not-allowed;
  box-shadow: none;
}

.jp-btn-disabled:hover {
  background: #6c757d;
  transform: none;
  box-shadow: none;
}

/* Empty State - Japanese Style */
.jp-empty-state {
  text-align: center;
  padding: 5rem 2rem;
  background: #fff;
  border: 2px dashed #000;
  border-radius: 16px;
  margin: 2rem 0;
}

.jp-empty-icon {
  font-size: 5rem;
  color: #dc3545;
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.jp-empty-title {
  font-size: 2rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 0.5rem;
}

.jp-empty-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 1rem;
}

.jp-empty-text {
  font-size: 1rem;
  color: #999;
  margin-bottom: 2rem;
}

.jp-empty-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.jp-btn-reset,
.jp-btn-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid;
}

.jp-btn-reset {
  background: #000;
  color: #fff;
  border-color: #000;
}

.jp-btn-reset:hover {
  background: #dc3545;
  border-color: #dc3545;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.jp-btn-home {
  background: #fff;
  color: #000;
  border-color: #000;
}

.jp-btn-home:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile/Tablet Pagination (Bottom) - Styled like Desktop */
.jp-pagination-compact-mobile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: #fff;
  border-radius: 50px;
  border: 2px solid #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  margin: 2rem auto;
  justify-content: center;
  width: fit-content;
  max-width: 90%;
}

.jp-pagination-compact-mobile .jp-page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #000;
  border: none;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
}

.jp-pagination-compact-mobile .jp-page-arrow:hover {
  background: #dc3545;
  color: #fff;
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.jp-pagination-compact-mobile .jp-page-arrow.disabled {
  display: none;
}

.jp-pagination-compact-mobile .jp-page-info {
  font-size: 0.95rem;
  color: #495057;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 0.75rem;
  letter-spacing: 0.3px;
}

.jp-pagination-compact-mobile .jp-page-info strong {
  color: #dc3545;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Responsive adjustments for mobile pagination */
@media (max-width: 576px) {
  .jp-pagination-compact-mobile {
    padding: 0.6rem 1.25rem;
    gap: 0.5rem;
  }

  .jp-pagination-compact-mobile .jp-page-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .jp-pagination-compact-mobile .jp-page-info {
    font-size: 0.85rem;
    padding: 0 0.5rem;
  }

  .jp-pagination-compact-mobile .jp-page-info strong {
    font-size: 1rem;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .jp-sort-bar {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  .jp-sort-left {
    width: 100%;
    justify-content: center;
  }

  .jp-sort-right {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    justify-content: center;
  }

  .jp-pagination-compact {
    order: -1;
    margin-bottom: 0.5rem;
    padding: 0.4rem 1rem;
    gap: 0.5rem;
    font-size: 0.85rem;
  }

  .jp-page-arrow {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .jp-page-info {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .jp-page-info strong {
    font-size: 0.9rem;
  }

  .jp-sort-form {
    flex-direction: column;
    width: 100%;
  }

  .jp-sort-select {
    width: 100%;
  }

  .jp-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .jp-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .jp-product-info {
    padding: 1rem;
  }

  .jp-product-name {
    font-size: 0.95rem;
    min-height: 2.8rem;
  }

  .jp-price {
    font-size: 1.25rem;
  }

  .jp-view-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
  }

  .jp-overlay-actions {
    flex-direction: column;
  }
}


/* ===================================
   JAPANESE STYLE FILTER SIDEBAR
   Modern Store Design
   =================================== */

.jp-filters-sidebar {
  background: #fff;
  border: 2px solid #000;
  border-radius: 16px;
  padding: 0;
  position: sticky;
  top: 100px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Filter Header */
.jp-filter-header {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  padding: 1.5rem;
  border-bottom: 3px solid #dc3545;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jp-filter-title-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.jp-filter-kanji {
  width: 48px;
  height: 48px;
  background: #dc3545;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.jp-filter-title-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.jp-filter-main-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.5px;
}

.jp-filter-subtitle {
  font-size: 0.75rem;
  color: #dc3545;
  font-weight: 600;
  letter-spacing: 1px;
}

.jp-clear-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.jp-clear-btn:hover {
  background: #dc3545;
  border-color: #dc3545;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Filter Form */
.jp-filter-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Filter Section */
.jp-filter-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.jp-filter-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f8f9fa;
}

.jp-filter-section-header i {
  color: #dc3545;
  font-size: 1rem;
}

/* Search Box */
.jp-search-box {
  position: relative;
}

.jp-search-input {
  width: 100%;
  padding: 0.875rem 1rem;
  padding-right: 3rem;
  border: 2px solid #000;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: #fff;
  color: #000;
}

.jp-search-input:focus {
  outline: none;
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
  transform: translateY(-2px);
}

.jp-search-input::placeholder {
  color: #999;
}

.jp-search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 1.125rem;
  pointer-events: none;
}

.jp-search-input:focus+.jp-search-icon {
  color: #dc3545;
}

/* Select Wrapper */
.jp-select-wrapper {
  position: relative;
}

.jp-select {
  width: 100%;
  padding: 0.875rem 1rem;
  padding-right: 3rem;
  border: 2px solid #000;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  background: #fff;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
}

.jp-select:hover {
  border-color: #dc3545;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.jp-select:focus {
  outline: none;
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.jp-select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #dc3545;
  font-size: 1rem;
  pointer-events: none;
  font-weight: 700;
}

/* Price Quick Buttons Grid */
.jp-price-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.jp-price-quick-btn {
  background: #fff;
  border: 2px solid #000;
  border-radius: 10px;
  padding: 0.875rem 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.jp-price-quick-btn:hover {
  background: #000;
  border-color: #000;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.jp-price-quick-btn:hover .jp-price-label,
.jp-price-quick-btn:hover .jp-price-value {
  color: #fff;
}

.jp-price-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #dc3545;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.jp-price-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #000;
  transition: color 0.3s ease;
}

/* Custom Price Inputs */
.jp-price-custom {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.jp-price-input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.jp-price-input-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.jp-price-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #000;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.jp-price-input:focus {
  outline: none;
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
  transform: scale(1.05);
}

.jp-price-input::placeholder {
  color: #999;
}

.jp-price-divider {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  margin-top: 1.5rem;
}

/* Apply Button */
.jp-filter-actions {
  margin-top: 0.5rem;
}

.jp-apply-btn {
  width: 100%;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
  border: 2px solid transparent;
}

.jp-apply-btn:hover {
  background: #000;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: #dc3545;
}

.jp-apply-btn i:first-child {
  font-size: 1.125rem;
}

.jp-apply-btn i:last-child {
  font-size: 1.125rem;
  transition: transform 0.3s ease;
}

.jp-apply-btn:hover i:last-child {
  transform: translateX(4px);
}

/* Mobile Filter Button Container */
.products-container .d-lg-none.mb-3 {
  background: rgba(255, 255, 255, 0.02) !important;
  border-radius: 12px !important;
  padding: 1rem !important;
  margin-bottom: 1.5rem !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  position: relative !important;
}

/* Removed triangle decoration that was causing extra visual element */

/* Mobile Filter Button */
.mobile-filter-trigger {
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%) !important;
  border: 2px solid #dc3545 !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  padding: 1rem 2rem !important;
  border-radius: 8px !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  position: relative !important;
  font-size: 1rem !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
  width: 100% !important;
  max-width: 1140px !important;
  margin: 0 auto !important;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2) !important;
  cursor: pointer !important;
  overflow: hidden !important;
}

.mobile-filter-trigger::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 20px 20px 0;
  border-color: transparent #dc3545 transparent transparent;
  transition: all 0.25s ease;
}

.mobile-filter-trigger:hover {
  background: linear-gradient(90deg, rgba(220, 53, 69, 0.15) 0%, transparent 100%) !important;
  color: #dc3545 !important;
  border-color: #dc3545 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4) !important;
}

.mobile-filter-trigger:hover::before {
  border-width: 0 25px 25px 0;
}

.mobile-filter-trigger i:first-child {
  font-size: 1.1rem !important;
  transition: transform 0.25s ease !important;
  color: #dc3545 !important;
  flex-shrink: 0 !important;
}

.mobile-filter-trigger span {
  flex: 1 !important;
  text-align: center !important;
  font-weight: 600 !important;
}

.mobile-filter-trigger i:last-child {
  font-size: 1rem !important;
  transition: transform 0.25s ease !important;
  flex-shrink: 0 !important;
}

.mobile-filter-trigger:hover i:first-child {
  transform: scale(1.15) !important;
}

.mobile-filter-trigger:hover i:last-child {
  transform: translateX(4px) !important;
}

/* Mobile Filter Panel */
.products-container .mobile-filter-panel {
  position: fixed !important;
  top: 90px !important;
  right: -100% !important;
  width: 85vw !important;
  max-width: 400px !important;
  height: calc(100vh - 90px) !important;
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%) !important;
  z-index: 1020 !important;
  transition: right 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border-left: 3px solid #dc3545 !important;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8) !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
}

/* Removed - Filter button now shows on all screen sizes */
/* Filter panel and backdrop still work on all screens */
@media (min-width: 992px) {
  /* Keep these elements available for filter panel functionality */

  /* Desktop filter button in sort bar should be auto-width, not full width */
  .jp-sort-bar .mobile-filter-trigger {
    width: auto !important;
  }
}

/* Removed all triangle decorations for cleaner look */

.products-container .mobile-filter-panel.show {
  right: 0 !important;
}

.products-container .mobile-filter-backdrop {
  position: fixed !important;
  top: 90px !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 90px) !important;
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(6px) !important;
  z-index: 1019 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  pointer-events: none !important;
  touch-action: none !important;
  overscroll-behavior: contain !important;
}

.products-container .mobile-filter-backdrop.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Mobile Filter Header */
.mobile-filter-header {
  padding: 1.75rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: linear-gradient(90deg, rgba(220, 53, 69, 0.15) 0%, transparent 100%) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  position: relative;
}

/* Removed header triangle decoration */

.mobile-filter-title {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
}

.mobile-filter-title .jp-filter-kanji {
  background: linear-gradient(135deg, #dc3545, #ff6b7a) !important;
  color: #fff !important;
  width: 35px !important;
  height: 35px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
  box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3) !important;
}

.mobile-filter-title h3 {
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 500 !important;
  margin: 0 !important;
  font-size: 1rem !important;
  letter-spacing: 0.5px !important;
}

.mobile-filter-title h2 {
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 500 !important;
  margin: 0 !important;
  font-size: 1rem !important;
  letter-spacing: 0.5px !important;
}

.mobile-filter-title .jp-filter-subtitle {
  color: rgba(255, 255, 255, 0.6) !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 300 !important;
  display: block !important;
  margin-top: 0.2rem !important;
}

.mobile-filter-header .filter-kanji {
  background: linear-gradient(135deg, #dc3545, #ff6b7a) !important;
  color: #fff !important;
  width: 35px !important;
  height: 35px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
  box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3) !important;
}

.mobile-filter-close {
  background: transparent !important;
  border: 2px solid #dc3545 !important;
  color: #dc3545 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  position: relative !important;
}

.mobile-filter-close:hover {
  background: linear-gradient(90deg, rgba(220, 53, 69, 0.15) 0%, transparent 100%) !important;
  color: #dc3545 !important;
  transform: scale(1.15) !important;
  padding-left: 0.5rem !important;
}

/* Mobile Filter Content */
.mobile-filter-content {
  padding: 0 0 8rem 0 !important;
  height: auto !important;
  overflow-y: visible !important;
}

.mobile-filter-section {
  margin-bottom: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 1.1rem 1.75rem !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
  position: relative !important;
  transition: all 0.3s ease !important;
}

.mobile-filter-section:hover {
  background: linear-gradient(90deg, rgba(220, 53, 69, 0.15) 0%, transparent 100%) !important;
  padding-left: 2rem !important;
}

.mobile-filter-section:last-child {
  border-bottom: none !important;
}

.mobile-filter-section h4 {
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 500 !important;
  margin-bottom: 1rem !important;
  font-size: 1rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
}

.mobile-filter-section h4 i {
  color: #dc3545 !important;
  font-size: 1.2rem !important;
  margin-right: 0 !important;
  flex-shrink: 0 !important;
  transition: transform 0.3s !important;
}

.mobile-filter-section:hover h4 i {
  transform: scale(1.15) !important;
}

/* Mobile Filter Section Headers */
.mobile-filter-section-header {
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 500 !important;
  margin-bottom: 1rem !important;
  font-size: 1rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
}

.mobile-filter-section-header i {
  color: #dc3545 !important;
  font-size: 1.2rem !important;
  margin-right: 0 !important;
  flex-shrink: 0 !important;
  transition: transform 0.3s !important;
}

.mobile-filter-section:hover .mobile-filter-section-header i {
  transform: scale(1.15) !important;
}

/* Mobile Search Box */
.mobile-search-box {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.mobile-search-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  border-radius: 4px !important;
  padding: 0.75rem 2.5rem 0.75rem 0.75rem !important;
  transition: all 0.25s ease !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  width: 100% !important;
}

.mobile-search-input:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.1rem rgba(220, 53, 69, 0.15) !important;
  color: #ffffff !important;
  outline: none !important;
}

.mobile-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  font-weight: 300 !important;
}

.mobile-search-box i {
  position: absolute !important;
  right: 0.75rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 1rem !important;
  pointer-events: none !important;
}

/* Mobile Select Wrappers */
.mobile-select-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.mobile-select {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  border-radius: 4px !important;
  padding: 0.75rem 2.5rem 0.75rem 0.75rem !important;
  transition: all 0.25s ease !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  width: 100% !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.mobile-select:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.1rem rgba(220, 53, 69, 0.15) !important;
  color: #ffffff !important;
  outline: none !important;
}

.mobile-select option {
  background: #1a1a1a !important;
  color: #ffffff !important;
  padding: 0.5rem !important;
}

.mobile-select-wrapper i {
  position: absolute !important;
  right: 0.75rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.8rem !important;
  pointer-events: none !important;
  transition: transform 0.25s ease !important;
}

.mobile-select:focus+i {
  color: #dc3545 !important;
  transform: rotate(180deg) !important;
}

/* Mobile Price Grid */
.mobile-price-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.5rem !important;
  margin-top: 0.75rem !important;
  margin-bottom: 1rem !important;
}

.mobile-price-btn {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  padding: 0.75rem 0.5rem !important;
  border-radius: 4px !important;
  font-family: 'Poppins', sans-serif !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.25rem !important;
}

.mobile-price-btn:hover,
.mobile-price-btn.active {
  background: linear-gradient(90deg, rgba(220, 53, 69, 0.15) 0%, transparent 100%) !important;
  color: #dc3545 !important;
  border-color: rgba(220, 53, 69, 0.3) !important;
  padding-left: 0.75rem !important;
}

.mobile-price-label {
  font-size: 0.8rem !important;
  font-weight: 300 !important;
  opacity: 0.7 !important;
}

.mobile-price-value {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
}

/* Mobile Price Inputs */
.mobile-price-inputs {
  display: flex !important;
  align-items: flex-end !important;
  gap: 0.75rem !important;
  margin-top: 1rem !important;
}

.mobile-price-input-group {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
}

.mobile-price-input-group label {
  color: rgba(255, 255, 255, 0.9) !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.3px !important;
  text-transform: uppercase !important;
}

.mobile-price-input {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  border-radius: 6px !important;
  padding: 0.85rem !important;
  transition: all 0.25s ease !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  text-align: center !important;
}

.mobile-price-input:focus {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
  color: #ffffff !important;
  outline: none !important;
}

.mobile-price-input::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
  font-weight: 500 !important;
}

.mobile-price-divider {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 1.2rem !important;
  font-weight: 300 !important;
  padding-bottom: 0.75rem !important;
  display: flex !important;
  align-items: center !important;
}

/* Mobile Price Inputs - Stacked Layout */
.mobile-price-inputs-stacked {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  margin-top: 1rem !important;
}

.mobile-price-input-group-full {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
  width: 100% !important;
}

.mobile-price-input-group-full label {
  color: rgba(255, 255, 255, 0.9) !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.3px !important;
  text-transform: uppercase !important;
}

/* Mobile Apply Wrapper - Below Price Inputs */
.mobile-apply-wrapper {
  margin-top: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  padding-bottom: 1rem !important;
}

.mobile-filter-apply {
  background: #dc3545 !important;
  border: 2px solid #dc3545 !important;
  color: #ffffff !important;
  padding: 1rem 2rem !important;
  border-radius: 6px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  width: 100% !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.85rem !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
}

.mobile-filter-apply:hover {
  background: #c82333 !important;
  border-color: #c82333 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
}

.mobile-filter-reset-inline {
  background: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0.85rem 1.5rem !important;
  border-radius: 6px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  width: 100% !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.mobile-filter-reset-inline:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
}

/* Mobile Filter Footer */
.mobile-filter-footer {
  padding: 1.75rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: linear-gradient(90deg, rgba(220, 53, 69, 0.15) 0%, transparent 100%) !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10 !important;
}

/* Removed footer triangle decoration */

.mobile-apply-btn {
  background: transparent !important;
  border: 2px solid #dc3545 !important;
  color: #dc3545 !important;
  padding: 1rem 2rem !important;
  border-radius: 4px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  width: 100% !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.85rem !important;
  letter-spacing: 0.5px !important;
  position: relative !important;
}

.mobile-apply-btn:hover {
  background: linear-gradient(90deg, rgba(220, 53, 69, 0.15) 0%, transparent 100%) !important;
  color: #dc3545 !important;
  border-color: #dc3545 !important;
  padding-left: 2.5rem !important;
}

.mobile-apply-btn i {
  transition: transform 0.25s ease !important;
  font-size: 1.2rem !important;
  color: #dc3545 !important;
  flex-shrink: 0 !important;
}

.mobile-apply-btn:hover i:first-child {
  transform: scale(1.15) !important;
}

/* Mobile Filter Footer Buttons */
.mobile-filter-footer {
  padding: 1.75rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: linear-gradient(90deg, rgba(220, 53, 69, 0.15) 0%, transparent 100%) !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 10 !important;
  position: relative !important;
  display: flex !important;
  gap: 1rem !important;
  align-items: center !important;
}

/* Japanese accent for footer */
.mobile-filter-footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 25px 0 0 25px;
  border-color: transparent transparent transparent #dc3545;
}

.mobile-filter-reset {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  padding: 0.75rem 1rem !important;
  border-radius: 4px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 400 !important;
  font-size: 0.9rem !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.mobile-filter-reset:hover {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  text-decoration: none !important;
}

.mobile-filter-apply {
  background: transparent !important;
  border: 2px solid #dc3545 !important;
  color: #dc3545 !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 4px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  flex: 1 !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
}

.mobile-filter-apply:hover {
  background: linear-gradient(90deg, rgba(220, 53, 69, 0.15) 0%, transparent 100%) !important;
  color: #dc3545 !important;
  border-color: #dc3545 !important;
  padding-left: 2rem !important;
}

.mobile-filter-apply i {
  transition: transform 0.25s ease !important;
  font-size: 1rem !important;
  color: #dc3545 !important;
  flex-shrink: 0 !important;
}

.mobile-filter-apply:hover i:first-child {
  transform: scale(1.15) !important;
}

.mobile-filter-apply:hover i:last-child {
  transform: translateX(3px) !important;
}

/* Responsive Design */
@media (max-width: 991px) {
  .jp-filters-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 2rem;
  }

  .jp-filter-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .jp-filter-title-box {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .jp-filter-form {
    padding: 1rem;
  }

  .jp-filter-header {
    padding: 1rem;
  }

  .jp-price-quick-grid {
    grid-template-columns: 1fr;
  }

  .jp-filter-kanji {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .jp-filter-main-title {
    font-size: 1.1rem;
  }

  /* Mobile Filter Panel Adjustments */
  .mobile-filter-panel {
    width: 90vw !important;
  }

  .mobile-filter-header {
    padding: 1rem !important;
  }

  .mobile-filter-content {
    padding: 1rem !important;
  }

  .mobile-filter-section {
    padding: 1rem !important;
  }

  .mobile-filter-footer {
    padding: 1rem !important;
  }
}

/* Override Japanese Product Grid - Use Homepage Style Instead */
/* Copy EXACT responsive overrides from home.css for .featured-products-section */

/* Remove background and full-width styling on products page */
.products-container .featured-products-section {
  background: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Tablet Responsive (768px - 991px) - Better Pagination */
@media (min-width: 768px) and (max-width: 991px) {
  .jp-sort-bar {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .jp-sort-left,
  .jp-sort-right {
    width: 100%;
    justify-content: center;
  }

  .jp-pagination-compact {
    padding: 0.5rem 1rem;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
  }

  .jp-page-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .jp-page-info {
    font-size: 0.9rem;
  }

  .jp-sort-form {
    width: 100%;
    justify-content: center;
  }

  /* Force proper container behavior on tablet */
  .products-container .featured-products-section {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .products-container .featured-products-section .container-fluid {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  /* Ensure proper grid behavior on tablet */
  .featured-products-section .col-md-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
  }

  /* Reduce max-width on tablet for better fit */
  .featured-products-section .mx-auto {
    max-width: 1200px !important;
  }
}

/* Laptop Responsive (992px - 1199px) - Better spacing */
@media (min-width: 992px) and (max-width: 1199px) {
  .products-container .featured-products-section {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .products-container .featured-products-section .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Reduce max-width on laptop for better spacing */
  .featured-products-section .mx-auto {
    max-width: 1300px !important;
  }

  /* Show 4 products per row on laptops */
  .featured-products-section .col-lg-2-4 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
  }
}

/* Mobile Responsive (max-width: 767px) */
@media (max-width: 767px) {
  html body .featured-products-section .row>.col-6 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    flex: 0 0 auto !important;
    width: 50% !important;
    max-width: 50% !important;
  }

  body .featured-products-section .product-card {
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  body .featured-products-section .product-image-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    height: 220px !important;
  }

  body .featured-products-section .product-image {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
  }

  body .featured-products-section .card-body {
    padding: 0.65rem !important;
  }

  body .featured-products-section .card-title {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.4rem !important;
    font-weight: 600 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body .featured-products-section .card-text.price {
    font-size: 0.95rem !important;
    margin-bottom: 0.4rem !important;
    font-weight: 700 !important;
  }

  body .featured-products-section .btn {
    font-size: 0.75rem !important;
    padding: 0.45rem 0.8rem !important;
  }

  /* Ensure star ratings are visible */
  body .featured-products-section .text-warning,
  body .featured-products-section .text-muted {
    font-size: 0.85rem !important;
  }
}

/* Tablet Responsive (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  html body .featured-products-section .row>.col-md-4 {
    flex: 0 0 auto !important;
    width: 33.333333% !important;
    max-width: 33.333333% !important;
    min-width: 33.333333% !important;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
  }

  /* Hide 10th, 13th, and 14th products on tablet to have 12 products (4 rows of 3) */
  html body .featured-products-section .row>.col-md-4:nth-child(10),
  html body .featured-products-section .row>.col-md-4:nth-child(13),
  html body .featured-products-section .row>.col-md-4:nth-child(14) {
    display: none !important;
  }

  body .featured-products-section .product-card {
    padding: 0 !important;
    margin: 0 !important;
  }

  body .featured-products-section .card-body {
    padding: 0.5rem !important;
  }

  body .featured-products-section .product-image {
    height: 200px !important;
  }

  /* Hide Featured badge on tablet */
  .product-ribbon {
    display: none !important;
  }
}

/* ===================================
   DESKTOP HORIZONTAL FILTER BAR
   =================================== */

.desktop-filter-bar {
  background: #fff;
  border: 2px solid #000;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.4s ease-out;
  position: relative;
  display: none;
  /* Hidden by default */
}

/* Show only on desktop (lg and up) */
@media (min-width: 992px) {
  .desktop-filter-bar {
    display: block !important;
  }
}

/* Force hide on mobile and tablet */
@media (max-width: 991px) {
  .desktop-filter-bar {
    display: none !important;
    visibility: hidden !important;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.desktop-filter-form {
  width: 100%;
}

.filter-bar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.filter-bar-left {
  flex-shrink: 0;
  order: 1;
  position: absolute;
  left: 1.25rem;
  font-size: 0.9rem;
}

.filter-bar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  order: 2;
  max-width: 100%;
}

.filter-bar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  order: 3;
  position: absolute;
  right: 1.25rem;
}

.filter-control {
  position: relative;
  flex-shrink: 0;
}

.filter-control-small {
  max-width: 85px;
  flex-shrink: 0;
}

/* Price Range Group - Compact styling */
.filter-bar-center .filter-control-small:nth-child(5),
.filter-bar-center .filter-control-small:nth-child(6) {
  flex: 0 0 auto;
  max-width: 80px;
}

.filter-input,
.filter-select {
  padding: 0.5rem 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #000;
  background: #fff;
  transition: all 0.3s ease;
  outline: none;
  min-width: 130px;
  height: 38px;
}

.filter-control-small .filter-input {
  min-width: 75px;
  max-width: 80px;
  padding: 0.5rem 0.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.8rem;
}

.filter-input::placeholder {
  color: #999;
  font-weight: 400;
  font-size: 0.75rem;
}

.filter-input:focus,
.filter-select:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.filter-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  padding-right: 2rem;
  min-width: 120px;
}

.filter-apply-btn {
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: 2px solid #dc3545;
  border-radius: 6px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
  height: 38px;
  flex-shrink: 0;
}

.filter-apply-btn:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.filter-apply-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.filter-reset-btn {
  padding: 0.5rem;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  color: #666;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.filter-reset-btn:hover {
  border-color: #dc3545;
  color: #dc3545;
  background: #fff5f5;
  transform: rotate(180deg);
}


/* ===================================
   ACTIVE FILTERS BAR
   =================================== */

.active-filters-bar {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3d9 100%);
  border-left: 4px solid #dc3545;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #fff;
  color: #000;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid #dc3545;
  transition: all 0.2s ease;
}

.filter-badge:hover {
  background: #fff5f5;
  border-color: #c82333;
}

.filter-badge i {
  font-size: 0.85rem;
}

.filter-badge-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #dc3545;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  margin-left: 0.5rem;
  transition: all 0.2s ease;
}

.filter-badge-remove:hover {
  background: #c82333;
  transform: rotate(90deg);
}

.filter-badge-remove i {
  font-size: 0.7rem;
}

/* ===================================
   DESKTOP INLINE FILTERS (PC ONLY) - REDESIGNED
   =================================== */

.desktop-inline-filters {
  background: #ffffff;
  border: 3px solid #000;
  border-radius: 0;
  padding: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-width: 1200px;
  margin: 2rem auto 0 auto;
  position: relative;
  overflow: hidden;
}

.desktop-inline-form {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 2fr auto;
  gap: 1.5rem;
  align-items: end;
  padding: 1.75rem 2rem;
  background: #fff;
}

.desktop-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.desktop-filter-group.desktop-filter-price {
  grid-column: span 1;
}

.desktop-filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.desktop-filter-label i {
  color: #dc3545;
  font-size: 1rem;
}

.desktop-filter-input,
.desktop-filter-select {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: #000;
  background: #f8f9fa;
  transition: all 0.25s ease;
  outline: none;
  width: 100%;
}

.desktop-filter-input:focus,
.desktop-filter-select:focus {
  border-color: #dc3545;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.desktop-filter-input:hover,
.desktop-filter-select:hover {
  border-color: #dc3545;
  background: #fff;
}

.desktop-filter-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23dc3545' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.desktop-filter-input::placeholder {
  color: #999;
  font-weight: 400;
}

.desktop-price-inputs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.desktop-price-input {
  flex: 1;
  min-width: 60px;
  text-align: center;
  font-weight: 500;
}

.price-divider {
  color: #000;
  font-weight: 600;
  font-size: 1rem;
}

.desktop-filter-actions {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  justify-content: flex-end;
  flex-shrink: 0;
}

.desktop-apply-btn {
  padding: 0.75rem 2rem;
  background: #dc3545;
  border: 2px solid #000;
  border-radius: 8px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.desktop-apply-btn:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.35);
}

.desktop-apply-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.desktop-apply-btn i {
  font-size: 1rem;
}

.desktop-refresh-btn {
  padding: 0.75rem;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  color: #000;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 44px;
  height: 44px;
}

.desktop-refresh-btn:hover {
  border-color: #dc3545;
  color: #dc3545;
  background: #fff;
  transform: rotate(90deg);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

/* Responsive adjustments */
@media (max-width: 1400px) {
  .desktop-inline-form {
    grid-template-columns: 1.75fr 1.25fr 1.25fr 1.75fr auto;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
  }

  .desktop-filter-label {
    font-size: 0.7rem;
  }

  .desktop-filter-input,
  .desktop-filter-select {
    padding: 0.65rem 0.875rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 1200px) {
  .desktop-inline-form {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .desktop-filter-group.desktop-filter-price {
    grid-column: span 1;
  }

  .desktop-filter-actions {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .desktop-inline-filters {
    padding: 1.5rem 1.5rem;
  }
}

/* ===================================
   MOBILE PRODUCT CARD FIX - HIGH SPECIFICITY
   =================================== */
@media (max-width: 767px) {

  /* Target product cards on products page specifically */
  .products-container .featured-products-section .product-card .product-image-wrapper,
  .featured-products-section .product-card .product-image-wrapper {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
  }

  .products-container .featured-products-section .product-card .product-image,
  .featured-products-section .product-card .product-image,
  .featured-products-section .card-img-top {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    object-fit: cover !important;
  }

  .products-container .featured-products-section .product-card,
  .featured-products-section .product-card {
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  /* Reduce card body padding */
  .products-container .featured-products-section .card-body,
  .featured-products-section .card-body,
  .featured-products-section .product-card .card-body {
    padding: 0.5rem 0.6rem 0.6rem 0.6rem !important;
  }

  /* Title styling - override Bootstrap mb-2 */
  .products-container .featured-products-section .card-title,
  .featured-products-section .card-title,
  .featured-products-section .product-card .card-title.mb-2,
  .featured-products-section .product-card h3.card-title {
    font-size: 0.85rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.3rem !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 2.125rem !important;
    max-height: 2.125rem !important;
  }

  /* Tighten up the price and stars section - override Bootstrap mb-3 */
  .products-container .featured-products-section .d-flex.align-items-center.justify-content-between,
  .featured-products-section .d-flex.align-items-center.justify-content-between,
  .featured-products-section .product-card .d-flex.mb-3 {
    margin-bottom: 0.4rem !important;
  }

  /* Price styling */
  .products-container .featured-products-section .card-text.price,
  .featured-products-section .card-text.price,
  .featured-products-section .product-card .card-text.price {
    font-size: 0.95rem !important;
    margin-bottom: 0 !important;
  }

  /* Stars sizing */
  .featured-products-section .product-card .text-warning,
  .featured-products-section .product-card .text-muted {
    font-size: 0.75rem !important;
  }

  /* Button styling - override mt-auto */
  .products-container .featured-products-section .btn,
  .featured-products-section .btn,
  .featured-products-section .product-card .btn.mt-auto {
    font-size: 0.75rem !important;
    padding: 0.45rem 0.6rem !important;
    margin-top: 0.4rem !important;
  }
}