/*
Theme Name: Shree Food Child
Theme URI: https://example.com/
Description: Custom WooCommerce theme for Shree Food
Author: Shree Food
Author URI: https://example.com/
Template: storefront
Version: 1.0
Text Domain: shreefood-child
*/

/* ====== Base Setup ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #003893;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ====== Global Container ====== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ====== Header ====== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  position: fixed;
  background: #ffffff; /* or use #003893 if you want the theme color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav-left,
.nav-center,
.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-left {
  flex: 1;
  justify-content: flex-start;
}

.nav-center {
  flex: 1;
  justify-content: center;
}

.nav-center img {
  max-height: 90px;
  height: auto;
  width: auto;
}

.nav-right {
  flex: 1;
  justify-content: flex-end;
}

/* Links and Button */
.nav-left a,
.nav-right a {
  font-weight: 500;
  transition: transform 0.3s ease;
}

.nav-left a:hover,
.nav-right a:hover {
  transform: translateY(-7px);
}

.site-header a {
  color: #fff;
}

.site-header.scrolled a {
  color: rgb(64, 64, 64);
}

/* Order Button */
.order-btn {
  display: inline-block;
  background: #ff5e57;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  transition: background 0.3s;
}

.order-btn:hover {
  transform: translateY(-7px);
}

/* ====== Responsive Styles ====== */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: row;
    align-items: center;
  }

  .nav-left,
  .nav-right {
    width: 100%;
    justify-content: space-between;
    padding: 0.5rem 0;
  }

  .nav-center {
    order: -1;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .nav-left,
  .nav-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .order-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .nav-center img {
    max-height: 40px;
  }
}

/* footer styling */
.site-footer {
  background: #003893;
  color: #ffffff;
  padding: 3rem 1rem 2rem;
  font-family: 'Poppins', sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: flex-start;
}

.footer-col h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1rem;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #DC143C;
}

.footer-brand p {
  font-size: 0.95rem;
  margin: 1rem 0;
  line-height: 1.5;
}

.footer-logo {
  max-width: 80px;
  /* margin-bottom: 1rem; */
}

.social-icons a {
  display: inline-block;
  color: #ffffff;
  margin-right: 0.5rem;
  font-size: 1.2rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-7px);
  color: #DC143C;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  gap: 1rem;
}

.footer-bottom-left,
.footer-bottom-right {
  flex: 1 1 100%;
  text-align: center;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #DC143C;
}

.contact-info li {
  display: flex;
  align-items: flex-start; /* Aligns icon and text to the top */
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.contact-info i {
  color: #fff;
  font-size: 1rem;
  min-width: 20px;
  margin-top: 3px; /* Optional: fine-tune icon alignment */
}

/* On tablets and up, make left/right layout */
@media (min-width: 600px) {
  .footer-bottom-left,
  .footer-bottom-right {
    flex: 1 1 auto;
    text-align: left;
  }

  .footer-bottom-right {
    text-align: right;
  }
}

.header-cart {
  position: relative;
  margin-left: 1rem;
}

.header-cart .cart-link {
  display: flex;
  align-items: center;
  color: var(--text-color, #fff);
  text-decoration: none;
  font-size: 1.2rem;
}

.header-cart .cart-link i {
  font-size: 1.4rem;
}

.site-header.scrolled .header-cart .cart-link {
  color: rgb(64, 64, 64);
}

.cart-count {
  background: #ff5252;
  color: white;
  font-weight: bold;
  font-size: 0.75rem;
  padding: 0px 6px;
  border-radius: 50%;
  margin-left: 0.3rem;
  font-family: "Poppions", sans-serif;
}

.momo-add-to-cart .add_to_cart_inline {
    border: 0!important;
    text-align: right;
    padding: 15px 0;
}

.momo-add-to-cart .button {
  background-color: #d63447;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  cursor: pointer;
  margin-left: 16px;
}

.momo-add-to-cart .button:hover {
  background-color: #b62c3c;
}

.menu-item-with-submenu {
  position: relative;
}

.momo-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fefefe;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  width: 1000px;
  text-align: center;
}

.menu-item-with-submenu:hover .momo-submenu {
  display: block;
}

.submenu-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  margin-bottom: 1rem;
}

