/*
 *** Theme Name: WGBotanicals 2025
 *** Theme URI: https://wgbotanicals.com/storefront-child-botanical/
 *** Description: BUFU
 *** Author: John Augustino Spounias
 *** Author URI: https://d3cline.net
 *** Template: storefront
 *** Version: 1.0
 *** Text Domain: storefront-child-botanical
 **/

/* Import Google Font "Alice" for the site title Poppins for the body */
@import url('https://fonts.googleapis.com/css2?family=Alice&family=Poppins&display=swap');

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

/*--------------------------------------------------------------
 *  *  * Color Variables & Base Settings
 *   *--------------------------------------------------------------*/
:root {
  --primary-color: #4CBB17;      /* A natural green accent */
  --secondary-color: #6A0DAD;    /* A lighter green for hovers & accents */
  --background-color: #f1ffe6;   /* Clean white background */
  --text-color: #333333;         /* Dark, easy-to-read text */
  --header-footer-bg: #f2f2f2;    /* Light neutral background for header/footer */

  --secondary-dark: #8d53b8;

}

/* Base Reset & Typography */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Alice', serif;
  color: var(--primary-color);
  margin-top: 0;
}

/*--------------------------------------------------------------
 *  *  * Header Styling (Sticky Header Added)
 *   *--------------------------------------------------------------*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 0px 0px;
  background-color: var(--primary-color); /* using variable */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--primary-color);
  margin-bottom: 0 !important;
}

/*-----------------------------------------
 *  *  * Header Inner: Branding, Navigation & New Buttons
 *   *------------------------------------------*/
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  display: flex;
  align-items: center;
  
}

.site-title{
font-size:1.5em !important;
}

.main-navigation {
margin:0;
}

.main-navigation ul li a {
  color: #fff;
  padding: 10px 15px;
  text-transform: uppercase;
  font-weight: bold;
}

.main-navigation ul {
  margin: 0;
  padding: 0;
}

/* New Header Buttons Styling */
.header-buttons .header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/*-----------------------------------------
 *  *  * Top Search Bar: Full-width & Responsive
 *   *------------------------------------------*/
.top-search {
  width: 100%;
  background-color: var(--primary-color);
  padding:  0 20px 0;
  box-sizing: border-box;
  display: flex;
}

.top-search .container {
  max-width: 100%;
  margin: 0;
  padding: 0 20px;
}

.top-search form {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 0;
margin-bottom: 0;
}

.top-search input[type="search"] {
  flex-grow: 1;
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
}

.top-search input[type="submit"] {
  padding: 12px 20px;
  border: none;
  border-radius: 0 4px 4px 0;
  background: #fff;
  color: var(--primary-color);
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

/*--------------------------------------------------------------
 *  *  * Buttons & Form Elements
 *   *--------------------------------------------------------------*/
.button,
button,
input[type="submit"] {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  background-color: var(--secondary-color);
}

/*--------------------------------------------------------------
 *  *  * Main Content & Layout
 *   *--------------------------------------------------------------*/
.site-content {
  //max-width: 1200px;
  margin: 0 auto;
  //padding: 20px;
}

.site-main{
max-width: 1200px;
padding: 20px;
margin: 0 auto;
}

/*--------------------------------------------------------------
 *  *  * Product & Post Cards
 *   *--------------------------------------------------------------*/
.products .product,
.blog-post {
  border: 1px solid #ddd;
  margin-bottom: 20px;
  padding: 15px;
  transition: box-shadow 0.3s ease;
  background-color: #fff;
}

.products .product:hover,
.blog-post:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

/*--------------------------------------------------------------
 *  *  * WooCommerce Specific Overrides
 *   *--------------------------------------------------------------*/
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: var(--text-color);
  border-bottom: 2px solid transparent;
  padding: 10px;
  transition: border-color 0.3s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
  color: var(--primary-color);
}

/*--------------------------------------------------------------
 *  *  * Footer Styling
 *   *--------------------------------------------------------------*/
.site-footer {
  background-color: var(--header-footer-bg);
  padding: 30px 20px;
  text-align: center;
  color: #fff !important;;
  border-top: 4px solid var(--primary-color);
}

.site-footer a {
  color: #fff !important;;
  transition: color 0.3s ease;
}

.site-footer a:hover,
.site-footer a:focus {
  text-decoration: underline;
}

/*--------------------------------------------------------------
 *  *  * Responsive Adjustments
 *   *--------------------------------------------------------------*/
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }
  .main-navigation ul {
    flex-direction: column;
    width: 100%;
  }
  .main-navigation ul li a {
    text-align: center;
    padding: 10px;
  }
  .top-search form {
    flex-direction: column;
  }
  .top-search input[type="search"],
  .top-search input[type="submit"] {
    width: 100%;
    border-radius: 4px;
    margin: 5px 0;
  }

.top-search {
display: none;
}

}

/*--------------------------------------------------------------
 *  *  * Dark Mode Styles
 *   *--------------------------------------------------------------*/
body.dark-mode {
  background-color: #222;
  color: #ddd;
}

body.dark-mode .site-header, 
body.dark-mode .top-search,
body.dark-mode .custom-marquee {
  background-color: #333;
}

body.dark-mode .site-header .site-title a,
body.dark-mode .site-header .main-navigation ul li a,
body.dark-mode .top-search input[type="submit"],
body.dark-mode .button,
body.dark-mode button,
body.dark-mode input[type="submit"] {
  color: #ddd;
}

