/* admin_frontend_detail_drawer_v1 */
.detail-drawer-redesigned {
  width: min(560px, 100vw) !important;
  padding: 18px !important;
  gap: 14px !important;
  background: #fff !important;
}

.detail-drawer-redesigned .drawer-head {
  border-bottom: 0 !important;
  padding-bottom: 4px !important;
  align-items: flex-start !important;
}

.detail-drawer-redesigned .eyebrow {
  font-size: 11px !important;
  color: #9ca3af !important;
  font-weight: 500 !important;
}

.detail-drawer-redesigned #detailTitle {
  margin: 8px 0 0 !important;
  font-size: 19px !important;
  line-height: 1.9 !important;
  font-weight: 800 !important;
  color: #111827 !important;
}

.detail-overview {
  display: block !important;
  margin: 0 !important;
}

.detail-overview-card {
  display: grid !important;
  gap: 14px !important;
  padding: 0 !important;
}

.detail-transferred-badge {
  display: block !important;
  text-align: center !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #b42318 !important;
  background: #fef3f2 !important;
  border: 1px solid #fecdca !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
}

.detail-location-line {
  color: #6b7280 !important;
  font-size: 12px !important;
  text-align: center !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.detail-stat-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  padding-bottom: 12px !important;
}

.detail-stat-item {
  min-width: 0 !important;
  text-align: center !important;
  padding: 0 8px !important;
  border-inline-start: 1px solid #e5e7eb !important;
}

.detail-stat-item:first-child { border-inline-start: 0 !important; }

.detail-stat-item span {
  display: block !important;
  color: #9ca3af !important;
  font-size: 11px !important;
  line-height: 1.6 !important;
}

.detail-stat-item strong {
  display: block !important;
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.8 !important;
}

.detail-price-table {
  display: grid !important;
  gap: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.detail-price-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 10px 0 !important;
  border-top: 1px solid #e5e7eb !important;
}

.detail-price-row:first-child { border-top: 0 !important; }

.detail-price-row span {
  color: #6b7280 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.detail-price-row strong {
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  direction: rtl !important;
}

.detail-feature-section {
  border-bottom: 1px solid #e5e7eb !important;
  padding-bottom: 12px !important;
}

.detail-feature-section h3,
.detail-description h3 {
  margin: 0 0 10px !important;
  text-align: center !important;
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.detail-feature-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.detail-feature {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  color: #9ca3af !important;
  font-size: 11px !important;
  text-align: center !important;
}

.detail-feature.active {
  color: #374151 !important;
}

.detail-description {
  border-bottom: 1px solid #e5e7eb !important;
  padding-bottom: 12px !important;
}

.detail-description p {
  margin: 0 !important;
  color: #374151 !important;
  font-size: 12px !important;
  line-height: 2 !important;
  white-space: pre-wrap !important;
}

.detail-gallery.image-strip {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  overflow: visible !important;
  margin: 4px 0 10px !important;
}

.detail-main-image {
  width: min(260px, 100%) !important;
  margin: 0 auto !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
}

.detail-main-image img {
  display: block !important;
  width: 100% !important;
  height: 260px !important;
  object-fit: cover !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f3f4f6 !important;
}

.detail-thumbs {
  display: flex !important;
  justify-content: center !important;
  gap: 6px !important;
  overflow-x: auto !important;
  padding-bottom: 2px !important;
}

.detail-thumbs img {
  flex: 0 0 auto !important;
  width: 46px !important;
  height: 46px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  border: 1px solid #e5e7eb !important;
}

.detail-image-placeholder {
  width: min(260px, 100%) !important;
  min-height: 160px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 auto !important;
  border-radius: 8px !important;
  background: #f3f4f6 !important;
  color: #9ca3af !important;
  border: 1px solid #e5e7eb !important;
}

.detail-drawer-redesigned .detail-accordion,
.detail-drawer-redesigned .raw-box.detail-accordion {
  margin-top: 10px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: #fff !important;
  overflow: hidden !important;
}

.detail-drawer-redesigned .detail-accordion > summary,
.detail-drawer-redesigned .raw-box.detail-accordion > summary {
  cursor: pointer !important;
  list-style: none !important;
  padding: 12px 14px !important;
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  border: 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.detail-drawer-redesigned .detail-accordion > summary::-webkit-details-marker,
.detail-drawer-redesigned .raw-box.detail-accordion > summary::-webkit-details-marker { display: none !important; }

.detail-drawer-redesigned .detail-accordion > summary::after,
.detail-drawer-redesigned .raw-box.detail-accordion > summary::after {
  content: "⌄" !important;
  color: #9ca3af !important;
  font-size: 14px !important;
}

.detail-drawer-redesigned .detail-accordion[open] > summary::after,
.detail-drawer-redesigned .raw-box.detail-accordion[open] > summary::after {
  content: "⌃" !important;
}

.detail-drawer-redesigned .drawer-actions,
.detail-drawer-redesigned .detail-form,
.detail-drawer-redesigned .facts {
  padding: 12px 14px !important;
  margin: 0 !important;
  border-top: 1px solid #e5e7eb !important;
}

.detail-drawer-redesigned .detail-form h3,
.detail-drawer-redesigned .facts h3 {
  display: none !important;
}

.detail-drawer-redesigned .facts dl {
  grid-template-columns: 140px 1fr !important;
}

.detail-drawer-redesigned .raw-box pre,
.detail-drawer-redesigned .history-block {
  border-top: 1px solid #e5e7eb !important;
  max-height: 320px !important;
}

@media (max-width: 640px) {
  .detail-stat-grid,
  .detail-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .detail-main-image img { height: 220px !important; }
}

/* admin_frontend_detail_drawer_v2 */
.detail-drawer-redesigned .detail-gallery.image-strip {
  order: -10 !important;
  margin: 0 auto 12px !important;
  width: 100% !important;
}

.detail-drawer-redesigned .drawer-head {
  order: -9 !important;
}

.detail-drawer-redesigned .detail-slider {
  position: relative !important;
  width: min(360px, 100%) !important;
  margin: 0 auto !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
}

.detail-drawer-redesigned .detail-main-image-button {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  cursor: zoom-in !important;
}

.detail-drawer-redesigned .detail-main-image,
.detail-drawer-redesigned .detail-main-image-button {
  width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

.detail-drawer-redesigned .detail-main-image img,
.detail-drawer-redesigned .detail-main-image-button img {
  display: block !important;
  width: 100% !important;
  height: 260px !important;
  object-fit: cover !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.detail-slider-nav {
  position: absolute !important;
  z-index: 2 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 34px !important;
  height: 46px !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  background: rgba(17,24,39,.48) !important;
  color: #fff !important;
  font-size: 26px !important;
  cursor: pointer !important;
}

.detail-slider-nav:disabled {
  display: none !important;
}

.detail-slider-prev { right: 0 !important; }
.detail-slider-next { left: 0 !important; }

.detail-slider-count {
  position: absolute !important;
  left: 10px !important;
  bottom: 10px !important;
  z-index: 2 !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background: rgba(17,24,39,.58) !important;
  color: #fff !important;
  font-size: 11px !important;
  direction: ltr !important;
}

.detail-drawer-redesigned .detail-thumbs {
  display: flex !important;
  justify-content: center !important;
  gap: 7px !important;
  overflow-x: auto !important;
  padding: 8px 2px 2px !important;
}

.detail-drawer-redesigned .detail-thumb {
  flex: 0 0 auto !important;
  width: 52px !important;
  height: 52px !important;
  padding: 0 !important;
  border: 2px solid transparent !important;
  border-radius: 7px !important;
  overflow: hidden !important;
  background: transparent !important;
  cursor: pointer !important;
}

.detail-drawer-redesigned .detail-thumb.active {
  border-color: #111827 !important;
}

.detail-drawer-redesigned .detail-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.detail-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.detail-feature {
  color: #374151 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: #fff !important;
  padding: 6px 8px !important;
}

.detail-feature.muted {
  display: none !important;
}

body.lightbox-open { overflow: hidden !important; }

.detail-lightbox.hidden { display: none !important; }
.detail-lightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: grid !important;
  place-items: center !important;
}

.detail-lightbox-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0,0,0,.78) !important;
}

.detail-lightbox-panel {
  position: relative !important;
  z-index: 1 !important;
  width: min(92vw, 980px) !important;
  height: min(86vh, 760px) !important;
  display: grid !important;
  place-items: center !important;
}

.detail-lightbox-panel img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: 12px !important;
  background: #111 !important;
}

