/* =====================================================================
   Auctions for WooCommerce — Lot Frontend Styles
   ===================================================================== */

/* ----- Variables ----- */
:root {
	--afw-lot-primary:   #1e293b;
	--afw-lot-accent:    #a2c094;
	--afw-lot-live:      #22a06b;
	--afw-lot-upcoming:  #d97706;
	--afw-lot-closed:    #6b7280;
	--afw-lot-surface:   #f8fafc;
	--afw-lot-border:    #e2e8f0;
	--afw-lot-radius:    6px;
	--afw-lot-shadow:    0 2px 12px rgba(0,0,0,.08);
}

/* ----- Breadcrumb on product page ----- */
.afw-lot-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	margin-bottom: 16px;
	background: var(--afw-lot-surface);
	border-left: 3px solid var(--afw-lot-accent);
	border-radius: var(--afw-lot-radius);
	font-size: .875rem;
}

.afw-lot-breadcrumb__link {
	color: var(--afw-lot-primary);
	text-decoration: none;
	font-weight: 500;
}

.afw-lot-breadcrumb__link:hover {
	color: var(--afw-lot-accent);
}

.afw-lot-breadcrumb__arrow {
	margin-right: 4px;
}

.afw-lot-breadcrumb__position {
	color: var(--afw-lot-closed);
	font-size: .8rem;
}

/* ----- Status badge ----- */
.afw-lot-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	flex-shrink: 0;
}

.afw-lot-badge::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

.afw-lot-badge--upcoming {
	background: rgba(217,119,6,.12);
	color: var(--afw-lot-upcoming);
}

.afw-lot-badge--live {
	background: rgba(34,160,107,.12);
	color: var(--afw-lot-live);
	animation: afw-pulse 2s infinite;
}

.afw-lot-badge--closed {
	background: rgba(107,114,128,.1);
	color: var(--afw-lot-closed);
}

@keyframes afw-pulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: .65; }
}

/* ----- Lot header ----- */
.afw-lot-header {
	padding: 28px 0 20px;
	border-bottom: 1px solid var(--afw-lot-border);
	margin-bottom: 28px;
}

.afw-lot-header__eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
	font-size: .8rem;
	color: var(--afw-lot-closed);
	text-transform: uppercase;
	letter-spacing: .06em;
}

.afw-lot-header__title {
	margin: 0 0 12px;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--afw-lot-primary);
	line-height: 1.25;
}

.afw-lot-header__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	font-size: .875rem;
	color: var(--afw-lot-closed);
}



.afw-lot-ended-notice {
	padding: 14px 20px;
	background: rgba(107,114,128,.1);
	border-radius: var(--afw-lot-radius);
	color: var(--afw-lot-closed);
	margin-bottom: 28px;
	font-weight: 500;
}

/* ----- Sessions timeline ----- */
.afw-lot-sessions {
	margin-bottom: 32px;
}

.afw-lot-sessions__title {
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--afw-lot-closed);
	margin-bottom: 12px;
}

.afw-lot-sessions__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.afw-lot-session-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 12px 16px;
	border: 1px solid var(--afw-lot-border);
	border-radius: var(--afw-lot-radius);
	background: #fff;
	font-size: .875rem;
}

.afw-lot-session-row--active {
	border-color: var(--afw-lot-live);
	background: rgba(34,160,107,.04);
}

.afw-lot-session-row__info {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	flex: 1 1 auto;
	min-width: 0;
}

.afw-lot-session-row__time {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--afw-lot-primary);
	line-height: 1.3;
}

.afw-lot-session-row__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
	white-space: nowrap;
	flex-shrink: 0;
}

.afw-lot-session-row__range {
	color: var(--afw-lot-closed);
	font-size: .8rem;
	white-space: nowrap;
}

.afw-lot-session-row__link {
	font-size: .8rem;
	color: var(--afw-lot-accent);
	text-decoration: none;
	white-space: nowrap;
	font-weight: 500;
}

/* ----- Viewing days ----- */
.afw-lot-viewing {
	margin-bottom: 28px;
}

