    body {
      font-family: "Roboto Mono", monospace;
      font-weight: 400;
      background: #fff8f0;
      margin: 0;
      padding: 0;
      text-align: center;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    main { flex: 1 0 auto; }

    header {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 15px;
      background-color: #fff3e0;
      color: #4b2e05;
      padding: 1em 0;
      box-shadow: 0 2px 5px rgba(0,0,0,0.15);
      flex-wrap: wrap;
    }

    header img { width: 80px; height: 80px; border-radius: 50%; }
    header h1 { font-family: "Dancing Script", cursive; font-size: 2em; margin: 0; }

    .message {
      padding: 10px 15px;
      border-radius: 8px;
      margin: 20px auto;
      width: 80%;
      animation: fadeIn 0.3s ease;
    }

    .success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
    .error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

    .container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      padding: 30px;
      max-width: 1000px;
      margin: auto;
    }


    .product {
      background: white;
      border-radius: 15px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      overflow: hidden;
      transition: transform 0.2s ease;
      display: flex;
      flex-direction: column;
    }
    .product:hover { transform: scale(1.03); }

    .product img {
       width: 100%; 
       object-fit: cover; 
       aspect-ratio: 1;
       display: block;
    }

.image-wrapper {
  width: 100%;
  height: 300px;           /* výška obrázku */
  overflow: hidden;
  border-radius: 8px;
}

.image-wrapper img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

    .info {
      padding: 15px;
      flex-grow: 1;
    }

    .info h3 { margin: 10px 0 5px; color: #4b2e05; font-weight: 400; }
    .info p { color: #555; font-size: 0.95em; margin: 5px 0 10px; line-height: 1.4; }
    .price { font-weight: 400; color: #e67e22; font-size: 1.1em; margin-bottom: 10px; }

    button {
      background-color: #f5b041;
      border: none;
      padding: 10px 20px;
      border-radius: 25px;
      color: white;
      font-weight: bold;
      cursor: pointer;
      transition: background 0.2s ease;
      font-family: "Roboto Mono", monospace;
      margin-top: auto;
    }
    button:hover { background-color: #e67e22; }

    footer {
      background-color: #fff3e0;
      color: #4b2e05;
      font-size: 0.9em;
      padding: 1em 0;
      border-top: 1px solid rgba(0,0,0,0.1);
      flex-shrink: 0;
    }

    /* MODAL */
    .modal {
      display: none;
      position: fixed;
      z-index: 10;
      left: 0; top: 0;
      width: 100%; height: 100%;
      background-color: rgba(0,0,0,0.4);
      justify-content: center;
      align-items: center;
    }

    .modal-content {
      background: white;
      border-radius: 15px;
      padding: 20px;
      max-width: 400px;
      width: 90%;
      box-shadow: 0 4px 10px rgba(0,0,0,0.3);
      text-align: left;
      font-family: "Roboto Mono", monospace;
    }

    .modal-content input, .modal-content textarea {
      width: 100%;
      margin-bottom: 10px;
      padding: 8px;
      border-radius: 8px;
      border: 1px solid #ccc;
      font-family: inherit;
    }

    @media (max-width: 600px) {
      header { flex-direction: column; padding: 1em; }
      header img { width: 60px; height: 60px; }
      header h1 { font-size: 1.6em; }
      .container { padding: 15px; gap: 10px; }
      .image-wrapper { height: 300px; }
      .info h3 { font-size: 1em; }
      .info p { font-size: 0.9em; }
      button { padding: 8px 16px; font-size: 0.9em; }
      footer { font-size: 0.85em; }
    }


/* Modal pro obrázek */
.img-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.4s ease;   /* fade efekt */
}

.img-modal.show {
  display: flex;
  opacity: 1;
}

.img-modal img {
  max-width: 95%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  object-fit: contain;
  display: block;
  margin: auto;
  transform: scale(0.95);
  transition: transform 0.4s ease;
}

.img-modal.show img {
  transform: scale(1);
}
