/**
 * Home — Latest Products (shop-eight)
 * Fresh grocery catalog — reference layout
 */

.shop-eight.lp-products-section {
  --lp-green: #169c45;
  --lp-green-dark: #0f7d36;
  --lp-green-soft: #e8f5ec;
  --lp-red: var(--bn-primary);
  --lp-ink: var(--bn-text);
  --lp-muted: var(--bn-muted);
  --lp-cream: var(--bn-bg);
  --lp-card-border: var(--bn-border);

  position: relative;
  background: var(--lp-cream);
}

.shop-eight.lp-products-section .pattern-layer {
  display: none !important;
}

.shop-eight.lp-products-section .auto-container {
  position: relative;
  z-index: 1;
  max-width: 1320px;
}

/* ----- Section header ----- */
.shop-eight.lp-products-section .lp-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.shop-eight.lp-products-section .lp-section-head-main {
  flex: 1;
  min-width: 0;
}

.shop-eight.lp-products-section .lp-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--lp-green-soft);
  color: var(--lp-green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.shop-eight.lp-products-section .lp-section-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--lp-ink);
  letter-spacing: -0.02em;
}

.shop-eight.lp-products-section .lp-section-desc {
  margin: 0;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--lp-muted);
}

.shop-eight.lp-products-section .lp-view-all {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--lp-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-eight.lp-products-section .lp-view-all:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  color: var(--lp-ink);
  text-decoration: none !important;
}

.shop-eight.lp-products-section .lp-view-all i {
  font-size: 12px;
}

/* Category tabs */
.shop-eight.lp-products-section .lp-tab-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 22px;
  padding: 2px 0 4px;
}

.shop-eight.lp-products-section .lp-tab-scroll::-webkit-scrollbar {
  display: none;
}

.shop-eight.lp-products-section .lp-tab-list {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 8px;
  float: none !important;
  width: max-content;
  min-width: max-content;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.shop-eight.lp-products-section .lp-tab-list > .tab-btn {
  flex: 0 0 auto !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 7px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  color: var(--lp-muted) !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-eight.lp-products-section .lp-tab-list > .tab-btn:before {
  display: none !important;
  content: none !important;
}

.shop-eight.lp-products-section .lp-tab-list > .tab-btn.active-btn,
.shop-eight.lp-products-section .lp-tab-list > .tab-btn:hover {
  color: #fff !important;
  background: var(--lp-green) !important;
  border-color: var(--lp-green) !important;
}

/* ----- Product grid ----- */
.shop-eight.lp-products-section .lp-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.shop-eight.lp-products-section .lp-product-item {
  min-width: 0;
  display: flex;
}

/* ----- Card ----- */
.shop-eight.lp-products-section .lp-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  background: #fff;
  border: 1px solid var(--lp-card-border);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 9px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.shop-eight.lp-products-section .lp-product-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.shop-eight.lp-products-section .lp-product-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  text-decoration: none;
}

/* Image */
.shop-eight.lp-products-section .lp-product-media {
  position: relative;
  z-index: 0;
  aspect-ratio: 1 / 0.88;
  width: 100%;
  margin: 0;
  border-radius: 0;
  border-bottom: 1px solid #e5e7eb;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}

.shop-eight.lp-products-section .lp-product-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.shop-eight.lp-products-section .lp-product-card:hover .lp-product-media img {
  transform: scale(1.04);
}

.shop-eight.lp-products-section .lp-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  color: #1f2937;
  font-size: 16px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease, color .2s ease, border-color .2s ease;
}

.shop-eight.lp-products-section .lp-product-card:hover .lp-wishlist-btn,
.shop-eight.lp-products-section .lp-product-card:focus-within .lp-wishlist-btn {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.shop-eight.lp-products-section .lp-wishlist-btn:hover {
  color: var(--lp-red);
  border-color: var(--lp-red);
}

.shop-eight.lp-products-section .lp-product-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
}

.shop-eight.lp-products-section .lp-product-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
}

