/*
Theme Name: SriJeevanam
Theme URI: https://srijeevanam.com/
Author: Kalp Intelligence
Author URI: https://kalp.ltd/
Description: Dynamic WooCommerce-focused theme for SriJeevanam.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sri
Tags: ecommerce, custom-logo, custom-menu, featured-images, full-width-template, theme-options
*/

:root {
  --sri-bg: #EADED0;
  --sri-primary: #9baa7f;
  --sri-accent: #d6b58f;
  --sri-text: #2b2b2b;
  --sri-white: #ffffff;
  --sri-border: rgba(43, 43, 43, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--sri-text);
  background-color: var(--sri-bg);
  font-family: "Jost", "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

p {
  margin-top: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.site-announcement {
  background: #cfaf84;
  color: var(--sri-text);
  text-align: center;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.site-header {
  background: var(--sri-primary);
  color: var(--sri-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 0.8rem 0;
}

.site-branding {
  min-width: 140px;
}

.site-branding .custom-logo {
  max-height: 45px;
  width: auto;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.96rem;
}

.main-navigation a {
  color: var(--sri-white);
  font-weight: 500;
  white-space: nowrap;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: nowrap;
}

.header-tools a {
  color: var(--sri-white);
  font-size: 0.95rem;
  opacity: 0.95;
}

.header-tools__link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.88rem;
  line-height: 1.1;
  text-align: center;
}

.header-tools__icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
}

.header-tools__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-newsletter-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  margin-left: auto;
}

.header-newsletter-form input[type="email"] {
  min-width: 170px;
  width: 170px;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.header-newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.header-newsletter-form button {
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.header-newsletter-form__message {
  margin: 0;
  font-size: 0.8rem;
  width: 100%;
}

.header-newsletter-form__message.is-success {
  color: #d8ffd8;
}

.header-newsletter-form__message.is-error {
  color: #ffe1e1;
}

.cart-count {
  font-weight: 600;
}

.header-secondary-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.06);
}

.header-secondary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.55rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
}

.header-secondary-nav a {
  color: var(--sri-white);
  font-size: 0.92rem;
}

.hero,
.section-block {
  padding: 3rem 0;
}

.hero {
  position: relative;
}

.hero-slider-block {
  padding: 0;
}

.hero--has-bg {
  min-height: 360px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero--minimal.hero--has-bg {
  min-height: 320px;
}

.sri-slider {
  position: relative;
  overflow: hidden;
}

.hero-slider-block .sri-slider {
  min-height: 520px;
}

.hero-slider-block .sri-slider__slide {
  height: 748px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #c5b8a8;
  display: none;
  position: relative;
}

.hero-slider-block .sri-slider__slide.is-active {
  display: flex;
  align-items: center;
}

.sri-slider__slide {
  display: none;
}

.sri-slider__slide.is-active {
  display: block;
}

.sri-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.sri-slider__arrow:hover {
  background: rgba(255, 255, 255, 0.4);
}

.sri-slider__arrow--prev {
  left: 2rem;
}

.sri-slider__arrow--next {
  right: 2rem;
}

.hero-slider-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Center horizontally */
  text-align: center; /* Center text */
  position: relative;
  z-index: 5;
  pointer-events: none;
}

.hero-slider-content .container {
  pointer-events: auto;
  max-width: 800px; /* Constrain text width for better readability */
}

/* Fix for overlapping arrows */
.sri-slider__arrow {
  z-index: 10;
}

.hero-caption {
  max-width: 600px;
  margin-inline: auto; /* Center the group itself */
  margin-bottom: 2rem;
}

.hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  max-width: 500px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.hero-category-nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.hero-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block; /* Only take content width */
  text-align: left; /* Keep text left-aligned relative to the border */
  border-left: 2px solid #fff;
  padding-left: 1.5rem;
}

.hero-category-list li {
  margin-bottom: 0.5rem;
}

.hero-category-list a {
  color: #fff;
  font-size: 1.1rem;
  text-transform: capitalize;
  transition: opacity 0.3s ease;
}

.hero-category-list a:hover {
  opacity: 0.7;
}

