/* ============================================
   LENS PAGE STYLES — .lens-page scoped
   ============================================ */

.lens-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

body.modal-open {
  overflow: auto !important;
  padding-right: 0 !important;
}

/* 度数输入界面样式 */
.lens-page .prescription-top-links {
  display: flex;

  margin-bottom: 15px;
  padding: 0 5px;
}

.lens-page .prescription-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c7ab62;
  text-decoration: none;
  font-size: 14px;
}

.lens-page .prescription-link:hover {
  text-decoration: underline;
}

/* 表格布局 */
.lens-page .prescription-table {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
}

.lens-page .prescription-row {
  display: flex;
  border-bottom: 1px solid #eee;
}

.lens-page .prescription-row:last-child {
  border-bottom: none;
}

.lens-page .prescription-row.prescription-header {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #666;
  font-size: 13px;
}

.lens-page .prescription-cell {
  padding: 12px 8px;
  align-items: center;
  justify-content: center;
}

.lens-page .cell-label {
  width: 20%;
  justify-content: flex-start;
  padding-left: 12px;
  font-size: 14px;
}

.lens-page .cell-sph {
  flex: 1;
}

.lens-page .cell-cyl-axis {
  flex: 1;
}

.lens-page .prescription-header .cell-label {
  justify-content: flex-start;
}

.lens-page .prescription-header .cell-sph,
.lens-page .prescription-header .cell-cyl-axis {
  justify-content: center;
}

.lens-page .cell-label strong {
  color: #333;
}

.lens-page .cell-label .text-muted {
  font-size: 12px;
  color: #999;
}

/* 下加光区域 */
.lens-page .prescription-add-section {
  margin-bottom: 15px;
}

.lens-page .add-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  padding-left: 5px;
}

.lens-page .prescription-add-table {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

/* 瞳距区域 */
.lens-page .prescription-pd-section {
  margin-top: 20px;
}

.lens-page .pd-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.lens-page .pd-label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.lens-page .choose_prescription {
  width:20%;
  border:0;
  border-bottom: 1px solid #000;
  padding: 5px;
  font-size: 14px;
  color: #000;
  background-color: #fff;
  option{
    color: #000;
  }
}

.lens-page .info-link-sm {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #0d6efd;
  text-decoration: none;
  font-size: 13px;
}

.lens-page .info-link-sm:hover {
  text-decoration: underline;
}

.lens-page .pd-toggle {
  margin-bottom: 10px;
}

.lens-page .toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
}

.lens-page .toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.lens-page .pd-inputs .form-select {
  flex: 1;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 6px;
}

.lens-page .pd-inputs .pd-input-item {
  flex: 1;
}

.lens-page .pd-inputs .pd-input-item label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  padding-left: 2px;
}

.lens-page #double-pd-container {
  display: flex;
  gap: 20px;
}

/* PD 显示卡片 */
.lens-page .pd-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s;
}

/* PD 选择器 */
.lens-page .pd-select-wrapper {
  width: 100%;
}

.lens-page .pd-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 15px;
  background-color: #fff;
  cursor: pointer;
}

.lens-page .pd-select:focus {
  outline: none;
  border-color: #000;
}

.lens-page .pd-double-selects {
  display: flex;
  gap: 12px;
}

.lens-page .pd-select-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lens-page .pd-select-item label {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.lens-page .pd-select-item .pd-select {
  width: 100%;
}

.lens-page .pd-display:hover {
  border-color: #000;
}

.lens-page .pd-display i {
  color: #666;
  font-size: 14px;
}

.lens-page .pd-display span {
  color: #333;
  font-size: 15px;
}

.lens-page .pd-display.pd-double {
  display: none;
  gap: 15px;
}

.lens-page .pd-display-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
}

.lens-page .pd-display-item:hover {
  background-color: #e9ecef;
}

.lens-page .pd-eye-label {
  font-size: 12px;
  color: #666;
}

