/* Shop Page Styles */

/* Shop Intro Section */
.shop-intro {
  padding: 60px 0 40px;
}

.shop-intro__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.shop-intro__header {
  color: #1e1e1e;
  font-family: Verdana;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 97%; /* 27.16px */
  margin-bottom: 20px;
}

.shop-intro__columns {
  display: flex;
  gap: 60px;
  margin-bottom: 60px;
}

.shop-intro__column {
  flex: 1;
  color: #1e1e1e;
  font-family: Verdana;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.shop-intro__column h2 {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 600;
}

.shop-intro__column p {
  margin-bottom: 20px;
}

/* Shop Blocks */
.shop-blocks {
  margin: 0 auto;
}

/* Category Grid */
.category-grid {
}

.category-grid__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.category-grid__title {
  color: #1e1e1e;
  font-family: Verdana;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 97%; /* 27.16px */
  margin-bottom: 40px;
}

.category-grid__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 110px;
}

.category-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
}

.category-card:hover {
  transform: translateY(-8px);
}

.category-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-card__image-container {
  height: 230px;
  overflow: hidden;
}

.category-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 8px;
}

.category-card:hover .category-card__image {
  transform: scale(1.05);
}

.category-card__content {
  padding: 22px;
}

.category-card__title {
  color: var(--Black, #000);
  font-family: Verdana;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 10px;
}

.category-card__description {
  color: var(--Black, #000);
  font-family: Verdana;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 45px;
}

.category-card__button {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: transparent;
  color: #00371f;
  text-transform: uppercase;
  font-family: Verdana;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
}

.category-card:hover .category-card__button {
}

/* Products Grid */
.category-wrapper .shop-intro .shop-intro__header {
  color: var(--Grn-4, #00371f);
  font-family: Verdana;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 97%; /* 38.8px */
}

.products-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  clear: both;
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
}

.products-grid ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
  overflow: visible !important;
}

.products-grid ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  display: block !important;
  position: relative !important;
  min-height: 300px !important;
}

/* Pagination styles */
.products-grid .pagination {
  margin-top: 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.products-grid .pagination a,
.products-grid .pagination span {
  padding: 8px 16px;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.products-grid .pagination a:hover {
  background-color: #f5f5f5;
}

.products-grid .pagination .current {
  background-color: #4b252a;
  color: white;
  border-color: #4b252a;
}

/* Custom Product Card Styles */
.custom-product-card {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  min-height: 400px;
}

.custom-product-card:hover {
  transform: translateY(-8px);
}

.custom-product-card-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 5px 10px;
  background: #f6f3ec;
  color: #000;
  font-family: Verdana;
  font-size: 12px;
  border-radius: 1px;
  margin: 0;
}

.custom-product-card-out-of-stock,
.custom-product-card-sale {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 5px 10px;
  color: #f6f3ec;
  background: #4b252a;
  font-family: Verdana;
  font-size: 12px;
  border-radius: 1px;
  margin: 0;
}

.custom-product-card-sale {
  background: #d90e43;
}

.wishlist-button {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.custom-product-image {
  width: 100%;
  height: 230px;
  position: relative;
  overflow: hidden;
}

.custom-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 8px 8px 0 0;
}

.custom-product-card:hover .custom-product-image img.main-image {
  opacity: 0;
}

.custom-product-card:hover .custom-product-image img.hover-image {
  opacity: 1;
  transform: scale(1.05);
}

.custom-product-image img.hover-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.custom-product-header {
  padding: 22px 22px 10px;
}

.custom-product-header h3 {
  color: var(--Black, #000);
  font-family: Verdana;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin: 0 0 10px 0;
}

.custom-product-footer {
  padding: 0 22px 20px;
  margin-top: auto;
}

.custom-product-footer .price {
  color: var(--Black, #000);
  font-family: Verdana;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 15px;
}

.custom-product-footer .add-to-cart-button {
  display: flex;
  justify-content: flex-start;
}

.custom-product-footer .read_more_button,
.custom-product-footer .ajax_add_to_cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: transparent;
  color: #00371f;
  text-transform: uppercase;
  font-family: Verdana;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 10px 0;
  text-decoration: none;
}

/* Make sure category product list is clearly visible */
.tax-product_cat .products-grid {
  margin-top: 60px;
  border-top: 1px solid #eee;
  padding-top: 40px;
}

.tax-product_cat .shop-intro {
  margin-bottom: 40px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .category-grid__items {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .shop-intro__header {
    font-size: 32px;
  }

  .shop-intro__columns {
    flex-direction: column;
    gap: 30px;
  }

  .category-grid__title {
    font-size: 28px;
  }

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

@media (max-width: 576px) {
  .shop-intro {
    padding: 40px 0 30px;
  }

  .shop-intro__header {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .category-grid__items {
    grid-template-columns: 1fr;
  }

  .products-grid ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* Category Page Styles */
.category-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  margin-top: 80px;
}

.category-wrapper .shop-intro {
}

.category-wrapper .shop-intro .shop-intro__columns {
  margin: 0;
}

.category-wrapper .products-grid {
  max-width: 1280px;
  margin: 0 auto 80px;
  padding: 0 20px;
  clear: both;
  display: block !important;
  width: 100%;
  position: relative;
  z-index: 1;
}

.category-wrapper .products-grid__title {
  color: #1e1e1e;
  font-family: Verdana;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  margin-bottom: 30px;
  text-align: left;
}

/* Product Card (matching category card style) */
.product-card {
  /* inherits all styling from .category-card */
}

.product-card .category-card__description {
  margin-bottom: 45px;
}

/* Hide standard WooCommerce elements we don't need */
.woocommerce-ordering,
.woocommerce-result-count,
.woocommerce-notices-wrapper {
  display: none !important;
}

/* Make sure product cards match category card height */
.products-grid ul.products li.product {
  height: 100%;
}

.products-grid ul.products li.product .category-card {
  height: 100%;
}

/* Products Container (matching category grid) */
.products-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.products-container__inner {
  max-width: 1280px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.products-grid__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.products-container .back-button-container {
  margin-left: auto;
  margin-right: 0;
  margin-bottom: 90px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--Mrkgrn, #00371f);
  font-family: Verdana;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
  text-align: right;
  width: 100%;
  justify-content: flex-end;
}

.products-container .back-button-container .back-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--Mrkgrn, #00371f);
  font-family: Verdana;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .products-grid__items {
    grid-template-columns: repeat(2, 1fr);
  }
}

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