/* ==========================================================
   IMPASTO CUSTOM DESIGN STYLES
   ========================================================== */

/* ----------------------------------------------------------
   Instagram Animated Footer Title
   ---------------------------------------------------------- */
.ig-animated-title {
    display: inline-block;
    cursor: pointer;
    perspective: 1000px;
    margin-bottom: 30px;
    direction: rtl;
}

.ig-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 3.5rem;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1);
    direction: rtl;
    flex-wrap: wrap;
}

.ig-title-text {
    position: relative;
    color: #D9A05B;
    text-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    font-family: 'Cairo', sans-serif !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    word-spacing: 20px !important;
    line-height: 1.6 !important;
}

.ig-title-icon {
    font-size: 3rem;
    color: #C55827;
    animation: floatIg 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(197, 88, 39, 0.4));
    margin-right: 15px;
}

.ig-animated-title:hover .ig-title-container {
    transform: translateY(-10px) scale(1.05);
}

.ig-title-subtitle {
    font-size: 1.2rem;
    color: rgba(239, 229, 210, 0.6);
    margin-top: 10px;
    letter-spacing: 2px !important;
    transition: color 0.3s;
    font-family: 'Cairo', sans-serif !important;
    direction: ltr;
}

.ig-animated-title:hover .ig-title-subtitle {
    color: #C55827;
}

@keyframes floatIg {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@media (max-width: 768px) {
    .ig-title-container {
        font-size: 2.2rem;
    }

    .ig-title-icon {
        font-size: 2rem;
    }
}

/* ----------------------------------------------------------
   Luxurious Flatpickr Custom Theme (Reservation Date & Time Widgets)
   ---------------------------------------------------------- */
.flatpickr-calendar {
    background: #1A241C !important;
    border: 1px solid #C55827 !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8) !important;
    font-family: 'Cairo', sans-serif !important;
    direction: rtl;
    border-radius: 8px !important;
    padding: 10px !important;
    z-index: 9999999 !important;
    width: 8.8cm !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:focus,
.flatpickr-day.selected:hover {
    background: #C55827 !important;
    border-color: #C55827 !important;
    color: #fff !important;
    font-weight: bold;
    border-radius: 6px !important;
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
    border-bottom-color: #1A241C !important;
}

.flatpickr-calendar.arrowBottom:before,
.flatpickr-calendar.arrowBottom:after {
    border-top-color: #1A241C !important;
}

.flatpickr-months .flatpickr-month {
    background: #1A241C !important;
    color: #C55827 !important;
    fill: #C55827 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: #D9A05B !important;
    font-weight: bold;
    background: #1A241C !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
    background-color: #1A241C !important;
    color: #D9A05B !important;
}

.flatpickr-days,
.dayContainer,
.flatpickr-innerContainer,
.flatpickr-weekdays {
    background: #1A241C !important;
}

.flatpickr-weekday {
    color: #C55827 !important;
    font-weight: bold !important;
}

.flatpickr-day {
    color: rgba(239, 229, 210, 0.8) !important;
    transition: all 0.2s ease !important;
}

.flatpickr-day:hover {
    background: rgba(197, 88, 39, 0.2) !important;
    color: #fff !important;
}

.flatpickr-day.flatpickr-disabled {
    color: rgba(239, 229, 210, 0.2) !important;
}

.flatpickr-time {
    border-top: 1px solid rgba(197, 88, 39, 0.4) !important;
}

.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm {
    color: #EFE5D2 !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
}

.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time input:focus,
.flatpickr-time .flatpickr-am-pm:focus {
    background: rgba(197, 88, 39, 0.2) !important;
}

.numInputWrapper span.arrowUp:after {
    border-bottom-color: #EFE5D2 !important;
}

.numInputWrapper span.arrowDown:after {
    border-top-color: #EFE5D2 !important;
}

/* ----------------------------------------------------------
   Custom Zenchef Clone Widget & Reservation Drawer
   ---------------------------------------------------------- */
.zc-clone-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #000;
    padding: 15px 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    z-index: 99999;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px 0 0 5px;
    transition: padding 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zc-clone-btn:hover {
    padding-right: 15px;
}

.zc-clone-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 100000;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
}

.zc-clone-drawer.open {
    right: 0;
}

.zc-clone-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.zc-clone-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.zc-clone-header {
    position: relative;
    height: 200px;
    background: url('wp-content/uploads/2025/06/impasto1.jpg') center/cover;
}

.zc-clone-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    padding: 0;
}

.zc-clone-body {
    padding: 30px;
    padding-bottom: 120px;
    /* Extra space at bottom for mobile reach */
    color: #333;
    text-align: right;
    direction: rtl;
}

.zc-clone-body h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #000;
    font-family: inherit;
}

.zc-clone-form-group {
    margin-bottom: 15px;
}

.zc-clone-form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
}

.zc-clone-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.zc-clone-input:focus {
    border-color: #000;
}

.zc-clone-submit {
    width: 100%;
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.zc-clone-submit:hover {
    background: #333;
}

/* Pre-order Menu Styling */
.preorder-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.preorder-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #b78546;
    /* Bronze accent */
}

.preorder-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
}

.menu-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 15px;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.menu-categories::-webkit-scrollbar {
    display: none;
}

.menu-cat-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #eee;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-cat-btn.active {
    background: #b78546;
    color: #fff;
    border-color: #b78546;
}



