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

html, body {
  background: #fff;
  color: #000;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

/* HEADER — left "+", centered nav stack, right bag */
header.site {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 14px 18px;
  background: #fff;
}

header.site .left { justify-self: start; }
header.site .right { justify-self: end; }

header.site .plus {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
}

header.site .title {
  text-align: center;
  font-size: 10px;
}

header.site .title a {
  display: inline-block;
}

header.site .bag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

header.site .bag svg {
  display: block;
}

header.site .bag span:empty { display: none; }

/* PRODUCT GRID — flat 6-col index */
.index {
  padding: 60px 24px 80px;
}

.index .grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 40px;
  row-gap: 80px;
}

.index .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.index .card:hover { text-decoration: none; }

.index .card .thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.index .card .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 150ms ease;
}

.index .card .thumb .img-hover { opacity: 0; }
.index .card:hover .thumb .img-default { opacity: 0; }
.index .card:hover .thumb .img-hover { opacity: 1; }

.index .card .code {
  text-align: center;
}

@media (max-width: 1100px) {
  .index .grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 720px) {
  .index .grid { grid-template-columns: repeat(2, 1fr); column-gap: 24px; row-gap: 48px; }
  header.site { padding: 12px 14px; }
}

/* PRODUCT PAGE */
.product {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 40px;
  padding: 40px 24px 80px;
}

.product .gallery {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product .gallery .img {
  background: #fff;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product .gallery .img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product .info {
  position: sticky;
  top: 40px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product .info .row {
  display: flex;
  justify-content: space-between;
}

.product .info .sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product .info .sizes button {
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  background: #fff;
  border: 1px solid #000;
  padding: 4px 8px;
  cursor: pointer;
}

.product .info .sizes button.active,
.product .info .sizes button:hover {
  background: #000;
  color: #fff;
}

.product .info .add {
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  background: #000;
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  width: 100%;
}

.product .info .add:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.product .info .desc {
  margin-top: 20px;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .product { grid-template-columns: 1fr; padding: 30px 14px 60px; }
  .product .info { position: static; }
}

/* CART */
.cart {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 18px 60px;
}

.cart .line {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 16px;
  padding: 6px 0;
  align-items: center;
}

.cart .line .remove {
  background: none;
  border: none;
  font: inherit;
  text-transform: inherit;
  cursor: pointer;
  color: #000;
  padding: 0;
}

.cart .line .remove:hover {
  text-decoration: underline;
}

.cart .total {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 8px;
  border-top: 1px solid #000;
}

.cart .checkout {
  display: block;
  background: #000;
  color: #fff;
  padding: 10px;
  text-align: center;
  margin-top: 24px;
}

.cart .empty {
  padding: 40px 0;
  text-align: center;
}
