/* =========================================================
   Products Page CSS
   File: css/products.css
   ========================================================= */

.products-page {
  background: #fffdf8;
}

/* =========================================================
   Products Hero
   ========================================================= */

.products-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: var(--green-950);
}

.products-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.products-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(2, 29, 19, 0.18) 0%,
      rgba(2, 29, 19, 0.52) 48%,
      rgba(2, 29, 19, 0.85) 100%
    ),
    radial-gradient(circle at 18% 65%, rgba(213, 173, 88, 0.10), transparent 320px);
}

.products-hero-layout {
  position: relative;
  z-index: 2;
  min-height: 430px;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.products-hero-content {
  color: #ffffff;
  max-width: 770px;
}

.breadcrumb-wrap {
  margin-bottom: 24px;
}

.breadcrumb {
  margin: 0;
}

.breadcrumb-item {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb-item a {
  color: var(--gold-300);
  transition: 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--gold-500);
}

.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.55);
}

.products-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-500);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
}

.products-eyebrow::before,
.products-eyebrow::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold-500);
}

.products-hero-content h1 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.4;
}

.products-hero-content p {
  margin: 0;
  max-width: 690px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 18px;
  line-height: 2.1;
}

.products-hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-products-primary,
.btn-products-outline {
  min-width: 190px;
  height: 54px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  transition: 0.25s ease;
}

.btn-products-primary {
  background: linear-gradient(135deg, #e4c16c, #b98935);
  color: var(--green-950);
}

.btn-products-outline {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.btn-products-primary:hover,
.btn-products-outline:hover {
  transform: translateY(-3px);
}

.products-hero-image {
  justify-self: end;
  align-self: end;
  width: 100%;
  max-width: 560px;
}

.products-hero-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.25));
}

/* =========================================================
   Benefits
   ========================================================= */

.products-benefits-section {
  background: #fffdf8;
  padding: 34px 0 20px;
}

.products-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.products-benefit-card {
  min-height: 104px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.035);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  transition: 0.25s ease;
}

.products-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.products-benefit-card i {
  flex: 0 0 auto;
  color: #8d925f;
  font-size: 42px;
  line-height: 1;
}

.products-benefit-card h2 {
  margin: 0 0 7px;
  color: var(--green-900);
  font-size: 18px;
  font-weight: 900;
}

.products-benefit-card p {
  margin: 0;
  color: #666b62;
  font-size: 13px;
  line-height: 1.8;
}

/* =========================================================
   Products List
   ========================================================= */

.products-list-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(213, 173, 88, 0.09), transparent 460px),
    #fffdf8;
  padding: 42px 0 64px;
}

.products-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.section-small-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-700);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-small-title::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold-500);
}

.products-page-head h2 {
  margin: 0;
  color: var(--green-900);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.4;
}

.products-page-head p {
  margin: 8px 0 0;
  color: #626b62;
  font-size: 16px;
  line-height: 1.9;
}

.products-search-box {
  width: 340px;
  max-width: 100%;
  height: 54px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.035);
}

.products-search-box i {
  color: var(--gold-700);
  font-size: 20px;
}

.products-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--green-900);
  font-size: 15px;
}

.products-search-box input::placeholder {
  color: #9b9b9b;
}

.products-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.product-filter-btn {
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-900);
  padding: 0 20px;
  font-weight: 800;
  font-size: 14px;
  transition: 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  text-decoration: none;
}

.product-filter-btn:hover,
.product-filter-btn.active {
  border-color: var(--gold-500);
  background: var(--green-800);
  color: #ffffff;
}

.products-page-row {
  min-height: 260px;
  transition: opacity 0.2s ease;
}

.products-list-section.is-loading-products .products-page-row,
.products-list-section.is-loading-products .products-pagination-wrap {
  opacity: 0.45;
  pointer-events: none;
}

.products-page-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.035);
  transition: 0.25s ease;
}

.products-page-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-card);
}

.products-page-image {
  position: relative;
  height: 270px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 45%, rgba(213, 173, 88, 0.09), transparent 190px),
    #fffaf2;
}

