/*
Theme Name: KDevelop
Author: KDevelop
Description: A custom WordPress theme for KDevelop.
Text Domain: kdevelop
Version: 1.0.0
*/

body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}


.main__container {
    padding: 0 10px;
}










.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}





























/* main menu (with mega-menu). */
.megaMenu {
    display: block;
    position: relative; 
}

.megaMenu__list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
}
.megaMenu__list > li {
    padding: 15px 20px;
}
.megaMenu__list > li:not(:has(.megaMenu__wrapper)) { /* If is a STANDARD menu item (no mega block): Anchor the dropdown to the LI. */
    position: relative;
}
.megaMenu__list > li:has(.megaMenu__wrapper) { /* If has a MEGA MENU block: Remove relative position so it spans the full nav. */
    position: static;
}
.megaMenu__list a {
    text-decoration: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.megaMenu ul.sub-menu { /* Standard sub-menu (with unlimited depth). */
    min-width: 220px;
    margin: 0;
    padding: 0;
    background: #333;
    position: absolute;
    z-index: 99;
    top: 100%;
    left: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s;
}
.megaMenu ul.sub-menu li {
    position: relative;
}
.megaMenu ul.sub-menu a {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: block;
}
.megaMenu ul.sub-menu li:last-child > a {
    border-bottom: none;
}

.megaMenu li:hover > ul.sub-menu { /* Level 1 hover trigger. */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.megaMenu ul.sub-menu ul.sub-menu { /* Level 2, 3, 4+ (unlimited depth flyouts to the right). */
    top: 0;
    left: 100%; 
}
.megaMenu ul.sub-menu ul.sub-menu.openLeft { /* Edge collision (opens right-to-left). */
    left: auto;
    right: 100%;
}

.megaMenu__wrapper { /* Full-width mega-menu block. */
    width: 100%; /* Spans exactly the width of `.megaMenu`. */
    padding: 30px;
    background: #333;
    position: absolute;
    z-index: 100;
    top: 100%;
    left: 0;
    box-sizing: border-box;
    box-shadow: 0 8px 25px rgba(0,0,0,.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all .3s;
}
.megaMenu li:hover > .megaMenu__wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


















/* Burger menu (nested slide-navigation). */
.burgerMenu {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
}
.burgerMenu,
.burgerMenu * {
    box-sizing: border-box;
}

.burgerMenu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.burgerMenu--ready > ul.menuPanel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    transition: transform 0.32s ease;
    will-change: transform;
    background: #fff;
    /* min-height: 100%; */
}

.burgerMenu--ready > ul.menuPanel.is-current {
    transform: translateX(0%);
    z-index: 30;
    pointer-events: auto;
}

.burgerMenu--ready > ul.menuPanel.is-right {
    transform: translateX(100%);
    z-index: 10;
    pointer-events: none;
}

.burgerMenu--ready > ul.menuPanel.is-left {
    transform: translateX(-100%);
    z-index: 20;
    pointer-events: none;
}

.burgerMenu li {
    position: relative;
}

.burgerMenu a {
    text-decoration: none;
}

.burgerMenu .menu-item > a,
.burgerMenu .menuItem--goBack > a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    box-sizing: border-box;
}

.burgerMenu .menuItem__label,
.burgerMenu .goBack__label {
    flex: 1;
}

.burgerMenu .menuItem__submenu__trigger {
    position: absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 56px;
    cursor: pointer;
    z-index: 5;
}

.burgerMenu .menuItem__submenu__trigger::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translate(-65%, -50%) rotate(45deg);
}

.burgerMenu .goBack {
    display: flex;
    align-items: center;
    gap: 12px;
}

.burgerMenu .goBack__icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.burgerMenu .goBack__icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 6px;
    width: 8px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}





















/* Toggles */
.toggles__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}








/* Slide popup */
html.noScroll {
    overflow: hidden;
}

.overlay {
    background-color: rgba(0, 0, 0, 0);
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: background-color .3s;
}
.overlay.show {
    z-index: 9990;
    background-color: rgba(0, 0, 0, .75);
}

