/*
Theme Name:   Killer Burger Toolkit
Theme URI:    https://toolkit.killerburger.com
Description:  The Killer Burger Toolkit
Author:       Robert Conklin
Author URI:   https://robertconklin.co
Template:     killerburger-toolkit
Version:      1.0.0
*/

/* CSS Variables */
:root {
  --primary-red: #E22727; /* Primary red color */
  --light-grey: #D6D6D6;  /* Light grey color */
  --dark-grey: #1A1A1A;   /* Dark grey color */
  --font-primary: "tt-commons-pro", sans-serif; /* Primary font family */
}

/* Base styles */
body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevents horizontal scrolling */
  font-family: var(--font-primary);
  padding-bottom: 30px;
}

a:visited {
  color: var(--dark-grey);
}

/* Navigation styles */
.primary-nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 300px; /* Adjust width as needed */
  height: 100%;
  padding: 45px 30px;
  position: fixed;
  top: 0;
  left: 0;
  border-right: 1px solid var(--light-grey);
  background-color: #fff; /* Background color for primary navigation */
}

.nav-marketing.active, 
.nav-operations.active, 
.main-navigation ul li a.active {
    color: var(--primary-grey) !important;
}

.mobile-nav-bar-container {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; 
}


/* Mobile Navigation Dropdown */
.mobile-nav-dropdown {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  z-index: 999; 
  transition: top 0.3s ease-in-out; 
}

.hamburger-menu {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px; /* Width of hamburger */
  height: 24px; /* Total height of all spans */
  background-color: transparent;
}
.hamburger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--dark-grey);
  transition: all 0.3s ease-in-out;
}

.hamburger-menu.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.site-branding {
  margin-left: 60px;
}

.logo img {
  max-width: 120px;
  height: auto;
}

/* Button styles */
.header-button,
.woocommerce ul.products li.product .button {
  display: block;
  width: 100%;
  padding: 11px 28px;
  color: white !important;
  background-color: var(--primary-red);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 4px;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .woocommerce ul.products li.product {
    border-bottom: 1px solid var(--light-grey);
    padding-bottom: 50px!important;
  }
}



.woocommerce ul.products li.product .button{
  background-color: var(--light-grey);
}

/* Profile settings */
.profile-settings {
  display: flex;
  color: var(--dark-grey);
  text-decoration: none;
  gap: 1em;
}
.profile-settings--image{
  height:45px;
  width: 45px;
  background-color: var(--dark-grey);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  font-size: 23px;
}
.profile-settings--name{
  font-weight: bold;
  text-transform: uppercase;
}

/* Main navigation styling */
.main-navigation {
  padding-top: 40px;
}

