/* === Sidebar collapsible menu === */
#left-sidebar {
  background-color: #f8f9fa;
  padding: 0;
}

#left-sidebar .widget_nav_menu ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#left-sidebar .widget_nav_menu li {
  border-bottom: 1px solid #e5e5e5;
}

#left-sidebar .widget_nav_menu a {
  display: block;
  padding: 10px 15px;
  color: #212529;
  text-decoration: none;
  font-weight: 500;
}

#left-sidebar .widget_nav_menu a:hover {
  background-color: #e9ecef;
  color: #000;
}

/* Submenus hidden by default */
#left-sidebar .widget_nav_menu ul.sub-menu {
  display: none;
  background: #fff;
}

#left-sidebar .widget_nav_menu li.open > ul.sub-menu {
  display: block;
}

/* Caret indicator */
#left-sidebar .widget_nav_menu li.menu-item-has-children > a::after {
  content: "▸";
  float: right;
  transition: transform 0.2s ease;
}

#left-sidebar .widget_nav_menu li.open > a::after {
  transform: rotate(90deg);
}
/* === Collapsible Sidebar Navigation === */

/* Sidebar links */
#left-sidebar a {
    display: block;
    padding: 10px 16px;
    color: #212529;
    text-decoration: none;
    font-weight: 500;

}

#left-sidebar a:hover {
    background-color: #e9ecef;
    color: #000;
}

/* Submenus hidden by default */
#left-sidebar li > ul {
    display: none;
    padding-left: 15px; /* indent child items */
    background: #f8f9fa; /* optional */
}

/* When parent li has class 'open', show submenu */
#left-sidebar li.open > ul {
    display: block;
}

/* Caret indicator for items with children */
#left-sidebar li:has(ul) > a::after {
    content: "▸";
    float: right;
    transition: transform 0.2s ease;
}

#left-sidebar li.open > a::after {
    transform: rotate(90deg);
}
/* Remove bullets and padding/margin from all sidebar menus */
#left-sidebar ul,
#left-sidebar li {
    list-style: none; /* removes bullets */
    margin: 0;
    padding: 0;
}

/* Add some indentation for submenu items */
#left-sidebar li > ul {
    padding-left: 15px; /* adjust as needed */
}

#left-sidebar .widget-title {
    padding: 10px 16px;      /* space around title */
    font-size: 1.1rem;       /* adjust size */
    font-weight: 600;
    margin: 0 0 8px 0;       /* bottom margin */
    border-bottom: 1px solid #ddd; /* optional underline */
    background-color: black;
    color: white;
}
/* Submenu links color */
#left-sidebar li.open > ul li a,
#left-sidebar li > ul li a {
    color: #111184;
    font-weight: 400; /* optional, normal weight for submenu */
}

/* Hover effect for submenu links */
#left-sidebar li > ul li a:hover {
    color: #0056b3; /* darker blue on hover */
    background-color: #e9ecef; /* subtle hover bg */
}
#content {
    background-color: #ffffff;
    padding: 20px; /* optional spacing */
}
/* Submenu background */
#left-sidebar li > ul {
    background-color: white; /* white background */
    padding-left: 15px;        /* optional indentation */
}

/* Submenu links hover effect */
#left-sidebar li > ul li a:hover {
    color: #0056b3;          /* darker blue on hover */
    background-color: #e9ecef; /* subtle hover bg */
}
/* Force parent/subhead (widget nav) to appear bold — covers classic & block nav widget markup */
#left-sidebar .widget_nav_menu ul.menu > li > a,
#left-sidebar .widget_nav_menu li.menu-item-has-children > a,
#left-sidebar .widget_nav_menu .menu > li > a,
#left-sidebar .wp-block-navigation__container > li > a,
#left-sidebar .wp-block-navigation li.has-child > a,
#left-sidebar ul.menu > li.menu-item-has-children > a {
  font-weight: 600 !important;
  color: #222 !important;
}

/* Stronger weight when open */
#left-sidebar li.open > a,
#left-sidebar .widget_nav_menu li.open > a,
#left-sidebar .wp-block-navigation__container li.open > a {
  font-weight: 700 !important;
  color: #000 !important;
}

/* Submenu items normal weight and blue */
#left-sidebar .widget_nav_menu ul.sub-menu li a,
#left-sidebar .widget_nav_menu ul.children li a,
#left-sidebar .wp-block-navigation__container ul li a {
  font-weight: 400 !important;
  color: #007bff !important;
}
/* === Sidebar Navigation Styling === */

/* Parent / subhead links (those that have children) */
#left-sidebar .widget_nav_menu li.menu-item-has-children > a,
#left-sidebar .wp-block-navigation li.has-child > a {
  font-weight: 700 !important;
  color: #222 !important;
}

/* Active / open parent highlight */
#left-sidebar li.open > a {
  color: #000 !important;
}

/* Submenu links (true children) */
#left-sidebar .widget_nav_menu ul.sub-menu li a,
#left-sidebar .widget_nav_menu ul.children li a,
#left-sidebar .wp-block-navigation__container ul li ul li a {
  font-weight: 400 !important;
  color: #007bff !important;
}

/* Optional: remove list-style and tighten spacing */
#left-sidebar ul {
  list-style: none;
  padding-left: 0;
}

#left-sidebar li {
  margin: 4px 0;
}
/* Make secondary always sit above primary visually and be pure white */
.secondary-nav-wrapper,
nav#secondaryNavbar,
nav.navbar.navbar-light.bg-light.border-top,
nav.navbar.navbar-light.bg-light {
  background-color: #ffffff !important;   /* pure white */
  border-top: none !important;
  margin-top: 0 !important;
  box-shadow: none !important;
  position: relative;      /* create stacking context */
  z-index: 1050 !important; /* higher than primary */
}

