.modalwindow {
  border: 2px solid black;
  padding: 5px;
  border-radius: 6px;
  background: #282828;
  border-color: #282828;
  cursor: pointer;
  max-width: 800px;
  max-height: 400px;
}

.option-btn {
  transition: all 0.2s ease;
  cursor: pointer;
}

.option-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(146, 214, 173, 0.15);
}

.option-btn.selected {
  border-color: #92d6ad;
  background: linear-gradient(
    135deg,
    rgba(146, 214, 173, 0.1) 0%,
    rgba(146, 214, 173, 0.05) 100%
  );
}

.product-card {
  transition: all 0.2s ease;
}

.product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(146, 214, 173, 0.1);
}

.loading-spinner {
  width: 40px;
  height: 40px;
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #92d6ad;
  animation: loadingBounce 1.4s ease-in-out infinite both;
}

.loading-dot:nth-child(1) {
  animation-delay: -0.32s;
}
.loading-dot:nth-child(2) {
  animation-delay: -0.16s;
}
.loading-dot:nth-child(3) {
  animation-delay: 0s;
}

@keyframes loadingBounce {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.product-thumb {
  position: relative;
  cursor: pointer;
}

.product-thumb img {
  transition: all 0.3s ease;
}

.product-thumb:hover img {
  transform: scale(1.1);
}

.product-thumb:hover .zoom-overlay {
  opacity: 1;
}

.zoom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-icon {
  color: white;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px;
  border-radius: 50%;
}

.results-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.results-table th {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
  color: #475569;
}

.results-table td {
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}

.results-table tr:hover td {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.results-table tr:hover {
  transform: none;
  box-shadow: none;
}

.dataTables_length {
  text-align: left !important;
  margin-bottom: 0 !important;
  float: left !important;
  margin-top: 1rem !important;
  position: absolute !important;
  bottom: 10px !important;
  left: 10px !important;
}

.dataTables_length label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin: 0 !important;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.dataTables_length select {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 12px;
  background: white;
  color: #374151;
  margin-left: 0.5rem !important;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dataTables_length select:hover {
  border-color: #92d6ad;
  box-shadow: 0 2px 6px rgba(146, 214, 173, 0.2);
}

.dataTables_length select:focus {
  outline: none;
  border-color: #92d6ad;
  box-shadow: 0 0 0 3px rgba(146, 214, 173, 0.1);
}

.dataTables_info {
  margin-top: 1rem !important;
  text-align: center !important;
  float: none !important;
  margin-left: 0 !important;
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  position: absolute !important;
  bottom: 14px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.dataTables_paginate {
  margin-top: 1rem !important;
  float: right !important;
  position: absolute !important;
  bottom: 10px !important;
  right: 10px !important;
}

.dataTables_wrapper {
  position: relative !important;
  padding-bottom: 60px !important;
}

.ring-mounting-animation {
  position: relative;
  width: 80px;
  height: 80px;
}

.ring-base {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 3px solid #92d6ad;
  border-radius: 50%;
  top: 10px;
  left: 10px;
  animation: ringRotate 2s ease-in-out infinite;
}

.diamond-stone {
  position: absolute;
  width: 20px;
  height: 20px;
  background: linear-gradient(45deg, #e0f2fe, #ffffff, #f0f9ff);
  border-radius: 50%;
  top: 30px;
  left: 30px;
  animation: diamondMount 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(146, 214, 173, 0.3);
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #92d6ad;
  border-radius: 50%;
  animation: sparkle 1.5s ease-in-out infinite;
}

.sparkle-1 {
  top: 15px;
  left: 15px;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 15px;
  right: 15px;
  animation-delay: 0.5s;
}

.sparkle-3 {
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 1s;
}

@keyframes ringRotate {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
}

@keyframes diamondMount {
  0%,
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  25% {
    transform: scale(1.2) translateY(-5px);
    opacity: 0.8;
  }
  50% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  75% {
    transform: scale(1.1) translateY(-3px);
    opacity: 0.9;
  }
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
}

.tab-content {
  transition: max-height 0.3s ease-in-out;
  overflow: hidden;
}

.tab-toggle .fa-chevron-down {
  transition: transform 0.3s ease;
}

.selection-indicator {
  transition: opacity 0.2s ease;
}

.selection-indicator.show {
  opacity: 1;
}

.info-slide {
  transition: opacity 0.4s ease-in-out;
}

.info-slide.active {
  opacity: 1;
}

.info-slide:not(.active) {
  opacity: 0;
}

.diamond-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 13px;
}

.diamond-table th {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
  color: #374151;
  padding: 12px 8px;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  transition: all 0.2s ease;
  position: sticky;
  top: 0;
  z-index: 10;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.diamond-table th:first-child {
  border-top-left-radius: 4px;
}

.diamond-table th:last-child {
  border-top-right-radius: 4px;
}

.diamond-table th:hover {
  background: #f1f5f9;
}

.diamond-table th.sortable::after {
  content: "↕";
  margin-left: 2px;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  font-size: 10px;
}

.diamond-table th.sort-asc::after {
  content: "↑";
  opacity: 1;
}

.diamond-table th.sort-desc::after {
  content: "↓";
  opacity: 1;
}

.diamond-table td {
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 8px;
  transition: all 0.2s ease;
  background: #ffffff;
  text-align: center;
  vertical-align: middle;
  font-size: 13px;
  color: #374151;
}

.diamond-table tr:hover td {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.diamond-table tr {
  transition: all 0.2s ease;
}

.diamond-table .examine-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.diamond-table .examine-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

.diamond-table .diamond-image {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  object-fit: cover;
}

.diamond-table .stone-number {
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: #6b7280;
}

.diamond-table .price {
  font-weight: 600;
  color: #059669;
  font-size: 13px;
}

.diamond-table .laboratory-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 4px;
}

.category-indicator {
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-indicator:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.category-indicator.active {
  background: linear-gradient(135deg, #92d6ad 0%, #7ac598 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(146, 214, 173, 0.3);
}

.category-indicator.active img,
.category-indicator.active i {
  filter: brightness(0) invert(1);
}

.banner-option-btn {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 4px 2px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  animation: slideIn 0.3s ease;
  min-width: 45px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (min-width: 1024px) {
  .banner-option-btn {
    padding: 5px 3px;
    min-width: 50px;
  }
}

@media (min-width: 1280px) {
  .banner-option-btn {
    padding: 6px 4px;
    min-width: 55px;
  }
}

.banner-option-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: #92d6ad;
}

.banner-option-btn.selected {
  border-color: #92d6ad;
  background: linear-gradient(
    135deg,
    rgba(146, 214, 173, 0.1) 0%,
    rgba(146, 214, 173, 0.05) 100%
  );
}

.banner-option-btn .icon {
  width: 16px;
  height: 16px;
  margin: 0 auto 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-option-btn .label {
  font-size: 11px;
  font-weight: 500;
  color: #374151;
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .banner-option-btn .icon {
    width: 17px;
    height: 17px;
    margin: 0 auto 2px;
  }

  .banner-option-btn .label {
    font-size: 8px;
  }
}

@media (min-width: 1280px) {
  .banner-option-btn .icon {
    width: 18px;
    height: 18px;
    margin: 0 auto 2px;
  }

  .banner-option-btn .label {
    font-size: 12px;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.selection-placeholder {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
  margin-right: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
  padding-right: 4px;
}

.loading-bar {
  background: linear-gradient(90deg, #92d6ad 0%, #7ac598 50%, #5fb589 100%);
  background-size: 200% 100%;
  animation: loadingShimmer 2s ease-in-out infinite;
}

@keyframes loadingShimmer {
  0% {
    background-position: -200% 0;
    width: 0%;
  }
  50% {
    background-position: 0% 0;
    width: 100%;
  }
  100% {
    background-position: 200% 0;
    width: 0%;
  }
}

.loading-dots div {
  animation: loadingBounce 1.4s ease-in-out infinite both;
}

.loading-dots div:nth-child(1) {
  animation-delay: -0.32s;
}
.loading-dots div:nth-child(2) {
  animation-delay: -0.16s;
}
.loading-dots div:nth-child(3) {
  animation-delay: 0s;
}

@keyframes loadingBounce {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detailed-filter-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease-in-out,
    opacity 0.3s ease-in-out;
  opacity: 0;
  z-index: 10;
}

.detailed-filter-options.show {
  max-height: 200px;
  opacity: 1;
}

.detailed-filter-section {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 4px;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease;
}

.detailed-filter-options.show .detailed-filter-section {
  transform: translateY(0);
  opacity: 1;
}

.detailed-filter-options.show .detailed-filter-section:nth-child(1) {
  transition-delay: 0.1s;
}
.detailed-filter-options.show .detailed-filter-section:nth-child(2) {
  transition-delay: 0.2s;
}
.detailed-filter-options.show .detailed-filter-section:nth-child(3) {
  transition-delay: 0.3s;
}
.detailed-filter-options.show .detailed-filter-section:nth-child(4) {
  transition-delay: 0.4s;
}

.detailed-filter-header {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 4px;
}

.detailed-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.detailed-filter-btn {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 8px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.detailed-filter-btn:hover {
  border-color: #92d6ad;
  background: #f0fdf4;
}

.detailed-filter-btn.selected {
  border-color: #92d6ad;
  background: #92d6ad;
  color: white;
}

.detailed-category-btn {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 80px;
}

.detailed-category-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: #92d6ad;
}

.detailed-category-btn.selected {
  border-color: #92d6ad;
  background: linear-gradient(
    135deg,
    rgba(146, 214, 173, 0.1) 0%,
    rgba(146, 214, 173, 0.05) 100%
  );
}

.detailed-category-btn .icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detailed-category-btn .label {
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  line-height: 1.2;
}

.filter-expanded {
  grid-column: span 1;
  transition: all 0.3s ease;
}

.filter-collapsed {
  grid-column: span 2;
  transition: all 0.3s ease;
}

.loading-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
}

.diamond-image {
  transition: opacity 0.3s ease;
}

.diamond-image.loading {
  opacity: 0.6;
}

.diamond-image.loaded {
  opacity: 1;
}

.diamond-table img {
  will-change: transform;
  backface-visibility: hidden;
}

.diamond-table tr {
  contain: layout style paint;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
  color: #374151;
  font-size: 14px;
}

.dataTables_wrapper .dataTables_length select {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 4px 8px;
  background: white;
}

.dataTables_wrapper .dataTables_filter input {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 12px;
  background: white;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 12px;
  margin: 0 2px;
  background: white;
  color: #374151 !important;
  transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #f3f4f6 !important;
  border-color: #92d6ad;
  color: #374151 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #92d6ad !important;
  border-color: #92d6ad;
  color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dataTables_wrapper .dataTables_processing {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dataTables_wrapper .dataTables_processing::before {
  content: "";
  width: 20px;
  height: 20px;
  background: url("image/loader.gif") no-repeat center;
  background-size: contain;
}

/* Arama barı – tablo ile tek blok */
.dv-datatable-box {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.dv-datatable-toolbar {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  padding: 12px 16px;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.dv-datatable-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dv-datatable-search-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  white-space: nowrap;
  cursor: pointer;
}

.dv-datatable-search-input {
  flex: 1;
  min-width: 160px;
  max-width: 280px;
  padding: 10px 14px;
  min-height: 40px;
  font-size: 14px;
  color: #374151;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  touch-action: manipulation;
}

.dv-datatable-search-input::placeholder {
  color: #9ca3af;
}

.dv-datatable-search-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.dv-datatable-search-btn {
  padding: 10px 18px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #10b981;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.dv-datatable-search-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

.dv-datatable-search-btn:active {
  transform: translateY(0);
}

.dv-datatable-scroll {
  border-top: none;
}

/* Mobil: büyük dokunma alanı, tıklanabilir */
@media (max-width: 768px) {
  .dv-datatable-toolbar {
    padding: 16px 12px;
  }

  .dv-datatable-search-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .dv-datatable-search-label {
    font-size: 13px;
    padding-bottom: 2px;
  }

  .dv-datatable-search-input {
    max-width: none;
    min-height: 48px;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .dv-datatable-search-btn {
    min-height: 48px;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 8px;
  }
}

.diamond-datatable {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
}

.diamond-datatable th {
  background: #fff;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
  color: #374151;
  padding: 12px 8px;
  text-align: center;
  vertical-align: middle;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

table.dataTable.row-border > tbody > tr > th,
table.dataTable.row-border > tbody > tr > td,
table.dataTable.display > tbody > tr > th,
table.dataTable.display > tbody > tr > td {
  border-top: none;
}

.diamond-datatable td {
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 8px;
  background: #ffffff;
  text-align: center;
  vertical-align: middle;
  font-size: 13px;
  color: #374151;
}

.diamond-datatable tbody tr:hover td {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.diamond-datatable .examine-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.diamond-datatable .examine-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

.diamond-datatable .diamond-image {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  object-fit: cover;
}

.diamond-datatable .stone-number {
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: #6b7280;
}

.diamond-datatable .price {
  font-weight: 600;
  color: #059669;
  font-size: 13px;
}

.diamond-datatable .laboratory-logo {
  width: 100% !important;
  height: 30px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #d5d5d5;
  padding: 2px 4px;
}

.diamond-datatable thead th {
  text-align: center !important;
  vertical-align: middle !important;
}

.diamond-datatable tbody td {
  text-align: center !important;
  vertical-align: middle !important;
}

.diamond-datatable tbody td img {
  display: block;
  margin: 0 auto;
}

.diamond-datatable tbody td a,
.diamond-datatable tbody td button {
  display: inline-block;
  text-align: center;
}

.empty-state ~ .dataTables_wrapper .dataTables_length,
.empty-state ~ .dataTables_wrapper .dataTables_paginate,
.empty-state ~ .dataTables_wrapper .dataTables_info {
  display: none !important;
}

.overflow-x-auto:has(.empty-state) .dataTables_wrapper .dataTables_length,
.overflow-x-auto:has(.empty-state) .dataTables_wrapper .dataTables_paginate,
.overflow-x-auto:has(.empty-state) .dataTables_wrapper .dataTables_info {
  display: none !important;
}

/* Mobile responsive table adjustments */
@media screen and (max-width: 768px) {
  /* Hide less important columns on mobile */
  .shape-column,
  .carat-column,
  .color-column,
  .clarity-column,
  .cut-column,
  .polish-column,
  .symmetry-column,
  .fluorescence-column,
  .stone-id-column {
    display: none !important;
  }

  /* Ensure examine button is properly positioned */
  .examine-column {
    text-align: center;
  }

  /* Adjust image size on mobile */
  .image-column img {
    max-width: 60px;
    height: auto;
  }

  /* Adjust laboratory logo size on mobile */
  .laboratory-column img {
    max-width: 40px;
    height: auto;
  }

  /* Fix paginate buttons on mobile - move to new line */
  .dataTables_paginate {
    position: static !important;
    float: none !important;
    margin-top: 1rem !important;
    text-align: center !important;
    width: 100% !important;
    bottom: auto !important;
    right: auto !important;
  }

  /* Adjust wrapper padding for mobile */
  .dataTables_wrapper {
    padding-bottom: 80px !important;
  }

  /* Stack paginate buttons vertically on very small screens */
  .dataTables_wrapper .dataTables_paginate {
    flex-direction: column;
    gap: 0.5rem;
  }

  .dataTables_wrapper .dataTables_paginate .paginate_button {
    margin: 0.125rem !important;
  }
}

@media screen and (max-width: 640px) {
  /* On very small screens, show only essential columns */
  .stone-id-column {
    display: none !important;
  }

  .price-column {
    font-size: 0.875rem;
  }

  /* Ensure proper spacing */
  .examine-column .examine-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  /* Further optimize paginate buttons for very small screens */
  .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.375rem 0.5rem !important;
    font-size: 0.875rem !important;
    margin: 0.125rem !important;
  }

  /* Reduce button spacing on very small screens */
  .dataTables_wrapper .dataTables_paginate {
    gap: 0.25rem !important;
  }
}

@media screen and (max-width: 480px) {
  /* Extra small screens - stack paginate buttons */
  .dataTables_wrapper .dataTables_paginate {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .dataTables_wrapper .dataTables_paginate .paginate_button {
    width: auto !important;
    min-width: 40px !important;
  }
}

/* DataTables responsive styling */
.dataTables_wrapper .dataTables_paginate {
  display: block;
}

/* Paginate button styling - will be controlled by JavaScript */

.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 0.5rem 0.75rem;
  margin: 0 0.125rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: white;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Ensure table is responsive */
.diamond-page-table {
  width: 100%;
  overflow-x: auto;
}

/* Column-specific styling */
.examine-column .examine-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.examine-column .examine-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.image-column img {
  max-width: 80px;
  height: auto;
  border-radius: 0.375rem;
}

.laboratory-column img {
  max-width: 50px;
  height: auto;
}

/* Sort dropdown positioning fix */
#sortDropdown {
  right: 0px;
  min-width: 200px;
  top: 50px !important;
}

/* DataTables sıralama ikonları (CSS yüklenmiyorsa görünmez kalır) */
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
  position: relative;
  padding-right: 28px; /* ikon için yer */
  cursor: pointer;
}

table.dataTable thead th.sorting::after,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::after {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 12px;
  color: #6b7280; /* gray-500 */
  opacity: 0.75;
  line-height: 1;
}

/* varsayılan (iki yön) */
table.dataTable thead th.sorting::after {
  content: "\f0dc"; /* fa-sort */
  opacity: 0.35;
}

/* asc / desc */
table.dataTable thead th.sorting_asc::after {
  content: "\f0de"; /* fa-sort-up */
}

table.dataTable thead th.sorting_desc::after {
  content: "\f0dd"; /* fa-sort-down */
}

/* ===== Filtre grid — mobil 4 sütun (kesim/karat/renk/berraklık tek satır), tablet 5, masaüstü 10 sütun ===== */
#filterGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
@media (min-width: 640px) and (max-width: 1023px) {
  #filterGrid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
  }
}
@media (min-width: 1024px) {
  #filterGrid {
    grid-template-columns: repeat(10, 1fr) !important;
    gap: 0.75rem !important;
  }
}
/* Mobil: sertifika tam genişlik */
@media (max-width: 1023px) {
  #certificateFilter {
    grid-column: 1 / -1 !important;
  }
}
/* Grid öğeleri taşmasın */
#filterGrid > div {
  min-width: 0;
}

/* Mobil: ilk 4 filtre (Kesim/Karat/Renk/Berraklık) daha belirgin, tek satırda dengeli */
@media (max-width: 767px) {
  #filterGrid {
    gap: 0.625rem;
  }
  #cutFilter,
  #caratFilter,
  #colorFilter,
  #clarityFilter {
    min-width: 0;
  }
  #cutFilter .category-indicator,
  #caratFilter .category-indicator,
  #colorFilter .category-indicator,
  #clarityFilter .category-indicator {
    min-height: 4.25rem; /* ~68px, h-16’dan biraz daha yüksek */
    padding: 0.5rem;
    border-radius: 10px;
  }
  #cutFilter .category-indicator img,
  #caratFilter .category-indicator img,
  #clarityFilter .category-indicator img {
    width: 2.25rem;
    height: 2.25rem;
    max-width: 100%;
    object-fit: contain;
  }
  #colorFilter .category-indicator i {
    font-size: 1.25rem;
  }
}

/* Sertifika butonları — her zaman tıklanabilir boyut */
.cert-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 0;
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0 8px;
  letter-spacing: 0.02em;
}
.cert-btn:hover {
  background: #e5e7eb;
}
.cert-btn.selected,
.cert-btn.active {
  background: #f0fdf4;
  border-color: var(--color-primary, #0d9488);
  color: var(--color-primary, #0d9488);
}
/* Masaüstünde eski küçük görünüm */
@media (min-width: 1024px) {
  .cert-btn {
    height: 100%;
    border-radius: 6px;
    font-size: 11px;
  }
}

/* Filtre seçim alanı butonları */
.banner-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  transition: all 0.15s;
  min-height: 64px;
  text-align: center;
  line-height: 1.2;
}
.banner-option-btn:hover {
  background: #f0fdf4;
  border-color: var(--color-primary, #0d9488);
  color: #111;
}
.banner-option-btn.selected {
  background: #f0fdf4;
  border-color: var(--color-primary, #0d9488);
  color: var(--color-primary, #0d9488);
}
.banner-option-btn .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-option-btn .label {
  font-size: 10px;
}

.helpbutton {
  top: -40px;
  right: 30px;
  gap: 10px;
  z-index: 10;
}

/* Yardım turu butonu – vurgulu, tura başlatır */
.dv-btn-help-tour {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}
.dv-btn-help-tour:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.45);
  color: #fff;
}
.dv-btn-help-tour i {
  font-size: 14px;
  opacity: 0.95;
}

/* Detaylı filtreleme butonu – çerçeveli, filtre panelini açar */
.dv-btn-detailed-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid #6366f1;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
  background: #fff;
  color: #6366f1;
}
.dv-btn-detailed-filter:hover {
  background: #6366f1;
  color: #fff;
  transform: translateY(-1px);
}
.dv-btn-detailed-filter i {
  font-size: 14px;
}
.image_carousel {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.image_carousel::-webkit-scrollbar {
  height: 6px;
}

.image_carousel::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.image_carousel::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.image_carousel::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.image_carousel .item {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  margin-right: 6px;
}

.image_carousel .item:last-child {
  margin-right: 0;
}

.image_carousel .item button,
.image_carousel .item a {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  background: transparent !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
}

.image_carousel .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image_carousel .item button.active {
  border: 2px solid #92d6ad;
  box-shadow: 0 0 0 1px #92d6ad;
}

.image_carousel .item button:hover,
.image_carousel .item a:hover {
  border-color: #92d6ad;
  transform: scale(1.05);
}

/* Modern Montür Cards */
#mountingList > div > div {
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

#mountingList > div > div:hover {
  transform: translateY(-2px);
  background: linear-gradient(
    91deg,
    rgb(255 255 255) 30%,
    rgb(237 255 244) 70%
  );
}

/* Selected State */
#mountingList > div > div.selected {
  border: 1px dashed #7fb198 !important;
  border-spacing: inherit;
  background-color: #f0fdf4 !important;
  box-shadow: 0 0 0 3px rgba(146, 214, 173, 0.1);
  background: linear-gradient(
    91deg,
    rgb(255 255 255) 30%,
    rgb(237 255 244) 70%
  );
}

/* Tüm montür kartlarında sağ üstte yuvarlak ok işareti — seçili değilken gri */
#mountingList > div > div::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: block;
  line-height: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  z-index: 10;
  background: #e5e7eb;
  color: #9ca3af;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
/* Seçili montürde yeşil */
#mountingList > div > div.selected::after {
  background: #22c55e;
  color: white;
}

#mountingList .mounting-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  padding: 10px 12px !important;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  background: #fff;
  text-align: left;
  justify-content: space-between;
}
#mountingList .mounting-image-cell {
  width: 160px;
  min-width: 88px;
  min-height: 80px;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #f8fafc;
  flex-shrink: 0;
  position: relative;
}
#mountingList .mounting-image-cell.mounting-image-cell--wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
#mountingList .mounting-image-cell .mounting-cell-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 600;
}
#mountingList .mounting-image-cell .mounting-cell-placeholder svg {
  stroke: #d1d5db;
}
#mountingList
  .mounting-image-cell
  .mounting-cell-placeholder.mounting-cell-placeholder-visible {
  display: flex;
}
#mountingList .mounting-image-cell img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}
#mountingList .mounting-card img {
  transition: transform 0.2s ease;
}
#mountingList .mounting-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
#mountingList .mounting-card h4,
#mountingList .mounting-card .text-sm.font-bold {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

