/*
 Theme Name:     Divi Child Theme
 Theme URI:      http://popweb.co.za
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/
 
@import url("../Divi/style.css");

 


 /* =Theme customization starts here
------------------------------------------------------- */

span.xoo-wsc-sc-count, span.xoo-wsch-items-count {
	right: -10px !important;
	top: -10px !important;
}

/*Get rid of the deep footer with widgests*/
#main-footer {
	display:none !important;
}
/* Hide image titles on hover */
img {
pointer-events:none !important;
}

/*Hide an item with this class*/
.hide-me {
  display: none !important;
}

/* change bgd colour on menu module section to 70% black on scroll */
.et_pb_sticky {
		background-color: rgba(0, 0, 0, 0.7) !important;
}

/* Reduce weight on menu */
#top-menu li a {
	font-weight: 300 !important;
}

/* Style Back to Top button*/
.et_pb_scroll_top:before {
  content: "\32"; /* Change this to your desired icon */
  font-family: 'ETmodules';
  font-size: 30px;
}

.et_pb_scroll_top {
  background-color: #444444 !important;
  color: #fff;
  border-radius: 50% !important;
  width: 40px;
  height: 40px;
  text-align: center;
}


/* Add a blur effect behind the fixed navigation menu */
.et-fixed-header {
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

/* Make mobile menu sticky */
@media (max-width: 980px) {
  #main-header { position: fixed !important; 
	}
}

/* Default (before scroll) — transparent bar */
@media (max-width: 980px) {
    #main-header {
        background-color: transparent!important;
        transition: background-color 0.9s ease;
    }
}



/* On scroll — 70% black desktop*/ 
@media (max-width: 980px) {
    #main-header.et-fixed-header {
        background-color: rgba(0, 0, 0, 0.7) !important;
    }
}

/* On scroll - 70% black for mobile */
body.dtb_mobile #main-header.et-fixed-header {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

/* Hide logo initially */
#main-header #logo {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Show logo when header becomes fixed (on scroll) */
#main-header.et-fixed-header #logo {
    opacity: 1;
}

/* Increase menu logo size */
@media only screen and (max-width: 980px) {
#logo {
    height: 51% !important;
    max-height: 100% !important;
    width: auto;
    max-width: 100% !important;
    }
}

/* Increase line-height between mobile menu items */
#main-header .et_mobile_menu li a {
    line-height: 0.3em !important;
}

/* Drop the line and dropdown container 20px down to line up with the menu bar */
.et_pb_menu_1_tb_header.et_pb_menu .et_mobile_menu {
	margin-top: 20px!important;
}

/* The next 3 bits of CSS enlarges the font size in the cart product table */
.wc-block-components-product-metadata .wc-block-components-product-metadata__description>p, .wc-block-components-product-metadata .wc-block-components-product-metadata__variation-data {
  font-size: 14px !important;
	display: none;
}

.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name, table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
	font-size: 16px !important;
}

.wc-block-components-formatted-money-amount {
	font-size: 14px !important;
}

/* Make Woo Products 1 column per product in mobile */
@media only screen and ( max-width: 480px ) {
.et_pb_shop ul.products.columns-2 li.product, .et_pb_shop ul.products.columns-3 li.product, .et_pb_shop ul.products.columns-4 li.product, .et_pb_shop ul.products.columns-5 li.product, .et_pb_shop ul.products.columns-6 li.product, .woocommerce-page ul.products li.product:nth-child(n) {
    width: 100%!important;
    margin-right: 0!important;
}
}

/* Styling for Next and Previous buttons on single product pages */
.custom-product-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.custom-product-nav a {
    display: inline-block;
    padding: 12px 18px;
    border: 1px solid #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.custom-product-nav a:hover {
    opacity: 0.8;
}

/* Hide magnifying glass icon */
.et_overlay,
.woocommerce-product-gallery__trigger {
    display: none !important;
}

/* Make product images not clickable */
.woocommerce div.product div.images a {
    pointer-events: none;
    cursor: default;
}

/* EMPTY BASKET STYLING FOR BLOCK EDITOR */
/* Centre H1 heading on empty basket page */
.main_title {
	text-align: center !important;
	
	
/* Buttons*/
.empty-cart-buttons .wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link {
		background-color: transparent !important;
		border: 1px solid !important;
		border-color: #000000 !important;
		font-size: 1.4em !important;

}

.woocommerce ul.products li.product .button {
		text-transform: uppercase !important;
		font-size: 1rem !important;
	}
	
/* REduce padding in mobile menu on theme builder menu module */
.et_pb_menu .et_mobile_nav_menu .et_mobile_menu li a {
    line-height: 1em !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

