/**
 * CELLAR254 - CATEGORY GRID LISTING STYLES (category.css)
 * High-density e-commerce grid (~6 products per row on wide screens)
 * Rich multi-axis faceted filtering, quick-view modal, active filter pills.
 * Strict PHP 5.6 to 8.5 Compatible & Mobile Responsive
 */

/* Master Category Container */
.cat-page-main {
  padding: 8px 0 48px;
}

/* Category Breadcrumbs */
.cat-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 16px;
  font-size: 0.82rem;
  color: #000000;
  font-weight: 500;
}
.cat-breadcrumbs a {
  color: #000;
  text-decoration: none;
}
.cat-breadcrumbs a:hover {
  text-decoration: underline;
}
.cat-breadcrumbs span.sep {
  color: #aaa;
}

/* Category Hero Banner */
.cat-hero-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.cat-hero-text h1 {
  font-size: 29px;
  font-weight: 600;
  color: #000;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.02em;
}
.cat-count-badge {
  display: inline-block;
  background: #FFC107;
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 17px 4px;
  border-radius: 999px;
  vertical-align: middle;
  letter-spacing: 0;
  line-height: 13px;
}
.cat-hero-desc {
  font-size: 0.92rem;
  color: #000000;
  margin: 0;
  max-width: 75ch;
  line-height: 1.5;
}
.cat-hero-perks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cat-perk-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f7f7f7;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #111;
}

/* Horizontal Subcategory Bar */
.subcat-rail {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}
.subcat-rail-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #000;
  white-space: nowrap;
  background: #eee;
  padding: 4px 8px;
  border-radius: var(--radius);
  height: 27px;
}
.subcat-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}
.subcat-chips-scroll::-webkit-scrollbar {
  display: none;
}
.subcat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.subcat-chip:hover {
  border-color: #000;
  background: #f5f5f5;
}
.subcat-chip.is-active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}
.subcat-chip .chip-cnt {
  font-size: 0.74rem;
  opacity: 0.7;
}

/* Main Layout: Sidebar + Grid */
.cat-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* Left Facet Sidebar */
.cat-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: -webkit-sticky;
  position: sticky;
  top: 124px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  z-index: 20;
}
.cat-sidebar::-webkit-scrollbar {
  width: 5px;
}
.cat-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.cat-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.cat-sidebar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.cat-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid #000;
}
.cat-sidebar-header h3 {
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
.cat-sidebar-clear {
  font-size: 0.75rem;
  font-weight: 700;
  color: #777;
  text-decoration: underline;
  cursor: pointer;
}
.cat-sidebar-clear:hover {
  color: #000;
}

/* Facet Groups */
.facet-group {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.facet-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.facet-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 4px solid #5C1A28;
  line-height: normal;
}
.facet-search-box {
  margin-bottom: 8px;
}
.facet-search-box input {
  width: 100%;
  padding: 5px 8px;
  font-size: 0.78rem;
  border: 2px solid #000;
  border-radius: var(--radius);
  background: #fff;
}
.facet-search-box input:focus {
  outline: none;
  border-color: #000;
  background: #fff;
}


.facet-list li {
    border-bottom: 1px solid #c5c5c5;
}
.facet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 190px;
  overflow-y: auto;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.facet-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 500;
  color: #222;
  cursor: pointer;
  user-select: none;
  padding: 2px 0;
}
.facet-opt:hover {
  color: #000;
  font-weight: 700;
}
.facet-opt label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.facet-opt input[type="radio"],
.facet-opt input[type="checkbox"] {
  accent-color: #000;
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
}


.facet-opt input[type="radio"]:hover, .facet-opt input[type="checkbox"]:hover {
    accent-color: #FFC107;
    color: #FFC107;
}

.facet-count {
  font-size: 0.74rem;
  color: #777;
  font-weight: 500;
}

/* Price Range Inputs */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.price-inputs input {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.price-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.price-preset-pill {
  font-size: 0.72rem;
  font-weight: 600;
  background: #f4f4f4;
  border: 1px solid var(--line);
  padding: 3px 7px;
  border-radius: 3px;
  color: #333;
  text-decoration: none;
  cursor: pointer;
}
.price-preset-pill:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Main Content Area */
.cat-content {
  flex: 1;
  min-width: 0;
}

/* Control Bar: Active Filters + Sort */
.cat-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cat-results-count {
  font-size: 0.86rem;
  font-weight: 700;
  color: #111;
  margin: 0;
}
.cat-results-count strong {
  color: #000;
}
.cat-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-sort-wrap label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #000000;
}
.cat-sort-select {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  background: #fff;
  cursor: pointer;
}

/* Active Filter Tags Bar */
.cat-active-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: #f9f9f9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cat-tag-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #000000;
  margin-right: 4px;
}
.cat-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #ccc;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
}
.cat-tag-pill:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}
.cat-tag-pill .remove-icon {
  font-size: 0.85rem;
  line-height: 1;
}
.cat-clear-all-link {
  font-size: 0.76rem;
  font-weight: 700;
  color: #900;
  text-decoration: underline;
  margin-left: auto;
}