#mountingList > div > div.selected img {
  transform: scale(1.02);
}

/* Montür Seçimini Kaldır Butonu */
#removeMountingBtn {
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

#removeMountingBtn:hover {
  background-color: rgba(239, 68, 68, 0.1);
}

/* Montür 3D butonu: hep görünsün; yoksa gri/tıklanamaz, varsa mavi */
.mounting-3d-preview-btn {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  transition:
    background-color 0.2s,
    opacity 0.2s;
}
.mounting-3d-disabled {
  background: #e5e7eb !important;
  color: #9ca3af !important;
  cursor: not-allowed !important;
  opacity: 0.9;
}
.mounting-3d-active {
  background: #3b82f6 !important;
  color: #fff !important;
  cursor: pointer !important;
}
.mounting-3d-active:hover {
  background: #2563eb !important;
}

/* DataTables sıralama ikonları (CSS yüklenmiyorsa görünmez kalır) */
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
  position: relative;
  padding-right: 28px; /* ikon için yer */
  cursor: pointer;
}

table.dataTable thead th.sorting::after,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::after {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 12px;
  color: #6b7280; /* gray-500 */
  opacity: 0.75;
  line-height: 1;
}

/* varsayılan (iki yön) */
table.dataTable thead th.sorting::after {
  content: "\f0dc"; /* fa-sort */
  opacity: 0.35;
}

