/**
 * Shop / Archive Page Styles - Beevora Theme
 *
 * @package beevora
 */

/* ============================================================
   Banner
   ============================================================ */
.bv-shop-banner {
	position: relative;
	min-height: 300px;
	background-color: var(--beevora-brown);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.bv-shop-banner__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.bv-shop-banner__content {
	position: relative;
	z-index: 1;
	padding: 60px 15px;
}

.bv-shop-banner__title {
	color: #fff;
	font-family: var(--beevora-font-ar);
	font-size: 42px;
	font-weight: 700;
	margin: 0 0 15px;
}

/* Breadcrumb */
.bv-shop-breadcrumb {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 14px;
	font-family: var(--beevora-font-ar);
}

.bv-shop-breadcrumb a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 0.2s;
}

.bv-shop-breadcrumb a:hover {
	color: #fff;
}

.bv-shop-breadcrumb__sep {
	color: rgba(255, 255, 255, 0.5);
}

.bv-shop-breadcrumb__current {
	color: var(--beevora-gold);
	font-weight: 600;
}

/* ============================================================
   Filter Bar
   ============================================================ */
.bv-shop-filters {
	background: #fff;
	border-bottom: 1px solid #eee;
	padding: 18px 0;
}

.bv-shop-filters__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.bv-shop-filters__selects {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.bv-filter-select {
	font-family: var(--beevora-font-ar);
	font-size: 14px;
	padding: 10px 36px 10px 14px;
	border: 1.5px solid #d4c5a9;
	border-radius: 8px;
	background: #f2e4c9;
	color: var(--beevora-brown);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235d3615' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 12px center;
	min-width: 140px;
	transition: border-color 0.2s;
}

[dir="ltr"] .bv-filter-select {
	padding: 10px 14px 10px 36px;
	background-position: right 12px center;
}

.bv-filter-select:focus {
	outline: none;
	border-color: var(--beevora-gold);
}

/* View Toggle */
.bv-view-toggle {
	display: flex;
	gap: 6px;
}

.bv-view-toggle__btn {
	width: 40px;
	height: 40px;
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid #d4c5a9;
	border-radius: 8px;
	background: #fff;
	color: #999;
	cursor: pointer;
	transition: all 0.2s;
}

.bv-view-toggle__btn:hover {
	border-color: var(--beevora-gold);
	color: var(--beevora-gold);
}

.bv-view-toggle__btn.active {
	background: var(--beevora-gold);
	border-color: var(--beevora-gold);
	color: #fff;
}

/* ============================================================
   Featured Product
   ============================================================ */
.bv-shop-featured {
	padding: 40px 0 30px;
}

.bv-shop-featured__card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	background: #e7cfb1;
	border-radius: 16px;
	overflow: hidden;
	padding: 30px;
}

/* Featured Gallery - 1 main + 2 side images */
.bv-shop-featured__gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 12px;
	min-height: 300px;
}

.bv-featured-main {
	grid-row: 1 / 3;
	border-radius: 12px;
	overflow: hidden;
}

.bv-featured-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bv-featured-side {
	border-radius: 12px;
	overflow: hidden;
}

.bv-featured-side img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Featured Details */
.bv-shop-featured__details {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
}

.bv-shop-featured__name {
	font-family: var(--beevora-font-ar);
	font-size: 26px;
	font-weight: 700;
	color: var(--beevora-brown);
	margin: 0;
}

.bv-shop-featured__price {
	font-size: 24px;
	font-weight: 700;
	color: var(--beevora-gold);
	font-family: var(--beevora-font-ar);
}

.bv-shop-featured__price del {
	color: #999;
	font-size: 18px;
	font-weight: 400;
}

.bv-shop-featured__price ins {
	background: transparent;
	text-decoration: none;
}

.bv-shop-featured__desc {
	font-family: var(--beevora-font-ar);
	font-size: 15px;
	color: #666;
	line-height: 1.8;
}

.bv-shop-featured__desc p {
	margin: 0;
}

.bv-shop-featured__btn {
	display: inline-block;
	padding: 14px 40px;
	background: var(--beevora-gold);
	color: #fff !important;
	font-family: var(--beevora-font-ar);
	font-size: 16px;
	font-weight: 600;
	border-radius: 10px;
	text-decoration: none !important;
	text-align: center;
	transition: background 0.2s;
	align-self: flex-start;
}

