/* =============================================
   ORO Theme - Shop Page Styles
   ============================================= */

/* --- Product Grid Wrapper --- */
#oro-products-wrapper {
	position: relative;
	transition: opacity 0.3s ease;
}

#oro-products-wrapper.oro-loading {
	opacity: 0.5;
	pointer-events: none;
}

/* --- Category Nav (horizontal bar under header) --- */
.oro-shop-nav {
	background: #fff;
	position: sticky;
	top: 5px;
	z-index: 100;
}

.oro-shop-nav .oro-category-menu {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 1340px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	margin: 0 auto;
}

.oro-shop-nav .oro-category-menu::-webkit-scrollbar {
	display: none;
}

.oro-cat-item {
	margin: 0;
	flex-shrink: 0;
}

.oro-cat-item > a {
	display: block;
	padding: 14px 20px;
	text-decoration: none;
	color: #111;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	border-radius: 4px;
	background: #f0f0f0;
	transition: all 0.2s ease;
	outline: 0;
}

.oro-cat-item > a:hover {
	background: #e0e0e0;
}

.oro-cat-item.active > a {
	background: #111;
	color: #fff;
}

/* =============================================
   WooCommerce Overrides
   ============================================= */
.woocommerce ul.products[class*='columns-'] li.product {
	margin: 0 0 1em;
}

/* --- Shop Content Area --- */
.oro-shop-main {
	padding: 30px 20px;
	max-width: 1340px;
	margin: 0 auto;
}

/* --- WooCommerce Overrides --- */
.oro-shop-main .woocommerce-notices-wrapper {
	margin-bottom: 20px;
}

.oro-shop-main .woocommerce-ordering {
	margin-bottom: 20px;
}

.oro-shop-main ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	padding: 0;
	margin: 0 0 30px 0;
}

.oro-shop-main ul.products::before,
.oro-shop-main ul.products::after {
	content: none;
}

.oro-shop-main ul.products li.product {
	width: 100%;
	margin: 0;
	padding: 0;
	float: none;
}

.oro-shop-main ul.products li.product a {
	display: block;
	text-decoration: none;
	outline: none;
}
.oro-shop-main ul.products li.product a br {
	display: none;
}

.oro-shop-main ul.products li.product .product-img-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	overflow: hidden;
	margin-bottom: 8px;
}

.oro-shop-main ul.products li.product .product-img-wrap img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 0;
	margin: 0;
}

.oro-shop-main ul.products li.product .woocommerce-loop-product__title {
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	line-height: normal;
	font-weight: 600;
	color: #111;
	padding: 0;
	margin-bottom: 6px;
	margin-top: 6px;
	min-height: 32px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.oro-shop-main ul.products li.product .price {
	font-family: 'Manrope', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #000;
	padding: 0;
}

.woocommerce-Price-currencySymbol {
	padding-left: 5px;
}

.oro-shop-main ul.products li.product .price del {
	font-size: 13px;
	color: #999;
	font-weight: 400;
}

.oro-shop-main ul.products li.product .price ins {
	text-decoration: none;
	color: #e74c3c;
}

.oro-shop-main ul.products li.product .button,
.oro-shop-main ul.products li.product .add_to_cart_button {
	font-family: 'Manrope', sans-serif;
	font-size: 13px;
	font-weight: 600;
	border-radius: 8px;
	padding: 10px 20px;
	margin: 8px 4px 0 4px;
	background: #111;
	color: #fff;
	border: none;
	transition: all 0.2s ease;
}

.oro-shop-main ul.products li.product .button:hover,
.oro-shop-main ul.products li.product .add_to_cart_button:hover {
	background: #0073AA;
}

/* --- Pagination --- */
.oro-shop-main .woocommerce-pagination {
	margin-top: 20px;
}

.oro-shop-main .woocommerce-pagination ul {
	border: none;
	display: flex;
	justify-content: center;
	gap: 8px;
}

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

.oro-shop-main .woocommerce-pagination ul li a,
.oro-shop-main .woocommerce-pagination ul li span {
	padding: 8px 14px;
	border-radius: 8px;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 500;
	border: 1px solid #e0e0e0;
	color: #333;
	text-decoration: none;
	transition: all 0.2s ease;
}

.oro-shop-main .woocommerce-pagination ul li a:hover {
	background: #0073AA;
	color: #fff;
	border-color: #0073AA;
}

.oro-shop-main .woocommerce-pagination ul li span.current {
	background: #111;
	color: #fff;
	border-color: #111;
}

/* --- Result Count & Ordering --- */
.oro-shop-main .woocommerce-result-count,
.oro-shop-main .woocommerce-ordering {
	font-family: 'Manrope', sans-serif;
}

.oro-shop-main .woocommerce-ordering select {
	font-family: 'Manrope', sans-serif;
	padding: 6px 12px;
	border-radius: 8px;
	border: 1px solid #ddd;
	font-size: 14px;
}

/* --- No Products Found --- */
.oro-shop-main .woocommerce-info {
	border-radius: 12px;
	font-family: 'Manrope', sans-serif;
}

/* =============================================
   Product Modal
   ============================================= */
.oro-product-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	align-items: center;
	justify-content: center;
}
.oro-product-modal.active {
	display: flex;
}
.oro-product-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
}
.oro-product-modal-content {
	position: relative;
	z-index: 1;
	max-width: 900px;
	width: 90vw;
	max-height: 90vh;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
}
.oro-product-modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	z-index: 2;
	background: none;
	border: none;
	color: #333;
	font-size: 28px;
	cursor: pointer;
	line-height: 1;
	padding: 0;
}
.oro-product-modal-body {
	display: flex;
	max-height: 90vh;
}
.oro-product-modal-img-wrap {
	flex: 0 0 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	overflow: hidden;
}
.oro-product-modal-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.oro-product-modal-info {
	flex: 1;
	padding: 32px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.oro-product-modal-title {
	margin: 0;
	font-size: 1.4rem;
	font-weight: 700;
	color: #111;
}
.oro-product-modal-desc {
	font-size: 0.9rem;
	line-height: 1.6;
	color: #555;
}
.oro-product-modal-price {
	font-size: 1.3rem;
	font-weight: 700;
	color: #0073AA;
}
.oro-product-modal-price del {
	font-size: 0.9rem;
	color: #999;
	font-weight: 400;
}
.oro-product-modal-price ins {
	text-decoration: none;
	color: #e74c3c;
}

@media (max-width: 640px) {
	.oro-product-modal-body {
		flex-direction: column;
	}
	.oro-product-modal-img-wrap {
		flex: none;
	}
	.oro-product-modal-info {
		padding: 20px;
	}
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 960px) {
	.oro-shop-main ul.products {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}
}

@media (max-width: 640px) {
	.oro-shop-nav .oro-category-menu {
		padding: 0 12px;
	}

	.oro-cat-item > a {
		padding: 12px 14px;
		font-size: 13px;
	}

	.oro-shop-main {
		padding: 20px 6px;
	}

	.oro-shop-main ul.products {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.oro-shop-main ul.products li.product .woocommerce-loop-product__title {
		font-size: 13px;
		text-align: center;
		justify-content: center;
	}

	.oro-shop-main ul.products li.product .price {
		font-size: 14px;
		text-align: center;
	}
}

/* WooCommerce smallscreen override — full-width products */
@media (max-width: 768px) {
	.woocommerce ul.products[class*='columns-'] li.product {
		width: 100%;
	}
}