.animate-in {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero--has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(234, 222, 208, 0.55);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-caption h1 {
  margin: 0;
  color: #fff;
  font-size: inherit;
  text-shadow: inherit;
}

/* Hide WordPress page title & content on front page */
.home .site-main .entry-header,
.home .site-main .entry-title,
.home .site-main .entry-content,
.home .site-main .page-header,
.home .site-main > h1,
.home .site-main > h2,
.home .site-main > article > .entry-header,
.home .site-main > article > .entry-content,
.home .site-main .wp-block-post-title,
.page-template-default.home .entry-header,
.front-page .entry-title,
#primary > h1,
#primary .entry-title {
  display: none !important;
}

/* Hide all h1 elements in #primary that are NOT inside the hero section */
#primary > h1,
.home #primary h1:not(.hero-title),
.home .page h1:not(.hero-title),
.home .hentry > h1 {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

.section-title {
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
  margin: 0 0 1.5rem;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: transparent;
  border: 1px solid var(--sri-border);
  padding: 0.9rem;
  position: relative;
}

.product-card h3 {
  margin: 0.8rem 0 0.3rem;
  font-size: 1rem;
}

.product-card__price {
  font-weight: 600;
  background: var(--sri-primary);
  color: #fff;
  padding: 0.25rem 0.4rem;
  font-size: 0.85rem;
  display: inline-block;
}

.product-card__actions {
  margin-top: 0.6rem;
  position: relative;
  z-index: 1;
}

.product-card__add-to-cart,
.product-card__stock-contact {
  display: inline-block;
  width: 100%;
  text-align: center;
}

.button,
button,
input[type="submit"] {
  background: var(--sri-primary);
  color: var(--sri-white);
  border: 0;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.category-card {
  background: transparent;
  border: 0;
  padding: 0;
  position: relative;
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

.category-card__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--sri-border);
  background: var(--sri-bg);
}

.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-card__placeholder {
  width: 100%;
  height: 100%;
  background: #c5b8a8;
}

.category-card h3 {
  font-size: 1rem;
  color: var(--sri-text);
  margin: 0 0 0.8rem;
  font-weight: 500;
}

.category-card__btn {
  display: none;
}

.category-card__btn:hover {
  opacity: 0.85;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.impact-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--sri-border);
  padding: 1rem;
  text-align: center;
}

.impact-card h3 {
  margin: 0 0 0.2rem;
  font-size: 2rem;
  font-family: "Playfair Display", Georgia, serif;
}

.sri-home-banner {
  width: 100%;
  border: 1px solid var(--sri-border);
  height: auto;
  max-height: none;
  object-fit: contain;
}

.sri-home-banner-block {
  padding-top: 1rem;
}

.sri-logos-block {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.sri-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  align-items: center;
}

.sri-logo-bar__item {
  min-height: 56px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  opacity: 0.7;
}

.sri-logo-grid__item img {
  max-height: 44px;
  width: auto;
}

.sri-impact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.sri-impact-layout--no-image {
  grid-template-columns: 1fr;
}

.sri-impact-image img,
.sri-placeholder--impact {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.sri-feature-block {
  padding-top: 0.8rem;
}

.sri-feature-image,
.sri-placeholder--feature {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  border: 1px solid var(--sri-border);
}

.sri-home-bestsellers .product-card h3 {
  font-size: 0.85rem;
}

.sri-home-bestsellers .product-card {
  background: transparent;
  border: 0;
  padding: 0.55rem;
  text-align: center;
}

.sri-home-bestsellers .product-card a img {
  width: 100%;
}

.impact-card {
  background: transparent;
  border: 0;
  padding: 0.5rem;
  text-align: center;
}

.impact-card h3 {
  font-size: 2rem;
  margin: 0 0 0.2rem;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--sri-text);
}

.impact-card p {
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.2;
  color: #666;
}

.site-footer {
  background: var(--sri-primary);
  color: var(--sri-white);
  margin-top: 2.5rem;
}

