@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Marcellus&display=swap");

/* ===== GLOBAL STYLES ===== */
html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
}

.dropdown {
    position: relative;
}

/* ===== NAVBAR STYLES ===== */
.navbarcontainer {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background-color: white;
}

.sidebar {
    display: none;
}

/* Navbar Container */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 60px 0px 60px !important;
    background: white;
    border-bottom: 1px solid #ddd;
    font-family: "DM Sans", sans-serif;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: nowrap;
    gap: 20px;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    flex-wrap: nowrap;
    min-width: 0;
}

.navbar-top {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.navbar ul {
    margin-top: 20px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    white-space: nowrap;
    min-width: 0;
    flex-shrink: 1;
    margin-bottom: 0px !important;
}

.nav-links li {
    display: inline-block;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    padding: 0px 10px;
    transition: color 0.3s;
    flex-shrink: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

.logo-container {
    padding-bottom: 12px;
}

.logo-image {
    height: 54px;
    width: 68px;
}

.sidebar-item {
    padding-bottom: 8px;
}

.search-container {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    padding-bottom: 8px;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(245, 239, 239, 0.75);
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 10px;
    height: 35px;
    flex-shrink: 1;
    width: 300px;
    max-width: 100%;
    transition: width 0.3s ease;
}

#navSearchForm {
    display: flex;
    width: 100%;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
}

.search-box input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    background: transparent;
    min-width: 0;
}

.search-box i {
    font-size: 18px;
    color: #333;
    margin-right: 5px;
}

/* Buttons */

.sell-button {
    display: inline-block;
    transition: all 0.2s ease-in;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: #e8e8e8;
    padding: 0.7em 1.7em;
    cursor: pointer;
    font-size: 14px;
    border-radius: 0.5em;
    background: #db9d00;
    border: 1px solid #e8e8e8;
    /* box-shadow: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff; */
    flex-shrink: 0;
}

.sell-button:active {
    color: #666;
    box-shadow: inset 4px 4px 12px #c5c5c5, inset -4px -4px 12px #ffffff;
}

.sell-button::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(1) scaleX(1.25);
    top: 100%;
    width: 140%;
    height: 180%;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: block;
    transition: all 0.5s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.sell-button::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(1) scaleX(1.45);
    top: 180%;
    width: 160%;
    height: 190%;
    background-color: #009087;
    border-radius: 50%;
    display: block;
    transition: all 0.5s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.sell-button:hover {
    color: #ffffff;
    border-color: #009087;
}