.submenu-header h4 {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  color: #DC143C;
  margin-bottom: 0.25rem;
}

.submenu-header p {
  font-size: 0.95rem;
  color: #333;
}

.submenu-items {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.submenu-item {
  display: flex;
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.8rem;
  gap: 0.8rem;
  align-items: center;
  transition: background 0.3s ease;
  width: 230px;
  box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}

.submenu-item:hover {
  background-color: #f1f1f1;
}

.submenu-item img {
  width: 60px;
  height: 60px;
  border-radius: 0.5rem;
  object-fit: cover;
  margin: auto;
}

.submenu-text h5 {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #003893;
}

.submenu-text p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.3;
}

.submenu-text p.red-theme {
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  background: #ff5e57;
  width: 125px;
  padding: 8px 10px;
  margin: auto;
  border-radius: 25px;
}

@media (max-width: 768px) {
  .momo-submenu {
    position: static;
    width: 100%;
    box-shadow: none;
    margin-top: 1rem;
  }

  .submenu-items {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .submenu-item {
    width: 100%;
  }
}

/* Hamburger Icon */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #003893;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Overlay Menu */
.mobile-overlay-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  transition: right 0.4s ease;
  overflow-y: auto;
  padding: 2rem;
}

.mobile-overlay-menu.active {
  right: 0;
}

.overlay-content {
  max-width: 100%;
}

#mobileMenu .submenu-header {
  margin-bottom: 1.5rem;
}

#mobileMenu .submenu-header h3 {
  color: #003893;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

#mobileMenu .submenu-header p {
  color: #555;
  font-size: 0.95rem;
}

/* Vertical Submenu Items */
.submenu-items.vertical .submenu-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 0.8rem;
  transition: background 0.3s ease;
}

.submenu-items.vertical .submenu-item:hover {
  background: #eee;
}

.submenu-items.vertical img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.submenu-items.vertical h4 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  color: #003893;
}

.submenu-items.vertical p {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

/* Menu Links */
.mobile-links {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  gap: 1rem;
}

.mobile-links a {
  font-size: 1.1rem;
  color: #003893;
  transition: color 0.3s ease;
}

.mobile-links a.order-btn-mobile {
  width: 150px;
  text-align: center;
  background-color: #DC143C;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.mobile-links a:hover {
  color: #DC143C;
}

.site-header.scrolled a.order-btn {
  color: #fff;
}

.mobile-links a.order-btn-mobile:hover {
  color: #fff;
}

/* Show hamburger + hide desktop nav */
@media (max-width: 768px) {
  .nav-left, .nav-right .contact-link, .nav-right .order-btn {
    display: none;
  }
  
  .nav-right .header-cart {
    display: flex;
    margin-left: 0;
    justify-content: flex-end;
  }

  .nav-right .cart-count {
    position: absolute;
    top: -9px;
    right: -9px;
  }

  .site-header .header-cart .cart-link {
    color: rgb(64, 64, 64);
  }

  .nav-right {
    align-items: end;
    justify-content: flex-end;
    margin-right: 60px;
  }

  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }

  .nav-center {
    justify-content: flex-start;
    padding-left: 1.5rem;
  }

  .nav-center img {
    max-height: 60px;
  }

  .site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
  }

  .site-header .container {
    position: relative;
  }
}

.overlay-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #003893;
  cursor: pointer;
  z-index: 10001;
  transition: transform 0.2s ease;
}

.overlay-close:hover {
  transform: scale(1.1);
}

#primary.content-area {
  padding-top: 6rem;
  background: #fdfdfd;
}

.site-footer a:not(.button):not(.components-button)
{
  color: #fff;
}

@media screen and (min-width: 768px) {
  .site-header {
    border-bottom-color: transparent;
  }
}

/* woocommerce shop css */
/* General Font Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #1f0e05; /* Darker tone for headings, consistent across pages */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.center-text {
    text-align: center;
}

/* ===== SHOP HERO SECTION (Parallax) ===== */
/* This section assumes you will add a div with class 'shop-hero' at the top of your shop page template,
   e.g., within your theme's header.php or archive-product.php, similar to how momo-hero was used. */