.lens-page .pd-eye-value {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* PD Modal 网格 */
.lens-page .pd-modal-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.lens-page .pd-modal-grid .value-btn {
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px 0;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  color: #333;
}

.lens-page .pd-modal-grid .value-btn:hover {
  border-color: #000;
  background-color: #f8f9fa;
}

.lens-page .pd-modal-grid .value-btn.active {
  background-color: #c7ab62;
  border-color: #c7ab62;
  color: #fff;
}

/* 额外字段 */
.lens-page .prescription-extra-fields {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.lens-page .extra-field {
  flex: 1;
}

.lens-page .extra-field label {
  display: block;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
  font-size: 14px;
}

.lens-page .extra-field .form-select,
.lens-page .extra-field .form-control {
  border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    background-color: #fff;
    color: #495057;
    cursor: pointer;
    width: 100%;
}


.lens-page .extra-field .form-select:focus,
.lens-page .extra-field .form-control:focus {
  border-color: #dee2e6;
  box-shadow: 0 0 0 3px rgba(81, 168, 231, 0.15);
  outline: none;
}

.lens-page .fake-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.lens-page .axis-select {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 8px 12px;
  background-color: #fff;
  color: #495057;
  cursor: pointer;
  width: 100%;
}

.lens-page .fake-select:hover {
  border-color: #000;
}

.lens-page .fake-select span {
  font-size: 14px;
  color: #333;
}

/* Year Modal */
.lens-page .year-modal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.lens-page .year-modal-grid .value-btn {
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px 0;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  color: #333;
}

.lens-page .year-modal-grid .value-btn:hover {
  border-color: #000;
  background-color: #f8f9fa;
}

.lens-page .year-modal-grid .value-btn.active {
  background-color: #c7ab62;
  border-color: #c7ab62;
  color: #fff;
}

/* 响应式 */
@media (max-width: 576px) {
  .lens-page .prescription-row {
    flex-wrap: wrap;
  }

  .lens-page .cell-label {
    width: 100%;
    padding: 10px 12px 5px;
    justify-content: flex-start !important;
  }

  .lens-page .cell-sph,
  .lens-page .cell-cyl-axis {
    flex: 1 1 33%;
  }

  .lens-page .prescription-extra-fields {
    flex-direction: column;
    gap: 12px;
  }
}

.lens-page .top-banner {
  background-color: #E2D7CF;

  padding: 10px 0;
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
  font-weight: 400;
  text-align: center;
  position: relative;
  z-index: 20;
}

.lens-page .top-banner a {

  text-decoration: none;
  margin-left: 10px;
}

.lens-page .top-banner .close-banner {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);

  cursor: pointer;
  font-size: 20px;
}

.lens-page .progress-bar-custom {
  height: 4px;
  background-color: #e0e0e0;
  width: 100%;
  position: relative;
  z-index: 10;
}

.lens-page .progress-fill {
  height: 100%;
  background-color: #000;
  width: 33%;
  transition: width 0.3s ease;
}

.lens-page .main-container {
  display: flex;
  /*height: calc(100vh - 45px);*/
}

.lens-page .left-pane {
  background-color: #f4f4f4;
  width: 55%;
  overflow-y: auto;
  padding: 60px 80px;
  border-right: 1px solid #e0e0e0;
  position: relative;
}

.lens-page .right-pane {
  background-color: #ffffff;
  width: 45%;
  overflow-y: auto;
  padding: 30px 60px;
}

.lens-page .product-image {
  width: 62.5%;
  /*max-width: 450px;*/
  display: block;
  margin: 0 auto 60px;
}

.lens-page .price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 16px;
  color: #333;
}

.lens-page .subtotal-row {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #ddd;
  font-size: 22px;
  font-weight: bold;
  color: #111;
}

.lens-page .feature-icons {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  text-align: center;
}

.lens-page .feature-item {
  flex: 1;
  font-size: 12px;
  color: #333;
  padding: 0 5px;
}

.lens-page .feature-icon-wrapper {
  width: 45px;
  height: 45px;
  border: 1px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 20px;
  color: #333;
}

.lens-page .nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.lens-page .back-link {
  color: #c7ab62;
  text-decoration: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lens-page .close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #666;
  cursor: pointer;
  padding: 0;
}

.lens-page .page-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #222;
}

.lens-page .info-link {
  color: #c7ab62;
  text-decoration: underline;
  font-size: 15px;
  margin-bottom: 40px;
  display: inline-block;
}

.lens-page .option-card {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
}

.lens-page .option-card:hover {
  background-color: #f0f2f5;
}

.lens-page .option-card.active {
  border: 1px solid #c7ab62;
  background-color: #f9f0d1;
}

.lens-page .option-content {
  flex: 1;
  padding-right: 50px;
}

.lens-page .option-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
}