.slidePopup {
    width: 100%;
    max-width: calc(50% - 40px);
    height: 100vh;
    padding: 20px;
    background-color: #fff;
    position: fixed;
    z-index: 9991;
    top: 0;
    right: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s;
}
body.admin-bar .slidePopup {
    height: calc(100vh - 72px);
    top: 32px;
}
.slidePopup.open {
    transform: translateX(0);
}


























/* WooCommerce. */


/* Product */
.product__containerInner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product__column {
    width: 100%;
    max-width: calc(50% - 5px);
}

.product__priceAlert__trigger,
.product__requestOffer__trigger,
.product__askFor__trigger,
.product__reviews__trigger {
    cursor: pointer;
}


/* Product Gallery */
.woocommerce-product-gallery {
    position: relative;
}

/* Product Badges */
.product__badges,
.product__item__badges {
    width: 100%;
    display: flex;
    gap: 10px;
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    pointer-events: none;
}

.product__badge {
    padding: 5px 10px;
    border-radius: 100vh;
    background-color: #000;
    color: #fff;
}

/* Product Actions */
.product__actions {
    display: flex;
    gap: 10px;
    position: absolute;
    z-index: 20;
    bottom: 0;
    left: 0;
}

.product__zoom,
.product__video {
    display: block;
    width: 40px;
    height: 40px;
    background-color: #000;
    border-radius: 100%;
    cursor: pointer;
    position: relative;
}
.product__zoom > span,
.product__video > span {
    color: #fff;
}





/* Product item. */
.product__item a,
.product__item__content {
    display: flex;
    flex-direction: column;
}
.product__item__image {
    position: relative;
}
