.main-navigation ul {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.main-navigation ul a {
  color: var(--light-grey);
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Active link style */
.main-navigation .current-menu-item a {
  color: var(--dark-grey);
}

/* Utility navigation */
.utility-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
}

.utility-links a i {
  vertical-align: middle;
  margin-left: 5px;
  font-size: 20px;
  color: var(--light-grey);
}

.utility-links {
  display: flex;
  gap: 1.6em;
}
.utility-link-nonuser{
  justify-content: flex-end;
}
.utility-cart {
  position: relative;
  display: inline-block; 
  text-decoration: none; 
}

/* Utility navigation search styling */
.kb-search .search-form {
  position: relative;
  width: 100%;
}

.kb-search .search-field {
  padding: 10px 15px;
  border: 1px solid var(--light-grey);
  font-size: 16px;
  color: var(--dark-grey);
  background: #FFFFFF;
  border-radius: 2px;
  outline: none;
  transition: all 0.3s ease;
}

.kb-search .search-field::placeholder {
  color: var(--light-grey);
}

.kb-search .search-field:focus {
  border-color: var(--primary-red);
  background: #FFFFFF;
  color: var(--dark-grey);
}

.kb-search .search-submit {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
}

.kb-search .search-submit .fa-search {
  color: var(--light-grey);
  font-size: 20px;
}

.kb-search .search-submit:focus {
  outline: none;
}

/* Styles when the search input is focused */
.kb-search .search-field:focus + .search-submit .fa-search,
.kb-search .search-field:not(:placeholder-shown) + .search-submit .fa-search {
  display: none;
}

.kb-search .search-field:focus + .search-submit .fa-arrow-right,
.kb-search .search-field:not(:placeholder-shown) + .search-submit .fa-arrow-right {
  display: block;
  color: var(--dark-grey);
}

/* Initially, hide the arrow icon until the search field is focused */
.fa-arrow-right {
  display: none;
}



/* END UTILITY SEARCH */

.cart--content {
  position: absolute;
  top: -10px;
  right: -11px;
  background-color: var(--primary-red); 
  color: #fff; 
  font-size: 12px; 
  font-weight:bold;
  line-height: 18px;
  min-width: 18px;
  height: 22px; 
  border-radius: 50%; 
  text-align: center;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center; 
  box-shadow: 0 1px 3px rgba(0,0,0,0.3); 
}

.cart--content:empty {
  display: none; 
}


/* Search field styling */
.utility-search.kb-search{
  width: 450px;
}

.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{
 height: 53px;
 line-height: 1em;
 text-align: center;
 color: var(--light-grey);
 background: #f3f3f3;
 box-shadow: 0px 1px 4px #00000029;
 border-radius: 3px!important;
 font-family: var(--font-primary);
}

.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input:focus{
  border: 2px solid var(--light-grey);
 }

.mobile-search .search-field{
  width: 100%;
}

/* Content area */
.content-area {
  flex-grow: 1;
  margin-left: 200px; /* Adjust according to the primary navigation width */
  padding: 20px;
  background: #fff;
  overflow-y: auto; /* Enables scrolling if content overflows */
}

/* Responsive adjustments */
@media (max-width: 768px) {

  .site{
    margin-top: 170px;
    padding: 0px 20px
  }
  .primary-nav {
      display:none;
  }
  .mobile-nav-bar-container{
    display: block;
    width: 100%;
    background-color: white;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    left:0;
    background-color: white;
    z-index:9999;
  }
  .mobile-nav-bar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 90px;
    z-index: 999;
  }
  .mobile-nav-dropdown {
    height: calc(100vh - 90px);
    padding: 50px 20px 20px 20px;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .mobile-nav-dropdown-nonuser{
    justify-content: flex-end;
    padding: 50px 20px 80px 20px;
  }

  .main-navigation{
    padding-top: 120px;
  }

  .dgwt-wcas-search-wrapp{
    max-width: 100%!important;
  }

  /* Utility navigation */
  .utility-navigation{
    display:none;
  }
  .utility-links {
    display: flex;
    justify-content: space-between;
  }

  .content-area {
      margin-left: 0;
      padding-top: 20px;
  }

  .site-branding {
    margin-left: 0px;
  }
}

@media (min-width: 769px) {
  body {
      padding-left: 330px; /* Adjust according to the primary navigation width */
      padding-right: 40px;
  }
}


.category-cards-container {
  display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Adjust minmax values based on your design */
    gap: 20px;
}

.category-card {
  width: 100%;
  background: #fff;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.2s;
}

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

.category-card-link {
     text-decoration: none;
    color: inherit;
    display: block; /* Ensures the link fills the grid item */
}

.subcategory-title {
  font-size: 1.5rem;
  color: #333;
}

.subcategory-description {
  font-size: 1rem;
  color: #666;
}

.category-button{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.button.category-button {
  color: var(--dark-grey);
  text-decoration: none;
  border-radius: 2px;
}


/* Woo Commerce */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 20px;
  padding: 20px;
  list-style: none; /* Remove default list styles */
}

.woocommerce ul.products li.product {
  background: #fff;
  padding: 20px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%!important;
}

.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
  font-size: 1.5rem;
  color: #333;
}

.woocommerce ul.products li.product .price {
  font-size: 1rem;a
  color: #666;
}

