@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    box-sizing: border-box;
    list-style: none;
    scroll-behavior: smooth;
    font-family: "Mulish", sans-serif;
}

:root {
    --theme-text-color: #000000;
    --theme-text-desc-color: #3e3e3e;
    --theme-mbg-color: #f0f3f5;
    --theme-header-color: #f0f3f5cb;
    --theme-btn-color: #0f1d26;
    --theme-btn-text-color: #f6fdff;
    --theme-box-color: #fff;
    --theme-scroll-color: #d5dbdfd1;
    --theme-body-color: #fff;
    --theme-border-color: #d7dfe1;
    --popup-color: #f3f3f3;

    --main-color: #078ad6;
}

.dark-theme {
    --theme-text-color: #f8feff;
    --theme-text-desc-color: #858b90;
    --theme-mbg-color: #080c0e;
    --theme-header-color: #080c0ecb;
    --theme-btn-color: #f6fdff;
    --theme-btn-text-color: #181818;
    --theme-box-color: #101315;
    --theme-border-color: #1d2328;
    --theme-scroll-color: #232427;
    --theme-body-color: #080c0e;
    --popup-color: #101618;
}

body {
    transition: 0.3s ease-in-out;
    background: var(--theme-body-color);
}
header {
    width: 100%;
    top: 0;
    right: 0;
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: space-between;
    padding: 22px 10%;
    left: 0;
    transition: 0.3s ease-in-out;
    z-index: 5;
}

header.sticky {
    background: var(--theme-header-color);
    box-shadow: 0 0 20px #00000018;
    backdrop-filter: blur(8px);
}

header .theme {
    vertical-align: middle;
    font-size: 20px;
    margin-right: 10px;
    color: var(--theme-text-color);
    cursor: pointer;
}

header .logotype {
    font-size: 20px;
    font-weight: 700;
    color: var(--theme-text-color);
    transition: 0.3s ease-in-out;
}

header .mobile-mode {
    display: none;
}

header .menu-list {
    display: none;
}

@media (hover:hover) {
    header .logotype:hover {
        color: var(--main-color);
    }
}

@media (hover: none) {
    header .logotype:active {
        color: var(--main-color);
    }
}

header .links {
    display: flex;
    margin-left: 125px;
}

header .links a {
    font-size: 16px;
    font-weight: 600;
    color: var(--theme-text-color);
    margin-right: 60px;
    display: inline-block;
    transition: 0.3s ease-in-out;
}

header .links li:last-child a {
    margin-right: 0;
}

@media (hover:hover) {
    header .links a:hover {
        color: var(--main-color);
    }
}

@media (hover:none) {
    header .links a:active {
        color: var(--main-color);
    }
}

header .reg {
    font-weight: 600;
    color: var(--theme-btn-text-color);
    background: var(--theme-btn-color);
    padding: 9px 18px;
    border-radius: 50px;
    transition: 0.30s ease-in-out;
}

header .reg:hover {
    background: var(--main-color);
}

header .login {
    font-weight: 600;
    color: var(--white-text-color);
    margin-right: 15px;
}

#main {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 120px 24%;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease-in-out;
}

.container {
    padding: 20px;
}

.container .prd-con {
    background: var(--theme-body-color);
    border: 1px solid var(--theme-border-color);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 0 12px #00000018;
}

.img-ava img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

.seller-line {
    display: flex;
    align-items: center;
}

.prd-seller {
    display: flex;
    align-items: center;
}

.prd-seller .user-login {
    font-size: 18px;
    font-weight: 600;
    color: var(--theme-text-color);
}

.name-user .rating-count {
    font-size: 14px;
    margin-left: 6px;
    color: #777777;
}

.name-user .rating-stars {
    vertical-align: middle;
    display: flex;
    align-items: center;
}

.btn-right {
    margin-left: auto;
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    background-color: var(--main-color);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 8px 0 0 8px;
    margin-right: 1px;
}

.prd-info {
    margin-top: 20px;
    margin-bottom: 0px;
    display: flex;
}

.prd-type .type-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--theme-text-color);
}

.prd-rate {
    margin-left: 20px;
    margin-bottom: 12px;
}

.prd-rate .type-title {
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--theme-text-color);
}

.prd-new-con {
    width: 48%; /* Adjusted to 45% to fit better */
}

.cl-con {
    width: 45%; /* Adjusted to 45% to fit better */
}

.back-to {
    margin-bottom: 7px;
}

.back-to span {
    vertical-align: middle;
    font-size: 20px;
    color: var(--main-color);
}

.back-to a {
    color: var(--main-color);
}

.category {
    margin: 12px 0 20px 0;
}

.category .cater {
    padding: 8px 0px;
    border-radius: 8px;
    color: #6F7476;
    font-weight: 600;
    padding-right: 18px;
}

.category .cater i {
    margin-right: 5px;
}

.prd-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--theme-text-color);
}

.seller-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--theme-text-color);
}

.prd-desc-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--theme-text-color);
}

.prd-desc-text {
    font-weight: 600;
    color: var(--theme-text-desc-color);
}

