/* ============================================
   CLEAN PRODUCT LISTING DESIGN
   Simple, minimal, modern
   ============================================ */

/* Page Header */
.tsoka-products-header {
  background: #fafafa;
  padding: 60px 20px 40px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.tsoka-products-header__container {
  max-width: 1200px;
  margin: 0 auto;
}

.tsoka-products-header__title {
  font-size: 2.5rem;
  font-weight: 300;
  color: #1a1a1a;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  animation: slideDown 0.6s ease;
}

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

.tsoka-products-header__subtitle {
  font-size: 1rem;
  color: #666;
  font-weight: 400;
  margin: 0;
  animation: slideDown 0.6s ease 0.1s both;
}

/* Search Bar */
.tsoka-products-search {
  background: #fff;
  padding: 30px 20px;
  border-bottom: 1px solid #e5e5e5;
  animation: slideDown 0.6s ease 0.2s both;
}

.tsoka-products-search__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tsoka-products-search__input {
  flex: 1;
  max-width: 400px;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  outline: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
}

.tsoka-products-search__input:hover {
  border-color: #c0c0c0;
}

.tsoka-products-search__input:focus {
  border-color: #BA9955;
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(186, 153, 85, 0.15);
  background: #fff;
}

.tsoka-products-search__input::placeholder {
  color: #999;
  transition: color 0.3s ease;
}

.tsoka-products-search__input:focus::placeholder {
  color: #ccc;
}

.tsoka-products-search__count {
  font-size: 14px;
  color: #666;
}

.tsoka-products-search__count span {
  font-weight: 600;
  color: #1a1a1a;
}

/* Autocomplete Suggestions */
.tsoka-search-autocomplete {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tsoka-search-autocomplete.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.tsoka-search-autocomplete__item {
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.tsoka-search-autocomplete__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(186, 153, 85, 0.1) 0%, transparent 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tsoka-search-autocomplete__item:last-child {
  border-bottom: none;
}

.tsoka-search-autocomplete__item:hover {
  background: #fafafa;
  padding-left: 20px;
}

.tsoka-search-autocomplete__item:hover::before {
  width: 100%;
}

.tsoka-search-autocomplete__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #BA9955;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.tsoka-search-autocomplete__item:hover .tsoka-search-autocomplete__icon {
  background: #BA9955;
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

.tsoka-search-autocomplete__content {
  flex: 1;
  min-width: 0;
}

.tsoka-search-autocomplete__name {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tsoka-search-autocomplete__meta {
  font-size: 12px;
  color: #999;
}

.tsoka-search-autocomplete__highlight {
  background: #fff9e6;
  color: #BA9955;
  font-weight: 600;
}

.tsoka-search-autocomplete__empty {
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.tsoka-products-search__box {
  position: relative;
}

/* Products Section */
.tsoka-products-section {
  background: #fff;
  padding: 60px 20px 80px;
  min-height: 70vh;
}

.tsoka-products-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Products Grid - 3 columns */
.tsoka-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

/* Product Card */
.tsoka-product-card {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animation for cards */
.tsoka-product-card:nth-child(1) { animation-delay: 0.05s; }
.tsoka-product-card:nth-child(2) { animation-delay: 0.1s; }
.tsoka-product-card:nth-child(3) { animation-delay: 0.15s; }
.tsoka-product-card:nth-child(4) { animation-delay: 0.2s; }
.tsoka-product-card:nth-child(5) { animation-delay: 0.25s; }
.tsoka-product-card:nth-child(6) { animation-delay: 0.3s; }
.tsoka-product-card:nth-child(7) { animation-delay: 0.35s; }
.tsoka-product-card:nth-child(8) { animation-delay: 0.4s; }
.tsoka-product-card:nth-child(9) { animation-delay: 0.45s; }
.tsoka-product-card:nth-child(10) { animation-delay: 0.5s; }
.tsoka-product-card:nth-child(11) { animation-delay: 0.55s; }
.tsoka-product-card:nth-child(12) { animation-delay: 0.6s; }

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

.tsoka-product-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  overflow: hidden;
}

.tsoka-product-card__link:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.tsoka-product-card__link:active {
  transform: translateY(-4px);
}

.tsoka-product-card__image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 16px;
  border-radius: 12px;
}

.tsoka-product-card__image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.tsoka-product-card__link:hover .tsoka-product-card__image::after {
  opacity: 1;
}

.tsoka-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.tsoka-product-card__link:hover .tsoka-product-card__image img {
  transform: scale(1.08);
}

.tsoka-product-card__content {
  padding: 0 4px;
}

.tsoka-product-card__title {
  font-size: 16px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0 0 6px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.tsoka-product-card__link:hover .tsoka-product-card__title {
  color: #BA9955;
}

.tsoka-product-card__location {
  font-size: 14px;
  color: #666;
  margin: 0 0 8px;
  line-height: 1.4;
}

.tsoka-product-card__country {
  color: #999;
  font-size: 13px;
}

.tsoka-product-card__rating {
  margin: 0 0 8px;
}

.tsoka-product-card__stars {
  font-size: 14px;
  color: #BA9955;
  letter-spacing: 2px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.tsoka-product-card__link:hover .tsoka-product-card__stars {
  transform: scale(1.1);
}

.tsoka-product-card__price {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0;
}

/* Empty State */
.tsoka-products-empty {
  text-align: center;
  padding: 80px 20px;
}

.tsoka-products-empty p {
  font-size: 18px;
  color: #666;
  margin: 0 0 20px;
}

.tsoka-products-reset {
  padding: 12px 24px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.tsoka-products-reset:hover {
  background: #333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .tsoka-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
  }

  .tsoka-products-header__title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .tsoka-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 15px;
  }

  .tsoka-products-header {
    padding: 40px 20px 30px;
  }

  .tsoka-products-header__title {
    font-size: 1.75rem;
  }

  .tsoka-products-search__container {
    flex-direction: column;
    align-items: stretch;
  }

  .tsoka-products-search__input {
    max-width: 100%;
  }

  .tsoka-products-section {
    padding: 40px 20px 60px;
  }
}

@media (max-width: 480px) {
  .tsoka-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 10px;
  }

  .tsoka-product-card__title {
    font-size: 14px;
  }

  .tsoka-product-card__location,
  .tsoka-product-card__price {
    font-size: 13px;
  }

  .tsoka-product-card__stars {
    font-size: 12px;
  }
}
