/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}
/* Product Details Page */
.product-container {
  display: flex;
  gap: 20px;
  max-width: 800px;
  margin: 50px auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-slider {
  position: relative;
  width: 300px;
}
.image-slider img {
  width: 100%;
  border-radius: 10px;
}
.slider-container {
  position: relative;
  text-align: center;
}

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

.dot {
  width: 10px;
  height: 10px;
  background-color:rgb(226, 216, 216);
  border-radius: 50%;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: rgb(90, 87, 87);
}

.slider-buttons {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
}

.slider-buttons button {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px 10px;
}

.slider-buttons button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.product-info {
  flex: 1;
}

.product-info h2 {
  margin: 0;
  font-size: 1.8rem;
}

.product-info p {
  font-size: 1rem;
  color: #555;
}

.cta-button {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #ff6600;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.cta-button:hover {
  background-color: #cc5500;
}

/* Search Results Container */
#ankit {
  max-width: 1200px;
  margin: 20px auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Always 2 columns */
  gap: 20px;
  padding: 20px;
}

/* Responsive Design: Make it 1 column on smaller screens */
@media (max-width: 768px) {
  #ankit {
      grid-template-columns: repeat(2, 1fr); /* Show 1 product per row on small screens */
  }
}


/* Product Card */
.product-result {
  background: white;
  display: grid;
  border:none;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
  text-align: center;
}

.product-result:hover {
  transform: scale(1.05);
}

/* Product Image */
.product-result img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}
@media (max-width: 768px) {
  .product-result img {
    height: 100%;
  }
 
}
.pos{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  flex: auto;
  margin-top: 20%;
}

/* Product Info */
.product-info {
  padding: 5px;
}

.product-info h3 {
  margin: 5px 0;
  font-size: 0.8rem;
  color: #333;
}

.product-info p {
  font-size: 1rem;
  color: #777;
}
@media only screen and (max-width: 600px){
  .pos{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    flex: auto;
    margin-top: 40%;
  }
  .chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff3e01;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: background-color 0.3s;
  }
  
}


/* CTA Button */
.cta-button {
  display: inline-block;
  width: 100%;
  padding: 10px;
  background-color: #ff6600;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #cc5500;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  flex: auto;
}
.lo{
  text-align: center;
}

/* Special Deals Banner */
.special-deals-banner {
  background-color: #ff3e01;
  color: white;
  overflow: hidden;
  white-space: nowrap;
}

.banner-content {
  display: inline-block;
  padding: 10px 0;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Header styles */
header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.logo-container {
  justify-self: center;
  text-align: center;
}
.logo img {
  height: auto;
  width: 280px;
  max-width: 100%;
}

nav ul {
  display: flex;
  list-style-type: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
}

.header-icons {
  display: flex;
  
  
}

.icon-button {
  background: none;
  border: none;
  font-size: 18px;
  margin-left: 15px;
  cursor: pointer;
  position: relative;
  color: #333;
}

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff3e01;
  color: white;
  font-size: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Side menu styles */
.side-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100%;
  background-color: #fff;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease-in-out;
  z-index: 1001;
}

.side-menu.active {
  left: 0;
}

.close-menu {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.side-menu ul {
  list-style-type: none;
  padding: 20px;
}

.side-menu ul li {
  margin-bottom: 15px;
}

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

/* Main content styles */
main {
  padding: 0px 0;
}

section {
  margin-bottom: 40px;
}


h1,
h2 {
  margin-bottom: 20px;
}
#category {
  align-content: center;
  text-align: center;
  gap: 20px;

}
.men-container{
  display: flexbox;
  justify-content: center;
  background-image:url("men.jpg");
  height:200px;
  width:100%;
}
.women-container {
  display: flexbox;
  justify-content: center;
  background-image:url("women.jpg");
  height:200px;
  width:100%;
}
.slider-product {
  min-width: 100%;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px;
  background: #fff;
}



.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product {
  border: 1px solid #ddd;
  padding: 15px;
  text-align: center;
}

.product img {
  max-width: 100%;
  height: auto;
}

