/* SnabbFood Rebranding (Wolt Style) */
/* ========================================================================= */
/* 1. FONTS (Poppins) */
/* ========================================================================= */

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/poppins/Poppins-Light.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/poppins/Poppins-Regular.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/poppins/Poppins-Medium.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/poppins/Poppins-SemiBold.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/poppins/Poppins-Bold.woff2') format('woff2');
    font-display: swap;
}

/* ========================================================================= */
/* 2. ROOT VARIABLES */
/* ========================================================================= */
:root {
    --wolt-primary-red: #E30613;
    /* SnabbFood Red */
    --wolt-primary-red-hover: #C50510;
    --wolt-red-light: #FBE5E7;
    /* Light background for highlights */
    --wolt-dark-text: #1A1A1A;
    --wolt-secondary-text: #6B7280;
    --wolt-gray-bg: #F5F5F5;
    --wolt-gray-border: #E5E7EB;

    --primary-color: var(--wolt-primary-red);
    --green-color: var(--primary-color) !important;
    /* Replacing theme's green with red */

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 9999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);

    --font-family-sans-serif: 'Poppins', sans-serif !important;
}

/* ========================================================================= */
/* 3. GLOBAL OVERRIDES */
/* ========================================================================= */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
div,
span,
button,
input {
    font-family: var(--font-family-sans-serif) !important;
}

body {
    background-color: #ffffff;
    color: var(--wolt-dark-text) !important;
}

/* ========================================================================= */
/* 4. BUTTONS & BADGES */
/* ========================================================================= */
.btn-green,
.btn.green {
    background-color: var(--wolt-primary-red) !important;
    border-color: var(--wolt-primary-red) !important;
    color: #fff !important;
    border-radius: var(--radius-md) !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-green:hover,
.btn.green:hover {
    background-color: var(--wolt-primary-red-hover) !important;
    border-color: var(--wolt-primary-red-hover) !important;
    transform: translateY(-1px);
}

.btn-green-line {
    background-color: transparent !important;
    border: 1px solid var(--wolt-primary-red) !important;
    color: var(--wolt-primary-red) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 500;
}

.btn-green-line:hover {
    background-color: var(--wolt-red-light) !important;
}

.btn-black {
    background-color: var(--wolt-primary-red) !important;
    /* Make black buttons red too */
    border-color: var(--wolt-primary-red) !important;
    color: #fff !important;
    border-radius: var(--radius-md) !important;
    font-weight: 500;
}

.btn-black:hover {
    background-color: var(--wolt-primary-red-hover) !important;
    border-color: var(--wolt-primary-red-hover) !important;
}

.badge-yellow,
.badge-dark,
.badge.bg-lighter {
    background-color: var(--wolt-gray-bg) !important;
    color: var(--wolt-dark-text) !important;
    border-radius: var(--radius-sm) !important;
    padding: 4px 8px;
    font-weight: 500;
    border: 1px solid var(--wolt-gray-border) !important;
}

.with-promo {
    background-color: var(--wolt-primary-red) !important;
    color: #fff !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600;
}

/* ========================================================================= */
/* 5. HEADER (Wolt Style) */
/* ========================================================================= */
#top-nav {
    background-color: #fff !important;
    border-bottom: 1px solid var(--wolt-gray-border);
    box-shadow: none !important;
    padding: 12px 0;
}

/* Pill-shaped search bar in header */
#top-navigation .search-box,
.change-address-wrap .form-label-group input {
    border-radius: var(--radius-pill) !important;
    background-color: var(--wolt-gray-bg) !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
}

#top-navigation .search-box:focus-within,
.change-address-wrap .form-label-group input:focus {
    background-color: #fff !important;
    border-color: var(--wolt-primary-red) !important;
    box-shadow: 0 0 0 4px var(--wolt-red-light) !important;
}

/* Header Login Button (Wolt Style) */
.top-menu .line-left {
    border-left: none !important;
    margin-left: 10px;
}