/* asc / desc */
table.dataTable thead th.sorting_asc::after {
  content: "\f0de"; /* fa-sort-up */
}

table.dataTable thead th.sorting_desc::after {
  content: "\f0dd"; /* fa-sort-down */
}

/* ================================================================
 INCELE Sayfasi - Yeni Tasarim  |  Mobile-first
================================================================ */

.dv-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.dv-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  padding: 0 12px 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.dv-back:hover {
  background: #f3f4f6;
}
.dv-stone-id {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.03em;
  background: #f1f5f9;
  padding: 5px 12px;
  border-radius: 20px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dv-stoneid-btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}
.dv-stoneid-btn:hover {
  background: #fff;
  border-color: var(--color-primary, #0d9488);
  color: var(--color-primary, #0d9488);
}
.dv-stoneid-btn.copied {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}
.dv-stone-id-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .dv-body {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 14px;
    margin: 0 auto;
  }
  .dv-body.dv-body--wide {
    grid-template-columns: 830px 1fr;
  }
  .dv-body--wide .dv-right {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }
  .dv-body--wide .dv-right-mounting,
  .dv-body--wide .dv-right #purchaseWrapper {
    width: 100%;
  }
  .dv-body--wide .dv-right-mounting {
    height: auto !important;
  }
  .dv-body--wide .dv-section {
    justify-content: initial !important;
    height: 100%;
  }
  .dv-body--wide #mountingList > div {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: 1fr !important;
    flex: 1 !important;
    min-height: 0 !important;
  }
  .dv-body--wide #mountingList > div > div {
    min-height: 0 !important;
  }
  .dv-left {
    position: sticky;
    top: 56px;
    align-self: start;
  }
  .dv-body {
    padding-bottom: 0;
  }
}

