@font-face {
    font-family: 'Manrope';
    src: url('../Manrope/Manrope-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {

    --main-color: #000;
    --text-color: #ffffff;
    --font-family: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    font-size: 0.9rem;
    background: #000000;
    overflow-x: hidden;
}

/* ==================== HEADER ==================== */
header {
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 3px solid var(--main-color);
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

header.scrolled {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.navbar {
    padding: 0.6rem 3%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #3f3e3e;
}

/* ==================== LOGO ==================== */
.navbar-brand img {
    height: 40px;
    width: auto;
    transition: height 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

header.scrolled .navbar-brand img {
    height: 40px;
}

/* ==================== NAVIGATION ==================== */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0 auto;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-color) !important;
}

/* ==================== DROPDOWN ==================== */
.dropdown:hover>.dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    color: #FFF;
    background: #393636;
    border: none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 10px 0;
    margin-top: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    min-width: 200px;
}

.dropdown-item {
    font-size: 12px;
    font-weight: 700;
    color: #FFF;
    text-transform: capitalize;
    padding: 10px 18px;
    transition: background 0.3s, color 0.3s;
}

.dropdown-item:hover {
    background: #292929;
    color: #FFF !important;
}

.dropdown-toggle::after {
    display: none !important;
}

/* ==================== ICONS ==================== */
.header-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-left: auto;
}

.header-icons a {
    color: #000;
    font-size: 1.2rem;
    position: relative;
    transition: color 0.3s ease;
}

.header-icons a:hover {
    color: #666;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #f5d300;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler {
    border: none;
    font-size: 1.4rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Center: Logo */
.navbar-brand {
    justify-self: center !important;
    margin: 0;
}


/* ==================== MOBILE LAYOUT ==================== */
@media (max-width: 1000px) {

    .navbar {
        padding: 0.6rem 1rem;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    /* Left: Hamburger menu */
    .navbar-toggler {
        justify-self: start;
    }


    .navbar-brand img {
        height: 40px;
    }

    /* Right: Icons */
    .header-icons {
        justify-self: end;
        margin-left: 0;
        gap: 0.2rem;
    }

    .header-icons a {
        font-size: 1.2rem;
    }

    .cart-badge {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }

    /* Mobile dropdown area fix */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #2e2e2e;
        border-top: 1px solid #ddd;
        padding: 1rem;
        z-index: 998;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-link {
        font-size: 13px;
        width: 100%;
    }

    .dropdown-menu {
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0.4rem 0;
    }

    .dropdown-menu.show {
        display: block !important;
    }

    .dropdown:hover>.dropdown-menu {
        display: none;
    }
}

/* ===== Announcement Bar ===== */
.announcement-bar {
    background: #232323;
    color: #fff;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 110;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wrap messages horizontally and animate */
.announcement-wrapper {
    display: flex;
    width: 400%;
    /* total width = 100% × number of messages */
    animation: slideMessages 25s ease-in-out infinite;
}

.announcement-item {
    flex: 0 0 100%;
    text-align: center;
}

/* === Smooth continuous slide === */
@keyframes slideMessages {
    0%, 10% {
        transform: translateX(0%);
    }

    20%, 30% {
        transform: translateX(-100%);
    }

    40%, 50% {
        transform: translateX(-200%);
    }

    60%, 70% {
        transform: translateX(-300%);
    }

    80%, 100% {
        transform: translateX(-400%);
    }
}

/* ===== Fix header offset ===== */
header {
    position: sticky;
    top: 34px;
    /* height of announcement bar */
    z-index: 1000;
    background: #232323;
    border-bottom: 1px solid var(--main-color);
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .announcement-bar {
        font-size: 12px;
        padding: 10px 0;
    }

    header {
        top: 35px;
        /* smaller offset on mobile */
    }
}

/* 🌈 Custom Toastr Styling */
#toast-container>.toast {
    border-radius: 10px !important;
    padding: 12px 16px 12px 45px !important;
    /* 👈 Add left padding for icon */
    font-size: 15px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12) !important;
    opacity: 0.95 !important;
    background-size: 24px !important;
    /* 👈 Icon size */
    background-repeat: no-repeat !important;
    background-position: 15px center !important;
    /* 👈 Icon position */
    line-height: 1.4 !important;
}

/* ✅ Success Toast */
#toast-container>.toast-success {
    background-color: #27ae60 !important;
    color: #fff !important;
    border-left: 6px solid #1e8449 !important;
    background-image: url("data:image/svg+xml,%3Csvg fill='white' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") !important;
}

