#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
 }

 #spinner.show {
     transition: opacity .8s ease-out, visibility 0s linear .0s;
     visibility: visible;
     opacity: 1;
 }


.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1, h2, h3, .h1, .h2, .h3 {
    font-weight: 400 !important;
    font-family: 'Battambang', cursive !important;
    color: #FF6F7B;
}

h4, h5, h6, .h4, .h5, .h6 {
    font-weight: 600 !important;
    font-family: 'Battambang', sans-serif !important;
}

body {
    font-family: 'Battambang', sans-serif;
    background-color: #7EE2E5;
    color: #4A4A4A;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.wow,
.animated {
    animation-duration: 2s !important;
}


.btn.btn-primary {
    border: 0;
}

.btn.btn-primary:hover {
    background: var(--bs-dark) !important;
    color: #FF6F7B !important;
}

.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 38px;
    height: 38px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.nav-bar {
    background: #FF6F7B !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0 15px;
}

.nav-bar .navbar-nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-bar .nav-link {
    font-family: 'Battambang', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 15px 10px;
}

.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #FF6F7B;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
    width: 50%;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #FF6F7B;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }
    
    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        opacity: 1;
    }
}

.dropdown .dropdown-menu a:hover {
    background: #FF6F7B;
    color: var(--bs-white);
}

#searchModal .modal-content {
    background-color: rgba(255, 255, 255, .95);
}

.nav-bar .navbar-toggler {
    border: none;
    padding: 0;
}

.nav-bar .navbar-toggler:focus {
    box-shadow: none;
}

.nav-bar .navbar-toggler .fa {
    color: #ffffff !important;
    font-size: 1.5rem;
}

@media (max-width: 992px) {
    .nav-bar .navbar-toggler .fa {
        font-size: 1.2rem;
    }
}


.container-fluid.bg-light.py-6.my-6.mt-0 {
    background-color: #7EE2E5 !important;
}

.hero-slider {
    position: relative;
    overflow: visible;
}

.hero-slider .owl-carousel {
    position: relative;
}

.hero-slide {
    position: relative;
    height: 80vh;
    min-height: 500px;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 20px;
    z-index: 2;
}

.hero-content h1, .hero-content small {
    color: #FF6F7B !important;
}

.hero-content small {
    color: #fff !important;
}

.hero-slide::after {
    content: none;
}

.hero-slider .owl-dots {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 10;
}

.hero-slider .owl-dot {
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border-radius: 50%;
    transition: all 0.3s;
    border: 2px solid #FF6F7B;
}

.hero-slider .owl-dot.active {
    background: #FF6F7B !important;
    transform: scale(1.2);
    border-color: #FF6F7B;
}


.dark-theme .hero-slide::after {
    background: rgba(0, 0, 0, 0.6);
}

.dark-theme .hero-carousel .owl-dot {
    background: rgba(255, 255, 255, 0.3) !important;
}

@media (max-width: 768px) {
    .hero-slide {
        height: 60vh;
        min-height: 400px;
    }
    .hero-slider .owl-dots {
        left: 10px;
        gap: 10px;
    }
    .hero-slider .owl-dot {
        width: 14px !important;
        height: 14px !important;
    }
}


.ingredients {
    background: #7EE2E5;
}

.ingredients-img {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.ingredients-img .main-img,
.ingredients-img .hover-img {
    transition: 0.5s;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ingredients-img .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: scale(1.1);
}

.ingredients-img:hover .main-img {
    transform: scale(1.1);
}

.ingredients-img:hover .hover-img {
    opacity: 1;
    transform: scale(1);
}

.ingredients-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    border-radius: 0 0 8px 8px;
    transition: 0.5s;
}

.ingredients-img:hover .ingredients-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}


.service .service-item {
    position: relative;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    background-color: #ffffff !important;
}

.service-content::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    bottom: auto;
    background: var(--bs-primary);
    border-radius: 8px;
    transition: 1s;
}

.service-item:hover .service-content::after {
    height: 100%;
    opacity: 1;
}

.service-item .service-content-icon {
    position: relative;
    z-index: 2;
}

.service-item .service-content-icon i,
.service-item .service-content-icon p {
    transition: 1s;
}

.service-item:hover .service-content-icon i {
    color:  #7EE2E5 !important;
}

.service-item:hover .service-content-icon p {
    color: var(--bs-white);
}

.service-item:hover .service-content-icon a.btn-primary {
    background: var(--bs-white);
    color: var(--bs-dark);
}

.service-item .service-content-icon a.btn-primary {
    transition: 1s !important;
}


.video {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
}

