/* Variables */
:root {
  --cc-primary: #165441;
  --cc-secondary: #217256;
  --cc-light-bg: #f8fdfb;
  --cc-accent: #cddcd6;
  --cc-text: #333333;
  --cc-white: #ffffff;

  --bs-body-bg: var(--cc-light-bg);
  --bs-body-color: var(--cc-text);
  --bs-primary: var(--cc-primary);
  --bs-secondary: var(--cc-secondary);
  --bs-link-color: var(--cc-secondary);
  --bs-link-hover-color: #1c634e;
}

a {
	color: rgb(8 68 156);
}
/* Optional gradient background */
.cc-gradient-bg {
  background: linear-gradient(135deg, var(--cc-primary), var(--cc-secondary));
  color: var(--cc-white);
}

.accordion {
	--bs-accordion-bg: #b5c7b76e;
	--bs-accordion-active-bg: #207a2861;
	--bs-accordion-border-color: #000000;
	--bs-accordion-active-color: #333333;
	--bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem #0d5635;
}
.card {
	--bs-card-bg: #b5c7b76e !important;
}
/* Header Styling */
h1, h2, h3, h4, h5, h6 {
  color: var(--cc-primary) !important;
  font-family: 'Lora', serif;
}

/* Body text */
body {
  font-family: 'Open Sans', sans-serif;
}

/* Button style override */
.btn-primary {
  background-color: var(--cc-primary);
  border-color: var(--cc-primary);
}
.btn-primary:hover {
  background-color: #1c634e;
  border-color: #1c634e;
}


/* Base Styles */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
}

.site-main {
  flex: 1;
  min-height: calc(100vh - 150px);
  display: flex;
  flex-direction: column;
}

/* Main Layout */
.container {
  display: flex;
  flex-direction: column;
}

.welcome-section,
.sidebar-section {
    margin-bottom: 2rem;
}

/* News Widget Layout */
.news-widget-container {
  width: 100%;
  margin-bottom: 2rem;
}

.news-widget {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  width: 100%;
  gap: 1.5rem;
  position: relative;
  z-index: auto;
}

.news-widget h3 {
  flex: 1 1 100%;
  margin-bottom: 1rem;
  text-align: left;
}

.news-widget .card {
  flex: 1 1 100%;
  width: 100%;
  box-shadow: none;
  border: none;
  padding: 1.25rem;
}

.news-widget .card-title {
  font-size: 1.25rem;
  color: #2b3d2b;
  margin-bottom: 0.75rem;
}

.news-widget .card-text {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Read More Link */
.news-widget .btn-link {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  color: #0066cc;
  transition: color 0.2s ease;
}

.news-widget .btn-link:hover {
  color: #004999;
  text-decoration: underline;
}

/* Footer */
.woocommerce-page .site-footer, .site-footer {
    background-color: var(--secondary-color);
    color: #000;
    padding: 1rem 0;
    margin-top: 4rem;
    flex-shrink: 0;
}

.woocommerce-page .footer-content, .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem;
}

.woocommerce-page .footer-content, .footer-contact {
    text-align: center;
    line-height: 1.8;
}

.woocommerce-page .footer-content, .footer-contact p {
    margin: 0;
    line-height: 1.4;
    font-size: 0.9rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 1rem; /* Adjust gap for smaller screens */
    }

    .welcome-section,
    .sidebar-section {
        flex: 0 0 100%; /* Make all sections take full width */
        max-width: 100%; /* Override any width constraints */
    }

	  .news-widget-container {
		padding: 0 1rem;
	  }

	  .news-widget {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	  }

	  .news-widget h3 {
		text-align: center;
		margin-bottom: 1rem;
	  }

	  .news-widget .card {
		width: 100%;
		max-width: 100%;
		padding: 1rem;
	  }

	  .news-widget .card-title {
		font-size: 1.1rem;
	  }

	  .news-widget .btn-link {
		font-size: 0.95rem;
	  }
}

/* Profile Card */
.profile-card {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

/* Additional Custom Fixes */
.sidebar-section .card {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border-radius: 8px;
}

.welcome-section .card {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
}

.modal.fade .modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Full height for centering */
}

.modal-content {
    border-radius: 0.5rem; /* Optional: Smooth rounded corners */
}

.navbar.cc-gradient-bg {
  background: linear-gradient(135deg, var(--cc-primary), var(--cc-secondary));
  color: var(--cc-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--cc-accent);
}

table.table th {
  background-color: #207a2861;
  color: #000000;
  border: 1px solid #000000;
}

.post-type-archive-product h1.page-title {
    display: none;
}

/* Force product grid to be consistent */
ul.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Make all product tiles the same width and height */
ul.products li.product.ccpoa-product-item {
    width: 240px;
    min-height: 400px;
    max-height: 440px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s ease;
}

ul.products li.product.ccpoa-product-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Force uniform image container */
.ccpoa-product-image-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    overflow: hidden;
    flex-shrink: 0;
}

.ccpoa-product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Title and price styling */
.ccpoa-product-title {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    line-height: 1.3;
    flex-grow: 1;
}

.ccpoa-product-price {
    font-weight: bold;
    margin: 0.5rem 0;
}

/* Add to cart button */
ul.products li.product .button {
    background: #007cba;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

ul.products li.product .button:hover {
    background: #005fa3;
}
.woocommerce-page .navbar-brand img {
    max-height: 60px;
    width: auto;
}
.woocommerce div.product div.images img {
    width: 300px;
    height: auto;
    object-fit: contain;
}

.floating-cart-icon {
    color: var(--bs-dark);
    text-decoration: none;
    background-color: white;
    padding: 0.5rem;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.floating-cart-icon:hover {
    transform: scale(1.1);
}

.floating-cart-icon .cart-count {
    font-size: 0.75rem;
    padding: 0.25em 0.5em;
}
.dropdown-item {
  font-weight: bold;
}
.navbar-nav .btn {
  margin: 0.25rem;
  font-weight: bold;
  text-align: center;
}
/* Remove inner outline and unify with button style */
.form-control:focus {
    border-color: #198754 !important; /* Bootstrap green */
    box-shadow: none;
}

/* Optional: match input border radius to buttons */
.form-control {
    border-radius: 0.375rem; /* Same as btn border radius */
}

/* Dropdown result box */
#rlvlive {
    max-height: 300px;
    overflow-y: auto;
}

#rlvlive a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #212529;
}

#rlvlive a:hover {
    background-color: #f8f9fa;
}
.relevanssi-live-search-results-showing{
	width: 350px !important;
}