.bv-shop-featured__btn:hover {
	background: var(--beevora-brown);
}

/* Featured Slider (Swiper) */
.bv-shop-featured__wrap {
	position: relative;
}

.bv-featured-slider {
	overflow: hidden;
	padding-bottom: 50px;
}

.bv-featured-slider .swiper-slide {
	height: auto;
}

/* Navigation Arrows - override Swiper defaults */
.bv-featured-slider .swiper-button-prev,
.bv-featured-slider .swiper-button-next {
	--swiper-navigation-color: #fff;
	--swiper-navigation-size: 16px;
	width: 40px !important;
	height: 40px !important;
	background: var(--beevora-brown);
	border-radius: 50%;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease;
	top: 50%;
	margin-top: -45px;
}

.bv-featured-slider .swiper-button-prev:hover,
.bv-featured-slider .swiper-button-next:hover {
	background: var(--beevora-gold);
}

.bv-featured-slider .swiper-button-prev.swiper-button-disabled,
.bv-featured-slider .swiper-button-next.swiper-button-disabled {
	opacity: 0.3;
	pointer-events: none;
}

.bv-featured-slider .swiper-button-prev {
	left: 16px;
}

.bv-featured-slider .swiper-button-next {
	right: 16px;
}

[dir="rtl"] .bv-featured-slider .swiper-button-next {
	right: unset;
}

/* Pagination Dots */
.bv-featured-slider .swiper-pagination {
	bottom: 0 !important;
}

.bv-featured-slider .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: var(--beevora-brown);
	opacity: 0.3;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.bv-featured-slider .swiper-pagination-bullet-active {
	opacity: 1;
	transform: scale(1.3);
	background: var(--beevora-gold);
}

/* Single-image product: full-width image, no grid */
.bv-shop-featured__gallery--single {
	display: flex;
	align-items: stretch;
}

.bv-shop-featured__gallery--single .bv-featured-main {
	flex: 1;
	grid-row: auto;
	grid-column: auto;
	border-radius: 12px;
	overflow: hidden;
	background: #f9f5ef;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 280px;
}

.bv-shop-featured__gallery--single .bv-featured-main img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	max-height: 360px;
	padding: 15px;
}

/* ============================================================
   Products Grid
   ============================================================ */
.bv-shop-content {
	padding: 40px 0 60px;
	background: transparent;
}

