/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
  color: #333;
}

.wrapper {
  flex: 1;
}

.header-bar {
  background: linear-gradient(to bottom, #ededed 20%, #acacac);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.logo {
  max-width: 300px;
  height: auto;
}

.stock-title {
  text-align: center;
  margin-top: 160px;
  margin-bottom: 20px;
}

.stock-title h2 {
  font-size: 1.8rem;
  color: #222;
}

main {
  margin: 0 auto 40px auto;
  padding: 0 20px;
  width: 100%;
}

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

#catalog div {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 16px;
  text-align: center;
  transition: transform 0.2s ease;
  cursor: pointer;
}

#catalog div:hover {
  transform: scale(1.02);
}

.sneaker-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin-bottom: 10px;
}

#catalog h2 {
  font-size: 1.2rem;
  margin: 10px 0 5px;
}

#catalog p {
  margin: 4px 0;
  font-size: 0.95rem;
}

.footer {
  background-color: #ededed;
  width: 100%;
  text-align: center;
  padding: 20px 0;
  box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.05);
  margin: 0;
}

.footer .social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
}

.footer .social-links img {
  width: 20px;
  height: 20px;
}

.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0,0,0,0.5);
}

.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

.modal-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 16px;
  border-radius: 8px;
}

.close {
  position: absolute;
  color: #fff;
  top: 0px;
  right: 5px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.size-buttons,
.modal-sizes {
  margin-top: 15px;
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.size-btn {
  background-color: #222;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.size-btn:hover {
  background-color: #444;
}

.order-links {
  margin-top: 10px;
  text-align: center;
  font-size: 1rem;
}

.order-links p {
  margin-bottom: 10px;
}

.order-links a {
  margin: 0 10px;
  text-decoration: none;
  color: #0077cc;
  font-weight: 500;
}

.order-links a:hover {
  text-decoration: underline;
}

.modal-content h2,
.modal-content p {
  margin-bottom: 5px;
}
