* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-secondary: #0b0f14;
    --bg-primary: #fff;
    --text-primary: #333;
    --muted: #a8b3cf;
    --primary: tomato;
    --fg: #e6eefc;
    --accent: #5b9cff;
    --text-secondary: #cccccc;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial;
    background: #cfcea8;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: rgba(241, 234, 234, 0.781);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    width: 120px;
}

.logo img {
    width: 100%;
}

.navbar ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
}

.navbar ul li {
    position: relative;
}

.navbar ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: var(--primary);
}

.navbar ul li .dropdown {
    display: none;
    position: absolute;
    top: 35px;
    left: 0;
    background-color: var(--bg-primary);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    min-width: 150px;
}

.navbar ul li .dropdown a {
    display: block;
    padding: 10px 15px;
    color: var(--text-primary);
    font-weight: 400;
}

.navbar ul li .dropdown a:hover {
    background-color: var(--bg-primary);
    color: var(--primary);
}

.navbar ul li:hover .dropdown {
    display: block;
}

.navbar ul .btn {
    padding: 12px 15px;
   /* background-color: var(--primary); */
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: fit-content;
}

.navbar ul .loginLink:hover a {
    color: var(--text-primary);
}

.navbar ul .btn:hover {
    background-color: rgb(243, 80, 52);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 22px;
}

.user-menu {
   /* display: none; */
    position: relative;
}

.user-menu .avatar-btn {
    border: none;
    background: var(--primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: bold;
    font-size: 16px;
    align-items: center;
    justify-content: center;
}

#avatarLetter {
    text-transform: capitalize;
}

.user-menu .dropdown {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background-color: var(--bg-primary);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    min-width: 120px;
    z-index: 1000;
}

.user-menu .dropdown li {
    list-style: none;
    padding: 8px 15px;
}

.search-container {
    display: flex;
    align-items: center;
    border: 1px solid var(--text-primary);
    border-radius: 50px;
    padding: 5px 10px;
    transition: all 0.3s;
}

.search-container input {
    border: none;
    outline: none;
    padding: 5px 10px;
    border-radius: 50px;
    width: 150px;
    transition: width 0.3s;
}

.search-container input:focus {
    width: 250px;
}

.search-container button {
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-primary);
    margin-left: 5px;
}

.search-container button i {
    color: var(--text-primary);
    opacity: 0.6;
}

/* Hero carousal */

.wrap {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 16px;
}

.carousal {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, #111922, #0c121a);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.viewport {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

.slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    user-select: none;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05);
}

.slide .slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--fg);
    z-index: 2;
    gap: 15px;
}

.slide .slide-content h2 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.slide .slide-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

.slide .slide-content button {
    padding: 12px 30px;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--bg-primary);
    transition: 0.3s;
}

.slide .slide-content button:hover {
    background: var(--text-primary);
    color: var(--fg);
}

.viewport .btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--bg-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: 0.2s;
    z-index: 2;
}

.viewport .btn:hover {
    background: rgba(0, 0, 0, 0.65);
}

.viewport .btn:active {
    scale: 0.96;
}

.viewport .prev {
    left: 10px;
}

.viewport .next {
    right: 10px;
}

.dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: 0.25s;
}

.dot[aria-current="true"] {
    background: var(--accent);
    width: 28px;
}

.products-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

#filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 15px;
    margin: 0 8px 8px 0;
    cursor: pointer;
    border: 1px solid var(--text-primary);
    border-radius: 5px;
    background: var(--fg);
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.filter-btn:focus {
    outline: none;
}

.filter-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    color: var(--fg);
    transform: scale(1.05);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--fg);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.card {
    width: 200px;
    margin: 10px;
    padding: 10px;
    border: 3px solid var(--fg);
    text-align: center;
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
}

.card.show {
    opacity: 1;
    transform: translateY(0);
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--fg);
}

.card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.card h3:hover a {
    color: var(--primary);
    text-decoration: underline;
}

.card p {
    color: var(--primary);
}

.card:hover img {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: scale(1.05);
}

/* Footer */

.footer {
    background-color: var(--fg);
    color: var(--text-primary);
    padding: 50px 20px 20px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    gap: 20px;
}

.footer-brand {
    flex: 1 1 250px;
    margin-bottom: 30px;
}

.footer-brand .logo {
    width: 150px;
}

.footer-brand .logo img {
    width: 100%;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 5px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary);
    border-radius: 50%;
    padding: 5px;
}

.social-icons a img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
}

.social-icons a img:hover {
    transform: scale(1.2);
}

.footer-links {
    display: flex;
    flex: 2 1 500px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.link-group {
    margin-bottom: 20px;
}

.link-group h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.link-group a {
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
    transition: color 0.3s;
}

.link-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--text-primary);
    font-size: 13px;
}

@media (max-width: 1024px) {
    .navbar ul {
        position: absolute;
        top: 100%;
        left: -100%;
        flex-direction: column;
        width: 100%;
        z-index: 1000;
        background-color: var(--bg-primary);
        gap: 0;
        transition: left 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .navbar ul li {
        text-align: center;
        padding: 15px 0;
    }

    .navbar ul li .dropdown {
        position: static;
        box-shadow: none;
    }

    .navbar ul li:hover .dropdown {
        display: none;
    }

    .navbar ul li.active .dropdown {
        display: block;
    }

    .search-container {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .navbar ul.show {
        left: 0;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }    
}

@media (max-width: 480px) {
    .footer-brand {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-bottom: 0;
    }

    .footer-links {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .link-group {
        margin: 0 20px 20px 20px;
        justify-content: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}