/* Enhanced search. */
.kdevelop__enhancedSearch__section + .kdevelop__enhancedSearch__section {
    border-top: 1px solid rgba(0,0,0,.75);
}
.kdevelop__enhancedSearch__section__title {
    padding: 5px 0;
    text-transform: uppercase;
}
.kdevelop__enhancedSearch__item {
    padding: 10px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color .3s;
}
.kdevelop__enhancedSearch__item:hover,
.kdevelop__enhancedSearch__item.isActive {
    background: rgba(0, 0, 0, .25);
}
.kdevelop__enhancedSearch__item__image {
    width: 48px;
    height: 48px;
    background-color: rgba(0,0,0,.05);
    border-radius: 4px;
    flex: 0 0 48px;
    overflow: hidden;
}
.kdevelop__enhancedSearch__item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.kdevelop__enhancedSearch__item__body {
    min-width: 0;
    flex: 1 1 auto;
}
.kdevelop__enhancedSearch__item__title {
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.kdevelop__enhancedSearch__item__meta {
    margin-top: 2px;
}
.kdevelop__enhancedSearch__item__excerpt {
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kdevelop__enhancedSearch__suggestion .kdevelop__enhancedSearch__item__meta {
    margin-left: 6px;
    display: inline;
}
.kdevelop__enhancedSearch__results mark {
    padding: 0 1px;
    background-color: var(--selected-color, #ffec99);
}


/* Compare */
.kdevelop__compare__message {
    display: block;
    margin-top: 4px;
    font-size: 0.85em;
}

.kdevelop__compare__share__row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.kdevelop__compare__share__input {
    flex: 1;
}

.kdevelop__compare__table__wrapper {
    overflow-x: auto;
    margin-top: 30px;
}
.kdevelop__compare__table {
    width: 100%;
    text-align: left;
    table-layout: fixed;
    min-width: 800px;
}
.kdevelop__compare__table__labelCell {
    padding: 15px;
    background: #f8f8f8;
}
.kdevelop__compare__table thead .kdevelop__compare__table__labelCell {
    width: 20%;
}
.kdevelop__compare__table tbody .kdevelop__compare__table__labelCell {
    border-top: 1px solid #ddd;
}
.kdevelop__compare__table__productCell {
    padding: 15px;
    vertical-align: top;
    text-align: center;
}
.kdevelop__compare__remove {
    margin-bottom: 10px;
    text-align: right;
}
.kdevelop__compare__table__productImage img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}
.kdevelop__compare__table__productTitle {
    font-size: 1.1em;
    margin: 0 0 10px;
}
.kdevelop__compare__table__dataCell {
    padding: 15px;
    border-top: 1px solid #ddd;
    text-align: center;
}
.kdevelop__compare__table__description {
    padding: 15px;
    border-top: 1px solid #ddd;
    font-size: 0.9em;
    vertical-align: top;
}
.kdevelop__compare__inStock {
    color: #008a20;
}
.kdevelop__compare__outOfStock {
    color: #d63638;
}

.kdevelop__priceAlert__notice,
.kdevelop__backInstockAlert__notice {
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    border-left: 4px solid #008a20;
    background: #f7f7f7;
}
.kdevelop__priceAlert__notice--error,
.kdevelop__backInstockAlert__notice--error {
    border-left-color: #d63638;
}
.kdevelop__priceAlert__notice p:first-child,
.kdevelop__backInstockAlert__notice p:first-child {
    margin-top: 0;
}



/*
* Anchor for the absolutely-positioned results dropdown.
   Scoped to opted-in Search blocks only — non-enhanced blocks are untouched. *
.wp-block-search.is-style-enhanced {
    position: relative;
}

* Loading indicator — animated bar under the input. No extra DOM needed. *
.wp-block-search.is-style-enhanced.isLoading .wp-block-search__input {
    background-image: linear-gradient(90deg, transparent, var(--main-color, #888), transparent);
    background-repeat: no-repeat;
    background-size: 40% 2px;
    background-position: -40% 100%;
    animation: kdevelop__enhancedSearch__bar 1.2s linear infinite;
}
@keyframes kdevelop__enhancedSearch__bar {
    to {
        background-position: 140% 100%;
    }
}

* Results dropdown *
.kdevelop__enhancedSearch__results {
    max-height: 70vh;
    margin: 0;
    padding: 0;
    border: 1px solid var(--main-color, #ccc);
    border-radius: 4px;
    background: var(--body-bg, #fff);
    text-align: left;
    position: absolute;
    top: calc(100% + 4px);
    z-index: 100;
    left: 0;
    right: 0;
    * box-shadow: 0 4px 16px rgba(0,0,0,.08); *
    overflow-y: auto;
}
.kdevelop__enhancedSearch__section {
    padding: 8px 0;
}
.kdevelop__enhancedSearch__section + .kdevelop__enhancedSearch__section {
    border-top: 1px solid rgba(0,0,0,.06);
}
.kdevelop__enhancedSearch__section__title {
    padding: 4px 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .65;
}
.kdevelop__enhancedSearch__item {
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color .12s;
}
.kdevelop__enhancedSearch__item:hover,
.kdevelop__enhancedSearch__item.isActive {
    background: rgba(0,0,0,.04);
}
.kdevelop__enhancedSearch__item__image {
    width: 48px;
    height: 48px;
    background-color: rgba(0,0,0,.05); * placeholder while img loads *
    border-radius: 4px;
    flex: 0 0 48px;
    overflow: hidden;
}
.kdevelop__enhancedSearch__item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.kdevelop__enhancedSearch__item__body {
    min-width: 0;
    flex: 1 1 auto;
}
.kdevelop__enhancedSearch__item__title {
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.kdevelop__enhancedSearch__item__meta {
    margin-top: 2px;
    font-size: 12px;
    opacity: .65;
}
.kdevelop__enhancedSearch__item__excerpt {
    margin-top: 4px;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: .8;
}
.kdevelop__enhancedSearch__suggestion .kdevelop__enhancedSearch__item__meta {
    margin-left: 6px;
    display: inline;
}
.kdevelop__enhancedSearch__results mark {
    padding: 0 1px;
    border-radius: 1px;
    background-color: var(--selected-color, #ffec99);
    color: inherit;
}
.kdevelop__enhancedSearch__empty {
    padding: 16px;
    font-size: 14px;
    text-align: center;
    opacity: .6;
}
*/

/* Product gallery thumbnail strip: hidden when a variation swap leaves only one slide. */
#product-gallery-thumbs.oneChild {
    display: none;
}