.shop-hero {
    position: fixed; /* Fixed position for parallax */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full viewport height */
    color: #FFF;
    text-align: center;
    padding: 10rem 1.5rem 4rem; /* Padding for content spacing */
    z-index: -1; /* Ensures it stays behind scrolling content */
    display: flex; /* To vertically center content */
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Hide any overflow from background image */
    background-size: cover;
    background-position: center;
}

.shop-hero::before {
    content: '';
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7)); /* Darker overlay for contrast */
    position: absolute;
    z-index: 2;
    inset: 0;
}

.shop-hero-content {
    position: relative;
    z-index: 3;
    padding: 1rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.shop-hero h1 {
    font-size: 3.8rem; /* Larger for impact */
    margin-bottom: 1rem;
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5); /* Text shadow for readability */
}

.shop-hero p {
    font-size: 1.3rem; /* Larger font size */
    max-width: 700px;
    margin: 0 auto;
    color: #f0f0f0; /* Lighter white for readability */
    line-height: 1.5;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.my-custom-woocommerce-wrapper {
  background-color: #fdfdfd;
  margin-top: 100vh;
  position: relative;
  z-index: 1;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
}

.woocommerce-products-header__title.page-title{
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  line-height: 1.3;
  color: #1f0e05;
  margin-bottom: 20px;
}

.my-custom-woocommerce-wrapper .site-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .shop-hero h1 {
        font-size: 3rem;
    }
    .shop-hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .shop-hero h1 {
        font-size: 2.5rem;
    }
    .shop-hero p {
        font-size: 1rem;
    }
}

/* Styling for WooCommerce Sorting Dropdown and Result Count */

/* Container for sorting and result count */
.storefront-sorting {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap onto the next line on smaller screens */
    justify-content: space-between; /* Pushes dropdown to one side, result count to the other */
    align-items: center; /* Vertically aligns items in the middle */
    margin-bottom: 2rem; /* Adds space below this section */
    padding: 1rem 0; /* Adds some vertical padding for visual separation */
    gap: 1.5rem; /* Minimum space between the dropdown and result count */
}

/* Form wrapper for the dropdown - crucial for custom arrow positioning */
.woocommerce-ordering {
    position: relative; /* Enables absolute positioning for its child elements (like the custom arrow) */
    flex-grow: 1; /* Allows the dropdown container to take up available space */
    max-width: 280px; /* Limits the maximum width of the dropdown for better aesthetics on larger screens */
}

/* The Select (Dropdown) Element itself */
.woocommerce-ordering .orderby {
    appearance: none; /* Removes default browser styling for the select box */
    -webkit-appearance: none; /* For WebKit browsers (Chrome, Safari) */
    -moz-appearance: none; /* For Mozilla Firefox */
    width: 100%; /* Makes the select box take the full width of its parent (.woocommerce-ordering) */
    padding: 0.8em 2.5em 0.8em 1.2em; /* Top/bottom, right (for arrow), bottom, left padding */
    border: 1px solid #c0c0c0; /* Light grey border */
    border-radius: 8px; /* Slightly rounded corners */
    background-color: #ffffff; /* White background */
    font-family: 'Poppins', sans-serif; /* Consistent font */
    font-size: 1rem;
    color: #333; /* Dark text color for readability */
    cursor: pointer; /* Indicates it's clickable */
    outline: none; /* Removes the default outline that appears on focus */
    transition: all 0.3s ease; /* Smooth transition for hover and focus effects */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow for depth */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23003893'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); /* Inline SVG for a clean down arrow, colored with your theme's blue */
    background-repeat: no-repeat;
    background-position: right 1.2em center; /* Position the arrow to the right, centered vertically, adjusted for padding */
    background-size: 1.2em; /* Size of the SVG arrow */
}

/* Hover state for the dropdown */
.woocommerce-ordering .orderby:hover {
    border-color: #a0a0a0; /* Slightly darker border on hover */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* More pronounced shadow on hover */
}

/* Focus state for the dropdown (when it's clicked/active) */
.woocommerce-ordering .orderby:focus {
    border-color: #003893; /* Uses your theme's blue color for the border */
    box-shadow: 0 0 0 3px rgba(0,56,147,0.2); /* Adds a light blue glow effect */
}

