/* =============================================
   KM Burger Menu - Trigger Button
   ============================================= */

.km-burger__trigger {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.km-burger__trigger-label {
    font-family: Lato, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

/* =============================================
   Overlay
   ============================================= */

.km-burger__overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.km-burger__overlay--active {
    display: block;
    opacity: 1;
}

/* =============================================
   Sidebar
   ============================================= */

.km-burger__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    color: #333;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.km-burger__sidebar--open {
    transform: translateX(0);
}

.km-burger__sidebar a {
    color: #333;
}

/* =============================================
   Header (logo + close) — dark gradient
   ============================================= */

.km-burger__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-image: linear-gradient(90deg, #494949 0%, #555555 100%);
    flex-shrink: 0;
}

.km-burger__logo {
    max-width: 220px;
}

.km-burger__logo img {
    max-height: 52px;
    width: auto;
    display: block;
}

.km-burger__logo a {
    display: block;
    line-height: 0;
}

.km-burger__site-name {
    font-family: Lato, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.km-burger__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: background-color 0.15s;
    flex-shrink: 0;
}

.km-burger__close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* =============================================
   Search
   ============================================= */

#kmsidebarsearch {
    padding: 16px 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    background-color: #F5F5F5;
}

#kmsidebarsearch .dgwt-wcas-search-wrapp {
    max-width: 100% !important;
    display: block !important;
}

#kmsidebarsearch .dgwt-wcas-search-wrapp .dgwt-wcas-search-form {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
}

#kmsidebarsearch .dgwt-wcas-sf-wrapp {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #fff !important;
    padding: 4px !important;
}

#kmsidebarsearch .dgwt-wcas-sf-wrapp input[type="search"] {
    font-size: 15px !important;
    height: 40px !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #333 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

#kmsidebarsearch .dgwt-wcas-sf-wrapp input[type="search"]::placeholder {
    color: #aaa !important;
}

#kmsidebarsearch .dgwt-wcas-sf-wrapp input[type="search"]:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

#kmsidebarsearch .dgwt-wcas-sf-wrapp:focus-within {
    border-color: #BE9E67 !important;
    box-shadow: 0 0 0 2px rgba(190, 158, 103, 0.15) !important;
}

#kmsidebarsearch .dgwt-wcas-search-submit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    align-self: center !important;
}

#kmsidebarsearch .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit::before {
    display: none !important;
    content: none !important;
}

#kmsidebarsearch .dgwt-wcas-search-submit svg,
#kmsidebarsearch .dgwt-wcas-ico-magnifier {
    width: 20px !important;
    height: 20px !important;
    fill: #BE9E67 !important;
    color: #BE9E67 !important;
}

#kmsidebarsearch .dgwt-wcas-search-submit svg path,
#kmsidebarsearch .dgwt-wcas-ico-magnifier path {
    fill: #BE9E67 !important;
}

#kmsidebarsearch .dgwt-wcas-preloader {
    right: 44px !important;
}

#kmsidebarsearch .dgwt-wcas-preloader svg {
    fill: #BE9E67 !important;
    color: #BE9E67 !important;
}

#kmsidebarsearch .dgwt-wcas-preloader path {
    fill: #BE9E67 !important;
}

#kmsidebarsearch .dgwt-wcas-preloader circle {
    stroke: #BE9E67 !important;
}

/* Hide FiboSearch icon-layout elements */
#kmsidebarsearch .dgwt-wcas-search-icon-arrow,
#kmsidebarsearch .dgwt-wcas-search-icon,
#kmsidebarsearch .dgwt-wcas-icon-preloader {
    display: none !important;
}

#kmsidebarsearch .dgwt-wcas-results-wrapp {
    z-index: 100000 !important;
}

#kmsidebarsearch .dgwt-wcas-search-wrapp.dgwt-wcas-active {
    z-index: 100000 !important;
}

/* =============================================
   Categories Navigation
   ============================================= */

.km-burger__nav {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.km-burger__cat-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.km-burger__cat-item {
    border-bottom: none;
}

/* Category row (link + toggle) */

.km-burger__cat-row {
    display: flex;
    align-items: center;
}

.km-burger__cat-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    text-decoration: none !important;
    color: #333 !important;
    font-family: 'Arca Majora 3', Lato, sans-serif;
    font-size: 15px;
    font-weight: 600;
    min-width: 0;
    transition: color 0.15s;
}

.km-burger__cat-link:hover {
    color: #BE9E67 !important;
}

.km-burger__cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.km-burger__cat-icon img,
.km-burger__cat-icon svg {
    width: 24px;
    height: 24px;
    object-fit: contain;
    color: inherit;
}

.km-burger__cat-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Toggle caret button */

.km-burger__cat-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 48px;
    padding: 0;
    border: none;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s;
}

.km-burger__cat-toggle:hover {
    color: #666;
}

.km-burger__cat-toggle svg {
    transition: transform 0.25s ease;
}

.km-burger__cat-item--open>.km-burger__cat-row .km-burger__cat-toggle svg {
    transform: rotate(180deg);
}

/* Subcategories */

.km-burger__subcat-list {
    list-style: none;
    margin: 0;
    padding: 0 0 8px 0;
    display: none;
    background: #f7f7f7;
}

.km-burger__cat-item--open>.km-burger__subcat-list {
    display: block;
}

.km-burger__subcat-link {
    display: block;
    padding: 10px 20px 10px 56px;
    font-family: Lato, sans-serif;
    font-size: 14px;
    color: #666 !important;
    text-decoration: none !important;
    transition: color 0.15s;
}

.km-burger__subcat-link:hover {
    color: #BE9E67 !important;
}

.km-burger__subcat-link--all {
    font-weight: 700;
    color: #BE9E67 !important;
    font-size: 13px;
    margin-top: 4px;
}


/* =============================================
   Phone label
   ============================================= */

.km-burger__phone-label {
    font-size: 12px;
    color: #999;
    display: block;
}

.km-burger__phone-number {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

/* =============================================
   Footer Links
   ============================================= */

.km-burger__footer {
    flex-shrink: 0;
    border-top: 1px solid #eee;
    padding: 12px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.km-burger__footer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-family: Lato, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #555 !important;
    text-decoration: none !important;
    transition: color 0.15s;
}

.km-burger__footer-link:hover {
    color: #333 !important;
}

.km-burger__footer-link svg {
    flex-shrink: 0;
    color: #aaa;
}

.km-burger__footer-link:hover svg {
    color: #333;
}

.km-burger__footer-link--rdv {
    font-weight: 700;
    color: #BE9E67 !important;
}

.km-burger__footer-link--rdv svg {
    color: #BE9E67;
}

/* =============================================
   Scrollbar (nav)
   ============================================= */

.km-burger__nav::-webkit-scrollbar {
    width: 3px;
}

.km-burger__nav::-webkit-scrollbar-track {
    background: transparent;
}

.km-burger__nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

/* =============================================
   Body lock when sidebar open
   ============================================= */

body.km-burger--locked {
    overflow: hidden !important;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 400px) {
    .km-burger__trigger-label {
        display: none;
    }
}