/* Live stock section for product pages */
.product-page .well3 { padding-top: 30px; padding-bottom: 20px; }
.product-page .well3 h3 + .row { margin-top: 10px; }
.product-page .well2 { padding-top: 30px; padding-bottom: 60px; }

.stock { margin-top: 20px; text-align: left; }

.stock-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
}

.stock-toolbar h3 {
	margin: 0;
	flex: 0 0 auto;
}

.stock-controls {
	flex: 1 1 auto;
	display: flex;
	justify-content: flex-end;
}

.stock-controls .stock-filters {
	width: 100%;
	max-width: 860px;
	margin-bottom: 0;
}

.stock-loading, .stock-empty {
	padding: 40px 20px;
	border: 1px dashed #b9b8b8;
	border-radius: 6px;
	text-align: center;
	color: #666;
}

.stock-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 24px;
}

.stock-summary > div {
	flex: 1 1 160px;
	padding: 16px 20px;
	border-radius: 6px;
	background: #F3F3E7;
	border-left: 4px solid #c76b23;
}

.stock-summary strong {
	display: block;
	font: 700 26px/1.2 "Fjalla One", "Open Sans", sans-serif;
	color: #272727;
}

.stock-summary span {
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #777;
}

.stock-filters { margin-bottom: 24px; }

.stock-filter-heading {
	display: block;
	margin: 0 0 10px;
	font: 700 13px/1 "Open Sans", sans-serif;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: #444;
}

.stock-filter-heading .fa {
	color: #c76b23;
	font-size: 14px;
}

.stock-filter-status { margin-bottom: 12px; }

.stock-filters button {
	margin: 0 8px 8px 0;
	padding: 8px 18px;
	border: 1px solid #c9c8c0;
	border-radius: 20px;
	background: #fff;
	color: #444;
	cursor: pointer;
}

.stock-filters button.active {
	border-color: #41a62c;
	background: #41a62c;
	color: #fff;
}

.stock-filter-reset {
	border-color: #c76b23 !important;
	background: #c76b23 !important;
	color: #fff !important;
}

.stock-filter-dimensions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 12px;
	border: 1px solid #e3e2da;
	border-radius: 8px;
	background: #faf9f3;
}

.stock-filter-dimensions.is-hidden {
	display: none;
}

.stock-slider-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 270px;
}

.stock-filter-dimensions label {
	font-size: 13px;
	font-weight: 700;
	color: #444;
	margin-right: 2px;
}


.stock-slider-values {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #333;
}

.stock-slider-rails {
	position: relative;
	display: block;
	align-items: center;
	height: 24px;
}

.stock-slider-track,
.stock-slider-fill {
	position: absolute;
	top: 50%;
	height: 6px;
	border-radius: 999px;
	transform: translateY(-50%);
}

.stock-slider-track {
	left: 0;
	right: 0;
	background: #bdbdbd;
}

.stock-slider-fill {
	display: none;
}

.stock-slider-rails input[type="range"] {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 24px;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
}

.stock-slider-rails input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid #c76b23;
	background: #fff;
	cursor: pointer;
	pointer-events: auto;
}

.stock-slider-rails input[type="range"]::-moz-range-thumb {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid #c76b23;
	background: #fff;
	cursor: pointer;
	pointer-events: auto;
}

.stock-slider-rails input[type="range"]::-webkit-slider-runnable-track {
	height: 4px;
	background: transparent;
}

.stock-slider-rails input[type="range"]::-moz-range-track {
	height: 6px;
	border: 0;
	background: transparent;
}

.stock-slider-rails input[type="range"]::-moz-range-progress {
	height: 6px;
	background: transparent;
}

.stock-filter-sep {
	font-size: 13px;
	color: #666;
	text-transform: lowercase;
}

.lot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

.lot-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e3e2da;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s, transform 0.2s;
}

.lot-card:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.lot-card[hidden] { display: none; }

.lot-media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #ece9dc;
}

.lot-media[data-open] { cursor: pointer; }

.lot-media img,
.lot-media video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lot-nophoto {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	text-align: center;
	color: #999;
	transform: translateY(-50%);
}

.lot-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.lot-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font: 700 11px/16px "Open Sans", sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  background: #41a62c;
}

.lot-number {
  font: 700 14px/1.2 "Open Sans", sans-serif;
  color: #272727;
}

.status-sold_out .lot-status { background: #888; }

.lot-media .lot-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 12px;
  font: 700 11px/16px "Open Sans", sans-serif;
  letter-spacing: 0.5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
}

.status-sold_out .lot-media img { filter: grayscale(0.8); opacity: 0.7; }


