

.nav-active {
  color: #ff0000 !important;
}


.merch-hero {
  height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: 50px;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.178), rgba(0, 0, 0, 0.89)), url('teaser.jpg');
  background-size: cover;
  background-position: center center;
}

.merch-hero-content {
  max-width: 800px;
  margin-bottom: 20px;
}

.merch-hero-title {
  font-size: 56px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.merch-hero-subtitle {
  color: #888888;
  font-size: 16px;
  letter-spacing: 0.5px;
}


.merch-shop {
  padding: 50px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.product-card {
  background-color: #0b0b0b;
  border: 1px solid #151515;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.product-image-container {
  position: relative;
  width: 100%;
  padding-bottom: 120%; 
  overflow: hidden;
  background-color: #111;
}

.product-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-image-container .img-bw {
  opacity: 0.85;
  z-index: 1;
}

.product-image-container .img-color {
  opacity: 0;
  z-index: 2;
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 4;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 4px 8px;
  border: 1px solid #cc0000;
}


.product-info {
  padding: 20px;
  position: relative;
  background: #050505;
  border-top: 1px solid #151515;
}

.product-title {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.product-price {
  font-size: 14px;
  color: #cc0000;
  font-weight: bold;
}

.buy-now {
  margin-top: 15px;
  font-size: 11px;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.4;
  transition: all 0.3s ease;
}

.product-card:hover {
  border-color: #cc0000;
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.15);
  transform: translateY(-5px);
}

form {
    padding: 20px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.pakollinen {
    color: red;
}
.levee {
    font-family: inherit;
    font-size: inherit;
    padding: 0.2em;
    width: 100%;
    box-sizing: border-box;
}

.nappi {
    background-color: #cc0000;
    color: rgb(0, 0, 0);
    width: 100%;
    padding: 0.5em 1em;
    border-width: 5px;
    border: none;
    font-size: 1em;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.151);
    border-radius: 3px;
}

.nappi:hover {
    background-color: #920000;
}

.nappi:active {
    position: relative;
    top: 3px;
    left: 3px;
    box-shadow: none;
}

.nappi:first-child {
    margin-bottom: 1em;
}

.nappi:last-child {
    margin-top: 1em;
}

.numero {
    font-size: 1.5em;
    width: 3em;
    text-align: right;
}

table {
    width: 100%;
}

table input {
    width: 100%;
}

.vasen, .keski, .oikea {
    width: 33%;
}

.keski {
    text-align: center;
}

.oikea {
    text-align: right;
}

.product-card:hover .img-bw { opacity: 0; }
.product-card:hover .img-color { opacity: 1; }
.product-card:hover .product-title { color: #cc0000; }
.product-card:hover .buy-now { opacity: 1; color: #ff0000; }