.detail-lightbox-close,
.detail-lightbox-nav {
  position: absolute !important;
  z-index: 2 !important;
  border: 0 !important;
  background: rgba(255,255,255,.16) !important;
  color: #fff !important;
  cursor: pointer !important;
  backdrop-filter: blur(8px) !important;
}

.detail-lightbox-close {
  top: 0 !important;
  right: 0 !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  font-size: 26px !important;
}

.detail-lightbox-nav {
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 46px !important;
  height: 72px !important;
  border-radius: 12px !important;
  font-size: 34px !important;
}

.detail-lightbox-nav.prev { right: 8px !important; }
.detail-lightbox-nav.next { left: 8px !important; }

.detail-lightbox-counter {
  position: absolute !important;
  left: 50% !important;
  bottom: 10px !important;
  transform: translateX(-50%) !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.16) !important;
  color: #fff !important;
  font-size: 12px !important;
  direction: ltr !important;
}

@media (max-width: 640px) {
  .detail-drawer-redesigned .detail-slider { width: 100% !important; }
  .detail-drawer-redesigned .detail-main-image img,
  .detail-drawer-redesigned .detail-main-image-button img { height: 220px !important; }
  .detail-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* admin_frontend_detail_features_v3 */
.detail-overview-card .detail-location-line {
  display: none !important;
}

.detail-feature-grid {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.detail-feature-grid .detail-feature,
.detail-feature {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.detail-extra-section {
  border-bottom: 1px solid #e5e7eb !important;
  padding-bottom: 12px !important;
}

.detail-extra-section h3 {
  margin: 0 0 10px !important;
  text-align: center !important;
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.detail-extra-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px 14px !important;
}

.detail-extra-item {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-width: 0 !important;
  padding: 7px 0 !important;
  border-bottom: 1px dashed rgba(148, 163, 184, .35) !important;
}

.detail-extra-item span {
  color: #6b7280 !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}

.detail-extra-item strong {
  color: #111827 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-align: left !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 720px) {
  .detail-extra-grid {
    grid-template-columns: 1fr !important;
  }
}


/* admin_frontend_detail_info_v4 */
.detail-overview-card .detail-location-line {
  display: none !important;
}

.detail-feature-grid,
.detail-feature-grid-clean {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.detail-feature-grid .detail-feature,
.detail-feature {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.detail-file-info-section {
  border-bottom: 1px solid #e5e7eb !important;
  padding-bottom: 12px !important;
}

.detail-file-info-section h3,
.detail-extra-section h3 {
  margin: 0 0 10px !important;
  text-align: center !important;
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.detail-file-info-grid {
  margin-top: 0 !important;
}

.detail-file-info-item strong a {
  color: #2563eb !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.detail-file-info-item strong a:hover {
  text-decoration: underline !important;
}
