.honey-products-grid { display: grid; gap: var(--honey-gap, 32px); }
.honey-products-grid:not(.honey-products-grid--gallery) {
  grid-template-columns: repeat(var(--honey-cols, 2), 1fr);
}

/* Autofit mode: big columns that fill the container */
.honey-products-grid--autofit {
  grid-template-columns: repeat(auto-fit, minmax(var(--honey-mincol, 340px), 1fr));
  align-items: start;
}

/* Figma 2x2 staggered gallery: two columns, 32px gap, right column shifted down */
.honey-products-grid--gallery {
  grid-template-columns: repeat(2, 1fr);
}
.honey-products-grid--gallery .honey-product-card { border-radius: 16px; }
.honey-products-grid--gallery .honey-product-card:nth-child(odd) { grid-column: 1; }
.honey-products-grid--gallery .honey-product-card:nth-child(even) { grid-column: 2; }
@supports (margin-top: clamp(0px, 1px, 2px)) {
  .honey-products-grid--gallery .honey-product-card:nth-child(2),
  .honey-products-grid--gallery .honey-product-card:nth-child(4) { margin-top: var(--honey-stagger, 96px); }
}

.honey-product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
}

.honey-product-image {
  display: block;
  width: 100%;
  /* 504x390 => ~0.774 ratio */
  padding-top: 77.4%;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
}