.sell-button:hover::before {
    top: -35%;
    background-color: black;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.sell-button:hover::after {
    top: -45%;
    background-color: black;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

/* ------ Arrow Animation ------ */
.sell-button .arrow {
    display: inline-block;
    margin-left: 0.3em;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.sell-button:hover .arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Icons */
.icons {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    padding-bottom: 8px;
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 4rem;
    left: 4rem;
    background-color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    padding: 20px;
    z-index: 1000;
}

.mega-menu.active {
    display: flex;
    flex-direction: column;
}

/* Mega Menu Tabs */
.category-tabs {
    display: flex;
    gap: 20px;
    padding-bottom: 10px;
}

.category-tabs a {
    font-size: 15px;
    text-decoration: none;
    color: #333;
    cursor: pointer;
}

.category-tabs a.active {
    font-weight: bold;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

/* Subcategory */
.subcategory-container {
    display: flex;
    margin-top: 20px;
}

.subcategory {
    flex: 1;
}

.subcategory h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subcategory a {
    display: block;
    text-decoration: none;
    color: #333;
    font-size: 10px;
    transition: color 0.3s;
    text-align: left;
}

.subcategory a:hover {
    color: #007bff;
}

.megamenu-section {
    margin-bottom: 1rem;
    text-align: left;
}

.megamenu-section a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Hamburger Icon (Hidden by Default) */
.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

.close-btn {
    display: none;
}

/* Profile Dropdown CSS */
.user-menu {
    position: relative;
    cursor: pointer;
}

.user-icon {
    font-size: 24px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background: white;
    width: 220px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

#userInfos {
    margin-bottom: 10px;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-name {
    margin: 0;
    font-size: 14px;
}

.user-phone {
    margin: 0;
    font-size: 12px;
    color: gray;
}

.greet {
    margin: 0;
    font-size: 14px;
}

.message {
    margin: 0;
    font-size: 12px;
    color: gray;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-list a {
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    list-style: none;
    text-decoration: none;
    color: black;
}

.menu-list a:hover {
    background: #f1f1f1;
}

.profile-arrow {
    margin-right: 8px;
    font-weight: bold;
    font-size: 16px;
}

.login-btn {
    background-color: #c89b00;
    color: white;
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    width: 50%;
    font-size: 10px;
}

/* Top-level menu item */
.menu-item {
    cursor: pointer;
    padding-bottom: 25px !important;
    position: relative;
}

/* Top-level text */
.menu-title {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

/* Mega dropdown container */
.mega-dropdown {
    display: none;
    position: absolute;
    top: calc(100%);
    left: 0;
    background-color: #fff;
    padding: 30px 40px;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    min-width: max-content;
    max-width: 95vw;
    width: auto;
    transition: all 0.2s ease-in-out;
}

/* Dropdown section block */
.dropdown-section {
    width: 20%;
    box-sizing: border-box;
    min-width: 150px;
}

/* Section title */
.section-title {
    color: goldenrod;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

/* Subcategory list */
.subcategory-list {
    list-style: none;
    padding: 0;
    margin-top: 2px !important;
}

/* Subcategory item */
.subcategory-item {
    margin: 6px 0;
    display: flex !important;
    flex-direction: column;
}

/* Subcategory link */
.subcategory-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.2s;
}

.subcategory-link:hover {
    color: goldenrod;
}

/* Show dropdown on hover */
.menu-item:hover .mega-dropdown {
    display: flex;
}

.mega-dropdown {
    transition: all 0.2s ease-in-out;
}

.mobile-user-menu {
    display: none;
}

/* ===== RESPONSIVE BREAKPOINTS FOR NAVBAR ===== */

/* Large tablets and small desktops (1000px - 1200px) */
@media (max-width: 1200px) {
    .navbar {
        padding: 12px 30px !important;
        gap: 15px;
    }

    .nav-center {
        gap: 15px;
    }

    .search-box {
        width: 250px;
    }

    .mega-dropdown {
        min-width: 500px;
        max-width: 800px;
        padding: 25px 30px;
    }

    .dropdown-section {
        width: 25%;
        min-width: 120px;
    }
}

/* Medium tablets (768px - 1000px) */
@media (max-width: 1000px) {
    .navbar {
        padding: 10px 20px !important;
        gap: 10px;
        flex-wrap: wrap;
    }

    .nav-center {
        gap: 10px;
        justify-content: space-between;
        width: 100%;
    }

    .nav-links {
        order: 1;
        flex-shrink: 1;
        gap: 5px;
        min-width: 0;
        overflow: hidden;
        padding-left: 10px;
    }

    .nav-links li {
        font-size: 13px;
        padding: 0px 8px;
    }

    .menu-title {
        font-size: 13px;
    }

    .search-container {
        order: 2;
        flex-shrink: 1;
        min-width: 0;
    }

    .search-box {
        width: 180px;
        min-width: 150px;
        height: 32px;
        padding: 4px 8px;
    }

    .search-box input {
        font-size: 13px;
    }

    .sell-button {
        order: 3;
        padding: 6px 10px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .icons {
        order: 4;
        gap: 15px;
        font-size: 18px;
        flex-shrink: 0;
    }

    .mega-dropdown {
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        min-width: 90vw;
        max-width: 95vw;
        width: auto;
        padding: 20px;
        max-height: 70vh;
        overflow-y: auto;
    }

    .dropdown-section {
        width: 33.33%;
        min-width: 120px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 14px;
    }

    .subcategory-link {
        font-size: 12px;
    }
}

/* Small tablets (600px - 768px) */
@media (max-width: 768px) {
    .navbarcontainer {
        position: unset;
    }

    .mobile-user-menu {
        display: block;
    }

    .user-menu {
        display: none;
    }

    .bi {
        font-size: 24px;
    }

    .close-btn {
        display: block;
    }

    .language {
        display: none;
    }

    .sell-button {
        display: none;
    }

    .logo-container {
        text-align: center;
        position: absolute;
        left: 45%;
    }

    .logo-image {
        height: 40px;
        width: 50px;
    }

    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 10px 15px;
        padding-bottom: 60px !important;
    }

    .hamburger-logo {
        display: flex;
    }

    .hamburger {
        display: block;
        font-size: 26px;
        cursor: pointer;
    }

    .icons {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 18px;
    }

    .search-container {
        display: flex;
        width: 100%;
        order: 2;
        justify-content: center;
        margin-top: 10px;
        position: absolute;
        bottom: 8px;
        left: 0;
    }

    .search-box {
        width: 90%;
        max-width: 700px;
        border-radius: 5px;
        display: flex;
        align-items: center;
        padding: 5px;
    }

    .search-box input {
        width: 100%;
        padding: 8px;
        font-size: 14px;
        border: none;
        outline: none;
    }

    /* Sidebar Styling */
    .nav-links {
        position: fixed;
        top: 0px;
        left: -100%;
        width: 70%;
        height: 100%;
        background: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        padding: 20px;
        transition: left 0.3s ease-in-out;
        z-index: 1001;
        display: flex;
        flex-direction: column;
    }

    .nav-links ul {
        list-style: none;
        padding: 0;
        margin-top: 50px;
    }

    .nav-links ul li {
        padding: 15px;
        border-bottom: 1px solid #ddd;
    }

    .nav-links ul li a {
        text-decoration: none;
        color: #333;
        font-size: 18px;
    }

    .nav-links ul li:last-child {
        border-bottom: none;
    }

    .close-btn {
        font-size: 30px;
        cursor: pointer;
        text-align: right;
    }

    .category-tabs {
        position: fixed;
        top: 0px;
        left: 0px;
        width: 70%;
        height: 100%;
        background: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        padding: 20px;
        transition: left 0.3s ease-in-out;
        z-index: 1000;
        display: flex;
        flex-direction: column;
    }

    /* Mobile sidebar styling */
    .sidebar {
        display: block;
        position: fixed;
        top: 0;
        left: -300px;
        width: 250px;
        height: 100%;
        background: white;
        color: black;
        padding: 10px;
        z-index: 100;
        transition: transform 0.3s ease-in-out;
        box-shadow: 3px 0 10px rgba(0, 0, 0, 0.3);
    }

    .sidebar.show {
        transform: translateX(300px);
    }

    .category-sidebar,
    .subcategory-sidebar {
        width: 100%;
        left: -100%;
        padding: 20px 25px;
        z-index: 102;
    }

    .category-sidebar.show,
    .subcategory-sidebar.show {
        transform: translateX(100%);
    }

    .subcategorytop {
        display: flex;
        align-items: center;
    }

    .close-btn,
    .back-btn {
        background: none;
        border: none;
        font-size: 18px;
        color: black;
        cursor: pointer;
        margin-top: 3px;
    }

    .close-btn {
        position: absolute;
        top: 5px;
        right: 5px;
    }

    .sidebar ul {
        list-style: none;
        padding: 0;
        margin-top: 20px;
        padding-left: 0;
    }

    .sidebar ul li {
        padding: 10px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .sidebar ul li:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .sidebar ul li a {
        text-decoration: none;
        color: black;
    }

    .arrow {
        font-size: 18px;
    }

    .Subcategorycontent {
        margin-top: 30px;
    }

    .megamenu-section {
        display: flex;
        flex-direction: column;
    }

    .megamenu-section h4 {
        font-weight: bold;
    }

    .sidebar-top {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .sidebar-top h6 {
        font-size: 16px;
        margin: 0;
    }

    .subcategorytop h2 {
        font-size: 16px !important;
        margin: 0;
        font-weight: 500;
    }
}

/* Very small screens (480px and below) */
@media (max-width: 480px) {
    .mega-dropdown {
        min-width: 95vw;
        padding: 15px;
    }

    .dropdown-section {
        width: 50%;
        min-width: 100px;
    }

    .section-title {
        font-size: 13px;
    }

    .subcategory-link {
        font-size: 11px;
    }
}

/* footer css code */

/* ===== FOOTER STYLES ===== */
footer {
    margin-top: auto;
    /* Pushes the footer to the bottom */
}

.footer {
    font-family: "Marcellus", serif;
    margin-top: auto;
    background-color: #202125;
    background-color: #1c1c1c;
    padding: 20px;
    color: white;
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: start;
    margin-left: 3rem;
}

.footer-logo .logo {
    height: 60px;
}

.footer-content {
    /* Footer content container styles */
}

.links {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    gap: 4px;
}

.links a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease-in-out;
    font-family: "DM Sans";
}

.links a:hover {
    color: #ff6600;
}

.copyright {
    padding: 10px;
    border-top: 2px solid white;
    margin-top: 20px;
}

/* Tab system for mobile footer */
.tab-buttons {
    display: none;
}

.tab-contents {
    /* Tab content styling */
}

.column {
    margin-left: 24px;
    font-size: 14px;
    text-align: left;
}

/* Show Headings on desktop */
.column h3 {
    display: block;
    font-size: 1rem !important;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 16px 28px;
    font-size: 18px;
    text-align: left;
}

/* ===== RESPONSIVE BREAKPOINTS FOR FOOTER ===== */

/* Small tablets and mobile (768px and below) */
@media (max-width: 768px) {
    .footer-logo {
        padding-left: 0;
        justify-content: center;
        padding-bottom: 20px;
        margin-left: 0;
    }

    .footer-logo .logo {
        height: 48px;
    }

    .column h3 {
        display: none;
    }

    .content-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 0px;
        margin: 12px 0px;
        font-size: 16px;
    }

    .column {
        text-align: left;
    }

    /* Tab system for mobile footer */
    .tab-buttons {
        display: flex;
        justify-content: space-around;
        border: 2px solid white;
        padding: 10px;
        margin-bottom: 20px;
    }

    .tab-buttons button {
        background: none;
        border: none;
        color: white;
        font-size: 16px;
        cursor: pointer;
        transition: color 0.3s ease-in-out;
    }

    .tab-buttons button.active {
        color: #facc15;
    }

    .tab-contents {
        display: none;
    }
}