/*
 Theme Name:   Shopkeeper Child
 Theme URI:    https://yourdomain.com
 Description: Child theme for Shopkeeper
 Author:       Your Name
 Author URI:   https://yourdomain.com
 Template:     shopkeeper
 Version:      1.0.2
 Text Domain:  shopkeeper-child
*/

/*************************************************************************/
/*HEADER Custom Stying*/
/*************************************************************************/

/*top bar rotating messages style*/


.site-top-message {
  transition: opacity 0.5s ease;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-Transform: uppercase; 
  letter-spacing: 0.6px;
  text-align: center;
}

.fade-out {
  opacity: 0;
}

/*End of the top bar rotator messages*/

/*Mega Menu Styles*/

@media (min-width: 1024px) {
    
    /* Position submenu right below the blue top bar */
    .mega-menu .sub-menu.level-0 {
        position: fixed !important;
        top: 35px !important; /* Height of blue top bar - adjust if needed */
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        display: grid !important;
        gap: 20px 25px;
        padding: 25px 40px;
        background: #fff;
        box-shadow: 0 8px 30px rgba(0,0,0,0.08);
        z-index: 9999;
        box-sizing: border-box;
        border-top: 1px solid #f0f0f0;
    }
}

/* Extra Large Desktop - 6 columns */
@media (min-width: 1920px) {
    .mega-menu .sub-menu.level-0 {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .mega-menu .sub-menu.level-0 > li > a {
        font-size: 13px !important;
    }
    
    .mega-menu .sub-menu.level-1 > li > a {
        font-size: 13px !important;
    }
}

/* Very Large Desktop - 5 columns */
@media (min-width: 1600px) and (max-width: 1919px) {
    .mega-menu .sub-menu.level-0 {
        grid-template-columns: repeat(5, 1fr);
        gap: 22px 28px;
        padding: 28px 45px;
    }
}

/* Large Desktop - 4 columns */
@media (min-width: 1400px) and (max-width: 1599px) {
    .mega-menu .sub-menu.level-0 {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px 30px;
        padding: 30px 45px;
    }
}

/* Medium Desktop - 3 columns */
@media (min-width: 1024px) and (max-width: 1399px) {
    .mega-menu .sub-menu.level-0 {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px 30px;
        padding: 30px 40px;
    }
}

/* Tablet - 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .mega-menu .sub-menu.level-0 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 25px;
        padding: 25px 30px;
    }
}

/* All desktop sizes - Common styles */
@media (min-width: 1024px) {
    
    /* Each parent category section */
    .mega-menu .sub-menu.level-0 > li {
        display: flex;
        flex-direction: column;
        min-width: 180px;
    }
    
    /* Parent category heading with underline */
    .mega-menu .sub-menu.level-0 > li > a {
        font-weight: 700;
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: 0.8px;
        margin-bottom: 8px;
        padding-bottom: 5px;
        display: block;
        color: #1a1a1a;
        white-space: normal;
        border-bottom: 2px solid #00c3ff;
        transition: all 0.3s ease;
    }
    
    /* Parent category hover */
    .mega-menu .sub-menu.level-0 > li > a:hover {
        color: #00c3ff;
    }
    
    /* Sub-menu */
    .mega-menu .sub-menu.level-1 {
        display: flex !important;
        flex-direction: column !important;
        gap: 0;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    /* Individual sub-items */
    .mega-menu .sub-menu.level-1 > li {
        width: 100%;
        line-height: 1;
    }
    
    /* Sub-item links */
    .mega-menu .sub-menu.level-1 > li > a {
        display: block;
        padding: 2px 0;
        text-decoration: none;
        color: #666;
        font-size: 13px;
        line-height: 1.1;
        transition: all 0.2s ease;
        position: relative;
    }
    
    /* Sub-item hover with slide effect */
    .mega-menu .sub-menu.level-1 > li > a:hover {
        padding-left: 12px;
        color: #1a1a1a;
    }
    
    /* Simple dot indicator with spacing */
    .mega-menu .sub-menu.level-1 > li > a:hover::before {
        content: "•";
        position: absolute;
        left: 2px;
        color: #00c3ff;
        font-size: 12px;
    }
}

/* End of Mega Menu Styles */


/********************************/
/***Regular Menu Affects***/
/*******************************/


@media(min-width: 1024px){

    .menu-item:not(.mega-menu) .sub-menu.level-0 > li > a {
        display: block;
        padding: 2px 0; 
        text-decoration: none;
        color: #666; 
        font-size: 13px; 
        line-height: 1.1; 
        transition: all 0.2s ease;
        position: relative;
    }

    .menu-item:not(.mega-menu) .sub-menu.level-0 > li > a:hover {
        padding-left: 12px;
        color: #1a1a1a; 
    }
    .menu-item:not(.mega-menu) .sub-menu.level-0 > li > a:hover::before {
        content: "•";
        position: absolute;
        left: 2px;
        color: #00c3ff;
        font-size: 12px;
    }
}

/**********************************************/
/*END OF Header Style*/
/**********************************************/


/**********************************************/
/*Product Page Styles*/
/**********************************************/

/*Discounded price Only*/
.woocommerce span.price ins {
    color: #00c3ff;
    font-weight: bold;
}

/**********************************************/
/*End Of Product Page Styles*/
/**********************************************/