/* Landing Page Image styles */
.landing-page-preview {
  max-height: 200px;
  height: auto;
  max-width: 100%;
  aspect-ratio: 285 / 122;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 5px;
  position: relative;
  transition: box-shadow 0.2s;
}
.landing-page-preview:hover {
  box-shadow: 0 0 0 3px #8B451333;
}
.landing-page-image-input {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}
#landingPagePreview.editable:hover {
  box-shadow: 0 0 0 4px #007bff55;
  filter: brightness(0.95);
  cursor: pointer;
}
#landingPagePreview.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: 1.1em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 20;
}
#landingPagePreview.editable:hover::after {
  opacity: 1;
}
.landing-page-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;
}

/* Product header styles */
.product-main-title {
  color: #333;
  font-weight: bold;
  font-size: 2.5rem !important;
}
.product-header-subtitle {
  color: #666;
  font-weight: 500;
  font-size: 2rem !important;
}

/* Breadcrumb styling */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 1rem;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #6c757d;
}

/* Filter section styles */
.filter-title {
  font-weight: bold;
  color: #007bff;
  background-color: #e3f2fd;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 4px;
}
.landing-page-header {
  border-bottom: #5680ab solid 1px;
}

/* Color filter styles */
.color-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.color-option {
  width: 30px;
  height: 30px;
  border: 2px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.color-option:hover {
  border-color: #007bff;
}
.color-swatch {
  width: 100%;
  height: 100%;
  border-radius: 2px;
}

/* Diameter filter styles */
.diameter-filters {
  max-height: 200px;
  overflow-y: auto;
}
.form-check {
  margin-bottom: 5px;
}

/* Buying option card styles */
.buying-option-card {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  transition: box-shadow 0.2s;
}
.buying-option-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.buying-option-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.buying-option-sku {
  color: #007bff;
  font-weight: bold;
  margin-bottom: 8px;
}

.buying-option-name {
  color: #333;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Pricing section styles */
.pricing-section {
  margin-top: 15px;
}
.qty-price-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.qty-input {
  width: 80px;
  padding: 4px 8px;
  font-size: 14px;
}
.price-info {
  font-size: 14px;
  color: #666;
}
.price-info strong {
  color: #28a745;
}

.add-to-cart-btn {
  width: 100%;
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 6px;
  transition: all 0.2s;
}
.add-to-cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Length select styling */
.length-select {
  font-size: 14px;
  padding: 4px 8px;
}

/* Tab content styling */
.tab-content {
  border-top: 1px solid #dee2e6;
  padding-top: 20px;
}
#productTabs .nav-tabs {
  border: none;
}

#productTabs .nav-tabs .nav-link {
  color: #495057;
  border: none;
  
  padding: 12px 16px;
  font-weight: 500;
  transition: all 0.2s;
}
#productTabs .nav-tabs .nav-link:hover {
  border-bottom: 3px solid transparent;
  border-color: transparent;
  color: #007bff;
  background-color: #f8f9fa;
}
#productTabs .nav-tabs .nav-link.active {
  color: #007bff;
  background-color: transparent;
  border-color: transparent transparent #007bff transparent;
  font-weight: bold;
}

/* Modal specific adjustments */
#editWirecareUiModal .modal-body {
  max-height: 80vh;
  overflow-y: auto;
}

/* Form control improvements */
.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .buying-option-card .row {
    flex-direction: column;
  }
  .buying-option-card .col-md-4,
  .buying-option-card .col-md-8 {
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  .qty-price-section {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  
  .qty-input {
    width: 60px;
  }
  
  .nav-tabs .nav-link {
    font-size: 14px;
    padding: 10px 12px;
  }
}

/* Make subtitle look obviously editable without being intrusive */
/* Always show dotted underline, solid on hover */
#subtitleDisplay {
  cursor: pointer;
  text-decoration: underline dotted;
}
#subtitleDisplay:hover {
  text-decoration: underline solid;
}
/* Make the editing input visually match an H2 */
#subtitleEditorGroup .form-control {
  font-size: 1.75rem; /* Bootstrap h2 ~ 2rem; slightly smaller for input */
  font-weight: 500;
  line-height: 1.2;
}