/* =========================================================
   Shop archive — YCM theme.
   ========================================================= */

.ycm-shop {
	background-color: #eff3ff;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	padding-bottom: 90px;
}

/* Header band */
.ycm-shop__header {
	max-width: 1240px;
	margin: 0 auto;
	padding: 56px 24px 8px;
	box-sizing: border-box;
}

.ycm-shop__title {
	font-size: 40px;
	font-weight: 800;
	color: #111827;
	margin: 0 0 10px;
}

.ycm-shop__subtitle {
	font-size: 16px;
	color: #6b7280;
	margin: 0;
	max-width: 560px;
}

.ycm-shop__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 24px 24px 0;
	box-sizing: border-box;
}

/* Toolbar */
.ycm-shop__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.ycm-shop .woocommerce-result-count {
	margin: 0;
	color: #6b7280;
	font-size: 15px;
}

.ycm-shop .woocommerce-ordering select,
.ycm-shop .woocommerce-ordering .orderby {
	height: 46px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 0 14px;
	font: inherit;
	font-size: 15px;
	color: #1f2937;
	background-color: #fff;
}

/* Product grid */
.ycm-shop ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ycm-shop ul.products::before,
.ycm-shop ul.products::after { content: none !important; display: none !important; }

.ycm-shop ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	padding: 16px !important;
	float: none !important;
	background-color: #fff;
	border: 1px solid #eef0f5;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
	display: flex;
	flex-direction: column;
	text-align: left;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	position: relative;
}

.ycm-shop ul.products li.product:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px rgba(47, 107, 255, 0.12);
}

/* Product image */
.ycm-shop ul.products li.product a.woocommerce-LoopProduct-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.ycm-shop ul.products li.product img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 10px;
	margin: 0 0 16px;
	display: block;
	background-color: #0b1220;
}

/* Title */
.ycm-shop ul.products li.product .woocommerce-loop-product__title {
	font-size: 18px;
	font-weight: 700;
	color: #111827;
	line-height: 1.35;
	padding: 0;
	margin: 0 0 8px;
}

/* Price */
.ycm-shop ul.products li.product .price {
	color: #2f6bff;
	font-weight: 700;
	font-size: 18px;
	margin: 0 0 14px;
	display: block;
}

.ycm-shop ul.products li.product .price del {
	color: #9ca3af;
	font-weight: 400;
	font-size: 15px;
	margin-right: 8px;
}

.ycm-shop ul.products li.product .price ins {
	text-decoration: none;
}

/* Star rating */
.ycm-shop ul.products li.product .star-rating {
	margin: 0 0 10px;
	color: #f5b400;
	font-size: 14px;
}

/* Sale flash */
.ycm-shop ul.products li.product .onsale {
	position: absolute;
	top: 24px;
	left: 24px;
	right: auto;
	width: auto;
	margin: 0;
	min-height: auto;
	min-width: auto;
	background-color: #fcd34d;
	color: #3a2e0a;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 7px 12px;
	border-radius: 999px;
}

/* Add to cart button — pinned to bottom */
.ycm-shop ul.products li.product .button,
.ycm-shop ul.products li.product .added_to_cart {
	margin-top: auto;
	display: block;
	width: 100%;
	text-align: center;
	background-color: #2f6bff;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 13px 18px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease;
	box-sizing: border-box;
}

.ycm-shop ul.products li.product .button:hover {
	background-color: #1f57e6;
	color: #fff;
}

.ycm-shop ul.products li.product .added_to_cart {
	margin-top: 10px;
	background-color: #eef3ff;
	color: #2f6bff;
}

/* Pagination */
.ycm-shop .woocommerce-pagination {
	margin-top: 40px;
	text-align: center;
}

.ycm-shop .woocommerce-pagination ul {
	display: inline-flex;
	gap: 8px;
	border: none;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ycm-shop .woocommerce-pagination ul li {
	border: none;
}

.ycm-shop .woocommerce-pagination ul li a,
.ycm-shop .woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	background-color: #fff;
	color: #374151;
	font-weight: 600;
}

.ycm-shop .woocommerce-pagination ul li span.current {
	background-color: #2f6bff;
	border-color: #2f6bff;
	color: #fff;
}

/* Empty state */
.ycm-shop__empty {
	max-width: 1240px;
	margin: 0 auto;
	padding: 20px 24px;
}

/* Responsive */
@media (max-width: 1024px) {
	.ycm-shop ul.products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
	.ycm-shop__title { font-size: 30px; }
	.ycm-shop ul.products { grid-template-columns: 1fr; }
	.ycm-shop__toolbar { flex-direction: column; align-items: flex-start; }
}
