/*
 *TODO :
 *Fix the deopdown menues behavior on mobile devices
*/
/*=========================
  Global Luxury Scrollbar
=========================*/
/* Hide scrollbar by default (Mobile + Tablet) */

.filter-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 14px;
    transition: 0.3s;
}

.filter-input:focus {
    outline: none;
    border-color: #C6A85A;
    box-shadow: 0 0 0 2px rgba(198, 168, 90, 0.2);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
    color: #4b5563;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.accordion-content.active {
    max-height: 300px;
}

::-webkit-scrollbar {
    display: none;
}

/* Firefox */
* {
    scrollbar-width: none;
}

/* Desktop only */
@media (min-width: 1024px) {

    /* Chrome, Edge, Safari */
    ::-webkit-scrollbar {
        width: 12px;
        height: 10px;
        display: block;
    }

    ::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }

    ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #C8A951, #A88F4F);
        border-radius: 8px;
        border: 2px solid rgba(255, 255, 255, 0.1);
    }

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #FFD65C, #C8A951);
    }

    /* Firefox */
    * {
        scrollbar-width: thin;
        scrollbar-color: #C8A951 rgba(255, 255, 255, 0.05);
    }
}

/*=========================
  Image Zoom Effect */

.zoom-container img {
    transition: transform 0.2s ease;
}



/* PRODUCTS SLIDER */

@font-face {
    font-family: "Font Awesome 6 Free";
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/webfonts/fa-solid-900.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}



.lilita-one-regular {
    font-family: "Lilita One", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.wishlist-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #444;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background: #C6A85A;
    color: white;
    transform: scale(1.1);
}

.luxury-btn {
    width: 100%;
    padding: 8px;
    border-radius: 10px;
    font-size: 13px;
    letter-spacing: 1px;
    background: black;
    color: white;
    transition: 0.4s;
}

.luxury-btn:hover {
    background: #C6A85A;
}

/*drop down menus for header*/
.dropdown-menu {
    position: absolute;
    background: white;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 60;
}

/* Desktop */
@media (min-width: 768px) {
    .dropdown-responsive {
        right: 0px;
        width: 320px;
        /*transform: translateY(10px);*/
    }

    .dropdown-responsive.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

}

/* Mobile */
@media (max-width: 767px) {
    .dropdown-responsive {
        right: 0px;
        width: 95vw;
        max-width: 95vw;
        /*transform: translate(-50%, 10px);*/
    }

    .dropdown-responsive.active {
        /*transform: translate(-50%, 0);*/
        opacity: 1;
        pointer-events: auto;
    }
}