.cta-button {
  display: inline-block;
  background-color: #ff3e01;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #e63800;
}

/* Footer styles */
footer {
  background-color: #f8f8f8;
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  height: max-content;
}

.footer-section {
  flex: 1;
  margin-bottom: 20px;
  min-width: 200px;
}

.footer-section h3 {
  margin-bottom: 15px;
}

.footer-section ul {
  list-style-type: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  text-decoration: none;
  color: #333;
}

.social-links a {
  font-size: 24px;
  margin-right: 15px;
  color: #333;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

/* Chat button */
.chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ff3e01;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: background-color 0.3s;
}

.chat-button:hover {
  background-color: #e63800;
}

/* Form styles */
form {
  max-width: 500px;
  margin: 0 auto;
}

input,
textarea {
  width: 80%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}
.district{
  width: 80%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1002;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
/* The sidepanel menu */
.sidepanel {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: white;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}


/* The sidepanel links */
.sidepanel a {
  padding: 10px 15px;
  text-decoration: none;
  font-size: 25px;
  color:black;
  display: block;
  transition: 0.3s;
} 

/* Category Box */
.category-box {
  background: rgba(255, 102, 0, 0.1);
  border: 2px solid #ff6600;
  border-radius: 8px;
  padding: 15px;
  margin: 10px 20px;
  text-align: center;
}

.category-box a {
  display: block;
  padding: 10px;
  color: white;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s ease-in-out;
}

.category-box a:hover {
  background: #ff6600;
  border-radius: 5px;
  color: white;
}


/* When you mouse over the navigation links, change their color */
.sidepanel a:hover {
  color: #161212;
}

/* Position and style the close button (top right corner) */
 .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

/* Style the button that is used to open the sidepanel */
.openbtn {
  font-size: 20px;
  cursor: pointer;
  background-color: #fefefe;
  color: rgb(20, 19, 19);
  padding: 10px 15px;
  border: none;
}

.openbtn:hover {
  background-color: #444;
}
/* Responsive styles */
@media (max-width: 414px) {
  
  #blogo {
    width: 100px;
    height: auto;
    
  }
}

/* Registration form styles */
#register-form {
  max-width: 400px;
  margin: 0 auto;
}

#register-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

#register-form button {
  width: 100%;
}

body {
  font-family: Arial, sans-serif;
  background-color: white;
  text-align: center;
  padding: 2px;
}

h1, h2 {
  color: #333;
}

#product-list, #wishlist-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product, .wishlist-item {
  background-color: #fff;
  border:none;
  position: relative;
}

.product img, .wishlist-item img {
  max-width: 100%;
  margin-bottom: 10px;
}

.product h3, .wishlist-item h3 {
  font-size: 0.8em;
  margin: 0;
}

.heart-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5em;
  color: #888;
}

.heart-button.active {
  color: red;
}
.search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
}

.search-container {
  position: relative;
  max-width: 600px;
  margin: 100px auto 0;
  padding: 20px;
}

.search-container input {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  border: none;
  border-radius: 5px;
}

