/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* Vertical navigation container */
.custom-categories-navbar {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%; /* Ensure it fits well in a sidebar */
}

/* Category items */
.custom-categories-navbar .category-item:not(.expanded) {
    position: relative;
    margin: 0; /* Remove default margin */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between the text and button */
	border-bottom: 1px solid #dff5e2
}

/* Main category links */
.custom-categories-navbar .category-item a {
    text-decoration: none;
    padding: 10px 15px;
    color: #333;
    flex-grow: 1; /* Ensure the link takes the full width */
}

/* Chevron icon */
.custom-categories-navbar .chevron {
    margin-left: 10px; /* Add some spacing between the link and the chevron */
    display: inline-block; /* Ensure it aligns properly with the text */
    transition: transform 0.3s ease; /* Smooth transition for the chevron */
}

/* Active state for main categories */
.custom-categories-navbar .category-item.active > a,
.custom-categories-navbar .category-item.expanded > a {
    background-color: #0db284;
    color: white;
  	width: 100%;
	font-weight: bold;
}

.custom-categories-navbar .category-item > a {
	display: flex;
  	justify-content: space-between;
  	align-items: center;
}

.custom-categories-navbar .category-item.expanded > a span {
	width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #56c9a9;
}

.custom-categories-navbar .category-item.expanded {
	display: block;
}

/* Child categories dropdown */
.custom-categories-navbar .child-categories-dropdown {
    display: none; /* Hidden by default */
    margin-left: 20px; /* Indent child categories */
}

/* Show child categories if parent is expanded */
.custom-categories-navbar .category-item.expanded .child-categories-dropdown {
    display: block;
	list-style-type: none;
	margin-left: 0
}

/* Child category item styles */
.custom-categories-navbar .child-category-item a {
    padding: 10px 15px;
    display: block;
    color: #333;
	padding-left: 30px;
}

.custom-categories-navbar .child-category-item:first-of-type {
	border-top: none;
}

.custom-categories-navbar .child-category-item {
	border-bottom: 1px solid #dff5e2
}

/* Active state for child categories */
.custom-categories-navbar .child-category-item.active > a {
    background-color: #f3fbf9; /* Highlight color for active child category */
    color: #343434; /* Text color for active child category */
	font-weight: bold
}

.woocommerce nav.woocommerce-pagination ul li a:focus, .woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li span.current {
	background-color: #0db284 !important;
  color: white;
	font-weight: bold
}

.attribute-container {
display: inline-flex;
  align-content: center;
  align-items: center;
  width: 25%;
	padding-right: 15px;
	margin-bottom: 20px;
}

.attribute-container img {
	margin-right: 15px;
	width: 70px;
}

.related.products {
	border-top: 1px solid rgba(0,0,0,.1);
  padding-top: 30px;
  margin-top: 40px;
}

.woocommerce-product-gallery .flex-viewport,
.woocommerce div.product div.images .flex-control-thumbs li {
	border: 1px solid rgba(0,0,0,.1);
}

.woocommerce div.product div.images .flex-control-thumbs li {
	margin-right: 5px;
}

.woocommerce-product-gallery .flex-viewport {
	margin-bottom: 5px;
}

.product-attributes {
	margin-top: 50px;
}

#tab-description ul {
	margin-left: 1em;
}

.wc-tabs-wrapper h2 {
	font-weight: normal;
	font-size: 24px
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: none !important;
}

@media (max-width: 1024px) {
	.attribute-container {
		width: 50%
	}
}

@media (max-width: 768px) {
	.attribute-container {
		width: 100%
	}
}