body.dark-mode .main-navigation ul li a {
  /* Adjust nav link color in dark mode */
  color: #ddd;
}

body.dark-mode .site-footer {
  background-color: #333;
  color: #ddd;
}


/* Marquee Styles */
.custom-marquee {
  overflow: hidden;
  white-space: nowrap;
  background-color: var(--primary-color); /* Adjust as needed */
  color: #fff; /* Text color */
  padding: 10px;
  width: 100%; /* Ensure the container is full width */
}

.custom-marquee .marquee-content {
  display: inline-block;
  padding-left: 100%; /* Start off-screen */
  white-space: nowrap;
  animation: marquee 30s linear infinite; /* Adjust duration as needed */
}

.custom-marquee p {
  display: inline; /* Ensure paragraphs behave like inline elements */
  margin: 0;
}

/* Keyframes for the marquee animation */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/*--------------------------------------------------------------
 *  *  *  * Anchor Link Styling
 *   *   *--------------------------------------------------------------*/

/* Default anchor styling */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Header navigation links */
.site-header a,
.main-navigation ul li a {
  color: #fff;
}

.site-header a:hover,
.main-navigation ul li a:hover {
  color: #6A0DAD;
}

/* Footer links */
.site-footer a {
  color: var(--primary-color);
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Dark Mode Anchor Styling */
body.dark-mode a {
  color: #8abf8a; /* Lighter green for contrast */
}

body.dark-mode a:hover,
body.dark-mode a:focus {
  color: #b0d8b0; /* Even lighter green on hover */
}

/* Dark Mode Header and Footer Links */
body.dark-mode .site-footer a:not(.button):not(.components-button),
body.dark-mode .site-header a,
body.dark-mode .main-navigation ul li a {
  color: #ddd;
}

body.dark-mode .site-header a:hover,
body.dark-mode .main-navigation ul li a:hover {
  color: var(--primary-color) !important;
}

body.dark-mode .site-footer a {
  color: #8abf8a;
}

body.dark-mode .site-footer a:hover,
body.dark-mode .site-footer a:focus {
  color: #b0d8b0;
}

body.dark-mode input[type=search],textarea,.input-text {
    padding: .6180469716em;
    background-color: #555;
    color: #FFF;
    border: 1px solid var(--primary-color) ;
    -webkit-appearance: none;
    box-sizing: border-box;
    font-weight: 400;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.125)
}


body.dark-mode input[type=search]::placeholder, 
body.dark-mode textarea::placeholder, 
body.dark-mode .input-text::placeholder {
    color: #CCC; /* Lighter gray for visibility */
    opacity: 0.7; /* Slightly transparent */
    font-style: italic;
}

body.dark-mode .top-search input[type="submit"] {
    padding: 12px 20px;
    border: 1px solid var(--primary-color) ;
    background: #333;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}





.site-footer {
    background: #222;
    color: #fff;
    padding: 40px 20px;
}

.footer-widgets {
    display: flex;
    justify-content: space-around; /* Even spacing */
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start; /* Align items at the top */
}

.footer-column {
    flex: 1;
    min-width: 220px;
    //text-align: center; /* Centers content inside */
}

.footer-column h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #39ff14;
}

.footer-column h1 {
 color: var(--primary-color)
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin-inline-start: 0;
}

.footer-column ul li {
    margin-bottom: 5px;
}

.footer-column a {
    color: #fff;
    text-decoration: none;
}


.footer-column a:hover {
    color: var(--secondary-dark) !important;
}

/* Fix Icons */
.footer-column img {
    max-width: 32px; /* Ensure images are uniform */
    height: auto;
    display: inline-block;
    margin-right: 8px; /* Add spacing */
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-widgets {
        flex-direction: column;
        text-align: left;
    }
}

.menu_item{
text-decoration: none;
margin: 0 15px;
color: #fff !important;
}
.menu_item:hover{
color: var(--secondary-color) !important;
}
body.dark-mode .menu_item:hover{
color: var(--primary-color) !important;
}



body.dark-mode .products .product,
body.dark-mode .blog-post {
  border-radius: 10% !important;
  border: 1px solid var(--primary-color);
  margin-bottom: 20px;
  padding: 15px;
  transition: box-shadow 0.3s ease;
  background-color: #555;
}

.products .product,
.blog-post {
  border-radius: 10% !important;
  border: 1px solid var(--primary-color);
  margin-bottom: 20px;
  padding: 15px;
  transition: box-shadow 0.3s ease;
  background-color: #fff;
}




/*--------------------------------------------------------------
 *  *  *  * Buttons & Form Elements
 *   *   *--------------------------------------------------------------*/
.product_type_simple {
  background-color: var(--background-color) !important;
  color: var(--primary-color) !important;
  border: 3px solid var(--primary-color) !important;
  padding: 10px 20px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.product_type_simple:hover {
  background-color: var(--background-color) !important;
  color: var(--secondary-color) !important;
  border: 3px solid var(--secondary-color) !important;
}

body.dark-mode .product_type_simple {
  background-color: #333 !important;
}

body.dark-mode .product_type_simple:hover {
  background-color: #333 !important;
  color: var(--secondary-dark) !important;
  border: 3px solid var(--secondary-dark) !important;
}
