/*
 Theme Name: SpiritualShop
 Theme URI: https://shop.cosmicraah.com/spiritualshop-theme
 Author: Grok (xAI)
 Author URI: https://x.ai
 Description: A custom WordPress theme for a spiritual product catalog with affiliate links, styled to match CosmicRaah’s aesthetic.
 Version: 1.4
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: spiritualshop
 Tags: spiritual, catalog, affiliate, responsive, clean, minimal
*/

:root {
  --primary-green: #003300;
  --dark-navy: #000033;
  --accent-yellow: #ffcc00;
  --neutral-light: #eef5f2;
  --golden-light: #fffacd;
}

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background: linear-gradient(to bottom right, var(--primary-green), var(--dark-navy));
  color: #f8f8f8;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  width: 100%;
  box-sizing: border-box;
}

/* === Header === */
.site-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 10px;
  background: linear-gradient(to right, var(--primary-green), var(--dark-navy));
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 20px;
  width: 100%;
  flex-wrap: wrap;
}

.header-logo img {
  max-height: 90px;
}

.header-hero {
  flex: 1;
  text-align: left;
}

.header-hero h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.5rem;
  color: #fffacd;;
  margin: 0;
}

.header-hero p {
  font-size: 1rem;
  color: #eef5f2;
  margin: 5px 0 0;
}

/* Menu Styles */
.shop-main-menu,
.shop-mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Desktop Menu */
@media (min-width: 769px) {
  .shop-desktop-only {
    display: block;
  }

  .shop-mobile-only {
    display: none;
  }

  .shop-main-menu {
    display: flex;
    gap: 24px;
    background-color: #fffacd;
  }

  .shop-main-menu li a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    transition: color 0.3s ease;
  }

  .shop-main-menu li a:hover {
    color: #000033;
  }
}

/* Mobile Menu */
@media (max-width: 768px) {
  .shop-desktop-only {
    display: none;
  }

  .shop-mobile-only {
    display: block;
  }

  #shop-mobile-menu-toggle {
    font-size: 26px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    margin-bottom: 10px;
  }

  .shop-mobile-menu {
    display: none;
    background-color: #222;
    padding: 15px;
    width: 100%;
  }

  .shop-mobile-menu.open {
    display: block;
  }

  .shop-mobile-nav li {
    border-bottom: 1px solid #444;
  }

  .shop-mobile-nav a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
  }

  .shop-mobile-nav a:hover {
    color: var(--accent-yellow);
  }

  .header-hero h1 {
    font-size: 1.2rem;
  }

  .header-hero p {
    font-size: 0.9rem;
  }
}

/* Fallback Menu */
.shop-fallback-menu {
  background-color: #111;
  padding: 15px;
  border-top: 2px solid var(--accent-yellow);
}

.shop-fallback-label {
  color: var(--accent-yellow);
  font-weight: bold;
  margin-bottom: 10px;
}

.shop-fallback-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.shop-fallback-nav-list li {
  border-bottom: 1px solid #333;
}

.shop-fallback-nav-list a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 10px;
}

.shop-fallback-nav-list a:hover {
  color: var(--accent-yellow);
}

/* Search Form */
.shop-search {
  margin: 20px 0;
  text-align: center;
}

.shop-search h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--accent-yellow);
  margin-bottom: 15px;
}

.search-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.search-field {
  padding: 12px 20px;
  font-size: 1.1rem;
  line-height: 1.5;
  background: var(--neutral-light);
  border: 2px solid var(--accent-yellow);
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.3);
}

.search-field:focus {
  outline: none;
  border-color: var(--golden-light);
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.5);
}

.search-submit {
  padding: 12px 30px;
  background: linear-gradient(to right, var(--accent-yellow), var(--golden-light));
  color: var(--dark-navy);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
}

.search-submit:hover {
  background: linear-gradient(to right, var(--golden-light), var(--accent-yellow));
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.6);
}

