/* Shop storefront — category listing (reference layout) */
.lrm-shop-categories {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 40px 20px 56px;
	background: #edf7ef;
	border-radius: 0;
	box-sizing: border-box;
}

.lrm-shop-categories-header {
	text-align: center;
	margin-bottom: 36px;
}

.lrm-shop-categories-title {
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 10px;
	color: #1f2937;
}

.lrm-shop-title-highlight {
	font-weight: 700;
}

.lrm-shop-categories-accent {
	display: block;
	width: 56px;
	height: 4px;
	margin: 0 auto 14px;
	background: #2e9b57;
	border-radius: 999px;
}

.lrm-shop-categories-subtitle {
	color: #4b5563;
	margin: 0;
	font-size: 15px;
}

.lrm-shop-categories-grid {
	display: grid;
	gap: 22px 18px;
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.lrm-shop-categories--cols-5 .lrm-shop-categories-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lrm-shop-categories--cols-4 .lrm-shop-categories-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lrm-shop-categories--cols-3 .lrm-shop-categories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lrm-shop-categories--cols-2 .lrm-shop-categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.lrm-shop-category-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition: transform .2s ease;
}

.lrm-shop-category-card:hover {
	transform: translateY(-2px);
}

.lrm-shop-category-image-wrap {
	background: #eceff1;
	border-radius: 10px;
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 12px;
	border: 1px solid #dfe3e6;
}

.lrm-shop-category-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 14px;
	box-sizing: border-box;
}

.lrm-shop-category-placeholder {
	font-size: 34px;
	font-weight: 700;
	color: #9ca3af;
}

.lrm-shop-category-meta {
	text-align: left;
	padding: 0 2px;
}

.lrm-shop-category-name {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 6px;
	color: #111827;
}

.lrm-shop-category-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #dc2626;
	margin: 0;
}

.lrm-shop-category-badge-bar {
	display: inline-block;
	width: 3px;
	height: 14px;
	background: #dc2626;
	border-radius: 2px;
	flex-shrink: 0;
}

.lrm-shop-category-desc {
	font-size: 12px;
	color: #6b7280;
	margin: 0;
	line-height: 1.4;
}

.lrm-shop-empty-notice {
	text-align: center;
	padding: 24px;
	background: #fff;
	border: 1px dashed #c3c4c7;
	border-radius: 8px;
}

/* Products */
.lrm-shop-products { max-width: 1200px; margin: 0 auto; padding: 32px 16px; }
.lrm-shop-products-header { margin-bottom: 24px; }
.lrm-shop-products-header h2 { margin: 0 0 8px; font-size: 28px; }
.lrm-shop-category-intro { color: #4b5563; }
.lrm-shop-products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lrm-shop-product-card { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; }
.lrm-shop-product-image { aspect-ratio: 4/3; background: #f9fafb; display: flex; align-items: center; justify-content: center; }
.lrm-shop-product-image img { width: 100%; height: 100%; object-fit: cover; }
.lrm-shop-product-body { padding: 16px; }
.lrm-shop-product-body h3 { margin: 0 0 8px; font-size: 18px; }
.lrm-shop-product-excerpt { color: #6b7280; font-size: 14px; margin: 0 0 12px; }
.lrm-shop-product-body h3 a { color: inherit; text-decoration: none; }
.lrm-shop-product-body h3 a:hover { color: var(--lrm-primary, #2563eb); }
.lrm-shop-product-image { display: block; text-decoration: none; }
.lrm-shop-product-price del { color: #9ca3af; margin-right: 8px; }
.lrm-shop-product-actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.lrm-shop-qty-input { width: 64px; padding: 8px; border: 1px solid #d1d5db; border-radius: 8px; }
.lrm-shop-pagination { display: flex; gap: 8px; justify-content: center; margin: 32px 0 16px; flex-wrap: wrap; }
.lrm-shop-page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid #d1d5db; border-radius: 8px; text-decoration: none; color: #111; }
.lrm-shop-page-link.is-active { background: var(--lrm-primary, #2563eb); color: #fff; border-color: var(--lrm-primary, #2563eb); }

/* Product detail */
.lrm-shop-product-detail { max-width: 1100px; margin: 0 auto; padding: 32px 16px; }
.lrm-shop-product-back { margin: 0 0 20px; }
.lrm-shop-product-back a { color: #2563eb; text-decoration: none; }
.lrm-shop-product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.lrm-shop-product-detail-main-image { aspect-ratio: 1; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.lrm-shop-product-detail-main-image img { width: 100%; height: 100%; object-fit: cover; }
.lrm-shop-product-detail-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.lrm-shop-gallery-thumb { padding: 0; border: 2px solid #e5e7eb; border-radius: 8px; overflow: hidden; width: 72px; height: 72px; cursor: pointer; background: #fff; }
.lrm-shop-gallery-thumb.is-active { border-color: #2563eb; }
.lrm-shop-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lrm-shop-product-detail-info h1 { margin: 0 0 12px; font-size: 30px; }
.lrm-shop-product-description { color: #4b5563; margin: 16px 0; line-height: 1.6; }
.lrm-shop-product-sku { color: #6b7280; font-size: 14px; }

/* Cart + Checkout */
.lrm-shop-cart, .lrm-shop-checkout { max-width: 1000px; margin: 0 auto; padding: 24px 16px; }
.lrm-shop-cart-table { width: 100%; border-collapse: collapse; margin: 20px 0; background: #fff; }
.lrm-shop-cart-table th, .lrm-shop-cart-table td { padding: 12px; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: middle; }
.lrm-shop-cart-product { display: flex; align-items: center; gap: 12px; }
.lrm-shop-cart-product img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.lrm-cart-qty { width: 72px; padding: 8px; border: 1px solid #d1d5db; border-radius: 8px; }
.lrm-shop-cart-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.lrm-btn-link { background: none; border: none; color: #dc2626; cursor: pointer; text-decoration: underline; padding: 0; }

.lrm-shop-checkout-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; }
.lrm-shop-checkout-form-wrap input, .lrm-shop-checkout-form-wrap textarea { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; box-sizing: border-box; }
.lrm-shop-checkout-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lrm-shop-checkout-row > span { display: block; }
.lrm-shop-checkout-summary { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; height: fit-content; }
.lrm-shop-checkout-items { list-style: none; margin: 0 0 16px; padding: 0; }
.lrm-shop-checkout-items li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e5e7eb; }
.lrm-shop-checkout-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; }
.lrm-shop-view-cart,
.lrm-shop-added-notice { margin-top: 12px; }
.lrm-shop-saved-payments { margin-bottom: 16px; }
.lrm-shop-saved-payments h4 { margin: 0 0 8px; font-size: 16px; }
.lrm-shop-billing-note { display: block; font-size: 12px; color: #6b7280; font-weight: 400; font-style: normal; }

@media (max-width: 1100px) {
	.lrm-shop-categories-grid,
	.lrm-shop-categories--cols-6 .lrm-shop-categories-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
	.lrm-shop-categories-grid,
	.lrm-shop-categories--cols-6 .lrm-shop-categories-grid,
	.lrm-shop-categories--cols-5 .lrm-shop-categories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lrm-shop-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lrm-shop-product-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.lrm-shop-categories-grid,
	.lrm-shop-categories--cols-6 .lrm-shop-categories-grid,
	.lrm-shop-categories--cols-5 .lrm-shop-categories-grid,
	.lrm-shop-categories--cols-4 .lrm-shop-categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lrm-shop-products-grid { grid-template-columns: 1fr; }
	.lrm-shop-checkout-grid { grid-template-columns: 1fr; }
}