.woocommerce-ordering::after {
    display: none; /* Hide the old pseudo-element arrow */
}

/* Styling for the "Showing X results" text */
.woocommerce-result-count {
    font-family: 'Poppins', sans-serif; /* Consistent font */
    font-size: 1rem;
    color: #555; /* Slightly lighter text color than headings */
    flex-shrink: 0; /* Prevents this element from shrinking if space is limited */
    margin-left: auto; /* Pushes it to the right when there's space */
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .storefront-sorting {
        flex-direction: column; /* Stacks the dropdown and result count vertically */
        align-items: flex-start; /* Aligns them to the left when stacked */
        gap: 1rem; /* Reduces the gap between stacked items */
    }

    .woocommerce-ordering {
        width: 100%; /* Makes the dropdown take full width on smaller screens */
        max-width: none; /* Removes the max-width constraint */
    }
}

@media (max-width: 480px) {
    .woocommerce-ordering .orderby {
        padding: 0.7em 2em 0.7em 1em; /* Slightly smaller padding */
        font-size: 0.95rem; /* Slightly smaller font size */
    }

    .woocommerce-ordering .orderby {
      background-position: right 1em center; /* Adjust arrow position */
    }

    .woocommerce-result-count {
        font-size: 0.9rem; /* Smaller font size for result count on very small screens */
    }
}
/* Product Title */
.woocommerce-loop-product__title {
    font-family: 'Poppins', sans-serif; /* Changed from Playfair Display to Poppins */
    font-size: 1.6rem; /* Slightly increased font size for better visual prominence */
    color: #003893; /* Your theme's deep blue for titles */
    margin-bottom: 0.5em;
    transition: color 0.3s ease; /* Smooth transition for potential hover effects */
}

.button.add_to_cart_button {
    background-color: #e63946; /* Your theme's vibrant red for the button background */
    color: #fff; /* White text color */
    padding: 0.8rem 1.8rem; /* Comfortable padding inside the button */
    border-radius: 40px; /* Highly rounded corners for a modern look */
    font-weight: 600; /* Semi-bold font for readability */
    font-size: 1rem; /* Standard font size */
    text-decoration: none; /* Removes any default underline */
    border: none; /* Removes default button borders */
    cursor: pointer; /* Changes cursor to a pointer to indicate clickability */
    display: inline-block; /* Ensures padding and other box model properties apply correctly */
    line-height: 1; /* Adjusts line height for better vertical text centering */
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; /* Smooth transitions for interactive effects */
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3); /* Subtle shadow for depth */
    margin-top: 1rem; /* Adds space above the button, separating it from the price */
}

.button.add_to_cart_button:hover {
    background-color: #b31f1f; /* Darker red on hover */
    transform: translateY(-3px); /* Creates a slight "lift" effect */
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4); /* Enhanced shadow on hover */
}

/* Optional: Color change on product link hover for title */
.woocommerce-LoopProduct-link:hover .woocommerce-loop-product__title {
    color: #e63946; /* Your theme's vibrant red on hover */
}

/* Sale Badge */
.onsale {
    background-color: #003893; /* Your theme's deep blue background for the badge */
    color: #fff; /* White text for contrast */
    font-family: 'Poppins', sans-serif; /* Your body text font */
    font-size: 0.9rem; /* Clear but not overly large */
    font-weight: 600; /* Semi-bold */
    padding: 0.3em 0.7em; /* Padding around the text within the badge */
    border-radius: 5px; /* Slightly rounded corners for the badge */
    position: absolute; /* Ensures it's positioned relative to its product card parent */
    top: 15px; /* Distance from the top of the product card */
    left: 15px; /* Distance from the left of the product card */
    z-index: 10; /* Ensures it appears above the product image */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Subtle shadow for depth */
    text-transform: uppercase; /* Makes the "Sale!" text stand out */
    letter-spacing: 0.05em;
}