.dv-img-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 280px;
  aspect-ratio: 1;
  border-radius: 16px;
  background: #9fa4aa;
}
@media (min-width: 1024px) {
  .dv-img-frame {
    min-height: 380px;
  }
}

.dv-img-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #f5f6f8;
  font-size: 13px;
  color: #adb5bd;
}
.dv-img-loader.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Özet kartları: görsel yoksa icon placeholder */
.dv-summary-img-wrap {
  position: relative;
}
.dv-summary-img-wrap .dv-summary-img-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 600;
}
.dv-summary-img-wrap .dv-summary-img-placeholder svg {
  flex-shrink: 0;
  stroke: #d1d5db;
}
.dv-summary-img-wrap.has-no-img .dv-summary-img-placeholder {
  display: flex;
}
.dv-summary-img-wrap.has-no-img img {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}
#promoGiftImgWrap .dv-summary-img-placeholder {
  background: #fef3c7;
  color: #b45309;
}
#promoGiftImgWrap .dv-summary-img-placeholder svg {
  stroke: #d97706;
}

/* Promo hediye kartı - iOS/Safari kayık görünüm düzeltmesi */
#promoGiftCard {
  display: flex;
  flex-direction: row;
  align-items: center;
  -webkit-align-items: center;
  -webkit-box-align: center;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