.bv-shop-content .products {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 24px !important;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* ============================================================
   List View
   ============================================================ */
.bv-shop-content .products.bv-shop-products--list {
	grid-template-columns: 1fr !important;
}

.bv-shop-products--list .bv-product-card {
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	gap: 24px;
}

.bv-shop-products--list .bv-product-card__link {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
	flex: 1;
}

.bv-shop-products--list .bv-product-card__image {
	width: 180px;
	min-width: 180px;
	height: 180px;
}

.bv-shop-products--list .bv-product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bv-shop-products--list .bv-product-card__name {
	font-size: 20px !important;
}

.bv-shop-products--list .bv-product-card__excerpt {
	display: block !important;
}

.bv-shop-products--list .bv-product-card__footer {
	min-width: 160px;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

/* ============================================================
   Product Card Excerpt (hidden in grid, shown in list)
   ============================================================ */
.bv-product-card__excerpt {
	display: none;
	font-family: var(--beevora-font-ar);
	font-size: 14px;
	color: #777;
	line-height: 1.7;
	margin: 4px 0 0;
}

/* ============================================================
   Pagination
   ============================================================ */
.bv-shop-pagination {
	margin-top: 40px;
	display: flex;
	justify-content: center;
}

.bv-shop-pagination .page-numbers {
	list-style: none;
	display: flex;
	gap: 8px;
	padding: 0;
	margin: 0;
	align-items: center;
}

.bv-shop-pagination .page-numbers li {
	list-style: none;
}

.bv-shop-pagination .page-numbers a,
.bv-shop-pagination .page-numbers span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: 8px;
	font-family: var(--beevora-font-ar);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border: 1.5px solid #d4c5a9;
	color: var(--beevora-brown);
	background: #fff;
	transition: all 0.2s;
}

.bv-shop-pagination .page-numbers a:hover {
	border-color: var(--beevora-gold);
	color: var(--beevora-gold);
}

.bv-shop-pagination .page-numbers .current {
	background: var(--beevora-gold);
	border-color: var(--beevora-gold);
	color: #fff;
}

/* ============================================================
   Empty State
   ============================================================ */
.bv-shop-empty {
	text-align: center;
	padding: 80px 20px;
}

.bv-shop-empty p {
	font-family: var(--beevora-font-ar);
	font-size: 18px;
	color: #666;
	margin-bottom: 24px;
}

.bv-shop-empty__btn {
	display: inline-block;
	padding: 14px 36px;
	background: var(--beevora-gold);
	color: #fff !important;
	font-family: var(--beevora-font-ar);
	font-size: 16px;
	font-weight: 600;
	border-radius: 10px;
	text-decoration: none !important;
	transition: background 0.2s;
}

.bv-shop-empty__btn:hover {
	background: var(--beevora-brown);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
	.bv-shop-banner {
		min-height: 220px;
	}

	.bv-shop-banner__title {
		font-size: 32px;
	}

	.bv-shop-featured__card {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.bv-shop-featured__gallery {
		min-height: 260px;
	}

	.bv-shop-featured__gallery--single .bv-featured-main {
		min-height: 260px;
	}

	.bv-shop-content .products {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.bv-shop-products--list .bv-product-card__image {
		width: 140px;
		min-width: 140px;
		height: 140px;
	}
}

@media (max-width: 575px) {
	.bv-shop-banner {
		min-height: 180px;
	}

	.bv-shop-banner__title {
		font-size: 26px;
	}

	.bv-shop-banner__content {
		padding: 40px 15px;
	}

	/* Filters: 2-column grid on mobile instead of full-width stack */
	.bv-shop-filters__row {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.bv-shop-filters__selects {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.bv-filter-select {
		width: 100%;
		min-width: unset;
		font-size: 13px;
		padding: 9px 30px 9px 12px;
	}

	[dir="ltr"] .bv-filter-select {
		padding: 9px 12px 9px 30px;
	}

	.bv-view-toggle {
		justify-content: flex-end;
	}

	.bv-shop-content .products {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 14px !important;
	}

	/* Hide slider arrows on mobile - use swipe */
	.bv-featured-slider .swiper-button-prev,
	.bv-featured-slider .swiper-button-next {
		display: none !important;
	}

	.bv-featured-slider {
		padding-bottom: 40px;
	}

	/* Featured: compact card on mobile */
	.bv-shop-featured {
		padding: 20px 0 15px;
	}

	.bv-shop-featured__card {
		padding: 16px;
		gap: 16px;
	}

	.bv-shop-featured__details {
		min-width: 0;
	}

	.bv-shop-featured__name {
		font-size: 20px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.bv-shop-featured__price {
		font-size: 20px;
	}

	.bv-shop-featured__desc {
		font-size: 13px;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.bv-shop-featured__btn {
		padding: 10px 24px;
		font-size: 14px;
	}

	/* Featured gallery: main image large + 2 side images in a row below */
	.bv-shop-featured__gallery {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto;
		gap: 8px;
	}

	.bv-featured-main {
		grid-row: auto;
		grid-column: 1 / -1;
		max-height: 220px;
	}

	.bv-featured-side {
		max-height: 100px;
	}

	/* Single-image gallery on mobile */
	.bv-shop-featured__gallery--single .bv-featured-main {
		min-height: 200px;
	}

	.bv-shop-featured__gallery--single .bv-featured-main img {
		max-height: 240px;
		padding: 10px;
	}

	/* List view falls back to card on mobile */
	.bv-shop-products--list .bv-product-card {
		flex-direction: column !important;
	}

	.bv-shop-products--list .bv-product-card__link {
		flex-direction: column;
	}

	.bv-shop-products--list .bv-product-card__image {
		width: 100%;
		min-width: unset;
		height: auto;
	}

	.bv-shop-products--list .bv-product-card__footer {
		min-width: unset;
		align-items: stretch;
	}

	.bv-shop-pagination .page-numbers a,
	.bv-shop-pagination .page-numbers span {
		min-width: 36px;
		height: 36px;
		font-size: 13px;
	}
}