.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none !important;
    padding: 18px 20px 18px 28px;
}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 80px;
    height: 80px;
    background: var(--bs-primary);
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 52%;
    top: 54%;
    transform: translateX(-50%) translateY(-50%);
    border-left: 32px solid var(--bs-white);
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

.video .btn-play img {
    z-index: 3;
    max-width: 100%;
    width: auto;
    height: auto;
    vertical-align: middle;
    border: 0;
    margin-top: -4px;
    margin-right: -8px;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 32px solid var(--bs-white);
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

#videoModal {
    padding: 0 !important;
}

#videoModal .modal-dialog {
    max-width: 800px;
    margin: 30px auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    z-index: 999;
    right: -5px;
    top: -5px;
    color: var(--bs-white);
    opacity: 1;
    background: var(--bs-dark);
    padding: 5px 10px;
    border-radius: 50%;
    text-shadow: none;
    border: 2px solid var(--bs-white);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

#videoModal .close:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
    opacity: 1;
}


.blog-item {
    position: relative;
}

.blog-item img {
    transition: 0.5s;
}

.blog-item:hover img {
    transform: scale(1.3)
}

.blog-item .blog-content {
    position: relative;
    transform: translateY(-50%);
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.blog-item .blog-content a.btn h5 {
    transition: 0.5s;
}

.blog-item:hover .blog-content a.btn h5 {
    color: #FF6F7B !important;
}


.team-item {
    width: 100%;
    height: 100%;
    position: relative;
}

.team-item .team-icon {
    position: absolute;
    top: 0;
    right: 0;
}

.team-item .team-icon .share-link {
    opacity: 0;
    transition: 0.9s;
}

.team-item:hover .share-link {
    opacity: 1;
}

.team-item .team-content {
    transition: 0.9s;
}

.team-item:hover .team-content {
    background: #FF6F7B !important;
    color: var(--bs-dark) !important;
}

.team-item .team-content h4,
.team-item .team-content p {
    transition: 0.5s;
}

.team-item:hover .team-content h4 {
    color: var(--bs-dark) !important;
}

.team-item:hover .team-content p {
    color: var(--bs-white);
}


.testimonial-item {
    background-color: #ffffff !important;
    border-radius: 8px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel.owl-rtl .testimonial-item {
    direction: ltr !important;
}


.contact-form {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}



.footer {
    background-color: #ffffff !important;
}

.footer .footer-item a.text-body:hover {
    color: #FF6F7B !important;
}

.bg-white {
    background-color: #ffffff !important;
}


.cat-paw {
    position: fixed;
    width: 24px;
    height: 24px;
    background-image: url('../img/paw.png');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.7;
    transform: translate(-50%, -50%);
    animation: fadeOut 1.5s forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 0.7;
    }
    100% {
        opacity: 0;
    }
}


/* --- تم تعطيل جميع تعريفات الكارت القديمة لتفادي التعارض مع تصميم BessaBites.html --- */
/*
.product-card { ... }
.product-card-inner { ... }
.product-card-front, .product-card-back { ... }
.product-card-bottom { ... }
.add-to-cart-btn { ... }
.product-price { ... }
.social-icons { ... }
.social-icon { ... }
*/


.cart-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.offcanvas {
    width: 350px;
}

#cart-items {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.product-card .price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #0F172B;
}

.btn-outline-primary {
    color: #0F172B;
    border-color: #0F172B;
}

.btn-outline-primary:hover {
    background-color: #0F172B;
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}


.cart-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.cart-notification.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.notification-content {
    background-color: #0F172B;
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    text-align: center;
}

.notification-content i {
    color: #4CAF50;
    font-size: 1.4em;
}


.rtl .cart-notification {
    left: 50%;
    right: auto;
}


.dark-theme .notification-content {
    background-color: #2d2d2d;
    border: 1px solid #404040;
}

.dark-theme .hero-content h1, .dark-theme .hero-content .display-4 {
    color: #FF6F7B !important;
}

.navbar .navbar-nav .nav-link i,
.navbar-toggler .fa,
.btn-md-square i,
.btn-md-square .fa,
.btn-md-square .fas,
.btn-md-square .fab {
    font-size: 1.7em !important;
}

.product-card-front, .social-icons, .social-icon, .social-icon i {
    z-index: 100 !important;
    position: relative !important;
}
.social-icon i {
    font-size: 2rem !important;
}

.product-card-front, .product-card-front * {
    font-family: 'Font Awesome 5 Brands', 'Font Awesome 5 Free', 'FontAwesome', Arial, sans-serif !important;
}