#promoGiftCard > div:last-of-type {
  min-width: 0;
  -webkit-flex: 1;
  flex: 1;
}
@supports (-webkit-touch-callout: none) {
  #promoGiftCard {
    min-height: 0;
    flex-wrap: nowrap;
  }
  #promoGiftCard > div:last-of-type {
    -webkit-box-flex: 1;
  }
}

/* Promosyon kartında iki hediyeyi tek satırda, yan yana göster */
.promo-gift-multi {
  display: flex;
  flex-direction: row;
  gap: 6px;
  -webkit-flex-direction: row;
  align-items: stretch;
  flex-shrink: 0;
}
.promo-gift-multi .promo-gift-slot {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: #fef3c7;
  border: 1px solid #fde68a;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.promo-gift-multi .promo-gift-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Promo hediye slot: resim yüklenmezse icon placeholder göster */
.promo-gift-multi .promo-gift-slot .dv-summary-img-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #fef3c7;
  color: #b45309;
  font-size: 10px;
  font-weight: 600;
}
.promo-gift-multi .promo-gift-slot .dv-summary-img-placeholder svg {
  flex-shrink: 0;
  stroke: #d97706;
}
.promo-gift-multi .promo-gift-slot.has-no-img .dv-summary-img-placeholder {
  display: flex;
}
.promo-gift-multi .promo-gift-slot.has-no-img img {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

/* Görsel yok placeholder - resim yoksa veya yükleme hatası */
.dv-img-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #f5f6f8;
  font-size: 14px;
  color: #9ca3af;
}
.dv-img-empty i {
  font-size: 48px;
  color: #d1d5db;
}
.dv-img-empty.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.dv-img-loader::before {
  content: "";
  display: block;
  width: 38px;
  height: 38px;
  border: 3px solid #dee2e6;
  border-top-color: var(--color-primary, #0d9488);
  border-radius: 50%;
  animation: dvSpin 0.75s linear infinite;
}
@keyframes dvSpin {
  to {
    transform: rotate(360deg);
  }
}
.dv-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}
.dv-3d-wrap {
  position: absolute;
  inset: 0;
}
.dv-3d-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}
.dv-3d-btn:hover {
  background: #fff;
  border-color: var(--color-primary, #0d9488);
  color: var(--color-primary, #0d9488);
}
.dv-3d-btn.active {
  background: var(--color-primary, #0d9488);
  color: #fff;
  border-color: var(--color-primary, #0d9488);
}
.dv-zoom-btn {
  position: absolute;
  bottom: 10px;
  right: 92px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}
.dv-zoom-btn:hover {
  background: #fff;
  border-color: var(--color-primary, #0d9488);
  color: var(--color-primary, #0d9488);
}
.dv-zoom-btn.active {
  background: var(--color-primary, #0d9488);
  color: #fff;
  border-color: var(--color-primary, #0d9488);
}
@media (max-width: 768px) {
  .dv-zoom-btn {
    display: none !important;
  }
}

.dv-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: transparent;
  border: none;
  margin-top: 8px;
}
.dv-thumbs::-webkit-scrollbar {
  display: none;
}
@media (min-width: 1024px) {
  .dv-thumbs {
    padding: 8px 0;
    margin-top: 10px;
    background: transparent;
    border: none;
  }
}

.dv-info {
  background: #fff;
  padding: 16px;
  border-top: 5px solid #f0f2f5;
}
@media (min-width: 1024px) {
  .dv-info {
    border-radius: 14px;
    border: 1px solid #e8ecef;
    border-top: 1px solid #e8ecef;
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 18px;
  }
}
.dv-price-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #f0f2f5;
}
.dv-price-lbl {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
  display: block;
  margin-bottom: 3px;
}
.dv-price-val {
  font-size: 26px;
  font-weight: 900;
  color: #111827;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  line-height: 1;
}

.dv-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.dv-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #ffffff, #f8f8f8);
  border-radius: 12px;
  padding: 10px 6px;
  border: 1px solid #e5e7eb;
  text-align: center;
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    border-color 0.15s ease-out;
}
.dv-spec dt {
  font-size: 8.5px;
  font-weight: 700;
  color: #adb5bd;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dv-spec dd {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.2;
}
.dv-spec dd {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.dv-spec dd a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 28px;
  color: inherit;
  text-decoration: none;
}
.dv-spec dd a:hover {
  color: var(--color-primary, #0d9488);
}
#detailLaboratory[data-pdf-url] {
  cursor: pointer;
}
#detailLaboratory[data-pdf-url]:hover {
  opacity: 0.85;
}
/* Sertifika kutucuğunun tamamı tıklanabilir */
#certSpecBox {
  position: relative;
}
#certSpecBox #detailLaboratory {
  width: 100%;
  height: 100%;
}
.dv-spec:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(100, 116, 139, 0.25);
  border-color: #92d6ad;
}

.dv-right {
  display: flex;
  flex-direction: column;
}
/* Sol: Montür + Yüzük alt alta. Sağ: Sipariş özeti */
.dv-right-mounting {
  display: flex;
  flex-direction: column;
}
.dv-mounting-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  margin: 0 0 12px 0;
  overflow: hidden;
}
.dv-mounting-wrap .dv-section--mounting-body {
  border: none;
  border-radius: 0;
  margin-bottom: 0;
}
.dv-sec-head--mounting-fixed {
  flex-shrink: 0;
  margin: 0;
  border-radius: 0;
}
@media (min-width: 1024px) {
  .dv-mounting-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }
  .dv-right #purchaseWrapper .dv-sec-head--summary-fixed,
  .dv-mounting-wrap .dv-sec-head--mounting-fixed {
    flex-shrink: 0;
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid #e5e7eb;
  }
  .dv-mounting-wrap .dv-section--mounting-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 22px 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .dv-right {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
  }
  .dv-right-mounting {
    min-width: 0;
    height: 100%;
  }
  .dv-right #purchaseWrapper {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
  }
  .dv-right #purchaseWrapper .dv-price-summary-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
  }
  .dv-right #purchaseWrapper .dv-sec-head--summary-fixed {
    flex-shrink: 0;
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid #e5e7eb;
  }
  .dv-right #purchaseWrapper .dv-price-summary-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    padding: 18px 22px 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .dv-right #purchaseWrapper .dv-cta {
    flex-shrink: 0;
    margin-top: auto;
    position: static;
    border-radius: 14px;
    border: 1px solid #e8ecef;
    padding: 16px;
    box-shadow: none;
    margin-bottom: 12px;
  }
}