.afw-lot-viewing__title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 12px;
}

.afw-lot-viewing__table {
	margin-bottom: 0;
}

/* ----- Sticky sequential bar ----- */
.afw-lot-sticky-bar {
	position: sticky;
	top: 0;
	z-index: 200;
	background: var(--afw-lot-primary);
	color: #fff;
	padding: 10px 20px;
	display: flex;
	align-items: center;
	gap: 20px;
	font-size: .875rem;
	margin-bottom: 20px;
	border-radius: var(--afw-lot-radius);
}

.afw-lot-sticky-bar__now {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.afw-lot-sticky-bar__now-label {
	font-size: .7rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .05em;
	opacity: .7;
	margin-right: 4px;
}

.afw-lot-sticky-bar__sep {
	opacity: .3;
}

.afw-lot-sticky-bar__next {
	opacity: .75;
	font-size: .8rem;
}

/* ----- Session tabs ----- */
.afw-lot-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 20px;
	border-bottom: 2px solid var(--afw-lot-border);
	padding-bottom: 0;
}

.afw-lot-tab-btn {
	padding: 8px 18px;
	border: 0;
	background: none;
	cursor: pointer;
	font-size: .875rem;
	font-weight: 500;
	color: var(--afw-lot-closed);
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	border-radius: 0;
	transition: color .15s, border-color .15s;
}

.afw-lot-tab-btn:hover {
	color: var(--afw-lot-primary);
}

.afw-lot-tab-btn--active {
	color: var(--afw-lot-accent);
	border-bottom-color: var(--afw-lot-accent);
}

/* ----- Product block ----- */
.afw-lot-products {
	margin-bottom: 40px;
}

.afw-lot-products-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 20px;
}

.afw-lot-session-group {
	margin-bottom: 40px;
}

.afw-lot-session-title {
	margin-bottom: 20px;
}

.afw-lot-session-time {
	font-weight: normal;
	opacity: 0.8;
	font-size: 0.9em;
	margin-left: 10px;
}

/* ----- Product grid ----- */
.afw-lot-grid {
	margin-bottom: 40px;
}

.afw-lot-product-wrap {
	position: relative;
}

.afw-lot-product-wrap.afw-session-hidden {
	display: none;
}

.afw-lot-item-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 10;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 0.7rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	padding: 3px 8px !important;
	border-radius: 3px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	display: inline-block !important;
	box-sizing: border-box !important;
	pointer-events: none;
}

.afw-lot-item-active-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 10;
	background: var(--afw-lot-live, #22a06b);
	color: #fff;
	font-size: 0.7rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	padding: 3px 8px !important;
	border-radius: 3px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	display: inline-block !important;
	box-sizing: border-box !important;
	box-shadow: 0 2px 6px rgba(34, 160, 107, 0.3);
	animation: afw-pulse 2s infinite;
	pointer-events: none;
}


/* ----- Notify button ----- */
.afw-lot-notify-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
}

.afw-lot-notify-btn.afw-notified {
	opacity: 0.8;
}

.afw-lot-notify-msg {
	font-size: .8rem;
	margin-top: 6px;
	display: none;
	color: var(--afw-lot-live);
}

/* ----- Archive cards ----- */
.afw-lot-archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	margin: 24px 0 40px;
}

.afw-lot-archive-card {
	border: 1px solid var(--afw-lot-border);
	border-radius: var(--afw-lot-radius);
	background: #fff;
	overflow: hidden;
	box-shadow: var(--afw-lot-shadow);
	display: flex;
	flex-direction: column;
	transition: transform .15s, box-shadow .15s;
}

.afw-lot-archive-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 24px rgba(0,0,0,.12);
}

.afw-lot-thumb-gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px;
	height: 160px;
	overflow: hidden;
	background: var(--afw-lot-surface);
}

.afw-lot-thumb-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.afw-lot-thumb-gallery--single img {
	grid-column: 1 / -1;
}

.afw-lot-thumb-placeholder {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--afw-lot-surface);
	color: var(--afw-lot-border);
	font-size: 2.5rem;
}

