* {
  font-family: "Raleway", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --mainBg: #141518;
  --card: #777;
  --darkerColor: #555;
  --green: #0dff00;
  --sideBar: #242730;
}
body {
  background-color: #fff;
  transition: all 0.2s ease-in-out;
  overflow-x: hidden;
}
.nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 4em;
  padding: 20px;
}
.logo a {
  font-family: "Kareudon";
  font-weight: 700;
  text-decoration: none;
  color: #000;
}
.searchBar input {
  padding: 12px 20rem;
  border-radius: 20px;
  border: none;
  outline: none;
  background-color: #fdedd2;
  padding-left: 40px;
}
.searchBar input::placeholder {
  font-weight: 700;
}
.input-container {
  position: relative;
  display: inline-block;
}
.input-container .icon,
.input-group .icon {
  position: absolute;
  width: 17px;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}
.profile {
  display: flex;
  align-items: center;
  /* width: 25%; */
  width: 10rem;
  justify-content: space-between;
}
.profile img {
  width: 20px;
}
.profile .cart,
.profile .love,
.profile .user {
  background-color: #fdedd2;
  padding: 7px;
  border-radius: 50%;
  text-align: center;
  display: flex;
  cursor: pointer;
}
.profile .cart span {
  color: rgb(0, 72, 255);
  text-decoration: none;
  font-weight: 900;
}

/* sidebar */
.mainCont {
  display: flex;
  margin-top: 3rem;
}
.sidebar {
  display: flex;
  flex-direction: column;
  width: 15%;
  padding-left: 30px;
  position: fixed;
  background-color: #fff;
  height: 100vh;
  transition: all 0.2s ease-in-out;
}
.sidebar h3 {
  font-size: 2em;
  padding: 20px;
}
.sidebar button {
  background-color: transparent;
  outline: none;
  cursor: pointer;
  outline: none;
  border: 0;
  font-size: 1.2em;
  padding: 10px;
  padding-left: 20px;
  text-align: left;
}
.content {
  margin: 3rem;
  margin-left: 20rem;
  margin-top: 1rem;
  overflow-x: hidden;
  margin-bottom: 3rem;
}
.selected {
  font-weight: 900;
  color: rgb(173, 89, 0);
}

/* dark mode css */
body.dark,
.sidebar.dark {
  background-color: var(--darkerColor) !important;
  color: #fff;
}
.sidebar.dark {
  background-color: var(--darkerColor) !important;
  color: #fff;
}

body.dark .tablinks,
body.dark .logo a {
  color: #fff;
}
body.dark .product {
  border: 1px solid #fff;
}
body.dark .product .desc .top {
  border-bottom: 1px solid #fff;
}

body.dark .minicard,
body.dark .div li,
body.dark .menu ul li span {
  color: #000;
}

body.dark .sellerinfo,
body.dark .sellerProducts {
  background-color: #9c9c9c;
  color: #fff;
}

/* default page */

