/* --- NEW: Brand Color Palette & Font --- */
:root {
  --brand-green-dark: #3a5a40;
  --brand-green-light: #a3b18a;
  --brand-orange: #e76f51;
  --brand-background: #fdf8e2; /* Soft beige/cream */
  --brand-text: #333;
  --font-family-brand: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- Universal Box Sizing --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body { 
  max-width: 100%;
  overflow-x: hidden;
  margin: 0 auto; 
  padding: 0;
  font-family: var(--font-family-brand);
  background-color: var(--brand-background);
  color: var(--brand-text);
}

/* --- NEW: Container for Header Image and Benefits Bar --- */
.header-group {
    max-width: 1200px;
    margin: 0 auto 2rem; /* Center the group and add space below */
}

/* --- Full-width Header Image (within its container) --- */
.header-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Benefits Bar (aligned under image) --- */
.site-header-benefits {
    background-color: var(--brand-green-dark);
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}
.benefit-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* Add some space between check and text */
}

.main-container {
    padding: 0 1.5rem 2rem; /* Adjusted top padding */
    max-width: 1200px;
    margin: 0 auto;
}

.layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }

.panel { margin-bottom: 1.5rem; }
h3 { margin: 0 0 .5rem; font-size: 1.1rem; font-weight: 700; color: var(--brand-green-dark); }

/* <!-- MODIFIED: Removed old hit styles, new styles are below --> */

.topbar { display:flex; gap:1rem; align-items:center; flex-wrap:wrap; }
.topbar > * { flex: 1 1 auto; }

/* --- UPDATED: Styles for collapsible filter panel --- */
.filter-panel details { 
  border: 1px solid #e0e0d1; 
  border-radius: 8px; 
  margin-bottom: 1rem; 
  background-color: #fff;
}
.filter-panel summary { 
  font-weight: 600; 
  padding: 0.75rem 1rem; 
  cursor: pointer; 
  list-style: none; 
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  background-color: #f7f5e9;
  border-radius: 8px 8px 0 0;
}
.filter-panel details[open] summary { border-bottom: 1px solid #e0e0d1; }
.filter-panel summary::-webkit-details-marker { display: none; }
.filter-panel summary::after { content: '▾'; }
.filter-panel details[open] summary::after { content: '▴'; }
.filter-panel-body { padding: 1rem; }
.facet-search-container { margin-bottom: 0.5rem; }

/* --- NEW: Clear Filters button styles --- */
.clear-filters-container { margin-bottom: 1rem; }

/* Simplified, no gradients/shadows. Match filter panel look. */

/* Match the "Show more" pill look */
.clear-filters-button,
.ais-ClearRefinements-button {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0.55rem 1rem;
  border: 1px solid #cfd2e5; /* soft bluish like show more */
  border-radius: 10px;
  background: #fff;
  color: #1f2432; /* dark text similar to theme */
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(207,210,229,0.35) inset; /* subtle inner ring */
  background-image: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.clear-filters-button:hover,
.ais-ClearRefinements-button:hover {
  border-color: #b9bedb;
  box-shadow: 0 0 0 2px rgba(185,190,219,0.5) inset;
}

/* Disabled state - clearly muted, no fades */
.ais-ClearRefinements-button--disabled,
.clear-filters-button:disabled {
  background: #fff;
  border-color: #e6e8f2;
  color: #9aa0b2;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}

/* --- NEW: Homepage Action Buttons Styles --- */
.homepage-action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0 3rem 0;
    flex-wrap: wrap;
}

.action-button {
    display: inline-block;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 140px;
}

.facebook-button {
    background-color: #3b5998; /* Facebook blue */
    color: #fff;
}

.facebook-button:hover {
    background-color: #2d4373; /* Darker blue */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 89, 152, 0.3);
}

.email-button {
    background-color: var(--brand-orange);
    color: #fff;
}

.email-button:hover {
    background-color: #d66043;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 111, 81, 0.3);
}

/* --- NEW: Static Homepage Styles --- */
.static-homepage {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

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

.homepage-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-green-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.homepage-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.5;
}

.homepage-search-container {
    margin-bottom: 4rem;
}

.homepage-search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.homepage-search-input {
    height: 60px;
    border-radius: 30px;
    border: 2px solid #ccc;
    background-color: #fff;
    font-size: 1.1rem;
    padding: 0 4rem 0 3rem; /* Extra space on right for nested button */
    width: 100%;
    font-family: var(--font-family-brand);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.homepage-search-input:focus {
    border-color: var(--brand-green-light);
    box-shadow: 0 0 0 4px rgba(163, 177, 138, 0.3);
    outline: none;
}

.homepage-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #999;
    pointer-events: none;
}

/* --- Container for the Search Bar and Button --- */
.search-container {
    position: relative; /* This is KEY. It acts as the anchor for the button. */
    display: flex;     /* Aligns input and button in a row. */
    width: 100%;       /* Adjust as needed, e.g., max-width: 600px; */
    margin: 0 auto;    /* Example for centering */
}

/* --- Style the Search Input Field --- */
.search-input {
    width: 100%; /* Take up all available space in the container */
    padding: 12px 60px 12px 20px; /* Top/Bottom, Right, Left */
    /* Make space on the right for the button! 60px is a good start. */
    font-size: 16px;
    border: 1px solid #ccc;
    /* This creates the rounded left corners */
    border-radius: 25px; /* Adjust for desired roundness */
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    border-color: var(--brand-orange, #f08804); /* Use your brand color */
    box-shadow: 0 0 0 3px rgba(240, 136, 4, 0.2); /* Optional focus ring */
}

/* --- Amazon-style Search Button --- */
.search-button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 55px; /* Slightly wider to accommodate the icon nicely */
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    padding: 0;
    border: none;
    cursor: pointer;
    
    /* Using a salmon/orange color from your image */
    background-color: #e87762;
    
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    
    transition: background-color 0.2s ease;
}

.search-button:hover {
    background-color: #d96854; /* A slightly darker shade for hover */
}

/* --- Style for the SVG Icon inside the button --- */
.search-button svg {
    color: #fff; /* This will set the stroke color to white */
    /* Or you can be more specific: */
    /* stroke: #fff; */
}

.homepage-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0d1;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-green-dark);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #666;
    line-height: 1.4;
    margin: 0;
}


