/* === Pro Shop Styles === */

.proshop-container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1rem;
  font-family: 'Segoe UI', sans-serif;
}

.proshop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.proshop-header h1 {
  font-size: 2rem;
  color: #2d004d;
}

.proshop-header input[type="text"] {
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  flex: 1;
  max-width: 300px;
}

.proshop-main {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}


.categories {
  flex: 0 0 200px;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.categories h3 {
  margin-bottom: 1rem;
  color: #2d004d;
}

.categories ul {
  list-style: none;
  padding: 0;
}

.categories li {
  padding: 0.5rem 0;
  cursor: pointer;
  color: #4e1b9c;
  font-weight: bold;
  transition: color 0.2s;
}

.categories li:hover {
  color: #ff9800;
}

.product-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  text-align: center;
  padding: 1rem;
}

.product-card img {
  max-width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

.product-card h4 {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  color: #2d004d;
}

.product-card p {
  font-size: 0.95rem;
  color: #555;
}

.product-card .price {
  font-weight: bold;
  margin-top: 0.5rem;
  color: #4e1b9c;
}

.product-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.product-buttons button {
  padding: 0.5rem 1rem;
  background: #4e1b9c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.product-buttons button:hover {
  background: #3a137d;
}

.out-of-stock {
  margin-top: 1rem;
  color: #a00;
  font-weight: bold;
}

.low-stock {
  color: #ff9800;
  font-size: 0.95rem;
  font-weight: bold;
  margin-top: 0.5rem;
}

/* Basket Dropdown */
.basket-dropdown {
  position: relative;
  display: inline-block;
}

.basket-button {
  background: #4e1b9c;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
}

.basket-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  background-color: #fff8e1;
  min-width: 260px;
  border: 1px solid #ffe082;
  border-radius: 10px;
  z-index: 1000;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.basket-dropdown:hover .basket-dropdown-content {
  display: block;
}

.basket-dropdown-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  max-height: 200px;
  overflow-y: auto;
}

.basket-dropdown-content li {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.basket-total {
  font-weight: bold;
  margin-top: 0.5rem;
  color: #2d004d;
}

.checkout-btn {
  background: #d4af00;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  transition: background 0.2s ease;
}

.checkout-btn:hover {
  background: #c49f00;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 110%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  position: relative;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #333;
}

.modal-content h2 {
  font-size: 1.6rem;
  color: #2d004d;
  text-align: center;
  margin-bottom: 1rem;
}

.modal-main-image {
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
  border-radius: 10px;
  margin: 0 auto 1.5rem;
  display: block;
}

.modal-thumbnails {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.thumbnail:hover {
  border-color: #4e1b9c;
}

/* Divider between thumbnails and description */
.modal-divider {
  height: 1px;
  background-color: #ddd;
  margin: 1.5rem 0;
  border: none;
}

/* Description block */
.modal-description {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  white-space: pre-wrap;
  text-align: left;
  border: 1px solid #eee;
  background: #fafafa;
  padding: 1rem 1.25rem;
  border-radius: 10px;
}

.modal-product-title {
  font-size: 1.6rem;
  color: #2d004d;
  margin-bottom: 0.5rem;
  text-align: center;
}


/* Responsive */
@media (max-width: 768px) {

  .proshop-main {
    flex-direction: column;
    gap: 1rem;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns on tablets/phones */
    gap: 1rem;
  }

  .proshop-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .proshop-header h1 {
    font-size: 1.5rem;
  }

  .proshop-header input[type="text"] {
    width: 100%;
    max-width: none;
  }

  .modal-content {
    width: 95%;
    padding: 1rem;
  }

  .categories {
    width: 100%;
    padding: 1rem;
    order: 2;
  }

  .basket-dropdown-content {
    left: 0;
    right: auto;
    transform: translateX(0); /* Ensures it's not offscreen */
  }

  .checkout-btn {
    font-size: 1rem;
    padding: 0.75rem;
  }
}

.remove-item-btn {
  margin-left: 8px;
  background: transparent;
  color: #a00;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
}
.remove-item-btn:hover {
  color: #e60000;
}
