@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: sans-serif;
  padding: 1rem;
}

main {
  max-width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

h1, h2 {
  font-family: 'Montserrat', sans-serif;
}

form {
  display: inline;
}

.form-container {
  background: #fff;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1rem;
}

main form div {
  margin-bottom: 0.75rem;
}

main label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.25rem;
}

nav input[type="search"],
footer input[type="email"],
main input[type="number"] {
  padding: 0.5rem;
  box-sizing: border-box;
}

main input[type="text"],
main input[type="search"],
main input[type="email"],
main input[type="tel"],
main select {
  width: 100%;
  padding: 0.5rem;
  box-sizing: border-box;
}

main input[type="checkbox"] {
  margin-right: 0.5rem;
}

input:focus {
  border-color: #007bff;
  outline: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th,
td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: left;
}

input[type="number"] {
  width: 60px;
}

button {
  padding: 0.5rem;
  background: #007bff;
  color: #fff;
  border: 1px solid #0056b3;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: #0056b3;
}

button:disabled {
  background: #ccc;
  border: 1px solid #767676;
  cursor: not-allowed;
}

#orders-section {
  margin-top: 2rem;
}

#orders {
  width: 100%;
  border-collapse: collapse;
}

#orders th,
#orders td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: left;
}

#orders th {
  background: #f0f0f0;
}

.no-orders {
  font-style: italic;
  margin-top: 1rem;
}

.empty {
  font-style: italic;
}

#categories a {
  margin-right: 0.5rem;
}

.product-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.carousel {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.carousel img,
.carousel video {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.carousel .prev {
  left: 0;
}

.carousel .next {
  right: 0;
}

.details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-container {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .product-container {
    flex-direction: column;
  }
  .carousel,
  .details {
    max-width: 100%;
  }
}

.product-card,
.category-card {
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.orig-price {
  text-decoration: line-through;
  color: gray;
  margin-left: 0.5rem;
}

.description {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
}

.demo-banner {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 0.75rem;
  border-radius: 4px;
  margin: 1rem 0; 
  text-align: center;
}

.pickup-group {
  margin: 1rem 0;
}

footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ccc;
  text-align: center;
}

.spinner {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