/* Product Price */
.price {
    font-family: 'Poppins', sans-serif; /* Your body text font for numbers */
    font-size: 1.3rem; /* Prominent size for the price */
    font-weight: 700; /* Bold for emphasis */
    color: #e63946; /* Your theme's vibrant red for the current/sale price */
    margin-top: 0.5em; /* Space above the price */
    display: block; /* Ensures the price takes its own line */
}

/* Original Price (Strikethrough) */
.price del {
    font-size: 0.9em; /* Slightly smaller than the current price */
    color: #888; /* Lighter grey for the original price */
    font-weight: 400; /* Regular weight */
    margin-right: 0.5em; /* Space between original and sale price */
    opacity: 0.8; /* Slightly faded appearance */
}

/* Sale Price */
.price ins {
    text-decoration: none; /* Removes the default underline that 'ins' tag adds */
    color: #e63946; /* Explicitly sets the vibrant red for the actual sale price */
    font-size: 1em; /* Keeps the same size as the parent .price */
    font-weight: 700; /* Bold for emphasis */
}

/* Currency Symbol within Price */
.price .woocommerce-Price-currencySymbol {
    color: inherit; /* Inherits color from the parent price span (so it's red) */
    font-weight: inherit; /* Inherits weight from the parent price span (so it's bold) */
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 992px) {
    .woocommerce-loop-product__title {
        font-size: 1.5rem;
    }
    .button.add_to_cart_button {
        padding: 0.7rem 1.6rem;
        font-size: 0.95rem;
    }
    .price {
        font-size: 1.2rem;
    }
    .onsale {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .woocommerce-loop-product__title {
        font-size: 1.4rem;
    }
    .button.add_to_cart_button {
        padding: 0.6rem 1.4rem;
        font-size: 0.9rem;
    }
    .price {
        font-size: 1.1rem;
    }
    .onsale {
        font-size: 0.8rem;
        padding: 0.25em 0.6em;
    }
}

@media (max-width: 480px) {
    .woocommerce-loop-product__title {
        font-size: 1.3rem;
    }
    .button.add_to_cart_button {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
        width: auto;
    }
    .price {
        font-size: 1.05rem;
    }
    .onsale {
        font-size: 0.75rem;
        padding: 0.2em 0.5em;
        top: 10px; /* Adjust position slightly for smaller cards */
        left: 10px;
    }
}

.storefront-product-pagination{
  display: none;
}

/* Ensure the main content area scrolls correctly for the blog archive */
body.blog #primary, /* This targets the default blog archive page */
body.home #primary { /* This targets the static "posts page" if set */
    margin-top: 100vh; /* Pushes content down by the height of the hero */
    position: relative; /* Essential for z-index to work */
    z-index: 1; /* Ensures this content scrolls on top of the fixed hero */
    background-color: #fdfdff; /* Consistent light background for the content area */
    padding-top: 4rem; /* Add some padding at the top of the content */
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05); /* Subtle shadow for depth */
}


/* Blog Posts Grid Layout */
.blog-posts-grid {
    display: flex; /* Changed from grid to flex for better control and alignment */
    flex-wrap: wrap; /* Allows cards to wrap to the next line */
    justify-content: center; /* Centers cards horizontally if they don't fill the row */
    gap: 30px; /* Space between the cards */
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Individual Blog Card Styling */
.blog-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Key change: Define the width of each card */
    flex: 0 1 calc(50% - 15px); /* Allows 2 cards per row (50% each), accounting for half of the 30px gap */
    max-width: 450px; /* Prevents cards from becoming too wide on very large screens */
    min-width: 280px; /* Ensures cards don't become too narrow on smaller desktop screens */
    
    display: flex; /* Ensures content inside the card is also well-aligned */
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px); /* Slight lift effect on hover */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* More pronounced shadow */
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%; /* Make the link cover the entire card */
    text-decoration: none;
    color: inherit;
}

.blog-card-thumbnail {
    width: 100%;
    height: 220px; /* Fixed height for thumbnails */
    overflow: hidden;
    flex-shrink: 0; /* Prevent thumbnail from shrinking */
}

.blog-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area without distorting */
    transition: transform 0.4s ease; /* Smooth zoom effect on hover */
}

.blog-card:hover .blog-card-thumbnail img {
    transform: scale(1.05); /* Slight zoom on image hover */
}

