/**
 * List layout for collection (product tag) archives.
 * Applied when collection slug is in Settings → Reading → List layout collections.
 */

#ag-container.ag-list-collection {
	display: block;
	max-width: 100%;
}

.ag-list-collection-title {
	margin: 0 0 1.5rem;
	font-size: 1.75rem;
	line-height: 1.3;
}

#ag-container.ag-list-collection .ag-list-item {
	display: block;
	border-bottom: 1px solid #ddd;
	padding: 5rem 0;
	margin: 0;
	list-style: none;
}

#ag-container.ag-list-collection .ag-list-item:last-child {
	border-bottom: none;
}

.ag-list-item-inner {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 2rem;
	align-items: start;
	max-width: 100%;
}

.ag-list-item-content {
	min-width: 0;
}

.ag-list-item-title {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
	line-height: 1.3;
	font-weight: bold;
}

.ag-list-item-title a {
	text-decoration: none;
	color: inherit;
}

.ag-list-item-title a:hover {
	text-decoration: underline;
}

.ag-list-item-details {
	margin: 0 0 20px;
}

.ag-list-item-detail-line {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
	line-height: 1.4;
	color: #333;
}

.ag-list-item-detail-line:last-child {
	margin-bottom: 0;
}

.ag-list-item-description {
	margin: 0 0 2.5rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #333;
}

.ag-list-item-description p {
	margin: 0 0 1.25rem;
}

.ag-list-item-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	font-size: 0.95rem;
}

.ag-list-item-inquire {
	display: inline-block;
	background: transparent;
	color: #000;
	text-decoration: underline;
	font-weight: bold;
	border: none;
	cursor: pointer;
}

.ag-list-item-inquire:hover {
	background: transparent;
	color: #000;
	text-decoration: underline;
}

.ag-list-item-price {
	color: #000;
	font-weight: 400;
}

.ag-list-item-image {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #f5f5f5;
	border: 1px solid #e0e0e0;
	overflow: hidden;
}

.ag-list-item-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ag-list-item-image a {
	display: block;
	width: 100%;
	height: 100%;
}

@media (max-width: 768px) {
	.ag-list-item-inner {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.ag-list-item-image {
		order: -1;
		max-height: 280px;
		aspect-ratio: 1 / 1;
	}
}