/* ==============================================================================
   CATEGORY PRODUCT GRID (5 PER ROW ON DESKTOP)
   ============================================================================== */
.cat-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

/* Responsive Grid Breakpoints */
@media (max-width: 1200px) {
  .cat-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .cat-layout {
    flex-direction: column;
  }
  .cat-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .cat-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}
@media (max-width: 600px) {
  .cat-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

/* Modern Compact Product Card */
.cat-card {
  background: #ffffff;
  border: 1px solid #e5e2dc;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: #000000;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* Image Presentation */
.cat-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
}
.cat-card-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.cat-card:hover .cat-card-media img {
  transform: scale(1.05);
}

/* Card Floating Badges */
.cat-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ffffff;
  color: #000;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 1px 7px;
  border-radius: 1px;
  z-index: 2;
  letter-spacing: 1px;
  border: 1px solid #333;
}
.cat-card-discount-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #FFC107;
  color: #000;
  font-size: 0.64rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 3px;
  z-index: 2;
}

/* Card Body Content */
.cat-card-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* Specs Subtitle Line (Origin · Volume · ABV%) */
.cat-card-specs {
  font-size: 10px;
  font-weight: 300;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Product Title */
.cat-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.34;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* min-height: 2.68em; */
  /* max-height: 2.68em; */
  margin: 5px 0 0px 0;
  flex-wrap: wrap;
  border-bottom: 1px solid #efefef;
  padding-bottom: 0px;
  min-height: 42px;
}
.cat-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.cat-card:hover .cat-card-title a {
  color: #5c1a28;
}

/* Rating Line */
.cat-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 8px 0;
}
.cat-card-rating .stars {
  color: #FFC107;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}
.cat-card-rating .rating-num {
  font-size: 14px;
  font-weight: 800;
  color: #111;
}
.cat-card-rating .rating-cnt {
  font-size: 0.72rem;
  color: #777;
}

/* Price Line */
.cat-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 5px 0 3px 0;
  flex-wrap: wrap;
  border-bottom: 1px solid #efefef;
}
.cat-card-price {
  font-size: 1.12rem;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.02em;
}
.cat-card-price small {
  font-size: 0.7rem;
  font-weight: 700;
  color: #000000;
  margin-right: 2px;
}
.cat-card-was {
  font-size: 0.76rem;
  font-weight: 600;
  color: #999;
  text-decoration: line-through;
}

/* Stock Status Signal Bar (Oaks delivery style) */
.cat-card-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.70rem;
  font-weight: 700;
  color: #000000;
  background: #faf7f4;
  border: 1px solid #ebe6df;
  border-radius: 4px;
  padding: 2.5px 8px;
  margin-bottom: 8px;
  width: fit-content;
}
.cat-card-stock .stock-bars span {
  background: var(--wine, #5C1A28);
}
.stock-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}
.stock-bars span {
  width: 2.5px;
  background: currentColor;
  border-radius: 1px;
}
.stock-bars span:nth-child(1) { height: 4px; }
.stock-bars span:nth-child(2) { height: 7px; }
.stock-bars span:nth-child(3) { height: 10px; }