.blog-card-content {
    padding: 25px;
    flex-grow: 1; /* Allows content to take up remaining space */
    display: flex;
    flex-direction: column;
}

.blog-card-content h2 {
    font-family: 'Playfair Display', serif; /* Consistent heading font */
    font-size: 1.4rem;
    color: #003893; /* Theme blue for titles */
    margin-bottom: 0.6em;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-card-link:hover .blog-card-content h2 {
    color: #e63946; /* Theme red on title hover */
}

.blog-card-meta {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1em;
    display: flex; /* Arrange meta items in a row */
    gap: 15px; /* Space between date and author */
}

.blog-card-meta i {
    color: #e63946; /* Icon color */
    margin-right: 5px;
}

.blog-card-excerpt {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5em;
    flex-grow: 1; /* Allow excerpt to take available space */
}

.read-more-button {
    /* Reusing the general button style from previous steps */
    align-self: flex-start; /* Align button to the start of its container */
    margin-top: auto; /* Push to the bottom of the card content */
}

/* Pagination Styling (Adjust as needed) */
.navigation.pagination {
    margin-top: 3rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.nav-links .page-numbers {
    display: inline-block;
    padding: 0.8em 1.2em;
    margin: 0 5px;
    background-color: #f0f0f0;
    color: #003893;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
    background-color: #003893;
    color: #fff;
}

/* CSS to push the main content down and make it scroll over the fixed hero */
/* Ensure all relevant page body classes are included for consistent parallax behavior */
body.single-post #primary,
body.woocommerce-cart .woocommerce, /* Specific for cart page main content */
body.tax-product_cat #primary, /* Specific for product category archive pages */
body.blog #primary, /* For the default blog archive if it's not overridden by home.php or this custom template */
body.home #primary, /* For the "Posts page" if it's set as your site's homepage */
body.page-template-page-blog-listing #primary { /* NEW: Targets the content of your custom Blog Listing Page */
    margin-top: 100vh; /* Pushes content down by the full viewport height */
    position: relative; /* Essential for z-index to work correctly */
    z-index: 1; /* Ensures this content scrolls on top of the fixed hero */
    background-color: #fdfdff; /* Consistent light background for the content area */
    padding-top: 4rem; /* Add some padding at the top of the content */
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05); /* Subtle shadow for visual separation */
}

/* Responsive adjustments for hero height and content offset on smaller screens */
@media (max-width: 768px) {
    .shop-hero {
        height: 70vh; /* Make the hero section shorter on mobile devices */
    }

    body.single-post #primary,
    body.tax-product_cat #primary,
    body.blog #primary,
    body.home #primary,
    body.page-template-page-blog-listing #primary { /* NEW: For the custom blog listing page template */
        margin-top: 70vh; /* Adjust content offset to match the shorter hero height */
        padding-top: 2rem; /* Reduce padding on top of content for mobile */
    }
    /* Keep other responsive rules for hero content and blog cards as provided in the previous step */
}