.woocommerce ul.products li.product a.button {
  color: var(--dark-grey); /* Assuming you have this variable defined elsewhere in your CSS */
  text-decoration: none;
  border-radius: 2px;
  margin-top: auto; /* Pushes the button to the bottom of the card */
}

.woocommerce ul.products::before {
  content: none; /* removes the first empty box from the grid */
}

/* Download button styles */
.woocommerce ul.products li.product .product-download-button {
  background-color: var(--primary-red); /* Primary red color for download buttons */
  margin-top: 10px !important; /* Spacing from the add to cart button or other elements */
  display: block;
  width: 100%;
  padding: 11px 28px;
  color: white !important;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 4px;
  box-sizing: border-box;
  transition: background-color 0.3s ease; /* Smooth background color transition on hover */
}

.woocommerce ul.products li.product .product-download-button:hover {
  background-color: var(--light-grey); 
}

/* SHOP ARCHIVE PAGE STYLES HERE */
.category-dropdown {
  background-color: var(--primary-red); /* Primary red color for download buttons */
  margin-top: 10px !important; /* Spacing from the add to cart button or other elements */
  width: 49%;
  padding: 11px 28px;
  font-family: var(--font-primary);
  color: white !important;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 4px;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}




/* SINGLE Product Page STYLES UNDER HERE */

.product-single-tags{
  font-size: 12px;
}
span.woocommerce-Price-amount.amount{
  color: var(--dark-grey);
}
/* Product Button - with a form */

button.single_add_to_cart_button.button.alt {
  width: calc(100% - 57px) !important;
  background-color: var(--primary-red) !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
}

.input-text.qty.text {
  max-width: 51px;
  min-height: 36px;
}

/* Product Button - download */
a.button.product-download-button {
  background-color: var(--primary-red);
  margin-top: 10px !important;
  display: block;
  width: 100%;
  padding: 16px 28px;
  color: white !important;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 4px;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}

.toolkit-breadcrumb{
  margin: 35px 0px;
}

.toolkit-breadcrumb a{
  color: var(--light-grey);
  text-decoration: none;
}


/*Toolkit Landing Page - when not logged in */

.toolkit-landing{
  height: calc(100vh - 100px);
}
.toolkit-landing h1{
  text-align: center;
  width:100%;
}

.toolkit-landing--flex{
  display: flex;
  gap: 1em;
  width: 100%;
  height: 75%;
  align-items: center;
}

.toolkit-landing--card{
  flex:1;
}

.toolkit-landing--card a{
  text-decoration: none;
  font-weight: bold;
}

.toolkit-landing--card:nth-child(1){
  border-right: 1px solid var(--light-grey);
  padding-right: 40px;
}
.toolkit-landing--card:nth-child(2){
  padding-left: 40px;
}

@media (max-width: 768px) {
  .toolkit-landing h1{
    text-align: left;
  }
  .toolkit-landing--flex{
    flex-direction: column;
  }

  .toolkit-landing--card:nth-child(1){
    border-right: 0px solid var(--light-grey)e;
    border-bottom: 1px solid var(--light-grey);
    padding-right: 0px;
    padding-bottom: 30px;
  }
  .toolkit-landing--card:nth-child(2){
    padding-left: 0px;
  }
  
}




/*Login Styling */
form.woocommerce-form.woocommerce-form-login.login {
  max-width: 400px;
}

/*Gravity Form Styles */
.gform_button.button {
  min-width: 250px!important;
  height: 46px!important;
  padding: 11px 26px!important;
  font-size: 16px!important;
  font-weight: bold!important;
  font-family: 'tt-commons-pro'!important;
  text-transform: uppercase!important;
  letter-spacing: .02em!important;
  background-color: var(--primary-red)!important;
}

a.wp-block-button__link.wp-element-button {
  color: white;
  background-color: var(--primary-red);
  padding: 11px 28px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .02em;
}

a.wp-block-button__link.wp-element-button:hover{
  color: white;
}