.search-container button {
  background: none;
  border: none;
  color: #ff3e01;
  cursor: pointer;
  font-size: 24px;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.close-search {
  right: 0 !important;
}

.search-results {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background-color: white;
  border-radius: 5px;
  display: none;
}

.purchase-options {
    margin-top: 2rem;
}

.quantity-wrapper {
    margin-bottom: 1rem;
}

.quantity-wrapper label {
    margin-right: 1rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.add-to-cart-btn, .buy-now-btn {
    flex: 1;
    min-width: 140px;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-to-cart-btn {
    background-color: #000;
    color: white;
}

.buy-now-btn {
    background-color: #e31837;
    color: white;
}

.add-to-cart-btn:hover {
    background-color: #333;
}

.buy-now-btn:hover {
    background-color: #c41330;
}

.size-btn.selected, .color-btn.selected {
    background-color: #000;
    color: white;
    border-color: #000;
}

.quantity-input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Disable number input arrows */
.quantity-input::-webkit-inner-spin-button, 
.quantity-input::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    margin: 0;
}

/* Cart container responsive styling */
.cart-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Cart item responsive styling */
.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    gap: 15px;
    width: 100%;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
    min-width: 200px; /* Ensure details don't get too squeezed */
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Media Queries for different screen sizes */
@media screen and (max-width: 768px) {
.container{
  background: white;
    text-align: center;
    padding: 10px;
}
  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two products per row */
    gap: 0px; /* Space between products */
  }
  
  .product {
    background: white;
    border:none;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    text-align: center;
    
  }
  
  .product img, .wishlist-item img {
    width: 100%;
    max-height: 100%;
  }
  
    .cart-item {
        padding: 10px;
        gap: 10px;
    }

    .cart-item-details {
        min-width: calc(100% - 100px); /* Full width minus image width and gap */
    }

    .cart-item-quantity {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }
}

@media screen and (max-width: 480px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    .cartdele{
      margin-left:23% ;
      text-align: center;
    }
    .product-container {
      display: grid;
      gap: 20px;
      max-width: 500px;
      margin: 50px auto;
      background: white;
      padding-left: 20px;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    .cta-button {
      display: block;
      width: 100%;
      padding: 10px;
      background-color: #ff6600;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-size: 1rem;
      transition: background 0.3s ease;
      margin-top: 30px;
    }
    .district{
      width: 80%;
    }

    .cart-item img {
        width: 50%;
        height: auto;
        max-height: 200px;
        margin: 0 auto;
    }

    .cart-item-details {
        width: 100%;
        align-items: center;
    }

    .cart-item-quantity {
        justify-content: center;
    }

    .cart-item-remove {
        width: 100%;
        margin-top: 10px;
    }
    
    .quantity-controls {
        display: flex;
        gap: 10px;
        justify-content: center;
        align-items: center;
        margin: 10px 0;
    }
    .slider-product {
      min-width: 100%;
      position: relative;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 500px;
      background: #fff;
  }
}

/* Quantity controls styling */
.quantity-controls button {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.quantity-controls button:hover {
    background-color: #e0e0e0;
}

/* Cart summary responsive styling */
.cart-summary {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

@media screen and (max-width: 768px) {
    .cart-summary {
        position: sticky;
        bottom: 0;
        background-color: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        margin: 0;
        padding: 15px;
    }
}

/* Checkout button responsive styling */
.checkout-button {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.checkout-button:hover {
    background-color: #45a049;
}

.category-section {
    padding: 0px 10px;
    display: grid;
}

.category-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.category-box {
    flex: 1;
    height: 400px;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.category-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.7));
    z-index: 1;
}

.category-box:hover {
    transform: scale(1.02);
}

.category-box h2, 
.category-box p {
    position: relative;
    z-index: 2;
}

.category-box h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.category-box p {
    font-size: 18px;
    margin: 0;
}

.category-box.men {
    background-image: url('men.jpg');
}

.category-box.women {
    background-image: url('women.jpg');
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .category-container {
        flex-direction: column;
    }

    .category-box {
        height: 300px;
    }
}
/* ... existing styles ... */

/* Center the container at the top of the page */
/* Center the container at the top of the page */
.button-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Five equal columns */
  grid-template-rows: repeat(3, auto); /* Two rows */
  gap: 5px; /* Space between buttons */
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin: 50px auto 0 auto; /* Push it to the top center */
  position: absolute;
  left: 50%;
  top: 10%;
  margin-top: 50px;
  transform: translateX(-50%);
}
.dropdown-content{
  margin-top: 5px;
}

/* Button styling */
button.category-link {
  width: 100px; /* Fixed width for consistency */
  padding: 10px;
  font-size: 8px;
  background-color:red;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
  font-weight: bolder;
}

button.category-link.active {
  background-color: #ff4500; /* Different color for active button */
}



/* ... existing styles ... */

.product-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}


.slider-product img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    z-index: 2;
}

.slider-button.prev {
    left: 10px;
}

.slider-button.next {
    right: 10px;
}

.no-products {
    text-align: center;
    padding: 50px;
    font-size: 1.2em;
    color: #666;
}