.default {
  display: flex;
  flex-direction: column;
}
.cards1 {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.card {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.card .text,
.minicard .text {
  width: 100%;
  line-height: 3rem;
}
.text h4 {
  font-size: 2em;
}
.text p {
  font-size: 1em;
}
.text button {
  padding: 10px;
  outline: none;
  background: #fdedd2;
  cursor: pointer;
  border: none;
  border-radius: 20px;
  font-weight: 700;
}
.card .img img {
  width: 50%;
}
.miniCards {
  width: 100%;
}
.minicard {
  display: flex;
  align-items: center;
  width: 100%;
  line-height: 3rem;
  margin-bottom: 3rem;
  position: relative;
}
.minicard .text button {
  padding: 10px;
  outline: none;
  background: white;
  cursor: pointer;
  border: none;
  border-radius: 20px;
  font-weight: 700;
}
.miniCards .minicard {
  background-color: #fdedd2;
  padding: 15px;
  border-radius: 7px;
}
.minicard .text h4 {
  font-size: 1.5em;
}
.minicard .text.h {
  text-align: center;
  transform: translateX(2rem);
}
.minicard .text.h h4 {
  width: 75%;
  text-align: center;
}
.minicard .text p {
  font-size: 1em;
}
.minicard .img img {
  position: absolute;
  left: 65%;
  top: 10%;
  width: 33%;
  transform: rotate(-60deg);
}

/* popular Categories section */
.popularCats {
  margin-top: 3rem;
  line-height: 2.5rem;
}
.popularCats h3 {
  font-size: 2.5em;
  margin-bottom: 1rem;
}
.itemCards {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.itemCard {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.itemCards .itemCard img {
  width: 70%;
}
.itemCards .itemCard:nth-child(2) img {
  width: 80%;
}
.itemCards .itemCard:nth-child(2) {
  margin-right: 5rem;
}
.itemCards .itemCard button {
  font-size: 1.5em;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  margin-top: 1.5rem;
  transform: translateX(-25px);
}
.itemCards .itemCard:nth-child(2) button {
  margin-top: 5rem;
}
.menu {
  position: absolute;
  top: 80px;
  z-index: 400;
  text-transform: capitalize;
  right: 18px;
  padding: 10px 20px;
  background: #fdedd2;
  width: 200px;
  box-sizing: 0 5px 25px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  transition: 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}
.menu .sellerD {
  display: none;
  visibility: hidden;
  opacity: 0;
}
.menu.active,
.menu .sellerD.active {
  visibility: visible;
  opacity: 1;
  display: block;
}
.menu p {
  width: 100%;
  text-align: center;
  font-size: 18px;
  padding: 20px 0;
  font-weight: 900;
  color: #555;
  line-height: 1.2em;
}
.menu::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: #fdedd2;
  transform: rotate(45deg);
}
.menu ul li {
  list-style: none;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}
.menu ul li span {
  font-weight: 700;
  display: inline-block;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}
.menu ul li img {
  max-width: 20px;
  margin-right: 10px;
  opacity: 0.5;
  transition: 0.3s ease-in-out;
}
.menu ul li:hover img {
  opacity: 1;
}
.menu ul li:hover span {
  color: rgba(127, 5, 5, 0.799);
}
.cont {
  /* height: 5.5vh  */
}
.cont.active {
  height: 5.5vh;
}
.cont .answer {
  position: relative;
  visibility: hidden;
}
.cont .answer button {
  position: absolute;
  top: 10px;
  width: 100px;
  padding: 3px;
}
.cont .answer.active {
  visibility: visible;
}

/* product */

.contGrid {
  display: grid !important;
  /* grid-template-rows: repeat(3, 300px); */
  grid-template-columns: repeat(3, 300px);
  gap: 100px;
}

.product {
  width: 300px;
  border: 1px solid #555;
}
.product img {
  width: 100%;
  object-fit: cover;
}
.product .desc {
  display: flex;
  flex-direction: column;
}
.product .desc .top {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  text-transform: capitalize;
  padding: 10px;
  border-bottom: 1px solid #555;
}
.product .desc .top .flex {
  display: flex;
  width: 85px;
  justify-content: space-between;
}
.product .desc .top .flex button {
  background: transparent;
  border: none;
  outline: none;
}
.product .desc .top .flex img {
  width: 90%;
  cursor: pointer;
}
.product .desc .top .flex .two {
  width: 60%;
}
.product .desc .bottom {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  text-transform: capitalize;
}
.product .desc .bottom p {
  font-weight: 900;
  font-size: 18px;
}
.product .desc .bottom a {
  text-decoration: underline;
  cursor: pointer;
}

/* form for seller */

input[type="file"] {
  /* display: none; */
  opacity: 0;
}
.files {
  width: 1px !important;
  height: 1px !important;
}
.upload {
  width: 20rem;
  /* height: 1rem; */
  margin: 20px;
  /* padding: 120px; */
  margin-top: 40px;
  background: #777;
  border: none;
  border-radius: 5px;
  transition: 0.3s ease-out;
  color: white;
  cursor: pointer;
  text-align: center;
  font-size: 20px;
  align-items: center;
  padding: 35px;
}
.upload:hover,
.btn:hover {
  cursor: pointer;
  scale: 1.1;
  background: var(--darkerColor);
  color: #fff;
  border: 1px solid var(--mainBg);
}
.form {
  /* width: 45%; */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: center; */
}
.form input[type="text"],
.form input[type="number"] {
  width: 20rem;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  margin-top: 2rem;
  outline: none;
  border: none;
  background: #a2a2a2;
  color: white;
}
.form select {
  width: 20rem;
  padding: 1rem 5.5rem;
  border-radius: 20px;
  margin-top: 2rem;
  outline: none;
  border: none;
  background: #a2a2a2;
  color: white;
  /* background-color: #292929; */
}
.form select {
  padding-left: 50px;
}
.form .input-group {
  position: relative;
}

.form option {
  padding: 0.7;
}
.form input::placeholder {
  color: white;
}
.form.input-container,
.input-group {
  position: relative;
  display: inline-block;
}
.form .input-container .icon,
.input-group .icon {
  position: absolute;
  width: 24px;
  left: 15px;
  top: 67%;
  transform: translateY(-50%);
  z-index: 1;
}

.form button {
  width: 20rem;
  padding: 0.7rem 5rem;
  border-radius: 20px;
  margin-top: 5rem;
  cursor: pointer;
  background: #e0670a;
  outline: none;
  border: none;
  font-weight: 700;
  color: white;
}

.form p {
  font-size: 25px;
}

/* product details */

.ProductDeets {
  height: 80vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.7rem;
}
.ProductDeets .text h1,
.ProductDeets .text p {
  padding: 10px;
}
.ProductDeets .text h1 {
  font-size: 38px;
}
.ProductDeets .text .cat {
  font-size: 25px;
  font-weight: 700;
}
.ProductDeets .text .det {
  font-size: 18px;
  padding-bottom: 30px;
  line-height: 1.5em;
}
.ProductDeets .text .det span {
  font-weight: 700;
  font-size: 20px;
}
.ProductDeets .productImg {
  margin-right: 2em;
}
.ProductDeets .top {
  display: flex;
  width: 50%;
  justify-content: space-between;
  align-items: center;
  text-transform: capitalize;
  padding: 10px;
  border-top: 1px solid #555;
}
.ProductDeets .top .flex {
  display: flex;
  width: 100px;
  justify-content: space-between;
}
.ProductDeets .top .flex button {
  background: transparent;
  border: none;
  outline: none;
}
.ProductDeets .top .flex img {
  width: 90%;
  cursor: pointer;
}
.ProductDeets .top .flex .two {
  width: 60%;
}
.ProductDeets .top p {
  font-size: 22px;
  font-weight: 900;
}
.ProductDeets .productImg {
  width: 80%;
  height: 80%;
}

/* seller details */
.seller {
  width: 70vw;
}

.seller .flex {
  display: flex;
  justify-content: space-between;
}
.seller .sellerDetails {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.seller .sellerinfo {
  width: 20rem;
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  padding: 20px;
  justify-content: center;
  color: #fff;
  border-radius: 7px;
  background: var(--darkerColor);
  height: 20%;
  font-size: 18px;
}
.seller .sellerProducts {
  height: 75%;
  background: var(--darkerColor);
  color: #fff;
  border-radius: 7px;
  padding: 20px;
  font-size: 20px;
  overflow-y: scroll;
}
.seller .sellerProducts .divItem {
  height: 25rem;
}
.seller .sellerProducts .item {
  margin: 30px 0px;
  padding: 15px;
  background: #fff;
  color: var(--card);
}
.seller .sellerProducts .item p {
  padding: 20px;
  font-size: 12px;
}
.seller .sellerProducts .flex {
  margin: 30px 0px;
  padding: 15px;
  background: #fff;
  color: var(--card);
  /* width: 150%; */
  align-items: center;
  justify-content: space-between;
}
.seller .sellerProducts .flex .options {
  width: 20%;
  display: flex;
  justify-content: space-between;
}
.seller .sellerProducts .flex img {
  width: 40%;
  cursor: pointer;
}
#Search .defP:nth-child(1) {
  padding: 20px;
}

/* unauthorized */
.unauthorized {
  background-color: var(--darkerColor);
  color: #fff;
  font-size: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  height: 100vh;
}

/* logout btn */
.logout {
  width: 7rem;
  padding: 15px;
  font-size: 900;
  font-size: 1em;
  border-radius: 7px;
  outline: none;
  border: none;
  cursor: pointer;
}

.logout {
  transition: 0.3s ease-in-out;
}

.logout:hover {
  background-color: #535353c4;
  color: #fff;
}

/* responsiveness */
@media screen and (max-width: 1280px) {
  .contGrid {
    display: grid !important;
    grid-template-columns: repeat(2, 300px);
    gap: 100px;
  }
}

.hamMenu {
  display: none;
}
.navSidebar.sidebar {
  display: none;
}

@media screen and (max-width: 968px) {
 .hamMenu {
    display: block;
  }
  .sidebar.lg{
	display: none;
  }

  /* Base sidebar */
  .navSidebar.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;        /* full screen height */
    width: 250px;         /* default width */
    background-color: #353535;
    color: white;
    padding: 30px 15px;
    z-index: 1000;
    transform: translateX(-100%); /* hidden by default */
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  /* When active (open) */
  .navSidebar.sidebar.active {
    transform: translateX(0);
  }

  /* Sidebar buttons */
  .navSidebar.sidebar .div {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .navSidebar.sidebar .div button {
    color: white;
    background: none;
    border: none;
    text-align: left;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
  }

  /* Overlay for outside click */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 900;
    display: none;
  }

  .sidebar-overlay.active {
    display: block;
  }
  .content {
    margin-left: 4rem;
  }
  .miniCards {
    width: 95%;
  }
  .menu {
    right: 70px;
  }
  .seller {
    width: 100%;
  }
  .seller .sellerinfo {
    width: 27rem;
  }
  .contGrid{
	gap: 50px;
  }
}

@media screen and (max-width: 700px) {
	.contGrid{
    grid-template-columns: repeat(1, 300px);
	}
.content{
	margin: 0rem;
	display: flex;
	align-self: center;
	justify-content: center;
	margin-left: 6rem;
}
}
@media screen and (max-width: 600px) {
  .nav {
    align-items: center; /* center horizontally */
    gap: 10px; /* spacing between logo, search, profile */
    padding: 10px; /* reduce padding on small screens */
  }
  .contGrid {
    display: grid !important;
    grid-template-columns: repeat(1, 300px);
  }
  .content {
    margin-left: 1.2rem;
    padding: 0;
    width: 100vw;
  }
  .navSidebar.sidebar {
    width: 70%;
  }
  .cards1 {
    flex-direction: column;
  }
  .miniCards {
    margin-top: 2rem;
  }
  .card .img img {
    width: 80%;
  }
  .itemCards {
    flex-direction: column;
  }
  .itemCards .itemCard {
    padding-left: 4rem;
  }
  .itemCards .itemCard button {
    font-weight: 800;
    color: #630000c4;
  }
  .itemCards .itemCard:nth-child(2) img {
    width: 130%;
  }
  .itemCards .itemCard:nth-child(2) button {
    transform: translateY(-50px);
  }
  .searchBar {
    margin: 0 auto;
  }
  .searchBar input {
    padding: 12px 36px;
    width: 4rem;
    margin: 0 auto;
  }
  .profile .love {
    display: none;
  }
  /* .profile {
	display: flex;
	align-items: center;
	 width: 25%; 
	width: 5.5rem;
	justify-content: space-between;
} */

  .profile {
    display: flex;
    justify-content: center; /* center profile icons */
    gap: 15px; /* spacing between cart/love/user */
  }
  .seller {
    width: 100%;
  }
  .seller .flex {
    flex-direction: column;
    justify-content: flex-start;
  }
  .seller .form {
    margin-bottom: 4rem;
  }
  .seller .sellerinfo {
    width: 100%;
    margin-bottom: 4rem;
  }
  .logo a {
    font-size: 13px;
  }
  .form input,
  .form select {
    padding: 1rem;
  }
}




/* hide hamburger on desktop */
.hamMenu { display: none; }

/* Sidebar + overlay only for tablet and smaller */
@media screen and (max-width: 968px) {
  .hamMenu { display: block; }

  /* Drawer off-screen by default (visible only via transform) */
  .navSidebar.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background-color: #353535;
    color: white;
    padding: 30px 15px;
    z-index: 1000;
    transform: translateX(-100%); /* hidden off-screen */
    transition: transform 0.28s ease;
    display: block; /* ensure it's renderable on small screens */
  }

  .navSidebar.sidebar.active {
    transform: translateX(0); /* slide in */
  }

  .navSidebar.sidebar .div { display:flex; flex-direction:column; gap:1rem; }
  .navSidebar.sidebar .div button {
    color:white; background:none; border:none; text-align:left; padding:10px; cursor:pointer;
  }

  /* overlay that dims the page */
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 900;
    display: none;
  }
  .sidebar-overlay.active { display: block; }
}

/* tweak width on very small screens */
@media screen and (max-width: 600px) {
  .navSidebar.sidebar { width: 70%; }
}




/* Tablets and below */
@media screen and (max-width: 1024px) {
  .ProductDeets {
    flex-direction: column;
    height: auto;
    text-align: center;
  }

  .ProductDeets .productImg {
    width: 60%;
    height: auto;
    margin: 0 auto 2rem auto;
  }

  .ProductDeets .text h1 {
    font-size: 28px;
  }

  .ProductDeets .text .cat {
    font-size: 20px;
  }

  .ProductDeets .text .det {
    font-size: 16px;
  }

  .ProductDeets .top {
    width: 100%;
    justify-content: space-around;
  }
}

/* Small screens (phones <600px) */
@media screen and (max-width: 600px) {
  .ProductDeets {
    padding: 1rem;
  }

  .ProductDeets .productImg {
    width: 90%;
    height: auto;
  }

  .ProductDeets .text h1 {
    font-size: 22px;
  }

  .ProductDeets .text .cat {
    font-size: 16px;
  }

  .ProductDeets .text .det {
    font-size: 14px;
    line-height: 1.3em;
  }

  .ProductDeets .text .det span {
    font-size: 16px;
  }

  .ProductDeets .top p {
    font-size: 18px;
  }

  .ProductDeets .top .flex {
    width: 80px;
  }
}