.chg-con {
    margin-top: 20px;
    border-radius: 8px;
    max-width: 450px;
    overflow-y: scroll;
    padding: 6px 8px;
    height: 650px;
}

.chg-box {
    border-radius: 8px;
    border: 1px solid var(--theme-border-color);
    background: var(--theme-box-color);
    margin-bottom: 10px;
    margin-right: 6px;
    box-shadow: 0 0 12px #0000000d;
}

.chg-box:last-child {
    margin-bottom: 0px;
}

.ch-title {
    margin-top: 8px;
    width: 100%;
    border-bottom: 1px solid var(--theme-border-color);
    padding-bottom: 8px;
    margin-bottom: 10px;
    color: var(--theme-text-color);
}

.ch-desc {
    margin-left: 10px;
    margin-bottom: 10px;
    color: var(--theme-text-desc-color);
}

.ch-title span {
    margin-left: 10px;
}

.rating {
    display: flex;
    position: relative;
}

.star {
    font-size: 1.7rem;
    color: var(--theme-border-color);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.menu-container {
    position: relative;
    display: inline-block;
}

.menu-toggle {
    color: white;
    border: none;
    transition: background-color 0.3s;
    padding: 5.5px 8px;
    border-radius: 0 8px 8px 0;
    border-left: 1px solid var(--theme-border-color);
    font-size: 18px;
    background-color: var(--main-color);
    cursor: pointer;
}

.menu-toggle:hover {
    background-color: #0056b3;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--theme-body-color);
    border: 1px solid var(--theme-border-color);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-option {
    color: var(--theme-text-color);
    padding: 10px 14px;
    text-decoration: none;
    display: block;
    font-size: 15px;
    border-bottom: 1px solid var(--theme-border-color);
    transition: background-color 0.3s, color 0.3s;
}

.menu-option:last-child {
    border-bottom: 1px solid transparent;
}

.menu-option:hover {
    background: var(--popup-color);
}

@media (hover:hover) {
    .star:hover,
    .star.hover {
    color: #ffca28;
    }
}

@media (hover: none) {
    .star:active,
    .star:active {
    color: #ffca28;
    }
}

.star.selected {
    color: #ffca28;
    animation: scale-animation 0.5s forwards;
}

@keyframes scale-animation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

::-webkit-scrollbar {
    width: 7px;
}
  
::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb {
    background: var(--theme-scroll-color);
    border-radius: 20px;
    transition: 0.3s ease-in-out;
}

::-webkit-scrollbar-button {
    display: none;
}

header .mobile-mode {
    display: none;
}

header .menu-list {
    display: none;
}

@media screen and (max-width: 1176px) {
    .chg-con, header .links, .right-side {
        display: none;
    }
    header {
        padding: 22px 5%;
        width: 100%;
        height: 70px;
    }

    header .logotype {
        position: fixed;
        top: 22px;
        left: 5%;
    }

    header .mobile-mode {
        display: flex;
        position: fixed;
        top: 18px;
        right: 5%;
    }

    header .theme {
        margin-top: 7px;
    }

    header .links {
        display: none;
    }

    header .right-side {
        display: none;
    }

    header .menu-icon {
        font-size: 32px;
        color: var(--theme-text-color);
    }

    header .menu-list {
        display: none;
        position: absolute;
        background-color: var(--theme-body-color);
        border: 1px solid var(--theme-border-color);
        border-radius: 6px;
        z-index: 1;
        transition: all .5s ease;
        right: 20px;
        top: 70px;
        transform: translateY(-20px);
        transition: 0.35s ease;
    }

    header li {
        color: var(--theme-text-color);
        padding: 10px 14px;
        text-decoration: none;
        display: block;
        font-size: 15px;
        border-bottom: 1px solid var(--theme-border-color);
        transition: background-color 0.2s ease-in-out;
    }

    header .menu-list li:hover {
        background-color: var(--popup-color);
    }
    
    header .menu-list li:last-child {
        border-bottom: 1px solid transparent;
    }

    header .menu-list a {
        font-size: 16px;
        font-weight: 600;
        color: var(--theme-text-color);
        margin-right: 0px;
        display: inline-block;
        transition: 0.3s ease-in-out;
    }

    header .menu-list.hide {
        opacity: 0;
        transform: translateY(-20px);
    }
    
    #main {
        padding-left: 0px;
        padding-right: 0px;
        padding-top: 50px;
        width: 100%;
    }

    .prd-con {
        width: 100%;
    }

    .seller-line {
        display: block;
    }

    .btn-right {
        margin-top: 15px;
    }

    .prd-new-con {
        width: 100%;
    }

    .prd-info {
        flex-direction: column;
    }

    .prd-rate {
        margin-left: 0px;
    }

    .container .prd-con .prd-new-con .prd-seller .btn-right {
        margin-left: 40px;
    }

    .container {
        padding-bottom: 100px;
    }

    .prd-desc-text {
        font-size: 13px;
    }

    /* .user-login i {
        position: relative;
        top: -19px;
        left: 83px;
    } */
}