body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background-color: #121212;
    color: #ddd;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e1e1e;
    padding: 1rem 2rem;
    color: orange;
    border-bottom: 2px solid orange;
}

.search {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
}

.cart-icon {
    cursor: pointer;
    font-size: 1.5rem;
}
.imagewrapper{
       margin:auto;
       width:70%;
}
.carousel img {
    width: 100%;
    height: auto;
    display: block;
}

.main {
    display: flex;
    padding: 1rem;
}

.sidebar {
    width: 220px;
    background-color: #1a1a1a;
    padding: 1rem;
    border-radius: 12px;
    margin-right: 2rem;
    box-shadow: 0 0 10px rgba(255,140,0,0.3);
}

.sidebar h2 {
    color: orange;
    margin-bottom: 1rem;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    color: #ccc;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.sidebar ul li a:hover {
    color: orange;
}

.products {
    flex: 1;
}

.products h2 {
    color: orange;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.item {
    background: #1f1f1f;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.2);
    text-align: center;
}

.item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.item button {
    margin-top: 10px;
    background: orange;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.cart {
    position: fixed;
    top: 70px;
    right: -400px;
    width: 300px;
    background: #1e1e1e;
    padding: 1rem;
    border-left: 2px solid orange;
    transition: right 0.4s ease;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(255, 140, 0, 0.3);
}

.cart.active {
    right: 0;
}

.cart h2 {
    color: orange;
}

.footer {
    text-align: center;
    padding: 1rem;
    background: #1e1e1e;
    border-top: 2px solid orange;
    margin-top: 2rem;
}

/* Header menu styling */
.menu ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu ul li a {
    color: orange;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.menu ul li a:hover {
    color: #ffb84d;
}
.pagination {
    text-align: center;
    margin-top: 1.5rem;
}

.pagination a {
    color: orange;
    margin: 0 5px;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border: 1px solid orange;
    border-radius: 6px;
    transition: background 0.3s;
}

.pagination a:hover {
    background: orange;
    color: #121212;
}

.active-page {
    background: orange;
    color: #000!important; 
    font-weight: bold;
    pointer-events: none; 
}

.carousel-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.carousel-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.5s ease-in-out;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 5px 12px;
  cursor: pointer;
  z-index: 10;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dots span {
  height: 10px;
  width: 10px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.carousel-dots{
  background-color: #717171;
}



.gridof {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
    max-height: 300px;
    padding: 0;

}
.desc{
   max-height: 2rem;
   overflow: hidden;
}
.gridofcont{
  min-width: 20px;
  margin: auto;
    
}   
.itemof{
        background: #1f1f1f;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.2);
    text-align: center;
}
.menu ul li a,
.sidebar ul li a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border: 1px solid transparent;
    border-radius: 6px;

}

.menu ul li a:hover,
.sidebar ul li a:hover {
    background-color: orange;
    color: #121212;
}
.toggle-btn{
    display:none;
}





.cart-icon {
  font-size: 28px;
  cursor: pointer;
  position: relative; /* default: relative inside layout */
  display: inline-block;
}

#cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: red;
  color: white;
  font-size: 12px;
  border-radius: 50%;
  padding: 2px 6px;
  font-family: sans-serif;
  display: none;
  min-width: 16px;
  text-align: center;
  line-height: 1;
}








@media (max-width: 768px) {
    .imagewrapper{
       width:100%;
}
.cats{
    font-size:1em;
}    
    #categoryList {
    display: none;
}

#categoryList.show {
    display: block;
}

.toggle-btn {
    display:block;
    background: none;
    border: none;
    color: orange;
    font-size: 1.5rem;
    cursor: pointer;
}


  .cart-icon {
    position: absolute;
    top: 1%;
    right: 1%;
  }



    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .menu ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .main {
        flex-direction: column;
        padding: 1rem 0.5rem;
    }

    .sidebar {
        width: 100%;
        margin-right: 0;
        padding:0;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .item {
        padding: 0.5rem;
    }

    /*.cart {*/
    /*    width: 100%;*/
    /*    right: -100%;*/
    /*}*/

    .cart.active {
        right: 0;
    }

    .carousel-container img,
    .slideshow-container img {
        max-height: 180px;
        object-fit: cover;
    }

    .carousel-btn {
        font-size: 1.2rem;
        padding: 2px 8px;
    }

    .pagination a {
        padding: 0.3rem 0.5rem;
        font-size: 0.9rem;
    }
.menu ul li a,
.sidebar ul li a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border: 1px solid orange;
    border-radius: 6px;
    background-color: #1e1e1e;
}

.menu ul li a:hover,
.sidebar ul li a:hover {
    background-color: orange;
    color: #121212;
}
.header {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}

.header h1 {
    font-size: 1rem;
    margin: 0;
    color: orange;
    flex: 1 1 100%;
    text-align: center;
}
.logo{
   font-size: 2rem!important; 
}
.menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.3rem 0;
}

.menu ul li a {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid orange;
    border-radius: 6px;
    background-color: #1e1e1e;
    white-space: nowrap;
}

.search {
    flex: 1 1 100%;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    padding: 0.3rem;
}

.cart-icon {
    font-size: 1.4rem;
    margin-left: auto;
}
.menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    padding: 0.2rem 0;
    margin: 0;
}

.menu ul li a {
    margin:auto;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    background-color: #1a1a1a;
    color: orange;
    border: 1px solid orange;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.products {
  overflow-y: auto;
  scrollbar-width: none;         /* Firefox */
}
.products::-webkit-scrollbar {
  display: none;                 /* Chrome/Safari */
}
}
/*media ends here*/
.product-details {
    background: #1f1f1f;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(255, 140, 0, 0.2);
    max-width: 800px;
    margin: 2rem auto;
    color: #ddd;
}

.product-details h1 {
    color: orange;
    margin-bottom: 1rem;
    text-align: center;
}

.product-details img {
    display: block;
    margin: 0 auto 1rem auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.2);
}

.product-details p {
    font-size: 1rem;
    margin: 0.8rem 0;
    line-height: 1.5;
}

.product-details strong {
    color: orange;
}

.product-details form {
    text-align: center;
    margin-top: 2rem;
}

.product-details button {
    background: orange;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    color: #121212;
    cursor: pointer;
    transition: background 0.3s;
}

.product-details button:hover {
    background: #ffb84d;
}
.toast {
    position: fixed;
    bottom: -100px;
    right: 30px;
    background-color: orange;
    color: #121212;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    z-index: 9999;
    pointer-events: none;
}

.toast.show {
    bottom: 30px;
    opacity: 1;
    transform: translateY(0);
}