.shop-eight.lp-products-section .lp-cat-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--lp-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-eight.lp-products-section .lp-stock-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--lp-green);
  font-size: 11px;
  font-weight: 700;
}

.shop-eight.lp-products-section .lp-stock-status.is-out {
  color: #94a3b8;
}

.shop-eight.lp-products-section .lp-product-title {
  min-height: 42px;
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--lp-ink);
}

.shop-eight.lp-products-section .lp-product-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--lp-ink) !important;
  text-decoration: none !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

.shop-eight.lp-products-section .lp-product-title a:hover {
  color: var(--lp-ink) !important;
  text-decoration: none !important;
}

.shop-eight.lp-products-section .lp-product-seller {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  gap: 5px;
  margin-bottom: 7px;
  color: var(--lp-red);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none !important;
}

.shop-eight.lp-products-section .lp-product-seller span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-eight.lp-products-section .lp-product-unit {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.shop-eight.lp-products-section .lp-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.shop-eight.lp-products-section .lp-price-value {
  font-size: 19px;
  font-weight: 800;
  color: var(--lp-red);
}

/* Reference-style outlined cart */
.shop-eight.lp-products-section .lp-cart-btn {
  position: relative;
  z-index: 4;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--lp-red);
  border-radius: 10px;
  background: #fff;
  color: var(--lp-red) !important;
  font-size: 15px;
  cursor: pointer;
  pointer-events: auto;
  -webkit-text-fill-color: currentColor !important;
  background-image: none !important;
  box-shadow: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.shop-eight.lp-products-section .lp-cart-btn:hover:not(.is-disabled) {
  background: var(--lp-red);
  color: #fff !important;
  transform: translateY(-1px);
}

.shop-eight.lp-products-section .lp-cart-btn.is-disabled {
  background: #e2e8f0;
  color: #94a3b8 !important;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.shop-eight.lp-products-section .tabs-content .text-center {
  grid-column: 1 / -1;
  padding: 24px 16px;
  color: var(--lp-muted);
  text-align: center;
}

@media (min-width: 1400px) {
  .shop-eight.lp-products-section .lp-products-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }

  .shop-eight.lp-products-section .auto-container {
    max-width: 1680px;
  }

  .shop-eight.lp-products-section .lp-product-title {
    font-size: 14px;
  }

  .shop-eight.lp-products-section .lp-price-value {
    font-size: 15px;
  }

  .shop-eight.lp-products-section .lp-cart-btn {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
}

@media (max-width: 1199px) {
  .shop-eight.lp-products-section .lp-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 991px) {
  .shop-eight.lp-products-section .lp-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .shop-eight.lp-products-section .lp-view-all {
    align-self: flex-start;
  }
}

@media (max-width: 767px) {
  .shop-eight.lp-products-section {
    padding-top: 36px !important;
    padding-bottom: 28px !important;
  }

  .shop-eight.lp-products-section .lp-section-title {
    font-size: 24px;
  }

  .shop-eight.lp-products-section .lp-section-desc {
    font-size: 13px;
  }

  .shop-eight.lp-products-section .lp-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .shop-eight.lp-products-section .lp-product-card {
    border-radius: 14px;
  }

  .shop-eight.lp-products-section .lp-product-media {
    padding: 10px;
  }

  .shop-eight.lp-products-section .lp-product-title {
    font-size: 13px;
  }

  .shop-eight.lp-products-section .lp-price-value {
    font-size: 14px;
  }

  .shop-eight.lp-products-section .lp-price-unit {
    font-size: 11px;
  }

  .shop-eight.lp-products-section .lp-cart-btn {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .shop-eight.lp-products-section .lp-tab-scroll {
    width: calc(100% + 16px);
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 16px;
  }
}

.shop-eight.lp-products-section.bn-grocery-section .lp-products-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1199px) {
  .shop-eight.lp-products-section.bn-grocery-section .lp-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 767px) {
  .shop-eight.lp-products-section.bn-grocery-section .lp-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (hover: none) {
  .shop-eight.lp-products-section .lp-wishlist-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