.site-footer__widgets {
  padding: 2.4rem 0 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer .widget-title {
  margin-top: 0;
  font-family: "Playfair Display", Georgia, serif;
}

.site-info {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

.content-area {
  padding: 2rem 0;
}

.entry-title,
.page-title,
.woocommerce-products-header__title {
  font-family: "Playfair Display", Georgia, serif;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: transparent;
  padding: 0.9rem !important;
  border: 1px solid var(--sri-border);
  margin-bottom: 1rem;
}

.sri-stock-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.sri-stock-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sri-stock-modal[aria-hidden="true"] {
  display: none !important;
}

.sri-stock-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.sri-stock-modal__content {
  position: relative;
  z-index: 2;
  width: min(520px, calc(100% - 2rem));
  margin: 0;
  background: #fff;
  color: var(--sri-text);
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.sri-stock-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent !important;
  color: var(--sri-text);
  border: 0 !important;
  font-size: 1.3rem;
  padding: 0.15rem 0.4rem;
  line-height: 1;
}

.sri-stock-modal__field {
  margin-bottom: 0.7rem;
}

.sri-stock-modal__field label {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.sri-stock-modal__field input,
.sri-stock-modal__field textarea {
  width: 100%;
  border: 1px solid var(--sri-border);
  padding: 0.55rem;
}

.sri-stock-modal__feedback.is-success {
  color: #1f7a1f;
}

.sri-stock-modal__feedback.is-error {
  color: #b00020;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background-color: var(--sri-primary);
  color: var(--sri-white);
  border-radius: 0;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--sri-primary);
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  margin-bottom: 1.5rem;
}

.single-product .sri-single-product-shell {
  padding-top: 2.2rem;
}

.single-product .woocommerce-breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.88rem;
  opacity: 0.85;
}

.single-product div.product {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--sri-border);
  padding: 1.2rem;
}

.single-product div.product .woocommerce-product-gallery {
  border: 1px solid var(--sri-border);
  background: #fff;
  padding: 0.8rem;
}

.single-product div.product .woocommerce-product-gallery img {
  width: 100%;
  height: auto;
}

.single-product .entry-summary {
  background: #fff;
  border: 1px solid var(--sri-border);
  padding: 1.2rem;
}

.single-product .product_title {
  margin: 0 0 0.8rem;
  line-height: 1.2;
}

.single-product div.product p.price,
.single-product div.product span.price {
  font-size: 1.45rem;
  margin: 0.4rem 0 0.8rem;
  color: #3f2b1f;
}

.single-product .woocommerce-product-details__short-description {
  font-size: 0.98rem;
  margin-bottom: 1.1rem;
}

.single-product form.cart {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.single-product .quantity .qty {
  min-height: 40px;
  width: 72px;
  border: 1px solid var(--sri-border);
  background: #fff;
}

.single-product .single_add_to_cart_button.button {
  min-height: 42px;
  padding-inline: 1.2rem;
  font-weight: 600;
}

.single-product .product_meta {
  border-top: 1px solid var(--sri-border);
  padding-top: 0.8rem;
  font-size: 0.88rem;
}

.single-product .woocommerce-tabs {
  margin-top: 1.4rem;
}

.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 0.8rem;
  padding: 0;
  border-bottom: 0;
}

.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs::after {
  display: none;
}

.single-product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: 1px solid var(--sri-border);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 0;
}

.single-product .woocommerce-tabs ul.tabs li a {
  padding: 0.55rem 0.9rem;
  font-weight: 500;
}

.single-product .woocommerce-tabs ul.tabs li.active {
  background: var(--sri-primary);
  border-color: var(--sri-primary);
}

.single-product .woocommerce-tabs ul.tabs li.active a {
  color: #fff;
}

.single-product .woocommerce-Tabs-panel {
  background: #fff;
}

.single-product .related.products {
  margin-top: 1.4rem;
}

.single-product .related.products > h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: #6d2f20;
  font-weight: 600;
}

.single-product .product_title {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.woocommerce-Tabs-panel,
.woocommerce-Reviews,
.related.products {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--sri-border);
  padding: 1rem;
}

.blog .post,
.archive .post,
.search .post {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--sri-border);
  padding: 1rem;
  margin-bottom: 1rem;
}

.blog .entry-title,
.archive .entry-title,
.search .entry-title {
  font-size: 1.2rem;
  margin-top: 0;
}