.dropdown-header {
    padding: 14px 18px;
    font-weight: 600;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-item {
    padding: 12px 18px;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-item:hover {
    background: #f9f9f9;
}

.dropdown-link {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    transition: 0.2s;
}

.dropdown-link:hover {
    background: #f5f5f5;
}

.dropdown-footer {
    display: block;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    border-radius: 0 0 14px 14px;
    background: #f3f4f6;
    transition: 0.2s;
}

.dropdown-footer:hover {
    background: #C8A951;
    color: black;
}

.pacifico-regular {
    font-family: "Pacifico", cursive;
}

.glass-header {
    backdrop-filter: blur(10px);
    background: rgba(250, 250, 249, 0.85);
}

.icon-style svg {
    fill: #1F2937;
    width: 22px;
    transition: 0.3s;
}

.icon-style:hover svg {
    fill: #C8A951;
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #C8A951;
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notifications-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #C8A951;
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/*Toast dialog*/
.toast {
    min-width: 250px;
    max-width: 300px;
    background: white;
    border-left: 4px solid #C6A85A;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'Arial', sans-serif;
    color: #111;
    transform: translateX(300px);
    opacity: 0;
    transition: all 0.5s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast .title {
    font-weight: bold;
    font-size: 14px;
}

.toast .message {
    font-size: 13px;
    color: #555;
}

.toast .actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.toast button {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toast button.primary {
    background: #C6A85A;
    color: white;
}

.toast button.secondary {
    background: #f0f0f0;
    color: #333;
}

/*
* lgds

*/
.glow-effect {
    box-shadow: 0 0 10px rgb(255 189 122 / 60%), 0 0 20px rgb(242 201 201 / 40%), 0 0 40px rgb(251 123 78 / 20%);
}

/* تحريك الخط المنقط */
.path-animation {
    stroke-dasharray: 10, 15;
    animation: dash-move 20s linear infinite;
}

@keyframes dash-move {
    from {
        stroke-dashoffset: 1000;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* حركة العناصر الطائرة (نحل، بالونات) */
.floating-item {
    animation: float-kids 4s ease-in-out infinite;
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

@keyframes float-kids {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* إخفاء السكرول بار مع بقاء الميزة تعمل */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes mapfloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: mapfloat 3s ease-in-out infinite;
}

.level {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(255, 200, 0, 0.6);
}

.wood-panel {
    background: #a24511;

    background-image: url('https://www.transparenttextures.com/patterns/wood-pattern.png');
    border: 4px solid #78350f;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);

}

#secret-code::placeholder {
    color: rgba(69, 26, 3, 0.4);
}

/* أنيميشن الدخول للديالوج */
#wood-modal.flex {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.worm-container {
    position: absolute;
    width: 40px;
    /* حجم الدودة الكرتونية */
    height: 40px;
    z-index: 60;
    pointer-events: none;
    /* لكي لا تعيق الضغط على الكتاب */
    /* الأنيميشن لجعلها تدور حول الإطار */
    animation: worm-crawl-around 30s linear infinite;
}

.cartoon-worm {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* أنيميشن الدوران حول الإطار المستطيل */
@keyframes worm-crawl-around {
    0% {
        top: -20px;
        left: -20px;
        transform: rotate(0deg);
    }

    20% {
        top: -20px;
        left: calc(100% - 20px);
        transform: rotate(0deg);
    }

    /* زاوية فوق يمين */
    25% {
        top: -20px;
        left: calc(100% - 20px);
        transform: rotate(90deg);
    }

    /* استدارة لأسفل */

    /* الحركة للحافة اليمنى */
    45% {
        top: calc(100% - 20px);
        left: calc(100% - 20px);
        transform: rotate(90deg);
    }

    /* زاوية تحت يمين */
    50% {
        top: calc(100% - 20px);
        left: calc(100% - 20px);
        transform: rotate(180deg);
    }

    /* استدارة لليسار */

    /* الحركة للحافة السفلى */
    70% {
        top: calc(100% - 20px);
        left: -20px;
        transform: rotate(180deg);
    }

    /* زاوية تحت يسار */
    75% {
        top: calc(100% - 20px);
        left: -20px;
        transform: rotate(270deg);
    }

    /* استدارة لأعلى */

    /* الحركة للحافة اليسرى */
    95% {
        top: -20px;
        left: -20px;
        transform: rotate(270deg);
    }

    /* العودة للزاوية فوق يسار */
    100% {
        top: -20px;
        left: -20px;
        transform: rotate(360deg);
    }

    /* دورة كاملة */
}

.child-font {
    font-family: 'Patrick Hand', cursive;
}

/* أنيميشن الدوران والطفو الأساسي */
@keyframes sun-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-sun {
    animation: sun-spin 20s linear infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes bird-fly-circle {
    0% {
        transform: translate(0px, 0px) rotate(0deg);
    }

    25% {
        transform: translate(60px, -40px) rotate(10deg);
    }

    50% {
        transform: translate(120px, 0px) rotate(50deg);
    }

    75% {
        transform: translate(60px, 40px) rotate(-10deg);
    }

    100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
}

@keyframes bird-flap {

    0%,
    100% {
        transform: scaleY(1) translateY(0);
    }

    50% {
        transform: scaleY(0.4) translateY(5px);
    }
}

.animate-bird {
    display: inline-block;
    animation: bird-fly-circle 10s ease-in-out infinite;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
    /* Enable Scroll Snap */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

/* Snap Point for each sign container */
.snap-point {
    scroll-snap-align: center;
    flex-shrink: 0;
    width: 100vw !important;
    /* لضمان ظهور لافتة واحدة فقط */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* تنسيق اللافتات الخشبية */
.signpost {
    will-change: transform, opacity;

    transition: transform 1s ease-out;
}




@keyframes Wingflap {
    0% {
        transform: rotate(-25deg);
    }

    50% {
        transform: rotate(25deg);
    }

    100% {
        transform: rotate(-25deg);
    }
}

.wing {
    transform-origin: 50% 50%;
    animation: Wingflap 0.4s ease-in-out infinite;
}

.wood-text {

    font-weight: bold;
    color: #451a03;
    text-align: center;
    line-height: 1.2;
}