.afw-lot-archive-card__body {
	padding: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.afw-lot-archive-card__eyebrow {
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--afw-lot-closed);
}

.afw-lot-archive-card__title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--afw-lot-primary);
	margin: 0;
	line-height: 1.3;
}

.afw-lot-archive-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: .8rem;
	color: var(--afw-lot-closed);
}

.afw-lot-archive-card__footer {
	padding: 12px 16px;
	border-top: 1px solid var(--afw-lot-border);
}

.afw-lot-archive-card__cta {
	display: block;
	text-align: center;
	padding: 9px 0;
	background: var(--afw-lot-primary);
	color: #fff;
	border-radius: var(--afw-lot-radius);
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s;
}

.afw-lot-archive-card__cta:hover {
	background: var(--afw-lot-accent);
	color: #fff;
}

/* ----- Responsive ----- */
@media ( max-width: 600px ) {
	.afw-lot-header__title {
		font-size: 1.25rem;
	}

	.afw-lot-sticky-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.afw-lot-archive-grid {
		grid-template-columns: 1fr;
	}
}

/* ----- Two Column Layout for Lots with Images ----- */
.afw-lot-columns-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	margin-bottom: 40px;
}

.afw-lot-gallery-column {
	flex: 1 1 400px;
	max-width: 100%;
}

.afw-lot-details-column {
	flex: 1 1 500px;
	max-width: 100%;
}

.afw-lot-gallery {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.afw-lot-main-image img {
	width: 100%;
	height: auto;
	border-radius: var(--afw-lot-radius);
	border: 1px solid var(--afw-lot-border);
	display: block;
}

.afw-lot-thumbnails {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.afw-lot-thumbnail {
	width: 80px;
	height: 80px;
	border-radius: 4px;
	border: 1px solid var(--afw-lot-border);
	overflow: hidden;
	cursor: pointer;
	box-sizing: border-box;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

.afw-lot-thumbnail:hover {
	opacity: 0.8;
}

.afw-lot-thumbnail.active {
	border-color: var(--afw-lot-accent);
	border-width: 2px;
}

.afw-lot-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (max-width: 768px) {
	.afw-lot-columns-wrap {
		flex-direction: column;
		gap: 20px;
	}
	.afw-lot-thumbnail {
		width: 60px;
		height: 60px;
	}
}

/* ----- Sequential Console Layout ----- */
.afw-lot-console-wrapper {
	background: var(--afw-lot-surface, rgba(0, 0, 0, 0.02));
	border: 1px solid var(--afw-lot-border, rgba(0, 0, 0, 0.08));
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 30px;
	color: inherit;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.afw-lot-console-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--afw-lot-border, rgba(0, 0, 0, 0.08));
	padding-bottom: 16px;
}

.afw-lot-console-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: inherit;
	margin: 0;
}

.afw-lot-console-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	align-items: stretch;
}

