/* ==========================================================================
   AYME PUBLISHED CATALOG STYLES
   Exact parity with https://tenddy.shop/store/ayme-pet (#catalog-section)
   ========================================================================== */

#catalog-section[data-catalog-controller="published"] {
  background-color: rgb(248, 250, 252);
  color: rgb(23, 32, 51);
  font-family: "Instrument Sans", "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  line-height: 25.6px;
  padding: 24px 0;
  position: relative;
}

@media (min-width: 640px) {
  #catalog-section[data-catalog-controller="published"] {
    padding: 40px 0;
  }
}

#catalog-section[data-catalog-controller="published"] .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Top Bar: Search + Results Counter
   -------------------------------------------------------------------------- */
.catalog-top-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .catalog-top-bar {
    flex-direction: row;
    align-items: center;
  }
}

.catalog-search-wrapper {
  position: relative;
  flex: 1 1 0%;
  max-width: 448px;
  width: 100%;
}

.catalog-search-wrapper .lucide-search {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
}

.catalog-search-wrapper input {
  width: 100%;
  padding: 10px 32px 10px 40px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 20px;
  font-family: "Instrument Sans", "Plus Jakarta Sans", sans-serif;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #0f172a;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.catalog-search-wrapper input:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px #dc2626;
}

.catalog-search-wrapper input::placeholder {
  color: #94a3b8;
}

.catalog-counter {
  font-size: 12px;
  line-height: 16px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Instrument Sans", "Plus Jakarta Sans", sans-serif;
  white-space: nowrap;
}

.catalog-counter strong {
  color: #0f172a;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Filter Rows: Category Tabs + Capacity Pills
   -------------------------------------------------------------------------- */
.catalog-cat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.catalog-cat-btn {
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 0;
  font-family: "Instrument Sans", "Plus Jakarta Sans", sans-serif;
  background-color: #A61C2E;
  color: #ffffff;
  box-shadow: 0 4px 14px -2px rgba(166, 28, 46, 0.314);
}

.catalog-cap-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 24px;
  font-size: 11px;
}

.catalog-cap-label {
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 10px;
  line-height: 16px;
  margin-right: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-family: "Instrument Sans", "Plus Jakarta Sans", sans-serif;
}

.catalog-cap-label svg {
  width: 12px;
  height: 12px;
}

.catalog-cap-btn {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 17.6px;
  white-space: nowrap;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #475569;
  font-family: "Instrument Sans", "Plus Jakarta Sans", sans-serif;
}

.catalog-cap-btn:hover {
  background-color: #f8fafc;
}

