/* ============================================
   MODERN SHOP PAGE STYLES
   ============================================ */

.modern-shop-wrapper {
  padding: 60px 0;
  background: #f8f9fa;
}

/* Shop Header */
.shop-header-modern {
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.shop-search-box {
  position: relative;
}

.shop-search-box form {
  position: relative;
  display: flex;
  align-items: center;
}

.shop-search-box .search-field {
  width: 100%;
  padding: 12px 50px 12px 20px;
  border: 2px solid #e9ecef;
  border-radius: 50px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.shop-search-box .search-field:focus {
  outline: none;
  border-color: #2b6ab2;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(43, 106, 178, 0.1);
}

.shop-search-box .search-submit {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: #2b6ab2;
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-search-box .search-submit:hover {
  background: #1e4d7a;
  transform: translateY(-50%) scale(1.05);
}

/* Shop Toolbar */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}

.shop-toolbar .woocommerce-ordering {
  margin: 0;
}

.shop-toolbar .woocommerce-ordering select {
  padding: 10px 40px 10px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  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='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

.shop-toolbar .woocommerce-ordering select:focus {
  outline: none;
  border-color: #2b6ab2;
  box-shadow: 0 0 0 3px rgba(43, 106, 178, 0.1);
}

/* View Toggle */
.shop-view-toggle {
  display: flex;
  gap: 5px;
  background: #f8f9fa;
  padding: 5px;
  border-radius: 8px;
}

.view-btn {
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  cursor: pointer;
  color: #6c757d;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn:hover,
.view-btn.active {
  background: #2b6ab2;
  color: #ffffff;
}

/* Category Filter Tabs */
.shop-categories-filter {
  background: #ffffff;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.category-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.filter-tab {
  background: #f8f9fa;
  border: 2px solid transparent;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  position: relative;
  overflow: hidden;
}

.filter-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.filter-tab:hover::before {
  left: 100%;
}

.filter-tab:hover {
  background: #e9ecef;
  border-color: #2b6ab2;
  color: #2b6ab2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 106, 178, 0.15);
}

.filter-tab.active {
  background: #2b6ab2;
  color: #ffffff;
  border-color: #2b6ab2;
  box-shadow: 0 4px 15px rgba(43, 106, 178, 0.3);
}

/* Products Grid */
.shop-products-grid {
  margin-top: 30px;
}

.shop-products-grid .product-style1 {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.shop-products-grid .product-style1:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.shop-products-grid .product-img {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
}

.shop-products-grid .product-img img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
  object-fit: cover;
}

.shop-products-grid .product-style1:hover .product-img img {
  transform: scale(1.1);
}

.shop-products-grid .product-btns {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

.shop-products-grid .product-style1:hover .product-btns {
  opacity: 1;
  transform: translateX(0);
}

.shop-products-grid .product-btns .icon-btn {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2b6ab2;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.shop-products-grid .product-btns .icon-btn:hover {
  background: #2b6ab2;
  color: #ffffff;
  transform: scale(1.1);
}

.shop-products-grid .product-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.shop-products-grid .product-rating {
  margin-bottom: 10px;
}

.shop-products-grid .product-title {
  margin: 0 0 15px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.shop-products-grid .product-title a {
  color: #212529;
  text-decoration: none;
  transition: color 0.3s ease;
}

.shop-products-grid .product-title a:hover {
  color: #2b6ab2;
}

.shop-products-grid .price-list {
  margin: auto 0 15px 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-products-grid .price-list li {
  font-size: 18px;
  font-weight: 700;
  color: #2b6ab2;
}

.shop-products-grid .price-list li del {
  color: #6c757d;
  font-weight: 400;
  font-size: 14px;
}

/* No Products Found */
.no-products-found {
  padding: 60px 20px;
}

.no-products-found i {
  color: #dee2e6;
}

.no-products-found h3 {
  color: #495057;
  margin-bottom: 10px;
}

/* Pagination */
.shop-pagination {
  display: flex;
  justify-content: center;
}

.pagination-modern {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-modern .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  height: 45px;
  padding: 0 15px;
  background: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  color: #495057;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pagination-modern .page-numbers:hover,
.pagination-modern .page-numbers.current {
  background: #2b6ab2;
  border-color: #2b6ab2;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 106, 178, 0.3);
}

.pagination-modern .page-numbers.dots {
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: default;
}

.pagination-modern .page-numbers.dots:hover {
  transform: none;
  background: transparent;
  border: none;
  color: #495057;
}

/* List View */
.shop-products-grid.list-view .row {
  display: block;
}

.shop-products-grid.list-view .col-xl-3,
.shop-products-grid.list-view .col-lg-4,
.shop-products-grid.list-view .col-md-6,
.shop-products-grid.list-view .col-sm-6 {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  margin-bottom: 30px;
}

.shop-products-grid.list-view .product-style1 {
  display: flex;
  flex-direction: row;
  height: auto;
}

.shop-products-grid.list-view .product-img {
  width: 250px;
  flex-shrink: 0;
}

.shop-products-grid.list-view .product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 1199px) {
  .shop-header-modern {
    padding: 20px 25px;
  }
  
  .shop-categories-filter {
    padding: 15px 20px;
  }
}

@media (max-width: 991px) {
  .shop-header-modern .row {
    flex-direction: column;
  }
  
  .shop-toolbar {
    justify-content: space-between;
    width: 100%;
    margin-top: 15px;
  }
  
  .shop-view-toggle {
    margin-left: 0 !important;
  }
  
  .category-filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
  }
  
  .category-filter-tabs::-webkit-scrollbar {
    height: 4px;
  }
  
  .category-filter-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  
  .category-filter-tabs::-webkit-scrollbar-thumb {
    background: #2b6ab2;
    border-radius: 10px;
  }
  
  .filter-tab {
    white-space: nowrap;
    font-size: 13px;
    padding: 8px 16px;
  }
}

@media (max-width: 767px) {
  .modern-shop-wrapper {
    padding: 40px 0;
  }
  
  .shop-header-modern {
    padding: 15px 20px;
    border-radius: 8px;
  }
  
  .shop-search-box .search-field {
    padding: 10px 45px 10px 15px;
    font-size: 14px;
  }
  
  .shop-categories-filter {
    padding: 15px;
    border-radius: 8px;
  }
  
  .shop-products-grid .product-content {
    padding: 15px;
  }
  
  .shop-products-grid .product-title {
    font-size: 16px;
  }
  
  .shop-products-grid.list-view .product-img {
    width: 150px;
  }
  
  .pagination-modern .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }
}

@media (max-width: 575px) {
  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .shop-toolbar .woocommerce-ordering {
    width: 100%;
  }
  
  .shop-toolbar .woocommerce-ordering select {
    width: 100%;
  }
  
  .shop-view-toggle {
    width: 100%;
    justify-content: center;
  }
  
  .shop-products-grid.list-view .product-style1 {
    flex-direction: column;
  }
  
  .shop-products-grid.list-view .product-img {
    width: 100%;
  }
  
  .pagination-modern {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .pagination-modern .page-numbers {
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    font-size: 13px;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shop-products-grid .product-style1 {
  animation: fadeInUp 0.5s ease forwards;
}

/* Loading State */
.shop-products-grid.loading {
  opacity: 0.6;
  pointer-events: none;
}

.shop-products-grid.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2b6ab2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}