/* Direct Card Add Button */
.cat-card-action {
  margin-top: auto;
}
.btn-quick-add {
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  color: var(--wine, #5C1A28);
  border: 1.5px solid var(--wine, #5C1A28);
  border-radius: 4px;
  padding: 0 12px;
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-quick-add:hover {
  background: var(--wine, #5C1A28);
  color: #ffffff;
  border-color: var(--wine, #5C1A28);
  box-shadow: 0 4px 12px rgba(92, 26, 40, 0.25);
  transform: translateY(-1px);
}
.btn-quick-add:active {
  transform: scale(0.98);
}
.btn-quick-add .icon {
  width: 13px;
  height: 13px;
}

/* ==============================================================================
   QUICK VIEW 2-COLUMN MODAL
   Triggered on click anywhere on product card
   ============================================================================== */
.qv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.qv-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.qv-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: 90%;
  max-width: 820px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.qv-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.qv-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f0f0f0;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s;
}
.qv-close-btn:hover {
  background: #000;
  color: #fff;
}
.qv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 768px) {
  .qv-grid {
    grid-template-columns: 1fr;
  }
}
.qv-left {
  background: #fcfcfc;
  border-right: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.qv-left img {
  max-width: 85%;
  max-height: 360px;
  object-fit: contain;
}
.qv-kra-badge {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #333;
}
.qv-right {
  padding: 30px;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.qv-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #000000;
  letter-spacing: 0.05em;
  margin: 0 0 6px 0;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  color: #080808;
  letter-spacing: 0.05em;
  margin: 0 0 6px 0;
}
.qv-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #000;
  line-height: 1.25;
  margin: 0 0 10px 0;
}
.qv-rating-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  margin-bottom: 12px;
}
.qv-price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.qv-price-current {
  font-size: 1.5rem;
  font-weight: 800;
  color: #000;
}
.qv-price-was {
  font-size: 0.95rem;
  color: #888;
  text-decoration: line-through;
}
.qv-stock-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 16px;
}
.qv-desc {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #000000;
  margin: 0 0 18px 0;
}
.qv-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.qv-stepper-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qv-stepper {
  display: inline-flex;
  border: 1px solid #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.qv-stepper button {
  background: #fff;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}
.qv-stepper button:hover {
  background: #eee;
}
.qv-stepper span {
  width: 40px;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.qv-add-btn {
  flex: 1;
  background: var(--wine, #5C1A28);
  color: #ffffff;
  border: 1.5px solid var(--wine, #5C1A28);
  border-radius: var(--radius);
  height: 40px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(92, 26, 40, 0.2);
}
.qv-add-btn:hover {
  background: #46131e;
  border-color: #46131e;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(92, 26, 40, 0.3);
  transform: translateY(-1px);
}
.qv-add-btn:active {
  transform: scale(0.98);
}
.qv-add-btn .icon {
  width: 15px;
  height: 15px;
  color: #ffffff;
}
.qv-stepper {
  display: inline-flex;
  border: 1.5px solid #000000;
  border-radius: var(--radius);
  overflow: hidden;
  height: 40px;
  background: #ffffff;
}
.qv-stepper button {
  width: 36px;
  height: 100%;
  border: none;
  background: #faf7f4;
  color: #000000;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.qv-stepper button:hover {
  background: #f0ebe4;
  color: var(--wine, #5C1A28);
}
.qv-stepper span {
  min-width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.90rem;
  color: #000000;
}
.qv-full-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #000000;
  text-decoration: none;
  transition: color 0.15s ease;
}
.qv-full-link:hover {
  color: var(--wine, #5C1A28);
  text-decoration: underline;
}
.qv-full-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5c1a28;
  text-decoration: underline;
}

/* Category Guide SEO Box */
.category-guide-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin-top: 36px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.category-guide-box h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.category-guide-box p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #333;
  margin-bottom: 14px;
}


/* Rating inline on card */
.cat-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: #000000;
  margin-bottom: 0px;
  border-bottom: 1px solid #efefef;
}
.cat-card-rating .stars {
  color: #FFC107;
  font-size: 19px;
  letter-spacing: 1px;
}
.cat-card-rating .rating-num {
  font-weight: 700;
  color: #111111;
}
.cat-card-rating .rating-cnt {
  font-size: 0.68rem;
  color: #888888;
}

/* Enhanced Card Action Row (Add | View Two Buttons) */
.cat-card-action {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 6px;
  padding-top: 2px;
}
.btn-quick-add {
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--wine, #5C1A28);
  color: #ffffff;
  border: 1.5px solid var(--wine, #5C1A28);
  border-radius: 4px;
  padding: 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-quick-add:hover {
  background: var(--wine-deep, #46131e);
  border-color: var(--wine-deep, #46131e);
  box-shadow: 0 4px 10px rgba(92, 26, 40, 0.25);
  transform: translateY(-1px);
}
.btn-quick-add:active {
  transform: scale(0.98);
}
.btn-quick-add .icon {
  width: 13px;
  height: 13px;
  color: #ffffff;
}
.btn-quick-add.is-added,
.qv-add-btn.is-added {
  background: #1f7a3d !important;
  border-color: #1f7a3d !important;
  color: #ffffff !important;
}

.btn-quick-view {
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #ffffff;
  color: #000000;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-quick-view:hover {
  background: #faf7f4;
  border-color: var(--wine, #5C1A28);
  color: var(--wine, #5C1A28);
  transform: translateY(-1px);
}
.btn-quick-view .icon {
  width: 11px;
  height: 11px;
  color: currentColor;
}

/* Horizontal Search Filter Area */
.search-header-wrap {
  margin-bottom: 20px;
}
.search-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wine, #5C1A28);
  margin-bottom: 6px;
}
.search-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #000000;
  margin: 0 0 8px;
  line-height: 1.2;
}
.search-subtitle {
  font-size: 0.92rem;
  color: #000000;
  margin: 0 0 16px;
  line-height: 1.55;
  max-width: 78ch;
}
.search-subtitle strong {
  color: #000000;
}
.search-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.search-filter-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.search-filter-label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #000000;
}
.search-chips-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.search-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--line);
  background: #ffffff;
  color: #000000;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.search-chip:hover {
  border-color: var(--wine, #5C1A28);
  color: var(--wine, #5C1A28);
  background: #faf7f4;
}
.search-chip.is-active {
  background: var(--wine, #5C1A28);
  border-color: var(--wine, #5C1A28);
  color: #ffffff;
  font-weight: 700;
}
.search-filter-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-sort-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #000000;
}
.search-sort-select {
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: #ffffff;
  color: #000000;
  font-size: 0.80rem;
  font-weight: 600;
  cursor: pointer;
}
.search-sort-select:focus {
  outline: none;
  border-color: var(--wine, #5C1A28);
}


/* Homepage Section 07 override: Strictly 6 columns per row on desktop */
#products .cat-product-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}
@media (max-width: 1024px) {
  #products .cat-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 600px) {
  #products .cat-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