.blog-card-date {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--sri-accent);
  color: var(--sri-white);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.45rem;
}

.sri-placeholder {
  background: #b2b2b2;
}

.sri-placeholder--blog {
  height: 220px;
}

.sri-article-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--sri-border);
  padding: 1.2rem;
}

.entry-meta {
  font-size: 0.9rem;
  opacity: 0.8;
}

.sri-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.sri-404 {
  text-align: center;
  padding: 4rem 0;
}

.sri-404__code {
  font-size: clamp(4rem, 14vw, 10rem);
  margin: 0.5rem 0;
  line-height: 1;
}

.sri-404__title {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.story-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.4rem;
  align-items: center;
  margin-bottom: 2rem;
}

.story-section--reverse {
  grid-template-columns: 1.2fr 1fr;
}

.story-section--reverse .story-media {
  order: 2;
}

.story-section--reverse .story-copy {
  order: 1;
}

.story-section--no-media {
  grid-template-columns: 1fr;
}

.story-media img {
  width: 100%;
  border: 1px solid var(--sri-border);
}

.story-media--stack {
  position: relative;
}

.story-media--stack::before,
.story-media--stack::after {
  content: "";
  position: absolute;
  border: 1px solid var(--sri-border);
  background: #b4b4b4;
  z-index: -1;
}

.story-media--stack::before {
  width: 46%;
  height: 46%;
  left: -12%;
  top: 10%;
}

.story-media--stack::after {
  width: 46%;
  height: 46%;
  right: -12%;
  bottom: 10%;
}

.sri-placeholder--story {
  height: 240px;
}

.story-copy {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--sri-border);
  padding: 1rem;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-numbers {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--sri-border);
  background: rgba(255, 255, 255, 0.5);
}

.page-numbers.current {
  background: var(--sri-primary);
  color: var(--sri-white);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .sri-impact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 860px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-navigation ul {
    gap: 0.8rem;
  }

  .header-newsletter-form input[type="email"] {
    min-width: 180px;
  }

  .header-tools {
    flex-wrap: wrap;
  }

  .header-newsletter-form {
    flex-wrap: wrap;
    margin-left: 0;
  }

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

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

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

  .story-section,
  .story-section--reverse {
    grid-template-columns: 1fr;
  }

  .story-section--reverse .story-media,
  .story-section--reverse .story-copy {
    order: initial;
  }
}

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

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

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .sri-post-nav {
    flex-direction: column;
  }

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

/* Dynamic Homepage Sections */
.sri-logos-section {
  padding: 4rem 0;
  background: #fff;
  border-bottom: 1px solid var(--sri-border);
}

.sri-logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin: 0 auto;
}

.sri-logo-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.sri-logo-bar__item:hover {
  opacity: 1;
}

.sri-logo-bar__item img {
  max-height: 45px;
  width: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.sri-logo-bar__item:hover img {
  filter: grayscale(0);
}

.sri-logo-bar__divider {
  width: 1px;
  height: 30px;
  background: rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.sri-video-section {
  padding: 6rem 0;
  background: #f8f6f4;
}

.video-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  border-radius: 8px;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.section-impact {
  padding: 5rem 0;
  background: #fff;
}

.sri-impact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.sri-impact-layout.sri-impact-layout--no-image {
  grid-template-columns: 1fr;
}

.sri-impact-image {
  display: contents;
}

.sri-impact-image img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: 4px;
}

.sri-impact-content {
  padding: 2rem;
}

.sri-impact-content .section-title {
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
}

@media (max-width: 900px) {
  .sri-impact-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .sri-logo-bar {
    gap: 1rem;
  }
  
  .sri-logo-bar__divider {
    display: none;
  }

  .single-product div.product {
    padding: 0.8rem;
  }

  .single-product .entry-summary {
    margin-top: 1rem;
    padding: 0.9rem;
  }
}

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

/* Hide stray WordPress page titles on front page */
.home .entry-title,
.home .entry-header {
  display: none !important;
}

/* Hide specific menu items with (no title) */
.main-navigation li a:empty,
#primary-menu > li:first-child a:first-child[href*="#6"] {
  display: none !important;
}
