/* ==========================================================================
   Flyout Mobile Menu
   ========================================================================== */

/* Overlay */
.rezeta-flyout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
}

.rezeta-flyout-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Flyout Panel */
.rezeta-flyout {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #fff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
}

.rezeta-flyout--right {
    right: 0;
    transform: translateX(100%);
}

.rezeta-flyout--left {
    left: 0;
    transform: translateX(-100%);
}

.rezeta-flyout.active {
    transform: translateX(0);
}

/* Close Button */
.rezeta-flyout-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.rezeta-flyout--left .rezeta-flyout-close {
    right: auto;
    left: 15px;
}

.rezeta-flyout-close-icon {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
    margin: 8px;
}

.rezeta-flyout-close-icon::before,
.rezeta-flyout-close-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #333;
    transition: background 0.3s ease;
}

.rezeta-flyout-close-icon::before {
    transform: rotate(45deg);
}

.rezeta-flyout-close-icon::after {
    transform: rotate(-45deg);
}

.rezeta-flyout-close:hover .rezeta-flyout-close-icon::before,
.rezeta-flyout-close:hover .rezeta-flyout-close-icon::after {
    background: #e74c3c;
}

/* Flyout Logo */
.rezeta-flyout-logo {
    --flyout-logo-height: 35px;
    padding: 20px 20px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.rezeta-flyout-logo .rezeta-logo img {
    max-width: 150px;
    height: var(--flyout-logo-height);
    width: auto;
    object-fit: contain;
}

/* Flyout Navigation */
.rezeta-flyout-nav {
    flex: 1;
    padding: 15px 0;
}

.rezeta-flyout-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rezeta-flyout-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.rezeta-flyout-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.rezeta-flyout-menu a:hover {
    background: rgba(0, 0, 0, 0.03);
    padding-left: 25px;
    color: #e74c3c;
}

/* Sub-menu */
.rezeta-flyout-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.02);
}

.rezeta-flyout-menu .sub-menu a {
    padding-left: 35px;
    font-size: 13px;
    font-weight: 400;
}

.rezeta-flyout-menu .sub-menu a:hover {
    padding-left: 40px;
}

/* Flyout Social */
.rezeta-flyout-social {
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

.rezeta-flyout-social .rezeta-social-icons {
    justify-content: center;
    gap: 10px;
}

.rezeta-flyout-social .rezeta-social-icon {
    width: 32px;
    height: 32px;
}

/* Body lock when flyout is open */
body.flyout-open {
    overflow: hidden;
}