.products-page-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  transition: 0.35s ease;
}

.products-page-card:hover .products-page-image img {
  transform: scale(1.025);
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  min-width: 74px;
  height: 32px;
  border-radius: 999px;
  background: var(--green-800);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.product-badge.light {
  background: var(--gold-500);
  color: var(--green-950);
}

.products-page-info {
  padding: 18px 20px 20px;
}

.products-page-info h3 {
  margin: 0 0 8px;
  color: #111111;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.5;
}

.products-page-info p {
  margin: 0 0 12px;
  color: #555d56;
  font-size: 15px;
  line-height: 1.85;
}

.products-page-info ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.products-page-info li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5f675f;
  font-size: 14px;
  line-height: 1.9;
}

.products-page-info li i {
  color: var(--gold-700);
  font-size: 17px;
}

.products-card-price {
  width: fit-content;
  min-height: 32px;
  margin: 0 0 15px;
  padding: 2px 10px 2px 0;
  border: 0;
  border-right: 3px solid var(--gold-500);
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  box-shadow: none;
}

.products-card-price i {
  color: var(--gold-500);
  font-size: 17px;
}

.products-card-price strong {
  color: var(--green-900);
  font-size: 19px;
  font-weight: 900;
}

.products-card-price span {
  color: #756c59;
  font-size: 12px;
  font-weight: 800;
}

.products-page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-detail-link {
  flex: 1;
  height: 42px;
  border-radius: 6px;
  background: var(--green-800);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  transition: 0.25s ease;
}

.product-detail-link:hover {
  background: var(--gold-600);
  color: var(--green-950);
}

.product-call-link {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  border: 1px solid var(--gold-500);
  color: var(--gold-700);
  display: grid;
  place-items: center;
  transition: 0.25s ease;
}

.product-call-link:hover {
  background: var(--gold-500);
  color: var(--green-950);
}

.product-grid-item.is-hidden {
  display: none;
}

.products-empty-state {
  display: none;
  text-align: center;
  padding: 44px 20px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.products-empty-state.show {
  display: block;
}

.products-empty-state i {
  color: var(--gold-700);
  font-size: 48px;
  margin-bottom: 12px;
}

.products-empty-state h3 {
  margin: 0 0 8px;
  color: var(--green-900);
  font-size: 24px;
  font-weight: 900;
}

.products-empty-state p {
  margin: 0;
  color: #686f67;
  font-size: 15px;
}

/* =========================================================
   Wholesale CTA
   ========================================================= */

.products-wholesale-section {
  background: #fffdf8;
  padding: 0 0 56px;
}

.products-wholesale-box {
  position: relative;
  overflow: hidden;
  min-height: 255px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 45%, rgba(213, 173, 88, 0.18), transparent 260px),
    linear-gradient(135deg, var(--green-950), var(--green-800));
  border: 1px solid rgba(213, 173, 88, 0.35);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 230px;
  align-items: center;
  gap: 30px;
  padding: 42px 48px;
}

.products-wholesale-box::before,
.products-wholesale-box::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(213, 173, 88, 0.18);
  border-radius: 50%;
}

.products-wholesale-box::before {
  right: -80px;
  top: -70px;
}

.products-wholesale-box::after {
  left: -85px;
  bottom: -80px;
}

.products-wholesale-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.products-wholesale-content span {
  display: inline-flex;
  color: var(--gold-500);
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 8px;
}

.products-wholesale-content h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.55;
}

.products-wholesale-content p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 2;
}

.products-wholesale-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.products-wholesale-actions a {
  min-width: 178px;
  height: 48px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--green-950);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  transition: 0.25s ease;
}

.products-wholesale-actions a.outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.products-wholesale-actions a:hover {
  transform: translateY(-3px);
}

.products-wholesale-icon {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: 135px;
  height: 135px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(213, 173, 88, 0.65);
  background: rgba(255, 255, 255, 0.05);
}

