/* ── Variables ── */
:root {
  --wave1: #00a5c2;
  --wave2: #007fa0;
  --ink: #0d0d0d;
  --paper: #f7f5f2;
  --paper2: #edeae6;
  --muted: #7a7772;
  --border: #ebe7e1;
  --radius: 5px;
  --sans: 'DM Sans', sans-serif;
  --serif: 'DM Serif Display'
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  padding-top: 100px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

a {
  color: var(--wave2);
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.1s;
}

a:hover {
  color: var(--wave1);
}

h1 {
  padding: 2rem 0;
}

body strong {
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: "DM Sans", sans-serif;
  /* font-size: 0.875rem; */
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: #ccc;
}

/* --- Nav --- */

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  overflow: auto;
  align-items: center;
  width: 100%;
  background: var(--paper);
  padding: 20px 40px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav .logo img {
  max-height: 40px;
}

.nav .logo {
  padding: 0;
  line-height: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1em;
  padding-left: 20px;
}

/* --- Products --- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2px;
}

.product-card {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  border: 2px solid var(--border);
  /* border-color: #11d4ce; */
}

.product-card img {
  /* width: 100%; */
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 1rem;
}

.product-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card .price {
  color: var(--ink);
  font-weight: bold;
}


/* --- Modal --- */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #00000050;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1.5rem
}

.modal-overlay.open {
  display: flex;
}

.modal {
  z-index: 100;
  background: var(--paper);
  max-width: 440px;
  width: 100%;
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
}

.modal h3 {
  font-family: "DM Serif Display", serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.modal-product-name {
  font-size: 0.8rem;
  color: var(--ink);
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.modal-email {
  font-weight: 500;
  word-break: break-all;
  color: var(--wave1);
  text-decoration: none;
}

.modal-email:hover {
  text-decoration: underline;
}

/** --- Footer --- **/

.footer {
  background: var(--ink);
  color: var(--paper);
  align-items: center;
  justify-content: space-between;
  display: flex;
  padding: 2rem;
  margin-top: 2rem;
}

.footer img {
  max-height: 40px;
}