/* === Footer === */
.site-footer {
  background: linear-gradient(to right, #001a33, #002b2b);
  color: var(--accent-yellow);
  font-family: 'Cinzel', serif;
  padding: 40px 20px 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 30px 20px;
  align-items: start;
}

.footer-section {
  min-width: 0;
  word-wrap: break-word;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #f8f8f8 !important;
}


.footer-nav h4
{
    color: #f8f8f8 !important;
}


.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: var(--accent-yellow);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: #fff8dc;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 204, 0, 0.2);
  padding-top: 10px;
  margin-top: 20px;
}

.footer-logo {
  text-align: center;
}

.footer-logo img {
  max-width: 160px;
  margin: 0 auto 10px;
  display: block;
}

.footer-tagline p {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--accent-yellow);
  margin: 4px 0;
  letter-spacing: 1px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.contact-item img {
  width: 24px;
  height: auto;
}

.contact-item span {
  margin-left: 10px;
}

.contact-item a {
  color: var(--accent-yellow);
  text-decoration: none;
  font-weight: bold;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* === Product Catalog === */
.shop-hero {
  background: linear-gradient(to bottom right, var(--primary-green), var(--dark-navy));
  color: var(--accent-yellow);
  padding: 20px;
}

.shop-hero-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto;
}

.shop-hero-image {
  flex: 0 0 300px;
  width: 300px;
}

.shop-hero-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.shop-hero-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.shop-hero h1,
.shop-hero h2 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.8rem;
  background: linear-gradient(to right, var(--accent-yellow), var(--golden-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 10px;
}

.shop-hero p {
  font-size: 1rem;
  color: #f3f3e9;
  margin-bottom: 15px;
}

.shop-product-grid,
.shop-root-categories,
.shop-subcategories {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

.shop-product-card,
.shop-category-card {
  background: radial-gradient(circle at top, #002b2b, var(--dark-navy));
  padding: 15px;
  border: 1px solid var(--accent-yellow);
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.3);
  transition: transform 0.3s ease;
  flex: 1 1 calc(20% - 20px) !important; /* Enforce 5 per row */
}

.shop-product-card:hover,
.shop-category-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
}

.shop-product-card img,
.shop-category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.shop-product-card h3,
.shop-category-card h3,
.shop-category-title,
.shop-product-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5em;
  margin: 10px 0;
  color: #ffcc00;;
}

.shop-product-card p {
  font-size: 1rem;
  color: #f3f3e9;
  margin-bottom: 15px;
}

.shop-single-product img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.shop-affiliate-link {
  display: inline-block;
  padding: 10px 20px;
background: linear-gradient(to right, var(--accent-yellow), var(--golden-light));
  color: var(--dark-navy);
  text-decoration: none;
  border-radius: 8px;
  margin-top: 10px;
  font-size: 1em;
  font-weight: bold;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
  transition: all 0.3s ease;
}

.shop-affiliate-link:hover {
  background: linear-gradient(to right, var(--golden-light), var(--accent-yellow));
  color: var(--dark-navy);
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.6);
}

.shop-category-affiliate-link {
  display: block;
  text-align: center;
  margin-bottom: 20px;
}

/* Product Single Page */
.shop-single-product {
  padding: 20px;
}

.product-top {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.product-image {
  flex: 1;
  max-width: 50%;
}

.product-specs {
  flex: 1;
  text-align: left;
  background: radial-gradient(circle at top, #002b2b, var(--dark-navy));
  padding: 15px;
  border: 1px solid var(--accent-yellow);
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.3);
  color: #f3f3e9;
}

.product-specs h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.5em;
  margin: 0 0 10px;
  color: var(--accent-yellow);
}

.product-specs ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}

.product-specs li {
  margin-bottom: 8px;
  font-size: 1rem;
}

.product-content {
  color: #f3f3e9;
}

