/*
 * Store (shop) page styles — verbatim port of the `<style jsx global>` block in
 * pages/store.tsx. Global in the original (styled-jsx `global`), so loaded
 * globally here too. All selectors are `.shop-*` prefixed and unique to the
 * store page.
 *
 * Card styles are self-contained in the product card component (.sf-pcard, ui.css).
 */

/* ── SHOP PAGE ── */
.shop-page-wrap {
  background: #fff;
  min-height: 80vh;
}

/* ── Category Nav ── */
.shop-cat-nav {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 0;
}
.shop-cat-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.shop-cat-scroll::-webkit-scrollbar {
  display: none;
}
.shop-cat-icon {
  font-size: 16px;
  line-height: 1;
}
.shop-cat-item {
  flex-shrink: 0;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  border-radius: 99px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.shop-cat-item:hover {
  color: #1a5c38;
  border-color: #1a5c38;
  background: #f0faf2;
}
.shop-cat-item.active {
  color: #fff;
  background: #1a5c38;
  border-color: #1a5c38;
  font-weight: 700;
}

/* ── Results header ── */
.shop-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.shop-results-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.shop-results-count {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.01em;
  margin: 0;
}
.shop-active-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  background: #f0faf2;
  color: #1a5c38;
  border: 1px solid #e0f2e4;
}
.shop-active-tag button {
  background: none;
  border: none;
  cursor: pointer;
  color: #595959;
  font-size: 14px;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}
.shop-active-tag button:hover {
  color: #e74c3c;
}

/* ── Product Grid — 5 columns ── */
.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 1199px) {
  .shop-product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}
@media (max-width: 991px) {
  .shop-product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}
@media (max-width: 640px) {
  .shop-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ── Empty state ── */
.shop-empty {
  text-align: center;
  padding: 80px 20px;
}
.shop-empty-icon {
  font-size: 48px;
  opacity: 0.12;
  margin-bottom: 16px;
  display: block;
}
.shop-empty h3 {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.shop-empty p {
  color: #888;
  font-size: 14px;
  margin-bottom: 24px;
}
.shop-empty-btn {
  background: #1a5c38;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.shop-empty-btn:hover {
  background: #1a2b28;
}

/* Pagination styles are self-contained in the Pagination component */

/* ── Loading toast ── */
.shop-toast {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  background: #1a1a2e;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: shopToastIn 0.2s ease;
}
@keyframes shopToastIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Mobile tweaks ── */
@media (max-width: 767px) {
  .shop-cat-item {
    padding: 12px 16px;
    font-size: 12px;
  }
  .shop-results-header {
    padding: 16px 0 12px;
  }
  .shop-results-count {
    font-size: 13px;
  }
}
