/* ==========================================================================
   PRODUCTS SHOWCASE, CATEGORY CARDS & PRODUCT CATALOG GRID
   ========================================================================== */

/* ==========================================================================
   PRODUCTS SHOWCASE PAGE (Frameless Architectural Editorial Layout)
   - Large Hero Product Sizing (3-column spacious desktop grid)
   - Zero Borders / Zero Heavy Frames (border: none !important, box-shadow: none)
   - Category Showcase Cards (Spices, Herbs, Seasonings, Wholesale)
   - Filter Tabs & Live Instant Search
   - Zero Oval Corners (border-radius: 0 !important)
   ========================================================================== */

.products-page-canvas {
  width: 100% !important;
  max-width: 100% !important;
  padding: 24px 4vw 80px !important;
  background-color: #FFFFFF;
  box-sizing: border-box;
}

.products-page-canvas .page-content-inner {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.products-page-canvas .catalog-product-card,
.products-page-canvas .prod-img-box,
.products-page-canvas .cat-showcase-card {
  border-radius: 0 !important;
}

/* SECTION 1: CATEGORY SHOWCASE CARDS (FRAMELESS) */
.products-cat-showcase {
  margin-bottom: 40px;
}

.cat-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cat-showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: rgba(240, 236, 228, 0.22) !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 14px 14px 22px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.cat-card-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: auto;
  height: 5px;
  opacity: 1;
  transition: height 0.3s ease;
}