/* Responsive Adjustments */
@media (min-width: 481px) {
  .shop-hero-content {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .shop-hero-image {
    flex: 0 0 200px;
    width: 200px;
  }

  .shop-hero-image img {
    height: 200px;
  }

  .shop-hero-text {
    text-align: left;
    flex: 1;
    min-width: 200px;
  }

  .shop-hero h1,
  .shop-hero h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .product-top {
    flex-direction: column;
  }

  .product-image {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .shop-product-card,
  .shop-category-card {
    flex: 1 1 100% !important; /* 1 per row */
  }

  .shop-hero-content {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 15px;
  }

  .shop-hero-image {
    flex: 0 0 150px;
    width: 150px;
  }

  .shop-hero-image img {
    height: 150px;
  }

  .shop-hero-text {
    text-align: left;
    flex: 1;
    min-width: 150px;
  }

  .shop-hero h1,
  .shop-hero h2 {
    font-size: 1.4rem;
  }

  .shop-hero p {
    font-size: 0.9rem;
  }
}



.entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}
.entry-content h1 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
}
.entry-content h2 {
    font-size: 1.8em;
    font-weight: bold;
    margin: 20px 0 10px;
}
.entry-content p {
    margin-bottom: 15px;
    font-size: 1em;
}
.entry-content a {
    color: #0073aa;
    text-decoration: underline;
}
.entry-content a:hover {
    color: #005177;
}
.entry-content strong {
    font-weight: bold;
}

.header-hero h1, 
.shop-hero h1, 
.shop-product-card h3, 
.entry-content h1, 
.entry-content h2, 
.entry-content a, 
.footer-bottom p, 
.footer-bottom a {
    color: gold !important;
}


/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0 20px;
  clear: both;
  font-family: 'Cinzel', serif;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px;
  margin: 0 8px;
  background: linear-gradient(to right, var(--accent-yellow), var(--golden-light));
  color: var(--dark-navy);
  text-decoration: none;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
}

.pagination a:hover {
  background: linear-gradient(to right, var(--golden-light), var(--accent-yellow));
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.6);
  transform: scale(1.1);
}

.pagination .current {
  background: var(--dark-navy);
  color: var(--accent-yellow);
  border: 2px solid var(--accent-yellow);
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

/* Single Product Grid */
.shop-product-grid.single-product .shop-product-card {
  max-width: 300px; /* Prevent stretching for single product */
  margin: 0 auto; /* Center single product */
}

/* Hero Banner for Front Page */
.front-hero {
  background: linear-gradient(to right, rgba(75, 0, 130, 0.9), rgba(0, 0, 51, 0.9)); /* Semi-transparent gradient */
  padding: 60px 0; /* Increased padding for better spacing */
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px; /* Slightly taller for prominence */
  border-bottom: 1px solid var(--accent-yellow); /* Subtle border */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Depth effect */
  transition: padding 0.3s ease; /* Smooth responsive transitions */
}

.front-hero-container {
  max-width: 960px; /* Within 864-1024px range */
  margin: 0 auto;
  padding: 0 30px; /* Increased padding for better spacing */
  width: 100%;
  box-sizing: border-box;
}

.intro-paragraph {
  font-size: 1.3rem; /* Slightly larger for emphasis */
  color: #fff;
  line-height: 1.8; /* Improved readability */
  margin: 0 auto;
  max-width: 800px; /* Constrain text width for readability */
  font-family: 'Lato', sans-serif;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5); /* Enhance legibility */
}

@media (min-width: 769px) {
  .front-hero {
    padding: 80px 0; /* More padding on larger screens */
  }

  .front-hero-container {
    padding: 0 40px; /* Increased padding for desktop */
  }
}

@media (max-width: 768px) {
  .intro-paragraph {
    display: none; /* Hide content on mobile */
  }

  .front-hero {
    padding: 40px 0; /* Reduced padding for mobile */
    min-height: 200px; /* Slightly shorter for mobile */
  }

  .front-hero-container {
    padding: 0 20px; /* Adjust padding for mobile */
  }
}

@media (max-width: 480px) {
  .front-hero {
    padding: 30px 0; /* Further reduced padding for small screens */
    min-height: 150px; /* Compact height */
  }
}