/* Ensure primary keeps its own visual layer beneath */
nav.navbar:not(#secondaryNavbar) {
  z-index: 1000;
}

/* Remove any margin gaps */
.navbar, .secondary-nav-wrapper { margin-bottom: 0 !important; padding-bottom: 0 !important; }
/* Sidebar: make menu items without children bold */
#left-sidebar ul li:not(:has(ul)) > a {
  font-weight: 600; /* semi-bold */
  color: #000;      /* ensure readable on light background */
}

/* Optional: keep expandable items normal weight */
#left-sidebar ul li:has(ul) > a {
  font-weight: 400;
}

.related-posts h3 {
  font-weight: 600;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
}

.related-posts .card-title a {
  color: #333;
  text-decoration: none;
}

.related-posts .card-title a:hover {
  color: #007bff;
}

.related-posts .card {
  transition: transform 0.2s ease-in-out;
}

.related-posts .card:hover {
  transform: translateY(-3px);
}

/* White Page Template */
.page-template-white-page {
  background: #fff;
  color: #222;
}

.page-template-white-page h1,
.page-template-white-page h2,
.page-template-white-page h3 {
  color: #111;
}

.page-template-white-page .entry-content {
  line-height: 1.8;
  font-size: 1.05rem;
}

.page-template-white-page a {
  color: #007bff;
  text-decoration: none;
}

.page-template-white-page a:hover {
  text-decoration: underline;
}

/* --- EDD Purchase Button Styling --- */
.edd-submit,
.edd-add-to-cart {
  background-color: #007bff !important; /* Bootstrap blue */
  color: #fff !important;
  border: none !important;
  padding: 10px 22px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  display: inline-block !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease, transform 0.2s ease !important;
}

.edd-submit:hover,
.edd-add-to-cart:hover {
  background-color: #0056b3 !important; /* darker blue */
  transform: translateY(-2px) !important;
}

/* --- Image Hover Zoom Effect --- */
figure.wp-block,
figure.wp-block-image {
  overflow: hidden;
  display: inline-block;
}

figure.wp-block img,
figure.wp-block-image img {
  transition: transform 0.4s ease;
}

figure.wp-block:hover img,
figure.wp-block-image:hover img {
  transform: scale(1.08);
}
/* New Codes for Product page */
/* =========== SHOP PAGE LAYOUT =========== */

#edd-custom-shop.edd-shop-container {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    display: flex;
    gap: 40px;
}

/* Sidebar */
.edd-shop-sidebar {
    width: 260px;
    flex-shrink: 0;
    padding-right: 20px;
    border-right: 1px solid #e8e8e8;
}

.edd-shop-sidebar h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.edd-filter-block {
    margin-bottom: 32px;
}

.edd-filter-block h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* =========== PRODUCT GRID =========== */

.edd-shop-products {
    width: 100%;
}

.edd-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

/* Product Card */
.edd-product-item {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.edd-product-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

/* Thumbnail */
.edd-product-thumb img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 6px;
}

/* Title */
.edd-product-title {
    font-size: 18px;
    font-weight: 600;
    margin: 15px 0 8px 0;
}

/* PRODUCT ROW */
.edd-product-row {
	display: flex;
	gap: 30px;
}
.edd-product-info{
	flex-direction:column;
}
/* Hide AJAX Add-to-Cart Button */
.edd-add-to-cart.edd-add-to-cart-js {
    display: none !important;
}

/* Hide No-JS Add-to-Cart Button */
.edd-add-to-cart.edd-no-js {
    display: none !important;
}

/* Hide Checkout Link if it's showing */
.edd_go_to_checkout {
    display: none !important;
}

}

/* -------------------------------
   PRODUCT ROW LAYOUT FIXES
--------------------------------*/

/* Make each product row use flex and align neatly */
.edd-product-row {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 25px 0;
}

/* Left thumbnail */
.edd-row-thumb img {
    width: 200px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Middle info section */
.edd-product-info {
    flex: 1;
}

/* Title styling */
.edd-row-title a {
    font-size: 28px;
    font-weight: 700;
    color: #05a463;
    text-decoration: none;
}

.edd-row-title a:hover {
    color: #03874f;
}

/* Description */
.edd-row-desc {
    font-size: 16px;
    color: #444;
    margin: 10px 0 20px;
}

/* Price + Buttons container */
.edd-row-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Price styling */
.edd-row-price {
    font-size: 20px;
    font-weight: 600;
    color: #222;
}
}
/* Category Title */
h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Category List Container */
.edd-custom-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Individual Category Item */
.edd-custom-category-list li {
    margin-bottom: 10px;
}

/* Category Links */
.edd-custom-category-list li a {
    display: block;
    padding: 10px 15px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Hover Effect */
.edd-custom-category-list li a:hover {
    background: #e8e8e8;
    border-color: #c5c5c5;
}

/* Active Category — when selected via query ?category=slug */
.edd-custom-category-list li a.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}
/* Filter Block Heading */
.edd-filter-block-title,
h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 6px;
}

/* Filter Container */
.edd-filter-block {
    margin-bottom: 20px;
}

/* Filter Label */
.edd-filter-block label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

/* Search Input (EDD Search Shortcode) */
.edd-filter-block input[type="text"],
.edd-filter-block input[type="search"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

/* Search Button */
.edd-filter-block input[type="submit"] {
    margin-top: 10px;
    padding: 10px 14px;
    width: 100%;
    border: none;
    background: #0073aa;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.edd-filter-block input[type="submit"]:hover {
    background: #005f8a;
}

