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

.shop-eight.lp-products-section {
  --lp-green: #2d8a4e;
  --lp-green-dark: #1f6b3a;
  --lp-green-soft: #e8f5ec;
  --lp-green-badge: #3d9a5f;
  --lp-ink: #1a202c;
  --lp-muted: #718096;
  --lp-cream: #f9f9f7;
  --lp-card-border: #ececec;

  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: 14px;
  background: #fff;
  border: 1px solid var(--lp-card-border);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  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;
}

.shop-eight.lp-products-section .lp-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--lp-green-badge);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

/* Image */
.shop-eight.lp-products-section .lp-product-media {
  position: relative;
  z-index: 0;
  aspect-ratio: 1 / 0.88;
  width: 100%;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  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);
}

/* Footer row */
.shop-eight.lp-products-section .lp-product-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

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

.shop-eight.lp-products-section .lp-product-title {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.3;
  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-price-line {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.2;
}

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

.shop-eight.lp-products-section .lp-price-unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--lp-muted);
}

/* Circular cart */
.shop-eight.lp-products-section .lp-cart-circle {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--lp-green);
  color: #fff !important;
  font-size: 15px;
  cursor: pointer;
  pointer-events: auto;
  -webkit-text-fill-color: #fff !important;
  background-image: none !important;
  box-shadow: 0 4px 12px rgba(45, 138, 78, 0.25);
  transition: background 0.2s ease, transform 0.15s ease;
}

.shop-eight.lp-products-section .lp-cart-circle:hover:not(.is-disabled) {
  background: var(--lp-green-dark);
  transform: scale(1.05);
}

.shop-eight.lp-products-section .lp-cart-circle.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-card {
    padding: 12px;
  }

  .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-circle {
    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 {
    padding: 10px;
    border-radius: 14px;
  }

  .shop-eight.lp-products-section .lp-cat-badge {
    top: 10px;
    left: 10px;
    font-size: 9px;
    padding: 4px 8px;
  }

  .shop-eight.lp-products-section .lp-product-media {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 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-circle {
    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;
  }
}
