/**
 * Minimal, scoped Store frontend styles.
 * Themes can dequeue via pn_store_enqueue_frontend_css filter.
 */

.pn-store-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 1.5rem 1rem 3rem;
}

.pn-store-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pn-store-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.pn-store-card__media {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f3f4f5;
	text-decoration: none;
}

.pn-store-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pn-store-card__placeholder,
.pn-store-gallery-front__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 180px;
	color: #646970;
	background: #f3f4f5;
}

.pn-store-card__title {
	font-size: 1.1rem;
	margin: 0.75rem 0 0.35rem;
}

.pn-store-card__title a {
	text-decoration: none;
	color: inherit;
}

.pn-store-product {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.pn-store-product {
		grid-template-columns: 1fr 1fr;
	}

	.pn-store-product__description,
	.pn-store-specs {
		grid-column: 1 / -1;
	}
}

.pn-store-gallery-front__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
}

.pn-store-gallery-front__thumbs img {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: cover;
}

.pn-store-price__sale {
	font-weight: 700;
	margin-right: 0.5rem;
}

.pn-store-price__regular {
	opacity: 0.7;
}

.pn-store-specs__table {
	width: 100%;
	border-collapse: collapse;
}

.pn-store-specs__table th,
.pn-store-specs__table td {
	border-bottom: 1px solid #dcdcde;
	padding: 0.5rem 0.25rem;
	text-align: left;
	vertical-align: top;
}

.pn-store-button {
	display: inline-block;
	padding: 0.55rem 1rem;
	background: #1d2327;
	color: #fff;
	text-decoration: none;
	border: 0;
	border-radius: 2px;
}

.pn-store-button--disabled,
.pn-store-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.pn-store-pagination {
	margin-top: 2rem;
}

.pn-store-add-to-cart__qty {
	display: block;
	margin: 0.75rem 0;
}

.pn-store-add-to-cart__message.is-error {
	color: #b32d2e;
}

.pn-store-cart-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
}

.pn-store-cart-table th,
.pn-store-cart-table td {
	border-bottom: 1px solid #dcdcde;
	padding: 0.75rem 0.5rem;
	text-align: left;
	vertical-align: middle;
}

.pn-store-cart-qty {
	width: 4.5rem;
}

.pn-store-button--link {
	background: transparent;
	color: #b32d2e;
	padding: 0;
	cursor: pointer;
}

.pn-store-cart__stock-warn {
	color: #b32d2e;
}

.pn-store-cart-totals {
	margin-top: 1rem;
}

.pn-store-notice {
	padding: 0.75rem 1rem;
	margin: 1rem 0;
	border-left: 4px solid #d63638;
	background: #fcf0f1;
}

.pn-store-checkout-layout {
	display: grid;
	gap: 2rem;
}

@media (min-width: 900px) {
	.pn-store-checkout-layout {
		grid-template-columns: 1.4fr 1fr;
	}
}

.pn-store-checkout-form label {
	display: block;
	margin-bottom: 0.35rem;
}

.pn-store-checkout-form input[type="text"],
.pn-store-checkout-form input[type="email"] {
	width: 100%;
	max-width: 100%;
	padding: 0.4rem 0.5rem;
}

.pn-store-checkout-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.pn-store-checkout-summary {
	border: 1px solid #dcdcde;
	padding: 1rem;
	align-self: start;
}


