.jd-merch-outer {
  padding: 2.5rem 1.25rem;
  background-color: #ffffff;
  isolation: isolate;
}

.jd-merch-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.jd-merch-heading {
  font-size: 1.75rem;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 1.5px;
  font-family: 'Cormorant Garamond', serif;
  text-transform: capitalize;
}

.jd-merch-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.jd-merch-tile {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(126, 128, 93, 0.1);
}

.jd-merch-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(126, 128, 93, 0.2);
}

.jd-merch-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  width: 100%;
}

.jd-merch-img-container {
  position: relative;
  padding-top: 120%;
  overflow: hidden;
  background-color: #f8f8f8;
}

.jd-merch-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.jd-merch-tile:hover .jd-merch-img {
  transform: scale(1.05);
}

.jd-merch-content {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: white;
  border-top: 1px solid rgba(126, 128, 93, 0.1);
  min-height: 140px;
  justify-content: space-between;
}

.jd-merch-text {
  flex: 1;
  min-width: 0;
  margin-bottom: 0.5rem;
}

.jd-merch-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}

.jd-merch-title {
  display: block;
  color: #2c3e50;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
  font-family: 'Lato', sans-serif;
  line-height: 1.4;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.jd-merch-price {
  display: block;
  color: #7e805d;
  font-size: 1.25rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.jd-merch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: #7e805d;
  color: white;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(126, 128, 93, 0.2);
  pointer-events: none;
}

.jd-merch-btn:hover {
  background-color: #6a6c4e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(126, 128, 93, 0.3);
}

@media (max-width: 1024px) {
  .jd-merch-tiles {
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .jd-merch-outer {
      padding: 2rem 1rem;
  }
  
  .jd-merch-tiles {
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1.5rem;
  }
  
  .jd-merch-content {
      min-height: 110px;
      padding: 1rem;
  }
  
  .jd-merch-footer {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
  }
  
  .jd-merch-title {
      font-size: 0.85rem;
  }
  
  .jd-merch-price {
      font-size: 1.1rem;
  }
  
  .jd-merch-btn {
      padding: 0.625rem 1rem;
      font-size: 0.85rem;
      width: auto;
      min-width: 80px;
  }
}