/* === Section kart — Montür Seçin & Sipariş Özeti === */
.dv-section {
  background: #fff;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  margin-bottom: 12px;
}
@media (min-width: 1024px) {
  .dv-section {
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
  }
  /* 4'ten az item varsa space-between uygulanmasın */
  .dv-section:has(#mountingList > div > div:nth-child(4)) {
    justify-content: space-between;
  }
}
.dv-sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -18px -18px 14px -18px;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 3;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.04);
}
@media (min-width: 1024px) {
  .dv-sec-head {
    margin: -22px -22px 14px -22px;
    padding: 16px 22px;
  }
}

@media (max-width: 480px) {
  .dv-sec-head {
    margin: unset !important;
  }
}
.dv-sec-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0;
  letter-spacing: 0.01em;
}
.dv-sec-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}
.dv-sec-icon--mounting {
  background: #f3f4f6;
  color: #4b5563;
}
.dv-sec-icon--summary {
  background: #f3f4f6;
  color: #4b5563;
}
.dv-sec-badge {
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dv-sec-sub {
  font-size: 13px;
  color: #9ca3af;
  margin: 0 0 14px;
}

/* --- Sipariş Özeti --- */
.dv-price-summary .dv-total-row {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}
.dv-price-summary .dv-total-lbl {
  color: #374151;
  font-weight: 600;
}
.dv-price-summary .dv-total-val {
  color: #111827;
}

/* Montür: dikey liste — alt alta */
#mountingList {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-height: 0 !important;
}
#mountingList > div {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 1 !important;
  min-height: 0 !important;
}
#mountingList > div > div {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  flex: 1 1 0 !important;
  cursor: pointer !important;
}