.top-menu .line-left a {
    background-color: var(--wolt-primary-red) !important;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.top-menu .line-left a:hover {
    background-color: var(--wolt-primary-red-hover) !important;
    transform: translateY(-1px);
}

/* ========================================================================= */
/* 6. CARDS (Restaurants / Items) */
/* ========================================================================= */
.rounded-box,
.list-items figure,
.gallery img {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
}

.rounded-box {
    background: #fff;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.rounded-box:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
    border-color: var(--wolt-gray-border);
}

.el-image {
    border-radius: var(--radius-lg) !important;
}

/* ========================================================================= */
/* 7. CHECKBOXES & RADIOS */
/* ========================================================================= */
.custom-control-input:checked~.custom-control-label::before {
    border-color: var(--wolt-primary-red) !important;
    background-color: var(--wolt-primary-red) !important;
}

/* ========================================================================= */
/* 8. TYPOGRAPHY Fixes */
/* ========================================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600 !important;
    letter-spacing: -0.02em;
}

.price,
.font-weight-bolder {
    font-weight: 600 !important;
}

a {
    color: var(--wolt-dark-text);
    transition: color 0.2s ease;
}

a:hover,
a.link:hover {
    color: var(--wolt-primary-red) !important;
}

.text-green {
    color: var(--wolt-primary-red) !important;
}

/* ========================================================================= */
/* 9. FOOTER STYLING (SnabbFood) */
/* ========================================================================= */
.snabb-footer {
    background-color: var(--wolt-gray-bg);
    border-top: 1px solid var(--wolt-gray-border);
    padding-top: 2rem;
    color: var(--wolt-dark-text);
    font-family: var(--font-family-sans-serif);
}

.footer-logo img {
    max-width: 140px;
}

.footer-heading {
    font-weight: 700 !important;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--wolt-dark-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--wolt-secondary-text);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    text-decoration: underline;
    color: var(--wolt-primary-red) !important;
}

.snabb-footer .border-top {
    border-top-color: var(--wolt-gray-border) !important;
}

/* ========================================================================= */
/* 10. HOMEPAGE HERO SECTION */
/* ========================================================================= */
#main-search-banner {
    background: var(--wolt-gray-bg) !important;
    padding: 80px 0 60px 0;
}

#main-search-banner h2 {
    font-size: 2.5rem;
    font-weight: 700 !important;
    color: var(--wolt-dark-text);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

/* Make the auto-complete search box pill-shaped too */
#main-search-banner .home-search-wrap input.form-control,
.inputs-box-wrap input,
.mobile-home-banner+div input {
    border-radius: var(--radius-pill) !important;
    height: 60px;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid transparent !important;
}

#main-search-banner .home-search-wrap input.form-control:focus {
    border-color: var(--wolt-primary-red) !important;
    box-shadow: 0 0 0 4px var(--wolt-red-light) !important;
}

/* Search buttons */
#main-search-banner .home-search-wrap button {
    border-radius: var(--radius-pill) !important;
    background-color: var(--wolt-primary-red) !important;
}

/* ========================================================================= */
/* 11. FEED & MENU PAGES */
/* ========================================================================= */

/* Sidebar filter headings */
.section-filter h5 a {
    font-weight: 600 !important;
    color: var(--wolt-dark-text);
}

/* Range Sliders */
.custom-range::-webkit-slider-thumb {
    background: var(--wolt-primary-red) !important;
}

.custom-range::-moz-range-thumb {
    background: var(--wolt-primary-red) !important;
}

.custom-range::-ms-thumb {
    background: var(--wolt-primary-red) !important;
}

/* Menu Page - Category sidebar */
.menu-category .nav-link {
    color: var(--wolt-secondary-text) !important;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    padding: 8px 16px;
    margin-bottom: 4px;
}

.menu-category .nav-link.active,
.menu-category .nav-link:hover {
    background-color: var(--wolt-red-light);
    color: var(--wolt-primary-red) !important;
    font-weight: 600;
}

/* Menu Page - Menu items */
.items-row {
    border-radius: var(--radius-lg);
    border: 1px solid var(--wolt-gray-border);
    transition: all 0.2s;
}

.items-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: transparent;
}

/* Right Cart Sidebar */
.cart-wrap {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--wolt-gray-border) !important;
}