.lot-body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; }


.lot-specs {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 14px;
	margin: 0;
	font-size: 14px;
}

.lot-specs dt { color: #8b8888; }
.lot-specs dd { margin: 0; color: #272727; font-weight: 600; }

.lot-comment {
	margin: 12px 0 0;
	padding: 8px 12px;
	border-left: 3px solid #c76b23;
	background: #faf9f3;
	font-size: 13px;
	color: #555;
}

.lot-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 16px; }

.lot-actions button, .lot-actions a {
	flex: 1 1 130px;
	padding: 9px 12px;
	border: 1px solid #272727;
	border-radius: 4px;
	background: #272727;
	color: #fff;
	font-size: 13px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.lot-actions .lot-wa { border-color: #25a244; background: #25a244; }
.lot-actions .lot-share-wa { border-color: #128c7e; background: #128c7e; }
.lot-actions button:hover, .lot-actions a:hover { opacity: 0.88; color: #fff; }

.lot-card.lot-highlight {
	border-color: #e53935;
	box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.2), 0 10px 24px rgba(0, 0, 0, 0.16);
	animation: lot-highlight-pulse 1.2s ease-in-out 3;
}

@keyframes lot-highlight-pulse {
	0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.5), 0 10px 24px rgba(0, 0, 0, 0.16); }
	70% { box-shadow: 0 0 0 12px rgba(229, 57, 53, 0), 0 10px 24px rgba(0, 0, 0, 0.16); }
	100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0), 0 10px 24px rgba(0, 0, 0, 0.16); }
}

/* Lightbox */
body.lb-open { overflow: hidden; }

.lb {
	position: fixed;
	z-index: 100000;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	background: rgba(15, 15, 15, 0.95);
	color: #fff;
}

.lb-top { display: flex; align-items: center; gap: 16px; padding: 12px 20px; }
.lb-title { flex: 1; font-weight: 600; }
.lb-count { color: #bbb; font-size: 14px; }

.lb-close, .lb-nav {
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.lb-close { font-size: 34px; line-height: 1; }

.lb-stage { position: relative; display: flex; flex: 1; align-items: center; justify-content: center; min-height: 0; }
.lb-view { display: flex; align-items: center; justify-content: center; max-width: 92%; max-height: 100%; }
.lb-view img, .lb-view video { max-width: 100%; max-height: calc(100vh - 190px); border-radius: 4px; }

.lb-nav { padding: 0 18px; font-size: 56px; line-height: 1; opacity: 0.8; }
.lb-nav:hover { opacity: 1; }
.lb.single .lb-nav { visibility: hidden; }

.lb-thumbs { display: flex; gap: 8px; justify-content: center; padding: 12px; overflow-x: auto; }

.lb-thumb {
	position: relative;
	flex: 0 0 auto;
	width: 72px;
	height: 54px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 4px;
	background: #333;
	opacity: 0.6;
	cursor: pointer;
	overflow: hidden;
}

.lb-thumb.active { border-color: #41a62c; opacity: 1; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-play { color: #fff; font-size: 18px; }

@media (max-width: 480px) {
	.stock-toolbar {
		display: block;
	}
	.stock-toolbar h3 {
		margin-bottom: 10px;
	}
	.stock-controls {
		display: block;
	}
	.stock-controls .stock-filters {
		max-width: none;
	}
	.lot-grid { grid-template-columns: 1fr; }
	.lb-nav { padding: 0 8px; font-size: 40px; }
	.stock-filter-dimensions {
		padding: 10px;
	}
	.stock-filter-dimensions label {
		margin-top: 0;
	}
	.stock-slider-group {
		width: 100%;
		min-width: 0;
	}
}

/* Enquiry panel */
.enquiry-panel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	margin-top: 40px;
	padding: 28px 32px;
	border-radius: 8px;
	border-left: 5px solid #c76b23;
	background: #F3F3E7;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.enquiry-text { flex: 1 1 340px; }

.enquiry-text h4 {
	margin: 0 0 6px;
	font: 400 24px/1.2 "Fjalla One", "Open Sans", sans-serif;
	color: #272727;
}

.enquiry-text p { margin: 0; color: #555; }

.enquiry-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.enquiry-btn {
	display: inline-block;
	padding: 12px 32px;
	border-radius: 4px;
	background: #c76b23;
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-decoration: none;
	transition: background 0.2s;
}

.enquiry-btn:hover { background: #a85a1c; color: #fff; }

.enquiry-phone { font-size: 13px; color: #777; }
.enquiry-phone a { color: #272727; font-weight: 600; }