.lens-page .option-desc {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

.lens-page .help-icon {
  position: absolute;
  top: 25px;
  right: 25px;
  color: #888;
  font-size: 20px;
}

/* 镜片类型卡片右下角问号 */
.lens-page .option-card .card-help-icon {
  position: absolute;
  right: 15px;
  bottom: 15px;
  color: #c7ab62;
  font-size: 20px;
  cursor: pointer;
}

.lens-page .option-card .card-help-icon:hover {
  color: #b3964e;
}

/* 厚度选项卡右侧问号（绝对定位在最右侧） */
.lens-page .option-card .option-desc-icon {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 16px;
  cursor: pointer;
}

.lens-page .option-card .option-desc-icon:hover {
  color: #0d6efd;
}

/* 度数表头 SPH/CYL/AX 内联问号（与其他模块问号图标风格一致） */
.lens-page .param-help-icon {
  color: #c7ab62;
  font-size: 16px;
  cursor: pointer;
  vertical-align: middle;
}

.lens-page .param-help-icon:hover {
  color: #b3964e;
}

.lens-page .lens-type-price {
  position: absolute;
  top: 25px;
  right: 55px;
  font-size: 15px;
  font-weight: 600;
  color: #c7ab62;
  white-space: nowrap;
}

.lens-page .lens-icon {
  width: 44px;
  height: 44px;
  margin-right: 20px;
  flex-shrink: 0;
  border: none;
  object-fit: cover;
  border-radius: 50%;
}

/* STEP 2 镜片类型：卡片网格布局 */
.lens-page .lens-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.lens-page .lens-type-grid .option-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  min-height: 260px;
}

.lens-page .lens-type-grid .lens-icon {
  width: 64px;
  height: 64px;
  margin: 0 0 15px 0;
}

