/* 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;
    }
}