/* --- NEW: Homepage Products Section Styles --- */
.homepage-products-section {
    margin: 4rem 0;
    text-align: center;
}

.homepage-products-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-green-dark);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.homepage-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.homepage-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0d1;
    overflow: hidden;
    text-decoration: none;
    color: var(--brand-text);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.homepage-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--brand-green-light);
}

.homepage-product-card:hover .homepage-product-title {
    color: var(--brand-orange);
}

.homepage-product-image {
    width: 100%;
    padding-top: 100%;
    position: relative;
    background-color: #f7f7f7;
}

.homepage-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage-product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.homepage-product-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--brand-green-dark);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.homepage-product-description {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #666;
}

.homepage-product-meta {
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.25rem;
    column-gap: 2rem;
}

.homepage-product-price {
    font-weight: 700;
    color: var(--brand-green-dark);
    margin-left: auto;
    flex-shrink: 0;
}

.homepage-product-supplier {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.homepage-product-seen {
    flex-basis: 100%;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    color: #888;
}

/* --- NEW: Homepage Products Footer Styles --- */
.homepage-products-footer {
    margin-top: 2rem;
    text-align: center;
}

.view-more-button {
    display: inline-block;
    background-color: var(--brand-green-dark);
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.view-more-button:hover {
    background-color: #2a4430;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 90, 64, 0.3);
}


/* --- NEW: Style for the "sub-header" info box in the top bar --- */
.sub-header-topbar {
  flex: 1 1 100%; /* Allow it to wrap and take full width if needed */
  font-size: 0.95rem; 
  color: #444; 
  line-height: 1.5;
  background-color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid #e0e0d1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  min-width: 250px;
}
.sub-header-topbar a {
  color: var(--brand-orange);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sub-header-topbar a:hover {
    color: var(--brand-green-dark);
}

/* Tooltip Styles */
.tooltip-container {
  position: relative;
  display: inline-block;
  cursor: help;
  color: var(--brand-green-dark);
  margin-left: 4px;
  font-weight: bold;
}
.tooltip-text {
  visibility: hidden;
  width: 260px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 12px;
  position: absolute;
  z-index: 100;
  bottom: 140%; /* Position above */
  left: 50%;
  margin-left: -130px; /* Center */
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s;
  font-size: 0.9rem;
  font-weight: normal;
  line-height: 1.4;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
}
/* Tooltip Arrow */
.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}
.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  bottom: 125%; /* Small animation up */
}


/* --- Styling for the Tally button --- */
.tally-button {
  flex-grow: 0;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  padding: 0 1.5rem;
  height: 44px;
  line-height: 44px;
  border: none;
  border-radius: 22px; /* Pill shape */
  background: var(--brand-orange);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.tally-button:hover {
  background: #d66043;
  transform: translateY(-2px);
}

/* --- UPDATED: Algolia Widget Overrides --- */

/* Remove white box behind rounded search */
.ais-SearchBox-form {
    background: transparent !important; /* Override theme default */
}

/* --- NEW: Specific styles for TOPBAR search/sort --- */
.topbar .ais-SearchBox-input, .topbar .ais-SortBy-select {
    height: 44px;
    border-radius: 22px;
    border: 1px solid #ccc;
    background-color: #fff;
}

.topbar .ais-SearchBox-input:focus, .topbar .ais-SortBy-select:focus {
    border-color: var(--brand-green-light);
    box-shadow: 0 0 0 3px rgba(163, 177, 138, 0.3);
    outline: none;
}

.topbar .ais-SearchBox-input {
  padding-left: 2.5rem; /* Pushes text past the icon */
}

/* --- NEW: Specific styles for FILTER PANEL search --- */
.filter-panel .ais-SearchBox-input {
    height: 36px; /* Reduced height */
    border-radius: 18px; /* Adjusted radius */
    border: 1px solid #ccc;
    background-color: #fff;
    background-position: center left 0.75rem;
    padding-left: 2.25rem;
    display: flex; /* Vertically align content */
    align-items: center; /* Vertically align content */
}

.filter-panel .ais-SearchBox-input:focus {
    border-color: var(--brand-green-light);
    box-shadow: 0 0 0 3px rgba(163, 177, 138, 0.3);
    outline: none;
}

/* <!-- MODIFIED: Removed old ais-Hits-item styles --> */
.ais-CurrentRefinements-item, .ais-Pagination-item {
    border-radius: 15px;
}
.ais-Pagination-item--selected {
    background-color: var(--brand-green-dark);
    border-color: var(--brand-green-dark);
}
    /* --- NEW: Pagination Fix for Mobile --- */
.ais-Pagination-list {
  display: flex; /* Use flexbox for alignment */
  flex-wrap: wrap; /* Allow items to wrap to the next line */
  justify-content: center; /* Center the pagination links */
}
/* --- START: Added styles for rangeInput widget --- */
.ais-RangeInput-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ais-RangeInput-input {
  width: 100%;
  height: 36px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0 0.5rem;
}
.ais-RangeInput-submit {
  height: 36px;
  border: none;
  border-radius: 6px;
  background-color: var(--brand-green-dark);
  color: white;
  font-weight: 600;
  cursor: pointer;
  padding: 0 1rem;
}
.ais-RangeInput-submit:hover {
  background-color: #2a4430;
}
/* --- END: Added styles for rangeInput widget --- */


/* <!-- MODIFIED: START: NEW STYLES for Product Grid --> */
.ais-Hits-list {
  display: grid;
  /* Define responsive grid columns */
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.ais-Hits-item {
  /* Resetting InstantSearch default styles for the item wrapper */
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%; /* Make cards in a row equal height */
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e0e0d1;
  overflow: hidden; /* Ensures content respects border-radius */
  text-decoration: none;
  color: var(--brand-text);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border-color: var(--brand-green-light);
}

.product-card:hover .product-title {
  color: var(--brand-orange);
}

.product-image {
  width: 100%;
  padding-top: 100%; /* Creates a 1:1 aspect ratio square */
  position: relative;
  background-color: #f7f7f7; /* Placeholder color */
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crop image to fit, not stretch */
}

.product-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Allows this container to fill available space */
}

.product-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--brand-green-dark);
  margin-bottom: 0.5rem;
  /* Clamp title to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

.product-description {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  flex-grow: 1; /* Pushes meta-info to the bottom */
  /* Clamp description to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;  
  overflow: hidden;
  min-height: 4em; /* <<< ADD THIS LINE */
}