.catalog-cap-btn.active {
  background-color: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* --------------------------------------------------------------------------
   Product Cards Grid
   -------------------------------------------------------------------------- */
.AymeProductCard_grid__1IZ4_ {
  display: grid;
  grid-template-columns: repeat(2, minmax(0px, 1fr));
  gap: 12px;
  align-items: stretch;
}

@media (min-width: 700px) {
  .AymeProductCard_grid__1IZ4_ {
    grid-template-columns: repeat(3, minmax(0px, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1100px) {
  .AymeProductCard_grid__1IZ4_ {
    grid-template-columns: repeat(4, minmax(0px, 1fr));
  }
}

/* --------------------------------------------------------------------------
   Product Card
   -------------------------------------------------------------------------- */
.AymeProductCard_card__SYkNp {
  min-width: 0px;
  display: flex;
  flex-direction: column;
  background: rgb(255, 255, 255);
  color: rgb(23, 32, 51);
  border: 1px solid rgb(221, 227, 235);
  border-radius: 16px;
  box-shadow: rgba(21, 32, 55, 0.024) 0px 3px 12px;
  overflow: hidden;
  box-sizing: border-box;
}

.AymeProductCard_imageLink__7aMLT {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: rgb(246, 248, 250);
  border-radius: 16px 16px 0px 0px;
  overflow: hidden;
  text-decoration: none;
}

.AymeProductCard_imageLink__7aMLT img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  box-sizing: border-box;
  display: block;
}

.AymeProductCard_badge__NLxjp {
  position: absolute;
  left: 8px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgb(158, 37, 55);
  color: #ffffff;
  font-family: "Instrument Sans", "Plus Jakarta Sans", sans-serif;
  z-index: 1;
}

.AymeProductCard_content__3FnNN {
  padding: 9px;
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  gap: 8px;
  min-width: 0px;
  box-sizing: border-box;
}

@media (min-width: 700px) {
  .AymeProductCard_content__3FnNN {
    padding: 16px;
  }
}

.AymeProductCard_card__SYkNp h3 {
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 750;
  overflow-wrap: anywhere;
  margin: 0px;
}

@media (min-width: 700px) {
  .AymeProductCard_card__SYkNp h3 {
    font-size: 16px;
  }
}

.AymeProductCard_card__SYkNp h3 a {
  color: rgb(23, 32, 51);
  text-decoration: none;
}

.AymeProductCard_card__SYkNp h3 a:hover {
  text-decoration: underline;
}

.AymeProductCard_sku__XH0Nd {
  color: rgb(101, 112, 132);
  font-size: 10px;
  line-height: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  overflow-wrap: anywhere;
  margin: 0px;
}

.AymeProductCard_bottom__czbrH {
  margin-top: auto;
  padding-top: 8px;
}

.AymeProductCard_packaging__RirQ2 {
  border-top: 1px solid rgb(237, 240, 244);
  padding: 10px 0px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  justify-content: space-between;
  font-size: 11px;
  line-height: 17.6px;
  color: rgb(101, 112, 132);
  margin: 0px;
  font-family: "Instrument Sans", "Plus Jakarta Sans", sans-serif;
}

.AymeProductCard_packaging__RirQ2 strong {
  color: rgb(38, 50, 71);
  font-size: 12px;
  line-height: 19.2px;
  font-weight: 700;
}

/* Card Action Buttons */
.AymeProductCard_primary__5xIIm,
.AymeProductCard_secondary__ZCEUq a,
.AymeProductCard_secondary__ZCEUq button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 8px 4px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 650;
  min-width: 0px;
  white-space: normal;
  text-align: center;
  font-family: "Instrument Sans", "Plus Jakarta Sans", sans-serif;
  box-sizing: border-box;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

@media (max-width: 420px) {
  .AymeProductCard_primary__5xIIm,
  .AymeProductCard_secondary__ZCEUq a,
  .AymeProductCard_secondary__ZCEUq button {
    gap: 3px;
    font-size: 11px;
  }
}

.AymeProductCard_primary__5xIIm svg,
.AymeProductCard_secondary__ZCEUq svg {
  flex-shrink: 0;
}

.AymeProductCard_primary__5xIIm {
  width: 100%;
  background: rgb(166, 28, 46);
  color: rgb(255, 255, 255);
  border: 1px solid rgb(166, 28, 46);
}

.AymeProductCard_primary__5xIIm:hover {
  background: rgb(135, 22, 39);
}

.AymeProductCard_secondary__ZCEUq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0px, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.AymeProductCard_secondary__ZCEUq a {
  background: rgb(255, 255, 255);
  color: rgb(53, 64, 86);
  border: 1px solid rgb(220, 226, 233);
}

.AymeProductCard_secondary__ZCEUq a:hover {
  background: rgb(248, 250, 252);
}

.AymeProductCard_secondary__ZCEUq button {
  background: rgb(240, 250, 244);
  color: rgb(23, 100, 58);
  border: 1px solid rgb(206, 232, 215);
}

.AymeProductCard_secondary__ZCEUq button:hover {
  background: rgb(220, 244, 229);
}

.AymeProductCard_card__SYkNp a:focus-visible,
.AymeProductCard_card__SYkNp button:focus-visible {
  outline: rgb(37, 99, 235) solid 3px;
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Load More Button
   -------------------------------------------------------------------------- */
.catalog-load-more-wrapper {
  text-align: center;
  margin-top: 48px;
}

.catalog-load-more-wrapper .btn.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgb(31, 46, 77), rgb(20, 30, 51));
  color: rgb(255, 255, 255);
  border: 0;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  line-height: 25.6px;
  cursor: pointer;
  box-shadow: rgba(15, 23, 42, 0.05) 0px 2px 8px;
  font-family: "Instrument Sans", "Plus Jakarta Sans", sans-serif;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.catalog-load-more-wrapper .btn.btn-primary:hover {
  opacity: 0.92;
}

/* --------------------------------------------------------------------------
   Empty State
   -------------------------------------------------------------------------- */
.catalog-empty-state {
  text-align: center;
  padding: 64px 24px;
  max-width: 576px;
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.catalog-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(166, 28, 46, 0.082);
  border: 1px solid rgba(166, 28, 46, 0.25);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.catalog-empty-icon svg {
  color: rgb(166, 28, 46);
  width: 28px;
  height: 28px;
}

.catalog-empty-state h4 {
  font-family: "Instrument Sans", "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  margin: 0 0 8px;
  color: #0f172a;
}

.catalog-empty-state p {
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 auto 24px;
  max-width: 448px;
  font-family: "Instrument Sans", "Plus Jakarta Sans", sans-serif;
}

.catalog-empty-state button {
  font-family: "Instrument Sans", "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  background-color: rgb(166, 28, 46);
  border: 0;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.catalog-empty-state button:hover {
  filter: brightness(1.1);
}