/* Swiper navigation buttons */
.swiper-button-next,
.swiper-button-prev {
    color: var(--wolt-primary-red) !important;
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

/* ========================================================================= */
/* 12. MOBILE RESPONSIVENESS */
/* ========================================================================= */
@media (max-width: 767.98px) {
    #main-search-banner {
        padding: 40px 0;
    }

    #main-search-banner h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .footer-heading {
        font-size: 1rem;
        margin-top: 1.5rem;
    }

    /* Make sure search input is easily tappable on mobile */
    #main-search-banner .home-search-wrap input.form-control,
    .mobile-home-banner+div input {
        height: 54px;
        font-size: 1rem;
    }
}

/* ========================================================================= */
/* 13. HIDE OLD SUB-FOOTER (replaced by new snabb-footer) */
/* ========================================================================= */
.sub-footer {
    display: none !important;
}

/* ========================================================================= */
/* 14. ANIMATIONS & MICRO-INTERACTIONS (Wolt-level) */
/* ========================================================================= */

/* --- 14.1 SKELETON LOADING ANIMATION --- */
@keyframes skeletonPulse {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.el-skeleton__item,
.el-skeleton.is-animated .el-skeleton__item,
.placeholder-glow .placeholder {
    background: linear-gradient(90deg,
            #f0f0f0 25%,
            #e0e0e0 37%,
            #f0f0f0 63%) !important;
    background-size: 200% 100% !important;
    animation: skeletonPulse 1.8s ease-in-out infinite !important;
    border-radius: var(--radius-md) !important;
}

/* --- 14.2 CARD HOVER - LIFT + IMAGE ZOOM --- */
.rounded-box {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: transform;
    cursor: pointer;
}

.rounded-box:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
    border-color: transparent !important;
}

/* Image zoom inside cards on hover */
.rounded-box .el-image img,
.rounded-box img.lazy-img,
.rounded-box figure img,
.list-items figure img {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: transform;
}

.rounded-box:hover .el-image img,
.rounded-box:hover img.lazy-img,
.rounded-box:hover figure img,
.list-items figure:hover img {
    transform: scale(1.08) !important;
}

/* --- 14.3 SCROLL FADE-IN ANIMATION --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Apply fade-in to main sections */
.components-cuisine-list,
.components-swiper-list,
.components-featured-list,
.components-join,
.section-mobileapp,
#vue-home-widgets>.container>* {
    animation: fadeInUp 0.6s ease-out both;
}

/* Stagger delay for sequential sections */
#vue-home-widgets>.container>*:nth-child(1) {
    animation-delay: 0.1s;
}

#vue-home-widgets>.container>*:nth-child(2) {
    animation-delay: 0.2s;
}

#vue-home-widgets>.container>*:nth-child(3) {
    animation-delay: 0.3s;
}

#vue-home-widgets>.container>*:nth-child(4) {
    animation-delay: 0.4s;
}

#vue-home-widgets>.container>*:nth-child(5) {
    animation-delay: 0.5s;
}

#vue-home-widgets>.container>*:nth-child(6) {
    animation-delay: 0.6s;
}

/* Hero section entrance */
#main-search-banner .banner-center {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#main-search-banner .home-search-wrap {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* --- 14.4 BUTTON MICRO-INTERACTIONS --- */
.btn,
button,
.el-button {
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: transform;
}

.btn:hover,
.el-button:hover {
    transform: translateY(-2px);
}

.btn:active,
.el-button:active {
    transform: translateY(0) scale(0.97) !important;
    transition-duration: 0.1s !important;
}

/* Add to cart button special effect */
.btn-add-cart,
.add-to-cart,
.btn-addtocart,
button[class*="add"] {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
    position: relative;
    overflow: hidden;
}

.btn-add-cart:active,
.add-to-cart:active,
.btn-addtocart:active {
    transform: scale(0.92) !important;
}

/* Plus button ripple */
.items-row .btn-plus,
.menu-item-add {
    transition: all 0.2s ease !important;
}

.items-row .btn-plus:hover,
.menu-item-add:hover {
    transform: scale(1.15) rotate(90deg);
    background-color: var(--wolt-primary-red) !important;
    color: #fff !important;
}