/* MODIFIED RULE */
.product-meta {
  font-size: 0.8rem;
  color: #666;
  border-top: 1px solid #eee;
  padding-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* Vertically align supplier and price */
  row-gap: 0.25rem;    /* Space between the two lines */
  column-gap: 3.0rem;   /* Space between supplier and price */
}

/* MODIFIED RULE */
.product-price {
  font-weight: 700;
  color: var(--brand-green-dark);
  margin-left: auto;  /* Magic property to push it to the right */
  flex-shrink: 0;      /* Prevent it from shrinking */
}

/* MODIFIED RULE for Supplier */
.product-supplier {
  /* This allows the supplier to grow but not exceed the available space */
  flex: 1 1 0;
  min-width: 0; /* Crucial for enabling truncation in a flex item */
  
  /* These properties handle the truncation with "..." */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* MODIFIED RULE for Date */
.product-seen {
  /* Force this element to a new line by taking 100% of the width */
  flex-basis: 100%;
  margin-bottom: 0.25rem; /* Adds space below the date */
}
/* <!-- MODIFIED: END: NEW STYLES for Product Grid --> */

/* --- Legal Disclaimer Footer --- */
.legal-disclaimer {
  background-color: #f8f9fa;
  border-top: 1px solid #e0e0d1;
  padding: 2rem 1.5rem;
  margin-top: 4rem;
  text-align: center;
}

.disclaimer-content {
  max-width: 800px;
  margin: 0 auto;
}

.disclaimer-content p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #666;
  margin-bottom: 1rem;
}