.lens-page .lens-type-grid .option-content {
  padding-right: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lens-page .lens-type-grid .option-desc {
  font-size: 13px;
}

.lens-page .lens-type-grid .option-price {
  margin-top: auto;
  padding-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #c7ab62;
}

.lens-page .lens-type-grid .option-price.price-included {
  color: #c7ab62;
}

.lens-page .lens-type-grid .option-card.active::after {
  content: '\2713';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #c7ab62;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.lens-page .selected-usage-text {
  font-style: italic;
  color: #666;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

/* 处方确认弹窗样式 */
.lens-page .confirm-prescription-content {
  padding: 10px 0;
}

.lens-page .prescription-confirm-table {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
}

.lens-page .prescription-confirm-table table {
  margin-bottom: 0;
}

.lens-page .prescription-confirm-table th {
  background: #e9ecef;
  text-align: center;
  font-size: 13px;
}

.lens-page .prescription-confirm-table td {
  text-align: center;
  font-size: 14px;
}

.lens-page .confirm-info-row {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #dee2e6;
}

.lens-page .confirm-info-item {
  font-size: 14px;
  margin-bottom: 8px;
  color: #495057;
}

/* AXIS 选择器样式 */
.lens-page .axis-select.error {
  border-color: #dc3545 !important;
  background-color: #fff8f8;
}

/* fake-select 错误样式 */
.lens-page .fake-select.error {
  border-color: #dc3545 !important;
  background-color: #fff8f8;
}

/* form-select 错误样式 */
.lens-page .form-select.error {
  border-color: #dc3545 !important;
  background-color: #fff8f8;
}

/* pd-display 错误样式 */
.lens-page .pd-display.error,
.lens-page .pd-display-item.error {
  border-color: #dc3545 !important;
  background-color: #fff8f8;
}

/* 聚焦时移除 AXIS 错误样式 */
.lens-page .axis-select:focus {
  border-color: #51a8e7;
  box-shadow: 0 0 0 3px rgba(81, 168, 231, 0.15);
  outline: none;
}

/* 字段级错误提示 */
.lens-page .field-error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  padding-left: 2px;
}

.lens-page .field-error-message i {
  margin-right: 4px;
}

/* ============================================
   CART PAGE LENS TABLE STYLES
   ============================================ */
.lens-cart-table-wrapper {
  max-width: 500px;
}

.lens-cart-table {
  margin-bottom: 0;
  font-size: 0.85rem;
  border: 1px solid #dee2e6 !important;
}

.lens-cart-table td,
.lens-cart-table th {
  padding: 3px 6px;
  vertical-align: middle;
  border: 1px solid #dee2e6 !important;
}

.lens-cart-table thead.table-light th {
  background-color: #f8f9fa;
}

.lens-page .upload-box {
  background-color: #eef6fc;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 30px;
  cursor: pointer;
  border: 1px dashed #b8daff;
}

.lens-page .upload-box:hover {
  background-color: #e2f0fb;
}

.lens-page .prescription-grid-layout {
  display: grid;
  grid-template-columns: 90px 1fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.lens-page .prescription-grid-layout .grid-label {
  text-align: right;
  padding-right: 10px;
}

.lens-page .fake-select {
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: #fff;
  color: #495057;
}

.lens-page .fake-select:hover {
  border-color: #80bdff;
}

.lens-page .option-group {
  margin-bottom: 20px;
}

.lens-page .option-group .option-card {
  margin-bottom: 0;
}

.lens-page .sub-options-container {
  display: none;
  padding: 10px 20px 20px 20px;
}

.lens-page .sub-option {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.lens-page .sub-option:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lens-page .sub-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.lens-page .sub-option-badge {
  background-color: #f2f2f2;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: bold;
  color: #333;
  font-size: 15px;
}

.lens-page .sub-option-desc {
  color: #555;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.lens-page .uploaded-file-preview {
  display: none;
  text-align: center;
  padding: 20px;
  background-color: #eef6fc;
  border-radius: 8px;
  margin-bottom: 30px;
}

.lens-page .uploaded-file-preview img {
  max-width: 100px;
  max-height: 100px;
  border-radius: 4px;
  margin: 10px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.lens-page .reload-link {
  color: #c7ab62;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}

.lens-page .color-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  cursor: pointer;
  border: 2px solid transparent;
}

.lens-page .color-circle.active {
  border: 2px solid #33a1ff;
  padding: 2px;
  background-clip: content-box;
}

.lens-page .color-black { background-color: #1a1a1a; }
.lens-page .color-brown { background-color: #5c4033; }

.lens-page .confirm-btn {
  background-color: #33a1ff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  margin-top: 15px;
  cursor: pointer;
}

.lens-page .prescription-modal .modal-content {
  border-radius: 12px;
  border: none;
  padding: 20px;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

.lens-page .prescription-modal .modal-body {
  flex: 1;
  overflow-y: auto;
}

.lens-page .prescription-modal .modal-footer {
  display: flex;
  justify-content: center;
  gap: 15px;
  border-top: none;
  padding: 15px 0 0;
  margin-top: auto;
  text-align: center;
}

.lens-page .btn-cancel,
.lens-page .btn-confirm {
  text-align: center;
  padding: 10px 40px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lens-page .btn-confirm {
  background: #000;
  border: 1px solid #000;
  color: white;
}

.lens-page .btn-cancel {
  background: white;
  border: 1px solid #000;
  color: #000;
}

.lens-page .btn-confirm:hover {
  background: #333;
  border-color: #333;
}

.lens-page .btn-cancel:hover {
  background: #f5f5f5;
}

/* prescription-modal 特殊样式 */
.lens-page .prescription-modal .modal-header {
  border-bottom: none;
  padding-bottom: 0;
  position: relative;
}

.lens-page .prescription-modal .modal-title {
  font-weight: bold;
  font-size: 18px;
  color: #333;
}

.lens-page .prescription-modal .btn-close {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 30px;
  height: 30px;
  opacity: 0.5;
  z-index: 10;
}

.lens-page .prescription-modal .btn-close:hover {
  opacity: 1;
}

.lens-page #helpModal .modal-content {
  border-radius: 12px;
  border: none;
  padding: 20px;
}

.lens-page #helpModal .modal-header {
  border-bottom: none;
  padding-bottom: 0;
  justify-content: center;
  position: relative;
}

.lens-page #helpModal .modal-title {
  font-weight: bold;
  font-size: 22px;
  color: #333;
}

.lens-page #helpModal .btn-close {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 30px;
  height: 30px;
  opacity: 0.5;
}

.lens-page #helpModal .btn-close:hover {
  opacity: 1;
}

.lens-page #helpModal .modal-body {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
}

/* noPrescriptionModal & confirmPrescriptionModal */
.lens-page #noPrescriptionModal .modal-content,
.lens-page #confirmPrescriptionModal .modal-content {
  border-radius: 12px;
  border: none;
  padding: 20px;
}

.lens-page #noPrescriptionModal .modal-header,
.lens-page #confirmPrescriptionModal .modal-header {
  border-bottom: none;
  padding-bottom: 0;
  justify-content: flex-start;
  position: relative;
}

.lens-page #noPrescriptionModal .modal-title,
.lens-page #confirmPrescriptionModal .modal-title {
  font-weight: bold;
  font-size: 18px;
  color: #333;
}

