/* Order Page Styles */
body {
  font-family: 'Segoe UI', sans-serif;
   /* background-image: var(--background-elipses), var(--gradient-secondary);
   background-repeat: no-repeat, no-repeat;
  background-size: cover, cover; */
  /* background: linear-gradient(135deg, #1f004d, #800080, #ff1493); */
  color: #fff;
  margin: 0;
  padding: 0;
}

.order-section {
padding: 30px 10px;
  max-width: 1400px;
  margin: auto;
  
}

.section-heading {
 /* text-align: center;
  font-size: 5.5rem;
  margin-bottom: 40px;
  background: linear-gradient(
    90deg,
    rgba(240, 51, 145, 0.93),
    rgba(230, 19, 212, 0.8),
    rgba(0, 0, 255, 0.8)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  animation: rainbow 8s ease infinite;
  background-size: 300% 300%; */
  font-family: 'Supertalls', sans-serif;
   text-align: center;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
    margin-top: 1rem;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #a020f0, #ff0077);
    -webkit-background-clip: text;
    color: transparent;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Search Bar Styles - Mobile First Approach */
.search-container {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  padding: 15px;
  gap: 12px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  backdrop-filter: blur(5px);
}

.search-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.category-select,
.search-input {
  padding: 14px 20px;
  border: none;
  border-radius: 30px;
  outline: none;
  font-size: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 100%;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-btn {
  background: #ff1493;
  border: none;
  padding: 14px 20px;
  color: #fff;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 20, 147, 0.5);
  width: 100%;
}

.search-btn:hover {
  background: #ff69b4;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.7);
}

/* Tablet View (768px and up) */
@media (min-width: 768px) {
  .search-container {
    flex-direction: row;
    padding: 10px 20px;
    margin-bottom: 40px;
    max-width: 1400px;
  }
  
  .search-area {
    flex-direction: row;
    gap: 10px;
  }
  
  .category-select {
    flex: 1;
    max-width: 200px;
  }
  
  .search-input {
    flex: 2;
  }
  
  .search-btn {
    width: auto;
    padding: 12px 25px;
  }
}

/* Desktop View (1024px and up) - Maintains original desktop styling */
@media (min-width: 1024px) {
  .search-container {
    /* Your original desktop styles are preserved */
  }
}

/* Products Grid */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (min-width: 600px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .products {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Product Card */
.product-card {
  position: relative;  
  /* background: #1e1e2f; */
   background: url('elips1.png'), url('elips2.png');
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 0 20px rgba(255, 20, 147, 0.4);
  position: relative;
  text-align: center;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-card:hover .product-image {
  transform: scale(1.05); /* 5% zoom on hover */
}

/* For touch devices */
@media (hover: none) {
  .product-card:hover .product-image {
    transform: none; /* Disable zoom on touch devices */
  }
}

.live-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #ff1493;
  padding: 5px 0;
  border-radius: 20px 20px 0 0;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 10px #ff1493;
}

.product-image {
  width: 100%;
  height: 150px;
  /* object-fit: cover; */
  object-fit: contain;
  border-radius: 15px;
  /* margin: 40px 0 15px; */
  background-color: transparent;
   margin-top: 0;
   transition: transform 0.5s ease; /* Smooth transition for zoom effect */
  transform-origin: center center; /* Zoom from center */
}


.product-title {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 600;
  /* margin: 10px 0; */
  margin-top: 40px; /* Space for live bar */
  margin-bottom: 15px;
  color: #fff;
}

.product-description {
  font-size: 13px;
  color: #ccc;
  margin-bottom: 15px;
  min-height: 40px;
}

.product-condition {
  font-size: 11px;
  color: #ffb6c1;
  margin-bottom: 5px;
}

.product-price {
  font-size: clamp(1.3rem, 4.5vw, 1.8rem);
  font-weight: bold;
  color: #ff69b4;
  margin: 15px 0;
}

.product-stock {
  font-size: 14px;
  color: #7cfc00;
  margin-bottom: 15px;
}

.order-btn {
  background: #ff1493;
  border: none;
  padding: 10px 15px;
    font-size: 14px;
  color: #fff;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 20, 147, 0.5);
  margin-top: 10px;
}
@media (min-width: 768px) {
    .order-section {
        padding: 50px 20px;
    }
    
    .product-description {
        font-size: 14px;
    }
    
    .product-condition {
        font-size: 13px;
    }
    
    .additional-info {
        font-size: 12px;
    }
}

@media (min-width: 768px) {
    .product-image {
        height: 200px;
    }
    
    .order-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
}

.order-btn:hover {
  background: #ff69b4;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.7);
}

.additional-info {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Modal Styles */
.popup-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: #2c003e;
  padding: 20px;
  border-radius: 20px;
  width: 95%;
  max-width: 500px;
  text-align: center;
  color: white;
  box-shadow: 0 0 30px #ff1493;
  position: relative;
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #ff1493;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #ffb6c1;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-submit {
  background: #ff1493;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 20px;
  font-weight: bold;
  transition: 0.3s ease;
}

.btn-submit:hover {
  background: #ff69b4;
}

/* Modal Styles */
.modal-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-wrapper.show {
    display: flex;
}

.modal-content {
    background: #2c003e;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    color: white;
    box-shadow: 0 0 30px #ff1493;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.modal-header h3 {
    margin: 0;
    color: #ff69b4;
}

.modal-close {
    background: none;
    border: none;
    color: #ff1493;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ffb6c1;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.info-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 10px 0;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn-submit, .btn-cancel {
 flex: 1;
    padding: 12px 25px; /* Increased horizontal padding for better capsule shape */
    border-radius: 30px; /* Full capsule shape */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 16px;
    border: none;
    height: 44px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px; /* Minimum width */
    width: 100%;
}



.btn-submit {
    background: #ff1493;
    color: white;
    border: none;
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.5);
}

.btn-submit:hover {
    background: #ff69b4;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.7)
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.modal-content select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white !important; /* Force white text */
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 15px;
}

.modal-content option {
  background: #2c003e;
  color: white;
}

/* Mobile View Optimizations */
@media (max-width: 767px) {
  .order-section {
    padding: 20px 10px;
  }

  .section-heading {
    margin-bottom: 20px;
    font-size: 2.5rem;
    letter-spacing: 1px;
  }

  /* Search Bar */
  .search-container {
    margin-bottom: 20px;
    padding: 12px;
  }

  .category-select,
  .search-input {
    padding: 12px 15px;
    font-size: 14px;
  }

  .search-btn {
    padding: 12px 15px;
    font-size: 14px;
  }

  /* Products Grid */
  .products {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 5px;
  }

  .product-card {
    padding: 12px;
    border-radius: 15px;
  }

  .live-bar {
    font-size: 11px;
    padding: 4px 0;
  }

  .product-image {
    height: 120px;
  }

  .product-title {
    margin-top: 30px;
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .product-description {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .product-price {
    font-size: 1.2rem;
    margin: 10px 0;
  }

  .order-btn {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* Modal Adjustments */
  .modal-content {
    padding: 20px 15px;
    width: 95%;
  }

  .modal-header h3 {
    font-size: 1.2rem;
  }

  .form-group input,
  .form-group select {
    padding: 8px 12px;
    font-size: 14px;
  }

  .btn-submit,
  .btn-cancel {
    padding: 10px 15px;
    font-size: 14px;
  }
}

/* Tablet View Optimizations (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .product-image {
    height: 180px;
  }
}

/* Desktop View (992px and above) remains completely unchanged */