.disclaimer-content p:last-child {
  margin-bottom: 0;
}

/*
============================================
== NEW: MOBILE STYLES (860px and below)   ==
============================================
*/
@media (max-width: 860px) {
    .layout { 
        grid-template-columns: 1fr; 
    }

    .main-container {
        padding: 0 1rem 1rem;
    }

    #desktop-benefits {
        display: none;
    }
    #mobile-benefits {
        display: flex;
    }

    .topbar {
        flex-direction: column; 
        align-items: stretch;
        padding: 0 1rem; /* Add padding to the content inside main */
    }
    .topbar #searchbox, .topbar #sort-by, .topbar #stats, .topbar .tally-button, .topbar .sub-header-topbar {
         flex-basis: auto;
         width: 100%;
         text-align: center;
    }

    /* --- NEW FIX: Force main content blocks to screen width --- */
    .filter-panel, main {
        width: 100vw;
        margin-left: -1rem; /* Counteract parent padding */
    }

    /* Add padding back to the direct children of the constrained containers */
    .filter-panel > details, 
    #current-refinements, #hits, #pagination {
        padding-left: 1rem;
        padding-right: 1rem;
    }

        /* <!-- MODIFIED: Responsive grid for mobile --> */
    .ais-Hits-list {
      grid-template-columns: 1fr; /* 1 column on mobile */
      gap: 1rem;
    }

    /* ▼▼▼ ADD THIS NEW RULE ▼▼▼ */
    .product-card {
        width: 100%;
    }

    /* --- NEW: Mobile styles for static homepage --- */
    .homepage-content h1 {
        font-size: 2rem;
    }
    
    .homepage-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .homepage-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .homepage-search-input {
        height: 50px;
        font-size: 1rem;
        padding: 0 3rem 0 2.5rem; /* Keep room for nested button */
    }
    
    .homepage-search-icon {
        left: 0.75rem;
        font-size: 1rem;
    }

    /* Mobile sizing for homepage search button */
    .homepage-search-button {
        width: 38px;
        height: 38px;
        right: 0.4rem;
        font-size: 1rem;
    }
    
    /* --- NEW: Mobile styles for action buttons --- */
    .homepage-action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin: 1.5rem 0 2rem 0;
    }
    
    .action-button {
        width: 100%;
        max-width: 280px;
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* --- NEW: Mobile styles for homepage products section --- */
    .homepage-products-section {
        margin: 3rem 0;
    }
    
    .homepage-products-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .homepage-products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .homepage-product-info {
        padding: 1.25rem;
    }
    
    .homepage-product-title {
        font-size: 1rem;
    }
    
    .homepage-product-description {
        font-size: 0.85rem;
    }
    
    /* --- NEW: Mobile styles for view more button --- */
    .homepage-products-footer {
        margin-top: 1.5rem;
    }
    
    .view-more-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* --- Mobile styles for legal disclaimer --- */
    .legal-disclaimer {
        padding: 1.5rem 1rem;
        margin-top: 3rem;
    }
    
    .disclaimer-content p {
        font-size: 0.8rem;
    }
}

/*
============================================
== DESKTOP STYLES (861px and above)       ==
============================================
*/
@media (min-width: 861px) {
    #mobile-benefits {
      display: none;
    }
}
