/* Hover effect for main product layout block */
#mainProductLayoutBlock {
  transition: box-shadow 0.2s, background 0.2s;
  border: 2px solid transparent;
   border-radius: 8px;
}
#mainProductLayoutBlock:hover {
  box-shadow: 0 0 12px 2px rgba(0, 123, 255, 0.15);
  background: #f5faff;
  cursor: pointer;
  border: 2px solid #007bff;
}

#defaultProductSelectContainer {
  margin-bottom: 1rem;
}

/* Banner styles */
.banner-preview {
  max-height: 180px;
  aspect-ratio: 1875 / 300;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 5px;
  position: relative;
  transition: box-shadow 0.2s;
}
.banner-preview:hover {
  box-shadow: 0 0 0 3px #8B451333;
}
.banner-image-input {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}
.banner-title {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  pointer-events: none;
}
.banner-title-inner {
  background: rgba(139, 69, 19, 0.9);
  padding: 10px 20px;
  border-radius: 5px;
}
.banner-title-inner h6 {
  color: #fff;
  font-weight: bold;
  margin-bottom: 0;
}
#bannerPreview.editable:hover {
  box-shadow: 0 0 0 4px #007bff55;
  filter: brightness(0.95);
  cursor: pointer;
}
#bannerPreview.editable::after {
  content: "Click to change banner";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  background: rgba(0,123,255,0.7);
  padding: 6px 18px;
  border-radius: 6px;
  font-size: 1.1em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 20;
}
#bannerPreview.editable:hover::after {
  opacity: 1;
}
.banner-filename {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 12px;
  color: #000000;
  background: rgba(255,255,255,0.7);
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 15;
  pointer-events: none;
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clear-image-btn {
  position: absolute;
  bottom: 8px;
  left: 12px;
  z-index: 15;
  overflow: hidden;
}

/* Main product image styles */
.main-product-image-container {
  background-color: #f8f9fa;
  min-height: 350px;
  max-height: 350px;
  border-radius: 5px;
}
#mainProductDisplay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  max-height: 350px;
  background-color: #fff;
  border-radius: 5px;
}
.main-product-image {
  min-height: 350px;
  max-height: 350px;
  object-fit: fill;
}

/* Product info styles */
.product-info-title {
  color: #333;
  font-weight: bold;
}
.product-info-name {
  color: #666;
}
.product-info-sku {
  color: #666;
  font-size: 14px;
}

/* Size and style selection */
.size-selection {
  margin-bottom: 1rem;
}
.size-selection-label {
  font-weight: bold;
}
.size-selection-buttons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.style-selection {
  margin-bottom: 1rem;
}
.style-selection-label {
  font-weight: bold;
}
.style-selection-buttons {
  margin-top: 8px;
}
.marketing-statement-input {
  max-width: 500px;
  font-weight: bold;
}
.application-shot-item {
  max-width: 250px;
  aspect-ratio: 1 / 1;
  height: auto;
}

/* Application shot preview */
.application-shot-preview {
  height: 100%;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 5px;
  position: relative;
  transition: box-shadow 0.2s;
}
.application-shot-preview:hover {
  box-shadow: 0 0 0 3px #007bff33;
}

.application-shot-filename {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 12px;
  color: #000000;
  background: rgba(255,255,255,0.8);
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 15;
  pointer-events: none;
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.application-shot-preview.editable > input {
  opacity:0;position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;cursor:pointer;
}
.application-shot-preview.editable:hover {
  box-shadow: 0 0 0 4px #007bff55;
  filter: brightness(0.95);
  cursor: pointer;
}
.application-shot-preview.editable::after {
  content: "Click to change image";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  background: rgba(0,123,255,0.7);
  padding: 6px 18px;
  border-radius: 6px;
  font-size: 1em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 20;
}
.application-shot-preview.editable:hover::after {
  opacity: 1;
}

/* Certifications section */
.certifications-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1rem;
}
.certification-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
}
.certification-item >img {
  max-width:100%;
  height:auto;
  display:block;
}