/* ✅ Info Toast */
#toast-container>.toast-info {
    background-color: #2980b9 !important;
    color: #fff !important;
    border-left: 6px solid #1f618d !important;
    background-image: url("data:image/svg+xml,%3Csvg fill='white' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 9h2V7h-2v2zm0 8h2v-6h-2v6zm1-16C6.48 1 2 5.48 2 11s4.48 10 10 10 10-4.48 10-10S17.52 1 12 1z'/%3E%3C/svg%3E") !important;
}

/* ✅ Warning Toast */
#toast-container>.toast-warning {
    background-color: #f39c12 !important;
    color: #fff !important;
    border-left: 6px solid #e67e22 !important;
    background-image: url("data:image/svg+xml,%3Csvg fill='white' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'/%3E%3C/svg%3E") !important;
}

/* ✅ Error Toast */
#toast-container>.toast-error {
    background-color: #c0392b !important;
    color: #fff !important;
    border-left: 6px solid #922b21 !important;
    background-image: url("data:image/svg+xml,%3Csvg fill='white' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E") !important;
}

/* ✅ Close Button */
.toast-close-button {
    color: #fff !important;
    opacity: 0.9 !important;
    font-size: 18px !important;
    position: absolute !important;
    right: 10px !important;
    top: 8px !important;
}

.toast-close-button:hover {
    opacity: 1 !important;
}

/* ✅ Mobile Fix */
@media (max-width: 480px) {
    #toast-container>.toast {
        font-size: 12px !important;
        padding-left: 40px !important;
        background-size: 20px !important;
    }
}

/* 🔍 Search Wrapper Styles */
.search-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.search-box {
    transition: all 0.3s ease;
}

/* 🔹 Reduced font size for both input text & placeholder */
.search-input {
    font-size: 0.8rem;
    /* reduced text size */
    padding: 6px 0;
}

/* Placeholder text smaller + lighter */
.search-input::placeholder {
    font-size: 0.8rem;
    color: #999;
}

.search-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* 🔽 Dropdown Styles */
.suggestion-box {
    z-index: 1050;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
}

/* Each product row */
.suggestion-item {
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.2s ease-in-out;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

/* Product image */
.suggestion-item img {
    border: 1px solid #ddd;
    background-color: #fff;
}

/* Product text */
.suggestion-item strong {
    font-size: 0.8rem;
    color: #333;
    line-height: 1.1rem;
}

.suggestion-item small {
    font-size: 0.75rem;
    color: #6c757d;
}

/* View All Link */
.suggestion-box .text-center a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.2s ease-in-out;
}

.suggestion-box .text-center a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Scrollbar styling (for dropdown) */
.suggestion-box::-webkit-scrollbar {
    width: 6px;
}

.suggestion-box::-webkit-scrollbar-thumb {
    background-color: #cfcfcf;
    border-radius: 3px;
}

.suggestion-box::-webkit-scrollbar-thumb:hover {
    background-color: #b3b3b3;
}

/* Button adjustments */
.search-btn i {
    font-size: 1rem !important;
    color: #000 !important;
}

@media (max-width: 576px) {
    .search-wrapper {
        max-width: 100%;
    }

    .search-input {
        font-size: 0.65rem;
    }

    .search-input::placeholder {
        font-size: 0.65rem;
    }

    .suggestion-item strong {
        font-size: 0.75rem;
    }
}

/* 🌙 Fullscreen Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(2px);
    z-index: 1055;
    display: flex;
    justify-content: center;
    align-items: start;
    padding: 60px 10px;
    overflow-y: auto;
}

/* Container */
.search-container {
    width: 100%;
    max-width: 500px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Results Scroll */
.search-results {
    max-height: 60vh;
    overflow-y: auto;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 4px;
}

.result-item:hover {
    background-color: #f2f2f2;
}

/* Responsive */
@media (max-width: 576px) {
    .search-container {
        max-width: 100%;
        border-radius: 0.75rem;
    }

    .btn-dark {
        font-size: 0.9rem;
    }
}

@media (min-width:1010px) and (max-width:1200px) {
    .navbar {
        padding: 0.6rem 1rem;
        display: flex;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        justify-content: center;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #2e2e2e;
        border-top: 1px solid #ddd;
        padding: 1rem;
        z-index: 998;
    }
}

/* ----- new -----  */