/* Shared chrome and responsive layout for MANDALACUT */

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

html, body {
  width: 100%;
  max-width: 100%;
  background: #F4F3F0;
  color: #1A1A1A;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

body { overflow-x: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible,
.nav-burger:focus-visible {
  outline: 2px solid #1A1A1A;
  outline-offset: 3px;
}

.page {
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  background: #F4F3F0;
}

/* —— Nav —— */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 80px 28px;
  position: relative;
}

.logo {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.50em;
  line-height: 1;
  color: #1A1A1A;
}

nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  font-family: Karla, sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6B6B66;
  align-items: center;
}

nav ul li {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

nav ul a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

nav ul li.nav-soon {
  color: #9A9A94;
  cursor: default;
  user-select: none;
}

nav ul li.nav-soon .soon {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-left: 0.5em;
  line-height: 1;
  position: relative;
  top: -0.45em;
  opacity: 0.9;
}

.nav-toggle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #1A1A1A;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-burger span::before { top: -7px; }
.nav-burger span::after { top: 7px; }

.nav-toggle:checked + .nav-burger span { background: transparent; }
.nav-toggle:checked + .nav-burger span::before { top: 0; transform: rotate(45deg); }
.nav-toggle:checked + .nav-burger span::after { top: 0; transform: rotate(-45deg); }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1A1A1A;
  color: #FFFFFF;
  font-family: Karla, sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 32px 15px;
  line-height: 1;
  min-height: 48px;
  border: 0;
  cursor: pointer;
}

/* —— Footer —— */
footer {
  padding: 36px 80px 48px;
  border-top: 1px solid #D9D7D1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 28px;
  flex-wrap: wrap;
}

footer .logo { font-size: 14px; }

footer .foot-copy {
  font-family: Karla, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  color: #6B6B66;
}

footer nav-links,
footer .foot-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-family: Karla, sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B6B66;
}

footer .foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

footer .foot-social {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
}

footer .foot-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: Karla, sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #6B6B66;
}

footer .foot-social a:hover { color: #1A1A1A; }

footer .foot-social svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* —— Product page layout (shared) —— */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  gap: clamp(40px, 5vw, 80px);
  padding: 12px clamp(32px, 5vw, 80px) 96px;
  max-width: 1760px;
  margin: 0 auto;
  align-items: start;
}

.gallery { min-width: 0; }

.main {
  width: 100%;
  max-width: 1040px;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  display: block;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.thumbs a,
.thumbs button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  display: block;
  line-height: 0;
  min-height: 0;
}

/* —— Breakpoints —— */
@media (max-width: 1100px) {
  nav { padding: 22px 32px 20px; }
  footer { padding: 28px 32px 40px; }
  .product {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 8px 32px 72px;
  }
}

@media (max-width: 860px) {
  nav { padding: 12px 20px; }
  .nav-burger { display: flex; }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
    background: #F4F3F0;
    z-index: 30;
    border-bottom: 1px solid #D9D7D1;
  }

  .nav-toggle:checked ~ ul { display: flex; }

  nav ul li,
  nav ul a {
    display: flex;
    align-items: center;
    min-height: 48px;
    width: 100%;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 20px 40px;
    gap: 8px;
  }

  .product { padding: 8px 20px 64px; }
  .thumbs { gap: 8px; }
}

@media (max-width: 640px) {
  .info h1 { font-size: 28px; }
  .price { font-size: 36px; }
  .buy-row { flex-wrap: wrap; gap: 16px; }
}

.buy { min-height: 48px; }
