:root {
    --blue1: #001e81;
    --blue2: #034BAA;
    --white: #FFFF;
    --yellow: rgb(227, 198, 44);
    --black: #000000;
    --red: #B71E22;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.hidden {
    display: none !important;
}

.top-bar {
    background-color: var(--blue1);
    color: white;
    padding: 0px 20px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    transition: transform 0.3s ease-in;
    z-index: 1100;
    overflow: hidden;
}

.marquee {
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee span {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
    transform: translate3d(100%, 0, 0);
    animation: marquee 18s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translate3d(100%, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.navbar {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--blue1);
    color: var(--white);
    height: 60px;
    box-shadow: 0 2px 5px rgba(227, 198, 44, 0.8);
}

.logo {
    position: relative;
    top: 20px;
    flex-shrink: 0;
}

.logo img {
    height: 100px;
    width: auto;
    max-width: 220px;
}

.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 22pt;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--yellow);
}

.search-bar {
    position: relative;
    right: 0;
    top: auto;
    transform: none;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 5px 10px;
    width: 0;
    transition: width 0.5s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    overflow: hidden;
    margin: 0;
}

.search-bar.active {
    width: 100%;
    opacity: 1;
    right: 0;
    margin: 0 12px;
    overflow: visible;
}

#search-box {
    border: none;
    outline: none;
    width: 100%;
    color: #003d7a;
    transition: all 0.7s ease;
}

#search-box.active {
    display: block;
    width: 100%;
}

.search-bar button {
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    min-width: 30px;
}

.search-bar button i {
    font-size: 20px;
    color: #555;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    overflow-y: auto;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.search-bar.has-suggestions {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--black);
    border-bottom: 1px solid #f0f0f0;
    height: 80px;
    transition: background-color 0.2s ease;
}

.suggestion-item:last-of-type {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
    flex-shrink: 0;
}

.suggestion-info {
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.suggestion-name {
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--blue1);
}

.suggestion-price {
    font-size: 14px;
    color: var(--red);
    font-weight: 700;
}

.see-all-btn {
    padding: 15px;
    text-align: center;
    background: #f8f9fa;
    color: var(--blue2);
    font-weight: 700;
    text-decoration: none;
    border-top: 1px solid #eee;
    transition: background 0.3s;
}

.see-all-btn:hover {
    background: #eef2f7;
    color: var(--blue1);
}

.nav-icons {
    display: flex;
    align-items: center;
}

.nav-icons a {
    margin-left: 15px;
    font-size: 22pt;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-icons a:hover {
    color: var(--yellow);
}

.nav-icons .fa-bars {
    display: none;
}

body.cart-sidebar-open {
    overflow: hidden;
}

.cart-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 2100;
}

.cart-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100vh;
    background: #ffffff;
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.22);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 2200;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.cart-sidebar-header h2 {
    margin: 0;
    color: var(--blue1);
    font-size: 1.25rem;
    font-weight: 700;
}

.cart-sidebar-header button {
    border: none;
    background: transparent;
    color: #4b5563;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cart-sidebar-header button:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.cart-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-sidebar-empty {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.cart-sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.cart-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-sidebar-item-image {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-sidebar-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-sidebar-item-placeholder {
    font-size: 0.7rem;
    color: #9ca3af;
    text-align: center;
    padding: 0 6px;
}

.cart-sidebar-item-info {
    flex: 1;
    min-width: 0;
}

.cart-sidebar-item-name {
    font-weight: 700;
    color: #111827;
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 2px;
}

.cart-sidebar-item-meta {
    font-size: 0.8rem;
    color: #6b7280;
}

.cart-sidebar-item-total {
    font-weight: 700;
    color: #111827;
    font-size: 0.9rem;
}

.cart-sidebar-summary {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.cart-sidebar-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: #111827;
}

.cart-sidebar-footer {
    padding: 16px 20px 22px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.cart-sidebar-checkout-btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 14px 16px;
    background: var(--red);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cart-sidebar-checkout-btn:hover {
    background-color: #9f171a;
    transform: translateY(-1px);
}

.cart-icon {
    position: relative;
}

.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--red);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cart-count-badge.hidden {
    display: none;
}

.weight-option.is-selected {
    border-color: var(--blue2);
    background-color: rgba(3, 75, 170, 0.08);
}

.weight-option.is-selected .text-slate-900,
.weight-option.is-selected .text-slate-500 {
    color: var(--blue2);
}

.cart-sidebar-checkout-btn:active {
    transform: translateY(0);
}

@media (min-width: 780px) and (max-width: 1024px) {
    .nav-links a {
        font-size: 17pt;
    }

    .nav-icons a {
        font-size: 17pt;
    }

    .navbar {
        height: 60px;
        padding: 12px 7px;
    }

    .logo img {
        height: 90px;
        max-width: 210px;
    }

    .logo {
        top: 25px;
    }
}

@media (max-width: 779px) {
    .navbar {
        height: 51px;
        padding: 10px 5px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        right: 0;
        background-color: var(--blue1);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        width: 200px;
        border-radius: 0 0 5px 5px;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-icons a {
        font-size: 18pt;
        margin-left: 12px;
    }

    .navbar.search-active .nav-icons {
        display: none;
    }

    .nav-links a {
        font-size: 15pt;
    }

    .nav-icons .fa-bars {
        display: block;
        cursor: pointer;
    }

    .nav-icons.compact a {
        display: none;
    }

    .nav-icons.compact #icon-search {
        display: inline-flex;
    }

    .logo img {
        height: 80px;
        max-width: 190px;
    }

    .logo {
        top: 15px;
    }

    .cart-sidebar {
        width: calc(100% - 18px);
        border-top-left-radius: 14px;
        border-bottom-left-radius: 14px;
    }
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 30, 129, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    z-index: 9999;
    padding: 24px;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
}

.cookie-banner.hidden {
    display: none !important;
    transform: translateY(100px);
    opacity: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    margin: 0 0 8px 0;
    color: var(--blue1);
    font-size: 1.2rem;
    font-weight: 700;
}

.cookie-text p {
    margin: 0;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-text {
    color: #4a5568;
}

.cookie-text a {
    color: #001e81;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.btn-accept,
.btn-decline {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-accept {
    background-color: #001e81;
    color: white;
}

.btn-accept:hover {
    background-color: #034BAA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 30, 129, 0.2);
}

.btn-decline {
    background-color: #edf2f7;
    color: #4a5568;
}

.btn-decline:hover {
    background-color: #e2e8f0;
    color: #000000;
}

@media (max-width: 640px) {
    .cookie-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 20px;
    }

    .cookie-actions {
        width: 100%;
        margin-top: 10px;
    }

    .btn-accept,
    .btn-decline {
        flex: 1;
    }
}