.menu-item-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    border: 1px solid #f9f9f9;
}

.menu-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.menu-item-card img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    margin-left: 15px;
    /* RTL */
}

.menu-item-info {
    flex: 1;
}

.menu-item-info h5 {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    color: #111;
}

.menu-item-info p {
    margin: 0 0 8px 0;
    font-size: 0.8rem;
    color: #777;
    line-height: 1.4;
}

.menu-item-info .price {
    font-weight: bold;
    color: #b78546;
    font-size: 0.95rem;
}

.menu-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9f9f9;
    padding: 5px;
    border-radius: 20px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #b78546;
    color: white;
}

.qty-val {
    font-weight: bold;
    min-width: 15px;
    text-align: center;
}

.preorder-summary {
    margin-top: 20px;
    padding: 18px 15px;
    background: #C55827;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(197, 88, 39, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: none;
}

.preorder-summary strong {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 6px;
    margin-right: 0;
}

/* HORIZONTAL SCROLLING MENU */
.menu-categories {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 5px;
    margin-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.menu-categories::-webkit-scrollbar {
    display: none;
}

.menu-cat-btn {
    scroll-snap-align: center;
    white-space: nowrap;
}

.menu-items-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 10px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.menu-category-section {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

/* Category Title Header Styling */
.category-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 30px 0 20px 0;
    width: 100%;
}

.category-section-title h3 {
    font-size: 1.4rem;
    color: #fff;
    margin: 0;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
}

.category-section-title .line {
    flex-grow: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.menu-items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 5px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

/* Image Zoom Overlay */
.image-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.image-zoom-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.image-zoom-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-zoom-overlay.open img {
    transform: scale(1);
}

.image-zoom-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 1000000;
}

/* SKELETON LOADING */
.skeleton-bg {
    animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
    0% {
        background-color: hsl(200, 20%, 90%);
    }

    100% {
        background-color: hsl(200, 20%, 98%);
    }
}

.skeleton-text {
    width: 100%;
    height: 12px;
    margin-bottom: 5px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    margin-left: 15px;
    flex-shrink: 0;
}

.skeleton-controls {
    width: 90px;
    height: 35px;
    border-radius: 20px;
}

.skeleton-btn {
    width: 100px;
    height: 40px;
    border-radius: 20px;
    border: none;
    margin-bottom: 15px;
}

.skeleton-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f9f9f9;
}

.skeleton-info {
    flex: 1;
}

/* Payment Success Popup */
.payment-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.payment-success-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.payment-success-modal {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.payment-success-overlay.open .payment-success-modal {
    transform: translateY(0) scale(1);
}

.payment-success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.payment-success-title {
    color: #111;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
}

.payment-success-desc {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.payment-success-btn {
    background: #C55827;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.payment-success-btn:active {
    transform: scale(0.95);
}

/* OVERLAY MENU VERTICAL LAYOUT FIX & DESIGN SYNC */
.overlay-content-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100% !important;
    height: 100vh !important;
    overflow: hidden;
}

@media (max-width: 991px) {
    .overlay-content-container {
        grid-template-columns: 100% !important;
        overflow-y: auto;
    }

    .overlay-content,
    .overlay-info {
        height: auto !important;
        min-height: 50vh;
    }
}

.overlay-content {
    order: 1;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100% !important;
    position: relative;
    z-index: 1;
}

.overlay-info {
    order: 2;
    background-color: #0c120d;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100% !important;
    padding: 60px !important;
    text-align: center;
}

.overlay-content ul.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
}

.overlay-content ul.menu li {
    margin: 12px 0;
    opacity: 1;
}

.overlay-content ul.menu li a {
    position: relative;
    color: #fff !important;
    font-size: 2.2rem !important; /* Smaller, more modern size */
    font-weight: 600 !important; /* Slightly lighter weight */
    letter-spacing: 1px !important; /* Modern spacing */
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important; /* Smoother transition */
    font-family: 'Outfit', 'Cairo', sans-serif !important; /* Modern font stack */
    display: inline-block;
    line-height: 1.4;
    text-transform: uppercase;
    padding: 5px 15px;
}

.overlay-content ul.menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: #C55827;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.overlay-content ul.menu li a:hover {
    color: #C55827 !important;
    transform: translateX(-10px) !important; /* Slide left (RTL direction) instead of scale */
    letter-spacing: 2px !important; /* Expand spacing on hover */
    background: rgba(197, 88, 39, 0.05);
    border-radius: 8px;
}

.overlay-content ul.menu li a:hover::before {
    width: 100%;
    left: 0;
    right: auto;
}

.overlay-content ul.menu li a:active {
    transform: translateX(-5px) scale(0.98) !important;
    opacity: 0.8;
}

.overlay-info .logo {
    width: 180px;
    margin-bottom: 40px;
}

.overlay-info .contact-info address {
    font-style: normal;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #EFE5D2;
}

.overlay-info .contact-info address a {
    color: #EFE5D2;
    text-decoration: none;
}

.overlay-info .social-media-icons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.overlay-info .social-icon {
    font-size: 1.5rem;
    color: #C55827;
    transition: transform 0.3s ease;
}

.overlay-info .social-icon:hover {
    transform: translateY(-5px);
}

/* Close button positioning fix */
#closeNav {
    position: absolute;
    top: 30px;
    right: 50px;
    z-index: 1000;
}