/* 4 üründen az montür varsa: her kart en fazla %25 yüksekliğe kadar büyüsün,
   arta kalan alan boş kalsın */
#mountingList > div:not(:has(> div:nth-child(4))) > div {
  flex: 0 0 25% !important;
 /* max-height: 25% !important; */
}

/* Mobil: montür seçimi eşit ve sabit kart yüksekliği, yükseklik dağılımı kapat */
@media (max-width: 1023px) {
  #mountingList {
    flex: none !important;
    min-height: 0 !important;
  }
  #mountingList > div {
    flex: none !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  #mountingList > div > div {
    flex: none !important;
    min-height: 110px !important;
    height: 110px !important;
  }
  #mountingList > div:not(:has(> div:nth-child(4))) > div {
    flex: none !important;
    max-height: none !important;
  }
  #mountingList .mounting-image-cell {
    width: 90px !important;
    min-width: 90px !important;
    height: 90px !important;
    min-height: 90px !important;
  }
  #mountingList .mounting-card-body {
    min-width: 0 !important;
  }
}

#mountingList .dv-skel {
  width: 100% !important;
  min-width: 0 !important;
  height: 140px !important;
  aspect-ratio: unset !important;
}

.dv-skel {
  aspect-ratio: 0.85;
  border-radius: 12px;
  background: linear-gradient(90deg, #f0f2f5 25%, #e4e8ee 50%, #f0f2f5 75%);
  background-size: 200% 100%;
  animation: dvSkel 1.4s infinite;
}
@media (max-width: 1023px) {
  .dv-skel {
    flex-shrink: 0;
    width: 145px;
    min-width: 145px;
    height: 170px;
    aspect-ratio: unset;
  }
}
@keyframes dvSkel {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.dv-ring-lbl {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}
.dv-required {
  color: #ef4444;
  margin-left: 2px;
}
.dv-ring-select {
  display: block;
  width: 100%;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 500;
  color: #111827;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  min-height: 52px;
  cursor: pointer;
  -webkit-appearance: auto;
  appearance: auto;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.dv-ring-select:focus {
  outline: none;
  border-color: var(--color-primary, #0d9488);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

/* Yüzük ölçüsü: "Ölçümü bilmiyorum" butonu — anlaşılır ve tıklanabilir */
.dv-ring-hint-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(to right, #ce5d5d 0%, #f43d3d 51%, #ce5d5d 100%);
  border: 1px solid #d2c493;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
  white-space: nowrap;
}
.dv-ring-hint-btn i {
  font-size: 15px;
  opacity: 0.9;
}
.dv-ring-hint-btn:hover {
  background: linear-gradient(to right, #ce5d5d 0%, #ca1919 51%, #ce5d5d 100%);
  color: #ffffff;
}
.dv-ring-hint-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

/* Eski link stili (başka yerde kullanılıyorsa) */
.dv-hint-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 13px;
  color: #de3d37;
  text-decoration: none;
}
.dv-hint-link:hover {
  text-decoration: underline;
}

/* Yüzük ölçüsü alanı: select ve buton %50 %50, aynı font ve yükseklik */
.dv-ring-in-section.flex {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
}
/* Yüzük ölçüsü: footer içinde, fiyat dökümünün hemen üstünde */
.dv-price-summary-footer #ringSizeSection {
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}
.dv-ring-in-section.flex .dv-ring-select,
.dv-ring-in-section.flex .dv-ring-hint-btn {
  flex: 1 1 0;
  min-width: 0;
  font-size: 13px;
  min-height: 44px;
  height: 44px;
  border-radius: 10px;
  box-sizing: border-box;
}
.dv-ring-in-section.flex .dv-ring-select {
  display: block;
  width: 100% !important;
  max-width: none;
  padding: 0 12px;
  font-size: 13px;
}
.dv-ring-in-section.flex .dv-ring-hint-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 13px;
}
.dv-ring-in-section.flex .dv-ring-hint-btn i {
  font-size: 13px;
}

.dv-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dv-total-lbl {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}
.dv-total-val {
  font-size: 26px;
  font-weight: 900;
  color: #111827;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.dv-bdown {
  margin-top: 12px;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dv-bdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #6b7280;
  padding: 4px 0;
}
.dv-bdown-row span:last-child {
  font-weight: 600;
  color: #374151;
}
.dv-sel-mount {
  margin-top: 12px;
  padding: 10px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #374151;
}
.dv-sel-mount.hidden,
#mountingPriceBreakdown.hidden,
#mountingPriceRow.hidden {
  display: none !important;
}
.dv-sel-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.dv-remove-btn {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.dv-remove-btn:hover {
  color: #dc2626;
  border-color: #fca5a5;
  background: #fef2f2;
}

.dv-cta {
  margin-top: 12px;
  background: #fff;
  border: 1px solid #e8ecef;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 1023px) {
  .dv-cta {
    padding: 14px 16px max(14px, env(safe-area-inset-bottom));
  }
  #purchaseWrapper {
    padding-bottom: 24px;
  }
}
@media (min-width: 1024px) {
  .dv-cta {
    padding: 16px 18px;
  }
}
.dv-cta-btns {
  display: flex;
  gap: 10px;
}
.dv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  min-height: 52px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.dv-btn:active {
  transform: scale(0.97);
}
.dv-btn-back {
  background: #f0f2f5;
  color: #374151;
  flex-shrink: 0;
  padding: 0 16px;
}
.dv-btn-back:hover {
  background: #e4e8ee;
}
.dv-btn-buy {
  flex: 1;
  background: var(--color-primary, #0d9488);
  color: #fff;
  font-size: 16px;
}
.dv-btn-buy:hover {
  opacity: 0.9;
}

.purchase-wrapper {
  display: flex;
  flex-direction: column;
}
.dv-price-summary-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  margin-bottom: 12px;
}
.dv-price-summary-wrap .dv-price-summary-body.dv-section {
  border: none;
  border-radius: 0;
  margin-bottom: 0;
}
.dv-sec-head--summary-fixed {
  flex-shrink: 0;
}

/* Sipariş özeti içeriği ve toplam satırı ayrımı */
.dv-price-summary-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  overflow-y: auto;
}
/* Alt blok: yüzük ölçüsü + taş/montür fiyatı + toplam — sipariş özetinde flex-end sabit */
.dv-price-summary-footer {
  flex-shrink: 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
}
.dv-price-summary-breakdown {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dv-price-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #4b5563;
}
.dv-price-summary-label {
  font-weight: 500;
}
.dv-price-summary-value {
  font-weight: 700;
  color: #111827;
}
.dv-price-summary-line--promo .dv-price-summary-label {
  color: #b45309;
}
.dv-price-summary-value--promo {
  color: #15803d;
}
.dv-price-summary-total {
  margin-top: 10px;
}
