/* edit section styles */
  .product-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin: 10px 0;
    background: #f9f9f9;
  }
  .product-card img {
    width: 100px;
    height: auto;
    display: block;
    margin-bottom: 10px;
  }
  .product-card h3 {
    margin: 5px 0;
  }
  .product-card input, .product-card textarea {
    display: block;
    width: 100%;
    margin: 6px 0;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  .product-card button {
    margin-right: 8px;
    margin-top: 5px;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  .product-card button.save {
    background: #28a745;
    color: white;
  }
  .product-card button.cancel {
    background: #6c757d;
    color: white;
  }
  .alert {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
  }
  .alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
  }

  /* post styles */

  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
  }

  .product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
  }
  .product-card:hover {
    transform: translateY(-3px);
  }

  .product-card img {
    max-width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
  }

  .product-card h3 {
    font-size: 1rem;
    margin: 8px 0;
  }

  .product-card p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #444;
  }

  .product-card .price {
    font-weight: bold;
    font-size: 1rem;
    margin: 8px 0;
  }

  .add-to-cart {
    background: red;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
  }
  .add-to-cart:hover {
    opacity: 0.9;
  }

  /* New Arrival Badge */
  .new-arrival {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 8px 15px;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    background: url('/static/images/new-arrival.png') no-repeat center center;
    background-size: cover;
    border-radius: 6px;
  }

  /* ordered products */
  .sold-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

#soldForm, #ordersTable {
  margin-top: 20px;
}

#ordersTable table {
  width: 100%;
  border-collapse: collapse;
}

#ordersTable th, #ordersTable td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

#ordersTable th {
  background-color: #f4f4f4;
}