.lens-page #noPrescriptionModal .btn-close,
.lens-page #confirmPrescriptionModal .btn-close {
  position: absolute;
  right: 0;
  top: 0;
  width: 30px;
  height: 30px;
  opacity: 0.5;
  z-index: 10;
}

.lens-page #noPrescriptionModal .btn-close:hover,
.lens-page #confirmPrescriptionModal .btn-close:hover {
  opacity: 1;
}

.lens-page #noPrescriptionModal .modal-body,
.lens-page #confirmPrescriptionModal .modal-body {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
}

.lens-page .no-prescription-btns {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.lens-page .no-prescription-btns .btn-cancel,
.lens-page .no-prescription-btns .btn-confirm {
  flex: 1;
  max-width: 280px;
}

.lens-page .confirm-prescription-btns {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.lens-page .confirm-prescription-btns .btn-cancel,
.lens-page .confirm-prescription-btns .btn-confirm {
  flex: 1;
  max-width: 280px;
}

.lens-page .prescription-grid {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.lens-page .prescription-column {
  flex: 1;
  border-radius: 8px;
  padding: 15px;
}

.lens-page .prescription-column.negative {
  background-color: #e6f4fa;
}

.lens-page .prescription-column.positive {
  background-color: #fceef2;
}

.lens-page .prescription-column-title {
  text-align: center;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.lens-page .value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 576px) {
  .lens-page .prescription-grid {
    gap: 10px;
  }

  .lens-page .value-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.lens-page .value-btn {
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 0;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: all 0.2s;
}

.lens-page .value-btn:hover {
  border-color: #33a1ff;
  color: #33a1ff;
}

.lens-page .value-btn.active {
  background-color: #c7ab62;
  color: white;
  border-color: #c7ab62;
}

.lens-page .prescription-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.lens-page .btn-next {
  background-color: #000;
  color: #fff;
  border: 1px solid #000;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
}

.lens-page .btn-next:hover {
  background-color: #D7BEA8;
  border-color: #D7BEA8;
  color: #333;
}

.lens-page .btn-next i {
  font-size: 16px;
}

/* ============================================
   STICKY BOTTOM BAR
   ============================================ */

.lens-page #sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 45%;
  background: white;
  border-top: 1px solid #e0e0e0;
  padding: 15px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 100;
}

.lens-page .add-to-cart-btn {
  background-color: #000;
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.lens-page .add-to-cart-btn:hover {
  background-color: #D7BEA8;
  border-color: #D7BEA8;
  color: #333;
}
.lens-page .add-to-cart-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.lens-page .total-price {
  font-size: 22px;
  font-weight: bold;
  color: #111;
}

.lens-page .prescription-upload-icon {
  font-size: 40px;
  color: #c7ab62;
  margin-bottom: 10px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
  .lens-page {
    overflow: auto;
  }

  .lens-page .top-banner {
    font-size: 12px;
    padding: 10px 30px 10px 10px;
  }

  .lens-page .top-banner .close-banner {
    right: 10px;
  }

  .lens-page .main-container {
    flex-direction: column;
    height: auto;
  }

  .lens-page .left-pane {
    width: 100%;
    padding: 30px 20px;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    overflow-y: visible;
  }

  .lens-page .right-pane {
    width: 100%;
    padding: 30px 20px;
    overflow-y: visible;
  }

  .lens-page .product-image {
    margin-bottom: 30px;
  }

  .lens-page .feature-icons {
    margin-top: 30px;
  }

  .lens-page .nav-top {
    margin-bottom: 20px;
  }

  .lens-page .page-title {
    font-size: 24px;
  }

  .lens-page .option-card {
    padding: 15px;
  }

  .lens-page .lens-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lens-page .lens-type-grid .option-card {
    padding: 20px 12px;
  }

  .lens-page .option-title {
    font-size: 16px;
  }

  .lens-page .option-content {
    padding-right: 40px;
  }

  .lens-page .help-icon {
    top: 15px;
    right: 15px;
  }

  .lens-page #sticky-bottom-bar {
    width: 100%;
    padding: 15px 20px;
  }

  .lens-page .add-to-cart-btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .lens-page .prescription-grid-layout {
    grid-template-columns: 50px 1fr 1fr 1fr;
    gap: 4px;
  }

  .lens-page .prescription-grid-layout .grid-label {
    font-size: 12px;
    text-align: right;
    padding-right: 4px;
  }

  .lens-page .fake-select {
    padding: 6px 8px;
    font-size: 12px;
  }

  .lens-page .prescription-outer-wrapper {
    overflow-x: auto;
  }
}

/* ============================================
   镜片厚度和颜色选择器
   ============================================ */

.lens-page .color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px 0;
}

.lens-page .color-step-actions {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.lens-page .color-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s;
  min-width: 60px;
}

.lens-page .color-swatch-item:hover {
  background-color: #f0f8ff;
}

.lens-page .color-swatch-item.active {
  border: 1px solid #33a1ff;
  background-color: #e6f4ff;
}

.lens-page .color-swatch {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin-bottom: 5px;
  border: 1px solid #ddd;
}

.lens-page .color-swatch-item span {
  font-size: 12px;
  color: #333;
}

.lens-page .color-gray { background-color: #808080; }
.lens-page .color-brown { background-color: #8B4513; }
.lens-page .color-green { background-color: #228B22; }
.lens-page .color-blue { background-color: #4169E1; }
.lens-page .color-sapphire { background-color: #0F52BA; }
.lens-page .color-amethyst { background-color: #9966CC; }
.lens-page .color-emerald { background-color: #50C878; }
.lens-page .color-amber { background-color: #FFBF00; }
.lens-page .color-ruby { background-color: #E0115F; }
.lens-page .color-silver { background: linear-gradient(135deg, #e0e0e0, #c0c0c0); }
.lens-page .color-gold { background: linear-gradient(135deg, #ffd700, #b8860b); }
.lens-page .color-red { background-color: #DC143C; }
.lens-page .color-black { background-color: #1a1a1a; }
.lens-page .color-rainbow { background: linear-gradient(135deg, red, orange, yellow, green, blue, purple); }
.lens-page .color-default { background-color: #ccc; }

.lens-page .selected-usage-text {
  font-style: italic;
  color: #666;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

/* 处方确认弹窗样式 */
.lens-page .confirm-prescription-content {
  padding: 10px 0;
}

.lens-page .prescription-confirm-table {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
}

.lens-page .prescription-confirm-table table {
  margin-bottom: 0;
}

.lens-page .prescription-confirm-table th {
  background: #e9ecef;
  text-align: center;
  font-size: 13px;
}

.lens-page .prescription-confirm-table td {
  text-align: center;
  font-size: 14px;
}

.lens-page .confirm-info-row {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #dee2e6;
}

.lens-page .confirm-info-item {
  font-size: 14px;
  margin-bottom: 8px;
  color: #495057;
}

/* AXIS 选择器样式 */
.lens-page .axis-select.error {
  border-color: #dc3545 !important;
  background-color: #fff8f8;
}

/* fake-select 错误样式 */
.lens-page .fake-select.error {
  border-color: #dc3545 !important;
  background-color: #fff8f8;
}

/* form-select 错误样式 */
.lens-page .form-select.error {
  border-color: #dc3545 !important;
  background-color: #fff8f8;
}

/* pd-display 错误样式 */
.lens-page .pd-display.error,
.lens-page .pd-display-item.error {
  border-color: #dc3545 !important;
  background-color: #fff8f8;
}

/* 聚焦时移除 AXIS 错误样式 */
.lens-page .axis-select:focus {
  border-color: #51a8e7;
  box-shadow: 0 0 0 3px rgba(81, 168, 231, 0.15);
  outline: none;
}

/* 字段级错误提示 */
.lens-page .field-error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  padding-left: 2px;
}

.lens-page .field-error-message i {
  margin-right: 4px;
}

/* ============================================
   CART PAGE LENS TABLE STYLES
   ============================================ */
.lens-cart-table-wrapper {
  max-width: 500px;
}

.lens-cart-table {
  margin-bottom: 0;
  font-size: 0.85rem;
  border: 1px solid #dee2e6 !important;
}

.lens-cart-table td,
.lens-cart-table th {
  padding: 3px 6px;
  vertical-align: middle;
  border: 1px solid #dee2e6 !important;
}

.lens-cart-table thead.table-light th {
  background-color: #f8f9fa;
}


/* ============================================
   AJAX LOADING SPINNER (pure CSS)
   ============================================ */
.lens-loading-spinner {
  width: 28px;
  height: 28px;
  margin: 10px auto;
  border: 3px solid #e6dcc3;
  border-top-color: #c7ab62;
  border-radius: 50%;
  animation: lens-spin 0.8s linear infinite;
}

@keyframes lens-spin {
  to { transform: rotate(360deg); }
}