.cat-theme-spices .cat-card-accent { background-color: #D91D1A; }
.cat-theme-herbs .cat-card-accent { background-color: #159E3F; }
.cat-theme-seasonings .cat-card-accent { background-color: #D97706; }
.cat-theme-wholesale .cat-card-accent { background-color: #121316; }
.cat-theme-salts .cat-card-accent { background-color: #0284C7; }

.cat-showcase-card:hover,
.cat-showcase-card.is-active {
  background-color: rgba(240, 236, 228, 0.65) !important;
  transform: translateY(-4px);
}

.cat-showcase-card:hover .cat-card-accent,
.cat-showcase-card.is-active .cat-card-accent {
  height: 8px;
}

.cat-card-img-wrap {
  width: 100%;
  height: 230px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 16px;
  overflow: visible;
}

.cat-card-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
  transform: scale(1.03);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-showcase-card:hover .cat-card-img {
  transform: scale(1.08) translateY(-6px);
}

.cat-card-body {
  display: flex;
  flex-direction: column;
}

.cat-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: #71757E;
}

.cat-theme-spices.is-active .cat-card-meta { color: #D91D1A; }
.cat-theme-herbs.is-active .cat-card-meta { color: #159E3F; }
.cat-theme-seasonings.is-active .cat-card-meta { color: #D97706; }
.cat-theme-wholesale.is-active .cat-card-meta { color: #121316; }
.cat-theme-salts.is-active .cat-card-meta { color: #0284C7; }

.cat-card-title {
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #121316;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.cat-card-sub {
  font-size: 12.5px;
  color: #71757E;
  margin-bottom: 16px;
}

.cat-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: #121316;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 12px;
  border: none !important;
  transition: gap 0.2s ease, color 0.2s ease;
}

.cat-showcase-card:hover .cat-card-action {
  gap: 10px;
}

.cat-theme-spices:hover .cat-card-action { color: #D91D1A; }
.cat-theme-herbs:hover .cat-card-action { color: #159E3F; }
.cat-theme-seasonings:hover .cat-card-action { color: #D97706; }
.cat-theme-wholesale:hover .cat-card-action { color: #121316; }
.cat-theme-salts:hover .cat-card-action { color: #0284C7; }

/* SECTION 2: PRODUCTS TOOLBAR (EDITORIAL MINIMALIST TABS & SEARCH) */
.products-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0;
  background-color: transparent;
  border-bottom: 1px solid rgba(18, 19, 22, 0.12) !important;
  margin-bottom: 48px;
}

.products-filter-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.filter-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 16px 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  color: #71757E !important;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: none !important;
  position: relative;
  transition: color 0.2s ease;
}

.filter-pill-btn:hover {
  background: transparent !important;
  border: none !important;
  color: #121316 !important;
  transform: none !important;
  box-shadow: none !important;
}

.filter-pill-btn.is-active {
  background: transparent !important;
  border: none !important;
  color: #121316 !important;
  font-weight: 800;
  box-shadow: none !important;
}

.filter-pill-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #121316;
}

.pill-count {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: #8C9199;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  min-width: auto !important;
  height: auto !important;
  display: inline;
}

.filter-pill-btn.is-active .pill-count {
  color: #121316;
}

.tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50% !important;
  display: inline-block;
  flex-shrink: 0;
  margin-right: 2px;
}

.dot-spices { background-color: #D91D1A; }
.dot-herbs { background-color: #159E3F; }
.dot-seasonings { background-color: #D97706; }
.dot-wholesale { background-color: #121316; }
.dot-salts { background-color: #0284C7; }

.products-toolbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.products-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: #8C9199;
  pointer-events: none;
}

.products-search-input {
  width: 220px;
  height: 40px;
  padding: 0 32px 0 36px;
  background-color: transparent !important;
  border: 1px solid rgba(18, 19, 22, 0.14) !important;
  border-radius: 0 !important;
  outline: none;
  font-family: var(--font-primary);
  font-size: 13px;
  color: #121316;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.products-search-input:focus {
  background-color: #FFFFFF !important;
  border-color: #121316 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 260px;
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none !important;
  font-size: 16px;
  color: #71757E;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.products-counter-badge {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #71757E;
  white-space: nowrap;
}

.products-counter-badge strong {
  color: #121316;
}

/* SECTION 3: LARGE & FRAMELESS PRODUCT GRID (3 COLUMNS) */
.products-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 44px;
}

.catalog-product-card {
  display: flex;
  flex-direction: column;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.catalog-product-card:hover {
  transform: translateY(-6px);
  border: none !important;
  box-shadow: none !important;
}

.prod-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: rgba(240, 236, 228, 0.22) !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px !important;
  box-sizing: border-box;
  overflow: hidden;
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-product-card:hover .prod-img-box {
  background-color: rgba(240, 236, 228, 0.65) !important;
}

.prod-img {
  width: 100%;
  height: 100%;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  transform: scale(1.02);
}

.catalog-product-card:hover .prod-img {
  transform: scale(1.10) translateY(-4px);
}

.prod-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  background-color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: none !important;
  border-radius: 0 !important;
  z-index: 2;
}

.tag-spices { color: #D91D1A; }
.tag-herbs { color: #159E3F; }
.tag-seasonings { color: #D97706; }
.tag-wholesale { color: #121316; }
.tag-salts { color: #0284C7; }

.prod-info-box {
  display: flex;
  flex-direction: column;
  padding: 24px 0 0 0;
  flex-grow: 1;
}

.prod-title {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #121316;
  margin: 0 0 10px 0;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.catalog-product-card:hover .prod-title {
  color: var(--c-spices);
}

.prod-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border: none !important;
}

.prod-origin {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: #71757E;
}

.prod-inquire-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  color: #121316;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease, gap 0.2s ease;
}

.prod-inquire-link:hover {
  color: var(--c-spices);
  gap: 8px;
}

/* EMPTY STATE */
.products-empty-state {
  text-align: center;
  padding: 80px 24px;
  background-color: #FFFFFF;
  border: none !important;
}

.empty-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

.empty-title {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 800;
  color: #121316;
  margin: 0 0 8px 0;
}

.empty-desc {
  font-size: 14px;
  color: #71757E;
  margin: 0 0 24px 0;
}

.btn-clear-filters {
  padding: 10px 24px;
  background-color: #121316;
  color: #FFFFFF;
  border: none !important;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.btn-clear-filters:hover {
  opacity: 0.85;
}

/* RESPONSIVE PRODUCTS RULES */
@media (max-width: 1120px) {
  .cat-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .products-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 32px;
  }
}

@media (max-width: 900px) {
  .cat-showcase-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .products-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .products-toolbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .products-search-input {
    width: 100%;
  }
  .products-search-wrap {
    flex-grow: 1;
  }
}

@media (max-width: 640px) {
  .cat-showcase-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cat-card-img-wrap {
    height: 210px;
  }
  .products-catalog-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .products-page-canvas {
    padding: 16px 16px 60px !important;
  }
}


/* Product detail links */
.prod-detail-link { display: block; color: inherit; }
.prod-title a { color: inherit; text-decoration: none; }
.prod-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