@media (max-width: 991px) {
	.afw-lot-console-cards {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

.afw-lot-console-card {
	background: var(--afw-lot-surface, rgba(0, 0, 0, 0.01));
	border: 1px solid var(--afw-lot-border, rgba(0, 0, 0, 0.08));
	border-radius: 6px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: all 0.3s ease;
}

.afw-lot-console-card--now {
	border: 2px solid var(--afw-lot-accent, #a2c094);
	box-shadow: 0 8px 24px rgba(162, 192, 148, 0.12);
	background: var(--afw-lot-surface, rgba(0, 0, 0, 0.025));
}

@media (min-width: 992px) {
	.afw-lot-console-card--now {
		transform: scale(1.03);
	}
}

.afw-lot-console-card--last {
	opacity: 0.6;
}

.afw-lot-card-badge-label {
	font-size: 0.75rem;
	font-weight: 600;
	color: inherit;
	opacity: 0.7;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 12px;
	display: inline-block;
}

.afw-lot-card-badge {
	position: absolute;
	top: -12px;
	left: 20px;
	background: var(--afw-lot-accent, #c8963a);
	color: #fff;
	padding: 3px 12px;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	box-shadow: 0 2px 8px rgba(200, 150, 58, 0.3);
}

.afw-lot-card-image {
	background: var(--afw-lot-surface, rgba(0, 0, 0, 0.03));
	border-radius: 4px;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.afw-lot-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.afw-lot-card-placeholder {
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.02) 10px, rgba(0, 0, 0, 0.04) 10px, rgba(0, 0, 0, 0.04) 20px);
}

.afw-lot-card-item-number {
	font-size: 1rem;
	font-weight: 700;
	color: inherit;
	margin-bottom: 4px;
}

.afw-lot-card-title {
	font-size: 0.95rem;
	font-weight: 500;
	color: inherit;
	opacity: 0.8;
	margin-bottom: 16px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.afw-lot-card-pricing {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--afw-lot-border, rgba(0, 0, 0, 0.08));
	margin-bottom: 16px;
	width: 100%;
}

.afw-lot-card-pricing .auction-price {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.afw-lot-card-pricing span.auction,
.afw-lot-card-price-label {
	font-size: 0.8rem;
	color: inherit;
	opacity: 0.7;
	text-transform: uppercase;
	font-weight: normal;
}

.afw-lot-card-pricing .amount,
.afw-lot-card-price-value {
	font-size: 1.3rem;
	font-weight: 700;
	color: inherit;
}

.afw-lot-card-outcome {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--afw-lot-accent, #a2c094);
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--afw-lot-border, rgba(0, 0, 0, 0.08));
}

.afw-lot-card-outcome span.auction,
.afw-lot-card-outcome span.winned-for,
.afw-lot-card-outcome span.sold-for {
	font-weight: 600;
	display: inline-block;
	margin-right: 4px;
}

.afw-lot-card-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 6px;
	border-top: 1px solid var(--afw-lot-border, rgba(0, 0, 0, 0.08));
	width: 100%;
}

.afw-lot-card-timer {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 0.85rem;
	color: var(--afw-lot-accent, #a2c094);
	font-weight: 600;
	width: 100%;
}

.afw-lot-card-timer .dashicons {
	font-size: 1.1rem;
	width: 1.1rem;
	height: 1.1rem;
	flex-shrink: 0;
	color: var(--afw-lot-live, #22a06b);
}

.afw-lot-card-timer .is-wc_auctions_countdown,
.afw-lot-card-timer .wc_auctions_countdown-row {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 6px;
	width: auto;
	padding: 0;
	float: none;
	clear: none;
}

.afw-lot-card-timer .wc_auctions_countdown-section {
	display: inline-flex !important;
	flex-direction: column !important;
	align-items: center !important;
	width: auto !important;
	float: none !important;
	font-size: 0.75rem !important;
	line-height: 1 !important;
}

.afw-lot-card-timer .wc_auctions_countdown-amount {
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	line-height: 1.1 !important;
	color: var(--afw-lot-primary, #1e293b) !important;
}

.afw-lot-card-timer .wc_auctions_countdown-period {
	display: block !important;
	font-size: 0.65rem !important;
	text-transform: uppercase !important;
	letter-spacing: 0.02em !important;
	color: var(--afw-lot-closed, #6b7280) !important;
	white-space: nowrap !important;
	line-height: 1 !important;
	margin-top: 2px !important;
}

.afw-lot-card-bid-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	padding: 10px 16px !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	color: #fff !important;
	background: var(--afw-lot-accent, #a2c094) !important;
	border: none !important;
	border-radius: 6px !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	cursor: pointer !important;
	transition: background-color 0.2s ease, transform 0.1s ease !important;
	box-sizing: border-box !important;
}

.afw-lot-card-bid-btn:hover {
	background: var(--afw-lot-live, #22a06b) !important;
	color: #fff !important;
	text-decoration: none !important;
}

.afw-lot-console-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--afw-lot-border, rgba(0, 0, 0, 0.08));
	font-size: 0.85rem;
	color: inherit;
	opacity: 0.7;
}

.afw-lot-console-footer__session {
	font-weight: 500;
}

.afw-lot-console-footer__position {
	font-weight: 600;
}


