/* Woocommerce Shop Category Filter */


@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
}

/* Wrapper */
.ajax-shop-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
  padding: 20px;
  font-family: 'Poppins', sans-serif;
}

/* Sidebar */
.category-list {
  list-style: none;
  padding: 20px;
  margin: 0;
  flex: 0 0 250px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 100px;
  height: fit-content;
  font-size: 16px;
}

.category-list li {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list li.active,
.category-list li:hover {
  background: #7F8339;
  color: #fff;
  border-radius: 5px;
  transform: scale(1.02);
}

/* Product Container */
#ajax-products-container {
  flex: 1;
  width: 100%;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

/* Product Card */
.products li.product {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

ul.products.product-grid li {
    padding: 15px !important;
}

/* Hover Effect */
.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Product Image */
.products li.product .woocommerce-loop-product__link img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.products li.product:hover img {
  transform: scale(1.03);
}

/* Product Title (Clamped) */
a h2.woocommerce-loop-product__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Category */
.product-category {
  font-size: 13px;
  color: #d4572f;
  margin-top: 5px;
  margin-bottom:10px;
}

/* Price */
.products .price {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  font-family: 'Poppins', sans-serif;
}

/* Add to Cart Button */
.products .button {
  background-color: #7F8339 !important;
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 20px 5px 20px 5px;
  font-family: 'Lora', serif !important;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-top: auto;
}

.products .button:hover {
  background-color: #d4572f !important;
  transform: translateY(-2px);
  color: #fff !important;
}

/* Pagination */
.ajax-pagination {
  text-align: center;
  margin-top: 30px;
  font-family: 'Poppins', sans-serif;
}

.ajax-pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 5px;
  background: #eee;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.ajax-pagination .page-numbers:hover {
  background: #7F8339;
  color: #fff;
}

.ajax-pagination .page-numbers.current {
  background: #7F8339;
  color: #fff;
  font-weight: bold;
}

/* Responsive Layout */

/* Tablet */
@media (max-width: 1024px) {
  .ajax-shop-wrapper {
    flex-direction: column;
  }

  .category-list {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    top: auto;
    flex: unset;
  }

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

/* Phone */
@media (max-width: 767px) {
  .ajax-shop-wrapper {
    flex-direction: column;
  }

  .category-list {
    width: 100%;
    margin-bottom: 20px;
  }

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



/* Recipe Filter */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

.recipe-filters {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columns on desktop to accommodate new filter */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #d4572f; /* Red-orange color for labels */
    font-size: 18px;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23333" d="M6 9l4-4H2z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.filter-group select {
    width: 100%;
    padding: 12px 40px 12px 12px;
    min-width: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.filter-group select:focus {
    outline: none;
    border-color: #d4572f;
    box-shadow: 0 0 5px rgba(212, 87, 47, 0.3);
}

.recipe-results {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.recipe-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.recipe-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px; /* Border radius for images */
}

.recipe-card h3 {
    font-size: 19px;
    margin: 10px;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

.recipe-card h3 a {
    text-decoration: none;
    color: #333;
}

.recipe-card h3 a:hover {
    color: #d4572f; /* Red-orange color on hover */
}

.elementor-post-info__terms-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 10px 10px;
}

.elementor-post-info__terms-list a {
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

.elementor-post-info__terms-list a:hover {
    background: #d4572f; /* Red-orange color on hover */
    color: #fff;
}

.pagination {
    text-align: center;
    margin: 30px 0;
    font-family: 'Poppins', sans-serif;
}

.pagination ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination li {
    display: inline-block;
}

.pagination a, .pagination span {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-size: 19px;
}

.pagination a:hover {
    background: #d4572f; /* Red-orange color on hover */
    color: #fff;
    border-color: #d4572f;
}

.pagination .current {
    background: #d4572f; /* Red-orange color for current page */
    color: #fff;
    border-color: #d4572f;
}

/* Tablet: 3 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .recipe-filters {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on tablet */
        font-size: 16px;
        gap: 15px;
        padding: 15px;
    }

    .filter-group label {
        font-size: 16px;
    }

    .filter-group select {
        font-size: 16px;
        padding: 10px;
    }

    .recipe-card h3 {
        font-size: 16px;
    }

    .pagination a, .pagination span {
        font-size: 16px;
        padding: 6px 10px;
    }
}

/* Phone: 1 column */
@media (max-width: 767px) {
    .recipe-filters {
        grid-template-columns: 1fr; /* 1 column on phone */
        font-size: 16px;
        gap: 10px;
        padding: 10px;
    }

    .filter-group label {
        font-size: 16px;
    }

    .filter-group select {
        font-size: 16px;
        padding: 8px;
    }

    .recipe-card h3 {
        font-size: 16px;
    }

    .pagination a, .pagination span {
        font-size: 16px;
        padding: 5px 8px;
    }
}

/* Recipe Color Tags */

.elementor-post-info__terms-list a {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.85rem;
    text-decoration: none;
    line-height: 1.4;
    transition: background-color 0.3s ease;
    color: #fff;
}

/* Override background per tag */
.tag-VGN { background-color: #4A7C59 !important; }
.tag-VEG { background-color: #789262 !important; }
.tag-SF  { background-color: #E6C8B0 !important; color: #000 !important; }
.tag-GF  { background-color: #D49A6A !important; color: #000 !important; }
.tag-HP  { background-color: #C05A45 !important; }
.tag-DF  { background-color: #6B8E9C !important; }
.tag-LC  { background-color: #DAD2C7 !important; color: #000 !important; }
.tag-NS  { background-color: #F1C27D !important; color: #000 !important; }
.tag-WL  { background-color: #A8918E !important; }

/* Optional hover effect */
.elementor-post-info__terms-list a:hover {
    opacity: 0.9;
}




/* Favorite Recipes Wishlist */

/* favorite-wishlist.css */

.wishlist-wrapper {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
}

.recipe-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.recipe-card .wishlist-icon {
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  padding: 6px;
  border-radius: 50%;
  transition: transform 0.2s;
  fill: #ccc;
}

.recipe-card .wishlist-icon:hover {
  transform: scale(1.1);
}

.recipe-card .wishlist-icon.in-wishlist svg path {
  fill: #d4572f;
}

.favorite-recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.no-favorites-message {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  margin-top: 2rem;
  color: #666;
}

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

@media (max-width: 768px) {
  .favorite-recipe-grid {
    grid-template-columns: 1fr;
  }
}






/* Kitchen Picks (Post Filter) */

/* Filters container */
.apf-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
}

.apf-filter-group {
    display: flex;
    flex-direction: column;
}

.apf-filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #d4572f;
    font-size: 18px;
}

.apf-filter-group select {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23333" d="M6 9l4-4H2z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.3s, box-shadow 0.3s;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.apf-filter-group select:focus {
    outline: none;
    border-color: #d4572f;
    box-shadow: 0 0 5px rgba(212, 87, 47, 0.3);
}

/* Posts grid */
.apf-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    font-family: 'Poppins', sans-serif;
}

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

@media (max-width: 767px) {
    .apf-grid {
        grid-template-columns: 1fr;
    }
}

/* Single post card */
.apf-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.apf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.apf-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
}

.apf-card h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 19px;
    margin: 16px 16px 6px;
    color: #333;
    line-height: 1.3;
}

.apf-card h3 a {
    color: #333;
    text-decoration: none;
}

.apf-card h3 a:hover {
    color: #d4572f;
}

/* Meta info: date & author inline */
.apf-meta {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #666;
    font-family: 'Poppins', sans-serif;
    padding: 0 16px 12px;
    user-select: none;
}

/* Excerpt truncated to 3 lines */
.apf-excerpt {
    padding: 0 16px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: #444;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

/* Explore Post Button */
.apf-explore-button {
    display: inline-block;
    background-color: #7F8339;
    color: #fff;
    padding: 12px 30px;
    margin: 0 16px 16px;
    border-radius: 20px 5px 20px 5px;
    font-family: 'Lora', serif;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    user-select: none;
}

.apf-explore-button:hover,
.apf-explore-button:focus {
    background-color: #d4572f;
    color: #fff; /* Ensure text remains white on hover */
}

/* Pagination styles */
.apf-pagination {
    text-align: center;
    margin: 30px 0;
    font-family: 'Poppins', sans-serif;
}

.apf-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-flex;
    gap: 10px;
}

.apf-pagination li {
    display: inline-block;
}

.apf-pagination a, .apf-pagination span {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-size: 19px;
    user-select: none;
}

.apf-pagination a:hover {
    background-color: #d4572f;
    color: #fff;
    border-color: #d4572f;
}

.apf-pagination .current {
    background-color: #d4572f;
    color: #fff;
    border-color: #d4572f;
}

/* Responsive adjustments for filters */
@media (max-width: 767px) {
    .apf-filters {
        grid-template-columns: 1fr;
        font-size: 16px;
        gap: 12px;
        padding: 15px;
    }

    .apf-filter-group label {
        font-size: 16px;
    }

    .apf-filter-group select {
        font-size: 16px;
        padding: 10px 40px 10px 12px;
    }

    .apf-card h3 {
        font-size: 16px;
    }

    .apf-pagination a, .apf-pagination span {
        font-size: 16px;
        padding: 6px 10px;
    }
}




/* Add Spaces between Tags in Recipes */

.elementor-post-info__terms-list a {
    margin-right: 8px;
}



/* Single Recipe Template Wishlist Heart Icon */

/* Floating wishlist icon on single recipe */
.single-recipe-wishlist-icon-wrapper {
    position: fixed;
    top: 40%;
    right: 20px;
    z-index: 9999;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 8px;
    transition: transform 0.3s ease;
}

.single-recipe-wishlist-icon-wrapper:hover {
    transform: scale(1.1);
}

.single-recipe-wishlist-icon-wrapper svg {
    display: block;
}






/* Homepage Recipe Grid */


/* === Grid Layout === */
.lrg-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    font-family: 'Poppins', sans-serif;
}

/* === Large card spans two rows === */
.lrg-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* === Positioning of small cards === */
.lrg-small:nth-child(2) { grid-column: 2; grid-row: 1; }
.lrg-small:nth-child(3) { grid-column: 3; grid-row: 1; }
.lrg-small:nth-child(4) { grid-column: 2; grid-row: 2; }
.lrg-small:nth-child(5) { grid-column: 3; grid-row: 2; }

/* === Shared card styling === */
.lrg-card {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    min-height: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.lrg-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.lrg-card a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* === Gradient overlay === */
.lrg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
    z-index: 1;
    border-radius: 12px;
}

/* === Category label === */
.lrg-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #d4572f;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 2;
}

/* === Meta section === */
.lrg-meta {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    z-index: 2;
    color: #fff;
}

.lrg-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.lrg-author {
    font-size: 13px;
    color: #f0f0f0;
}

/* === Responsive styles === */
@media (max-width: 768px) {
    .lrg-wrapper {
        display: flex;
        flex-direction: column;
    }

    .lrg-card {
        min-height: 250px;
    }
}