.products-wholesale-icon i {
  color: var(--gold-500);
  font-size: 72px;
  line-height: 1;
}

.products-bottom-cta {
  background: #fffdf8;
  padding: 0;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1500px) {
  .products-hero-content h1 {
    font-size: 42px;
  }

  .products-page-image {
    height: 250px;
  }
}

@media (max-width: 1199px) {
  .products-hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .products-hero-content {
    margin: 0 auto;
  }

  .products-hero-actions {
    justify-content: center;
  }

  .products-hero-image {
    display: none;
  }

  .products-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .products-search-box {
    width: 100%;
  }

  .products-wholesale-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .products-wholesale-content p {
    margin: 0 auto;
  }

  .products-wholesale-actions {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .products-hero {
    min-height: 430px;
  }

  .products-hero-layout {
    min-height: 430px;
  }

  .products-hero-content h1 {
    font-size: 31px;
    line-height: 1.55;
  }

  .products-hero-content p {
    font-size: 15px;
    line-height: 2;
  }

  .products-hero-actions {
    flex-direction: column;
  }

  .btn-products-primary,
  .btn-products-outline {
    width: 100%;
  }

  .products-benefits-section {
    padding: 28px 0 10px;
  }

  .products-benefits-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .products-benefit-card {
    min-height: 92px;
    padding: 18px;
  }

  .products-list-section {
    padding: 34px 0 46px;
  }

  .products-page-head h2 {
    font-size: 28px;
  }

  .products-filter-bar {
    gap: 10px;
  }

  .product-filter-btn {
    flex: 1 1 calc(50% - 10px);
    padding: 0 12px;
    font-size: 13px;
  }

  .products-page-image {
    height: 310px;
  }

  .products-page-image img {
    object-fit: cover;
  }

  .products-page-info {
    padding: 22px 18px 24px;
  }

  .products-wholesale-section {
    padding: 0 0 38px;
  }

  .products-wholesale-box {
    border-radius: 14px;
    padding: 32px 20px;
  }

  .products-wholesale-content h2 {
    font-size: 24px;
  }

  .products-wholesale-content p {
    font-size: 14px;
  }

  .products-wholesale-actions a {
    width: 100%;
  }

  .products-wholesale-icon {
    width: 105px;
    height: 105px;
  }

  .products-wholesale-icon i {
    font-size: 54px;
  }
}

/* Keep product imagery at the same successful ratio used by home-page cards. */
.products-page-image {
  height: auto;
  aspect-ratio: 1.17 / 1;
  padding: 10px;
}

.products-page-image img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
}

@media (max-width: 480px) {
  .products-page-image {
    height: 292px;
  }

  .products-page-info h3 {
    font-size: 21px;
  }
}
/* =========================================================
   Products Pagination
   ========================================================= */

.products-pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.products-pagination {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .products-pagination li {
        margin: 0;
    }

    .products-pagination button,
    .products-pagination a {
        min-width: 42px;
        height: 42px;
        border: 1px solid var(--border);
        border-radius: 9px;
        background: #ffffff;
        color: var(--green-900);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 900;
        transition: 0.25s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

        .products-pagination button:hover,
        .products-pagination a:hover {
            border-color: var(--gold-500);
            background: #fff8e8;
            color: var(--green-950);
        }

        .products-pagination button.active,
        .products-pagination a.active {
            border-color: var(--gold-500);
            background: var(--green-800);
            color: #ffffff;
        }

        .products-pagination button:disabled {
            opacity: 0.45;
            cursor: not-allowed;
            background: #f7f3e8;
        }

    .products-pagination .pagination-arrow {
        min-width: 46px;
    }

.products-pagination-wrap.is-hidden {
    display: none;
}

@media (max-width: 767px) {
    .products-pagination-wrap {
        margin-top: 26px;
    }

    .products-pagination {
        gap: 8px;
    }

        .products-pagination button,
        .products-pagination a {
            min-width: 38px;
            height: 38px;
            border-radius: 8px;
            font-size: 13px;
        }
}
