.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 2em 1.5em;
  margin: 1em auto;
  text-align: center;
}

.product-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1em;
  border: none; /* Remove border */
}

.product-title {
  font-size: 2em;
  font-weight: bold;
  margin: 0.5em 0;
}

.product-detail-info .product-title {
  text-align: left;
}

.product-price {
  color: #2d7a2d;
  font-size: 1.3em;
  margin: 0.5em 0 0.2em 0; /* Reduce bottom margin */
  font-weight: 600;
  text-align: center;
}

.product-description {
  margin: 1em 0;
  color: #444;
  font-size: 1.1em;
}

.product-actions,
.product-actions-center {
  margin-top: 0.2em; /* Reduced gap */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7em;
}

.add-to-cart-btn {
  background: #2d7a2d;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.7em 2em;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.2s;
}

.add-to-cart-btn:hover {
  background: #256b25;
}

.favorite-btn {
  background: #2d7a2d;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.7em 2em;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.2s;
  height: auto;
  min-width: unset;
  margin-right: 0;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.favorite-btn:hover,
.favorite-btn.favorited {
  background: #256b25;
  color: #fff;
}

.favorite-btn.variant-favorite {
  height: 44px;
  min-width: 44px;
  font-size: 1.3em;
  padding: 0 1.2em;
  border-radius: 2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid teal;
  color: #e74c3c;
  margin-right: 0.7em;
  transition: background 0.2s, border 0.2s, color 0.2s;
}

.favorite-btn.variant-favorite.favorited,
.favorite-btn.variant-favorite:hover {
  background: teal;
  color: #fff;
  border-color: #008080cc;
}

.dropdown {
  position: relative;
  display: inline-block;
}
.dropbtn {
  cursor: pointer;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}
.dropdown-content a {
  color: black;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
}
.dropdown-content a:hover {background-color: #f1f1f1}
.dropdown:hover .dropdown-content {display: block;}

.product-detail-container {
  display: block;
  gap: 2em;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 2em 1.5em;
  margin: 0 auto;
  width: 90vw;
  max-width: 700px;
 
}

.product-detail-image {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column; /* Stack main image and thumbnails vertically */
  align-items: center;
  justify-content: center;
}

.product-detail-image .product-image,
.carousel-image {
  max-width: 550px;
  max-height: 550px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  border: none;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5em; /* Add large gap below main image */
}

.product-detail-info {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7em;
  text-align: left;
}

.product-label {
  font-weight: 500;
  margin-top: 1em;
  display: block;
  text-align: left; /* Ensure left alignment */
}

.product-select,
.product-sizes select,
.product-colors select,
.product-design-placements select {
  width: 100%;
  padding: 1.2em 1.6em; /* Increased padding */
  margin-bottom: 1em;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1em; /* Increased font size */
  max-width: 420px; /* Increased max width */
  display: block;
  box-sizing: border-box;
}

.product-sizes,
.product-colors,
.product-design-placements {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.product-sizes label,
.product-colors label,
.product-design-placements label {
  text-align: left;
  display: block;
  width: 80%; /* Match dropdown width */
  max-width: 420px;
  min-width: 220px;
  margin-left: 0;
  margin-bottom: 0.3em;
}

.product-sizes select,
.product-colors select,
.product-design-placements select {
  width: 80%;
  max-width: 420px;
  min-width: 220px;
  margin-bottom: 1em;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.size-chart-link {
  display: block;
  margin: 0.5em auto 1em auto;
  color: #1976d2;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  font-size: 1em;
  transition: color 0.2s;
  text-align: center;
}
.size-chart-link:hover {
  color: #0d47a1;
}

/* Thumbnails below main image */
.carousel-thumbnails {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.5em;
  margin-top: 3em; /* Large gap between main image and thumbnails */
  flex-wrap: wrap;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 1.5em; /* smaller size */
  color: teal;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 50%;
  transition: background 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow i.fa {
  font-size: 1.5em;
  pointer-events: none;
}
.carousel-arrow.left { left: -2em; }
.carousel-arrow.right { right: -2em; }
@media (max-width: 700px) {
  .carousel-arrow.left { left: 0; }
  .carousel-arrow.right { right: 0; }
  .carousel-arrow, .carousel-arrow i.fa {
    font-size: 1.1em;
    width: 28px;
    height: 28px;
    line-height: 28px;
  }
}

/* Add styles for thumbnail scroll arrows and inner container */
.carousel-thumb-arrow {
  background: transparent;
  border: none;
  font-size: 1.2em;
  color: teal;
  cursor: pointer;
  z-index: 1;
  padding: 0 0.1em;
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: 50%;
  transition: background 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-thumb-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}
.carousel-thumbnails-inner {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
  overflow: hidden;
  max-width: 340px;
}
@media (max-width: 700px) {
  .carousel-thumbnails-inner {
    max-width: 220px;
  }
}

@media (max-width: 700px) {
  .product-detail-container {
    flex-direction: column;
    padding: 1em 0.5em;
  }
  .product-detail-image, .product-detail_info {
    flex: unset;
    width: 100%;
  }
  .product-detail-image {
    flex-direction: column;
  }
  .carousel-thumbnails {
    flex-direction: row;
    gap: 0.3em;
  }
}

.cart-message {
  position: fixed;
  top: 2em;
  left: 50%;
  transform: translateX(-50%);
  background: #2d7a2d;
  color: #fff;
  padding: 0.8em 2em;
  border-radius: 8px;
  font-size: 1.1em;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  transition: opacity 0.3s;
}

/* Make the specific hoodie mockup image larger in the carousel */
.carousel-image[src$="both-sides-view-mockup-of-a-man-wearing-a-pullover-hoodie-in-a-studio-29643.png"] {
  max-width: 120%;
  max-height: 500px;
  width: auto;
  height: auto;
  /* Optionally center it if needed */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.carousel-image {
  border: none !important; /* Remove border from carousel images */
}

.carousel-thumbnail {
  border: none !important; /* Remove border from thumbnails */
}

.carousel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-detail-info label,
.product-sizes label,
.product-colors label,
.product-design-placements label {
  text-align: left;
  display: block;
  width: 100%;
}