.honey-product-title {
  margin-top: 8px;
  color: #000;
  font: 500 16px/1.45 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.honey-products-empty { color: rgba(0,0,0,.55); }

/* Honey Product Filter Widget Styles - Exact Figma Match */
.honey-product-filter-container {
  display: flex;
  gap: 24px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 64px;
}

.honey-filter-sidebar {
  width: 270px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.honey-filter-box {
  background: #fff;
  border: 1px solid #fdbd0a;
  border-radius: 16px;
  padding: 20px;
  width: 270px;
  min-height: 200px;
}

.honey-filter-box-title {
  color: #000;
  font: 700 18px/1.2 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.honey-sidebar-title {
  margin: 0 0 20px 0;
  color: #000;
  font: 700 18px/1.2 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  width: 230px;
  height: 29px;
}

.honey-sidebar-section {
  width: 230px;
  height: 315px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.honey-filter-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.honey-filter-button {
  background: #fff;
  border: 2px solid #e74c3c;
  border-radius: 8px;
  padding: 8px 16px;
  font: 600 14px/1.2 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #000;
  cursor: pointer;
  transition: all 0.2s ease;
}

.honey-filter-button:hover {
  background: #f8f9fa;
}

.honey-remove-button {
  background: #e74c3c;
  border: none;
  border-radius: 20px;
  padding: 6px 12px;
  font: 500 12px/1.2 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #fff;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.honey-remove-button:hover {
  background: #c0392b;
}

.honey-remove-button::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #e74c3c;
}

.honey-filter-section {
  margin-bottom: 0;
}

.honey-filter-section:last-child {
  margin-bottom: 0;
}

.honey-filter-section-title {
  margin: 0 0 16px 0;
  color: #000;
  font: 600 16px/1.2 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.honey-filter-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 230px;
  height: auto;
  min-height: 100px;
}

.honey-filter-item {
  width: 230px;
  height: 39px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  background: transparent;
  position: relative;
}

.honey-filter-item--active {
  background: rgba(253, 189, 10, 0.08);
}

.honey-filter-link {
  display: flex;
  align-items: center;
  padding: 10px;
  text-decoration: none;
  color: #000;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  width: 100%;
  height: 100%;
  position: relative;
  gap: 8px;
}

.honey-filter-link:hover {
  background: rgba(253, 189, 10, 0.05);
}

.honey-filter-item--active .honey-filter-link {
  background: rgba(253, 189, 10, 0.08);
}

.honey-filter-text {
  font: 500 16px/1.2 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #000;
  height: 19px;
  display: flex;
  align-items: center;
}

.honey-filter-count {
  background: #fdbd0a;
  color: #000;
  font: 500 14px/1.2 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding: 2px 8px;
  border-radius: 20px;
  min-width: 20px;
  height: 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.honey-products-main {
  flex: 1;
  width: calc(100% - 270px - 24px);
}

/* When sidebar is hidden, let products take full width */
.honey-product-filter-container.no-sidebar .honey-products-main {
  width: 100% !important;
}

.honey-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

/* Override with CSS variable when available */
.honey-product-filter-container[style*="--honey-products-per-row"] .honey-products-grid {
  grid-template-columns: repeat(var(--honey-products-per-row), 1fr) !important;
}

.honey-product-filter-container[style*="--honey-gap"] .honey-products-grid {
  gap: var(--honey-gap) !important;
}

/* Force 3 columns as fallback */
.honey-product-filter-container .honey-products-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* Additional specificity to override any conflicts */
.honey-product-filter-container .honey-products-main .honey-products-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  width: 100% !important;
}

/* Data attribute fallback */
.honey-product-filter-container[data-products-per-row="2"] .honey-products-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

.honey-product-filter-container[data-products-per-row="3"] .honey-products-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

.honey-product-filter-container[data-products-per-row="4"] .honey-products-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}

.honey-product-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.honey-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.honey-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Generic product image defaults (keep fully rounded for simple cards) */
.honey-product-image {
  width: 100%;
  padding-top: 75%;
  background-size: cover;
  background-position: center;
  background-color: #f5f5f5;
  border-radius: 16px;
}

.honey-product-info {
  padding: 16px;
}

.honey-product-title {
  margin: 0 0 8px 0;
  color: #000;
  font: 500 16px/1.4 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.honey-product-excerpt {
  margin: 8px 0;
  color: #666;
  font: 400 14px/1.4 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.honey-product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.honey-rating-stars {
  color: #fdbd0a;
  font-size: 16px;
}

.honey-rating-count {
  color: #666;
  font: 400 12px/1.2 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.honey-product-price {
  color: #fdbd0a;
  font: 600 16px/1.2 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 8px 0;
}

.honey-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.honey-product-tag {
  background: rgba(253, 189, 10, 0.1);
  color: #fdbd0a;
  font: 400 12px/1.2 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(253, 189, 10, 0.3);
}

/* Honey Product Badges */
.honey-product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0 0;
}

.honey-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font: 500 12px/1.2 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-transform: lowercase;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.honey-badge-weight {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}

.honey-badge-natural {
  background: #27ae60;
  color: #fff;
  border: none;
}

.honey-badge-sugar {
  background: #3498db;
  color: #fff;
  border: none;
}

/* Tags Container and Buttons */
.honey-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.honey-tag-button {
  display: inline-block;
  padding: 6px 16px;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: 20px;
  text-decoration: none;
  font: 500 14px/1.2 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  transition: all 0.2s ease;
  cursor: pointer;
}

.honey-tag-button:hover {
  background: #f8f9fa;
  border-color: #333;
}

.honey-tag-button--active {
  background: #fdbd0a;
  color: #000;
  border-color: #fdbd0a;
}

.honey-tag-button--active:hover {
  background: #e6a800;
  border-color: #e6a800;
}

.honey-pagination {
  margin-top: 40px;
  text-align: center;
}

.honey-pagination .page-numbers {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.honey-pagination .page-numbers li {
  display: inline;
}

.honey-pagination .page-numbers a,
.honey-pagination .page-numbers span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  color: #000;
  font: 500 14px/1.2 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  transition: all 0.2s ease;
}

.honey-pagination .page-numbers a:hover {
  background: #fdbd0a;
  border-color: #fdbd0a;
  color: #fff;
}

.honey-pagination .page-numbers .current {
  background: #fdbd0a;
  border-color: #fdbd0a;
  color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .honey-product-filter-container {
    flex-direction: column;
    padding: 0 20px;
  }
  
  .honey-filter-sidebar {
    width: 100%;
  }
  
  .honey-filter-box {
    width: 100%;
    max-width: 270px;
    margin: 0 auto;
  }
  
  .honey-sidebar-section {
    width: 100%;
    height: auto;
    max-width: 230px;
  }
  
  .honey-filter-items {
    width: 100%;
    height: auto;
  }
  
  .honey-filter-item {
    width: 100%;
    max-width: 230px;
  }
  
  .honey-products-main {
    width: 100%;
  }
  
  .honey-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .honey-products-grid {
    grid-template-columns: 1fr;
  }
}



/* Modal (quick view) */
.honey-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.honey-modal-overlay.is-open { display: flex; }

/* Remove default shell styles (we now inject a designed card) */
.honey-modal { display: none; }
.honey-modal-header, .honey-modal-title, .honey-modal-body { display: none; }
.honey-modal-close { background: none; border: 0; font-size: 18px; cursor: pointer; }

/* Quick Card from Figma (600x370), image left, info right */
.honey-quick-card {
  width: 600px;
  height: 370px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 16px 32px rgba(12,13,13,.4);
  display: grid;
  grid-template-columns: 300px 1fr;
  position: relative;
  overflow: hidden;
}
.honey-quick-image {
  background-size: cover;
  background-position: center;
  width: 300px;
  height: 100%;
  border-radius: 24px 0 0 24px;
}
.honey-quick-content {
  padding: 24px 24px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.honey-quick-title { margin: 0; font: 800 28px/1.2 Inter, system-ui; color: #000; }
.honey-quick-specs { display: flex; flex-direction: column; gap: 8px; }
.honey-spec-row { display: flex; gap: 6px; color: #000; font: 400 14px/1.5 Inter, system-ui; }
.honey-spec-label { color: #666; min-width: 110px; }
.honey-spec-value { font-weight: 700; }
.honey-quick-desc { color: #000; font: 400 14px/1.5 Inter, system-ui; }
.honey-quick-price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.honey-quick-price { font: 700 18px/1.2 Inter, system-ui; color: #000; }
/* (Add to cart removed from quick view) */
.honey-quick-content .honey-modal-close { position: absolute; top: 16px; right: 16px; background: transparent; border: 0; width: 24px; height: 24px; border-radius: 0; line-height: 22px; font-size: 20px; cursor: pointer; }

/* Responsive styles for product modal */
@media (max-width: 768px) {
  .honey-quick-card {
    width: 95%;
    max-width: 400px;
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: 200px 1fr;
  }
  .honey-quick-image {
    width: 100%;
    height: 200px;
    border-radius: 24px 24px 0 0;
  }
  .honey-quick-content {
    padding: 20px;
    text-align: left;
  }
}

/* Products grid responsive */
.honey-products-grid {
  display: grid;
  grid-template-columns: repeat(var(--honey-cols, 2), minmax(0, 1fr));
  gap: var(--honey-gap, 32px);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.honey-product-card {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.honey-product-card:hover {
  transform: translateY(-2px);
}

.honey-product-image {
  display: block;
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

.honey-product-title {
  display: block;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #333;
}

@media (max-width: 768px) {
  .honey-products-grid {
    grid-template-columns: repeat(var(--honey-mobile-cols, 1), minmax(0, 1fr));
    gap: 16px;
    padding: 0 10px;
  }
  
  .honey-product-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  .honey-product-image {
    width: 100% !important;
    height: 200px !important;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 8px;
  }
  
  .honey-product-title {
    font-size: 14px;
    padding: 8px;
    text-align: center;
  }
}

/* Partners grid */
.honey-partners-grid { display:grid; grid-template-columns:repeat(var(--partner-cols,4), minmax(0,1fr)); gap: var(--partner-gap,96px) var(--partner-gap,96px); align-items:center; justify-items:center; justify-content:center; }
.honey-partner-card { background:transparent; border:0; padding:0; cursor:pointer; }
.honey-partner-card img { display:block; max-width:100%; height:auto; filter: grayscale(0); transition: transform .2s ease, filter .2s ease; }
.honey-partner-card:hover img { transform: translateY(-2px); filter: none; }

/* Partner modal - OASI Style */
.honey-partner-popup-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
}

.honey-partner-popup-content .popup-header h2 {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: #000;
}

.honey-partner-popup-content .popup-body {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}

.honey-partner-popup-content .popup-text {
  flex: 1;
}

.honey-partner-popup-content .popup-text p {
  margin: 0 0 15px 0;
  line-height: 1.6;
  color: #333;
}

.honey-partner-popup-content .popup-text h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 20px 0 10px 0;
  color: #000;
}

.honey-partner-popup-content .popup-logos {
  flex: 0 0 200px;
}

.honey-partner-popup-content .eu-flag-section {
  margin-bottom: 20px;
}

.honey-partner-popup-content .eu-flag {
  width: 60px;
  height: 40px;
  background: #003399;
  position: relative;
  margin-bottom: 10px;
}

.honey-partner-popup-content .stars {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FFD700;
  font-size: 12px;
  letter-spacing: 1px;
}

.honey-partner-popup-content .funded-text {
  font-size: 12px;
  color: #003399;
  margin: 0;
}

.honey-partner-popup-content .logos-row {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.honey-partner-popup-content .logo-item {
  display: flex;
  align-items: center;
}

.honey-partner-popup-content .eu-logo-small {
  width: 30px;
  height: 20px;
  background: #003399;
  position: relative;
}

.honey-partner-popup-content .stars-small {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FFD700;
  font-size: 8px;
  letter-spacing: 0.5px;
}

.honey-partner-popup-content .oasi-logo {
  text-align: left;
}

.honey-partner-popup-content .oasi-text {
  font-size: 16px;
  font-weight: bold;
  color: #228B22;
  margin: 0;
}

.honey-partner-popup-content .oasi-subtitle {
  font-size: 8px;
  color: #228B22;
  line-height: 1.2;
  margin: 2px 0 0 0;
}

.honey-partner-popup-content .ada-logo {
  text-align: left;
}

.honey-partner-popup-content .ada-bar {
  width: 30px;
  height: 3px;
  background: #DC143C;
  margin-bottom: 3px;
}

.honey-partner-popup-content .ada-text {
  font-size: 8px;
  color: #000;
  line-height: 1.2;
  margin: 0;
}

.honey-partner-popup-content .popup-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.honey-partner-popup-content .facebook-btn {
  width: 40px;
  height: 40px;
  background: #1877F2;
  border: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.honey-partner-popup-content .website-btn {
  background: #000;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
}

.honey-partner-popup-content .website-btn:hover {
  background: #333;
}

@media (max-width: 768px) {
  .honey-partner-popup-content {
    width: 95%;
    padding: 20px;
  }
  
  .honey-partner-popup-content .popup-body {
    flex-direction: column;
    gap: 20px;
  }
  
  .honey-partner-popup-content .popup-logos {
    flex: none;
  }
}
/* --- Big, full-container product layout overrides --- */
/* Make grid create big columns that fill available width */
.honey-product-filter-container .honey-products-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)) !important;
  align-items: stretch;
}

/* Stronger selector to beat earlier fixed 3-col rule */
.honey-product-filter-container .honey-products-main .honey-products-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)) !important;
}

/* Ensure product cards stretch to fill their grid cell */
.honey-product-filter-container .honey-product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Make the link wrapper stretch so the whole card is clickable and tall */
.honey-product-filter-container .honey-products-grid .honey-product-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Allow content area to grow and keep spacing consistent */
.honey-product-filter-container .honey-product-info {
  margin-top: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Slightly taller image for a bigger visual impact */
.honey-product-filter-container .honey-product-image {
  padding-top: 85%;
  /* In filter cards the image sits above content, so round only the top */
  border-radius: 16px 16px 0 0;
}

/* Ensure gallery items have fully rounded images matching the card */
.honey-products-grid--gallery .honey-product-image {
  border-radius: 16px !important;
}

/* Ensure Honey Products widget in gallery mode also autofits big columns */
.honey-products-grid--gallery.honey-products-grid--autofit {
  grid-template-columns: repeat(auto-fit, minmax(var(--honey-mincol, 340px), 1fr)) !important;
}

/* (Cart icon and drawer styles removed) */

/* Safety: force-hide any leftover floating cart elements */
.honey-cart-fab,
.honey-cart-fab *,
.js-honey-open-cart {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Nuke common floating cart UIs */
.xoo-wsc-cart-trigger,
.xoo-wsc-basket,
.woofc,
.woofc-area,
.woo-floating-cart,
.floating-cart,
.site-cart-fab,
.widget_shopping_cart,
.site-header-cart {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Generic catch-all for floating cart-like widgets */
[class*="cart" i],
[id*="cart" i] {
  /* only affect floating widgets; safe fallback if other plugins still inject */
}
[class*="cart" i].floating,
[class*="cart" i].fixed,
[class*="cart" i][style*="position: fixed"],
[id*="cart" i][style*="position: fixed"],
[class*="cart" i][style*="bottom" i][style*="right" i] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