/* --- 14.5 MODAL / DIALOG ANIMATIONS --- */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalOverlayFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.el-dialog__wrapper,
.el-drawer,
.modal {
    animation: modalOverlayFade 0.3s ease both !important;
}

.el-dialog,
.el-drawer__body,
.modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
}

/* --- 14.6 MENU ITEMS ON RESTAURANT PAGE --- */
.items-row,
.menu-items-wrap .item-row {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
    cursor: pointer;
}

.items-row:hover,
.menu-items-wrap .item-row:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
    border-color: transparent !important;
    background-color: #fff;
}

/* Food image zoom on menu item hover */
.items-row img,
.menu-items-wrap .item-row img {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.items-row:hover img,
.menu-items-wrap .item-row:hover img {
    transform: scale(1.1) !important;
}

/* --- 14.7 CATEGORY NAV (Sticky pills like Wolt) --- */
.menu-category .nav-link {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
    position: relative;
}

.menu-category .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--wolt-primary-red);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateX(-50%);
}

.menu-category .nav-link.active::after,
.menu-category .nav-link:hover::after {
    width: 70%;
}

/* --- 14.8 CUISINE CIRCLES ANIMATION --- */
.cuisine-item,
.components-cuisine-list [class*="cuisine"] {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
    cursor: pointer;
}

.cuisine-item:hover,
.components-cuisine-list [class*="cuisine"]:hover {
    transform: translateY(-5px) scale(1.05);
}

.cuisine-item img,
.components-cuisine-list img {
    transition: transform 0.4s ease !important;
}

.cuisine-item:hover img,
.components-cuisine-list [class*="cuisine"]:hover img {
    transform: scale(1.12) rotate(3deg);
}

/* --- 14.9 NOTIFICATION BADGE PULSE --- */
@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.badge-dark,
.cart-handle .badge,
span.badge {
    animation: badgePulse 2s ease-in-out infinite;
}

/* --- 14.10 SEARCH BAR FOCUS ANIMATION --- */
#main-search-banner .home-search-wrap input.form-control,
.inputs-box-wrap input {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

#main-search-banner .home-search-wrap input.form-control:focus,
.inputs-box-wrap input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 4px var(--wolt-red-light), 0 8px 30px rgba(227, 6, 19, 0.15) !important;
}

/* --- 14.11 SWIPER/CAROUSEL SMOOTH TRANSITIONS --- */
.swiper-slide {
    transition: transform 0.4s ease, opacity 0.4s ease !important;
}

.swiper-button-next,
.swiper-button-prev {
    transition: all 0.3s ease !important;
    width: 40px !important;
    height: 40px !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-md) !important;
}

.swiper-button-next:active,
.swiper-button-prev:active {
    transform: scale(0.95);
}

/* --- 14.12 LINK UNDERLINE ANIMATION --- */
.footer-links a,
a.animated-link {
    position: relative;
    text-decoration: none !important;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--wolt-primary-red);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* --- 14.13 PAGE LOAD ENTRANCE --- */
@keyframes pageEntrance {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body {
    animation: pageEntrance 0.5s ease both;
}

/* --- 14.14 SMOOTH SCROLLING --- */
html {
    scroll-behavior: smooth;
}

/* --- 14.15 CART SIDEBAR ANIMATION --- */
.cart-wrap,
.ssm-nav-visible {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.3s ease !important;
}

/* --- 14.16 DELIVERY TIME BADGE BOUNCE --- */
@keyframes subtleBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.delivery-time-tag,
.estimated_time,
[class*="delivery-est"] {
    animation: subtleBounce 3s ease-in-out infinite;
}

/* --- 14.17 TOGGLE & SWITCH ANIMATIONS --- */
.custom-control-input:checked~.custom-control-label::before {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
    transform: scale(1.05);
}

/* --- 14.18 RATING STARS HOVER --- */
.rating-list i,
.fa-star {
    transition: all 0.2s ease !important;
}

.rating-list i:hover,
.fa-star:hover {
    transform: scale(1.3);
    color: #F59E0B !important;
}