/* ===== Responsive Adjustments for Blog Listing ===== */
@media (max-width: 992px) {
    .blog-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    .blog-card-content h2 {
        font-size: 1.3rem;
    }
    .blog-card-excerpt {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .blog-posts-grid {
        gap: 20px; /* Reduce gap on mobile */
    }
    .blog-card {
        flex: 0 1 100%; /* Cards take full width on mobile devices, stacking vertically */
        max-width: 100%; /* Remove max-width constraint for full responsiveness */
        min-width: unset; /* Remove min-width constraint for full responsiveness */
        margin-bottom: 0; /* No bottom margin needed if gap handles it */
    }
    .blog-card-thumbnail {
        height: 200px; /* Slightly shorter on mobile */
    }
    .blog-card-content {
        padding: 20px;
    }
    .blog-card-content h2 {
        font-size: 1.2rem;
    }
    .blog-card-meta {
        font-size: 0.8rem;
    }
    .blog-card-excerpt {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .blog-card {
        border-radius: 8px;
    }
    .blog-card-thumbnail {
        height: 180px;
    }
    .blog-card-content {
        padding: 15px;
    }
    .blog-card-content h2 {
        font-size: 1.1rem;
    }
}

.entry-header {
    margin: 0 auto 2.5rem auto; /* Center it horizontally, 2.5rem bottom margin */
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    max-width: 900px; /* Limit header width if container is wider */
    text-align: center; /* Center text within the header */
}

.entry-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive font size */
    color: #003893; /* Your theme's primary blue */
    margin-bottom: 0.5em;
    line-height: 1.2;
}

.entry-meta {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #777;
    display: flex;
    gap: 25px; /* Space between date and author */
    justify-content: center; /* Center meta info */
}

.entry-meta i {
    color: #e63946; /* Your theme's accent red */
    margin-right: 8px;
}

/* Post Content Styling (Narrower for readability) */
.entry-content {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    max-width: 680px; /* Reduced max-width for narrower content */
    margin: 0 auto; /* Center the content within the container */
    padding-bottom: 3rem; /* Add padding at the bottom before related posts */
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: 'Playfair Display', serif;
    color: #003893;
    margin-top: 2.5em;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

.entry-content h2 { font-size: 2.2rem; }
.entry-content h3 { font-size: 1.8rem; }
.entry-content h4 { font-size: 1.5rem; }
.entry-content h5 { font-size: 1.3rem; }
.entry-content h6 { font-size: 1.1rem; }

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 25px;
}

.entry-content li {
    margin-bottom: 0.8em;
}

.entry-content strong {
    font-weight: 700;
    color: #111;
}

.entry-content a {
    color: #e63946; /* Accent color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.entry-content a:hover {
    color: #003893;
}

.related-posts-section {
    margin-top: 0; /* Space above the related posts section */
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.related-posts-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #003893;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    /* Main content header */
    .entry-header {
        text-align: center;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        max-width: 100%; /* Ensure it's full width of container on mobile */
    }
    .entry-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .entry-meta {
        justify-content: center;
        gap: 15px;
    }

    /* Main post content */
    .entry-content {
        font-size: 1rem;
        max-width: 100%; /* Allow full width of container on mobile */
        padding-left: 15px; /* Add some padding on sides for mobile */
        padding-right: 15px;
    }

    .entry-content h2 { font-size: 1.8rem; }
    .entry-content h3 { font-size: 1.5rem; }
    .entry-content h4 { font-size: 1.3rem; }

    /* Related Posts */
    .related-posts-section {
        margin-top: 0;
        padding-top: 2rem;
    }
    .related-posts-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

.single.single-post .site-main {
  margin-bottom: 0;
}

.post-type-archive-product .products .added_to_cart, .product-template-default.single.single-product .products .added_to_cart, .momo-info-tabs .momo-add-to-cart .added_to_cart.wc-forward {
  display: none;
}

.single_add_to_cart_button, .single_add_to_cart_button.alt, .wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained, .wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button.contained, .wp-block-button__link.add_to_cart_button.ajax_add_to_cart {
  background-color: #e63946;
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  line-height: 1;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
  margin-top: 0;
}

.single_add_to_cart_button:hover, .single_add_to_cart_button.alt:hover, .wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:hover .wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button.contained:hover, .wp-block-button__link.add_to_cart_button.ajax_add_to_cart:hover {
  background-color: #b31f1f;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.wc-block-components-checkout-place-order-button__text {
  justify-content: center;
}

.page.page-id-7 .entry-header, .page-id-8 .entry-header {
  margin-top: 4rem;
}

.entry-content h3.wc-block-components-product-name {
  line-height: 1.2;
  font-size: 1.2rem;
}

.storefront-sorting + .products + .storefront-sorting {
  display: none;
}

.read-more-button.button {
  display: inline-block;
  background: #ff5e57;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  transition: background 0.3s;
}

.read-more-button.button:hover {
  background: #e84242;
}

.wp-singular.page-template.page-template-page-blog-listing .site-main {
  margin-bottom: 0;
  padding-bottom: 2rem;
}

@media (max-width: 768px) {
  .momo-add-to-cart .add_to_cart_inline {
    text-align: center;
  }
}

a:focus, input:focus, textarea:focus, button:focus {
  outline: none!important;
}