/**
 * Shisha Menu Archive Styles
 *
 * @package Rezivoo
 */

/* Title Area */
.shisha-archive-title {
	position: relative;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
}

.shisha-archive-title .archive-title-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}

.shisha-archive-title .archive-title-content {
	position: relative;
	z-index: 2;
	text-align: center;
}

.shisha-archive-title .archive-title {
	font-size: clamp(3rem, 2.5385rem + 2.0513vw, 4rem);
	font-weight: 700;
	-webkit-text-stroke: 0.5px var(--archive-primary-color);
	text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	color: var(--archive-text-color);
	margin: 0;
}

/* Content Area */
.shisha-archive-content {
	margin-top: 60px;
}

.shisha-archive-listings {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
}

/* Shisha Menu Item Styles */
.shisha-menu-item {
	border: 1px solid #e0e0e0;
	border-radius: 20px;
	overflow: hidden;
	transition: box-shadow 0.3s, transform 0.3s;
	background: #fff;
}

.shisha-menu-item:hover {
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

/* Disable hover effects on mobile to prevent double-click issue */
@media (max-width: 768px) {
	.shisha-menu-item:hover,
	.shisha-menu-item:active,
	.shisha-menu-item:focus {
		transform: none !important;
		box-shadow: none !important;
	}
	
	.shisha-menu-item {
		-webkit-tap-highlight-color: transparent;
		touch-action: manipulation;
		transition: none !important;
		pointer-events: auto !important;
	}
}

.shisha-menu-thumbnail {
	position: relative;
	width: 100%;
	height: 250px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	overflow: hidden;
}

.shisha-menu-thumbnail::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
	z-index: 1;
	opacity: 0;
	transition: opacity 0.3s;
	pointer-events: none; /* Don't block clicks */
}

.shisha-menu-item:hover .shisha-menu-thumbnail::before {
	opacity: 1;
}

@media (max-width: 768px) {
	.shisha-menu-item:hover .shisha-menu-thumbnail::before {
		opacity: 0 !important;
	}
}

.shisha-menu-link {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	z-index: 10;
	pointer-events: auto !important;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.shisha-menu-content {
	padding: 25px 30px 30px;
}

.shisha-menu-content .entry-header {
	margin-bottom: 10px;
}

.shisha-menu-content .entry-title {
	margin: 0;
	font-size: clamp(1.4rem, 1.3538rem + 0.2051vw, 1.5rem);
	font-weight: 600;
	line-height: 1.3;
}

.shisha-menu-content .entry-title a {
	color: var(--archive-text-color, #333);
	text-decoration: none;
	transition: color 0.3s;
}

.shisha-menu-content .entry-title a:hover {
	color: var(--archive-primary-color, #0073aa);
}

.shisha-menu-content .entry-excerpt {
	font-size: 0.875rem;
	color: #666;
	line-height: 1.6;
	margin-bottom: 15px;
}

.shisha-menu-meta {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: 15px;
}

.shisha-menu-meta .menu-price {
	font-size: clamp(1.2rem, 1.1769rem + 0.1026vw, 1.25rem);
	font-weight: 700;
	color: var(--archive-primary-color, #0073aa);
}

/* Modern Listing Style */
.shisha-menu-item.shisha-menu-item-modern {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	min-height: 300px;
	border: none;
}

.shisha-menu-modern {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
	min-height: 300px;
}

.shisha-menu-modern-background {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	z-index: 1;
}

.shisha-menu-modern-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
	z-index: 2;
}

.shisha-menu-modern-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 25px;
	z-index: 3;
	text-align: center;
}

.shisha-menu-modern-title {
	font-size: clamp(1.4rem, 1.3538rem + 0.2051vw, 1.5rem) !important; /* Title 6 - 22.4px to 24px */
	font-weight: 600 !important;
	color: #ffffff;
	margin: 0 0 8px 0;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	line-height: 1.4;
}

.shisha-menu-modern-price {
	font-size: clamp(1.2rem, 1.1769rem + 0.1026vw, 1.25rem) !important; /* Title 7 */
	font-weight: 600;
	color: #ffffff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
	.shisha-menu-item.shisha-menu-item-modern,
	.shisha-menu-modern {
		min-height: 250px;
	}
	
	.shisha-menu-modern-content {
		padding: 20px;
	}
}

/* Tobaccos Archive */
.tobaccos-archive-title {
	position: relative;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tobaccos-archive-title .archive-title-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}

.tobaccos-archive-title .archive-title-content {
	position: relative;
	z-index: 2;
	text-align: center;
}

.tobaccos-archive-title .archive-title {
	font-size: clamp(3rem, 2.5385rem + 2.0513vw, 4rem);
	font-weight: 700;
	-webkit-text-stroke: 0.5px var(--archive-primary-color);
	text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	color: var(--archive-text-color);
	margin: 0;
}

.tobaccos-archive-content {
	margin-top: 60px;
}

/* Tobacco Brand Archive */
.tobacco-brand-archive-title {
	position: relative;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tobacco-brand-archive-title .archive-title-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}

.tobacco-brand-archive-title .archive-title-content {
	position: relative;
	z-index: 2;
	text-align: center;
}

.tobacco-brand-archive-title .archive-title {
	font-size: clamp(3rem, 2.5385rem + 2.0513vw, 4rem);
	font-weight: 700;
	-webkit-text-stroke: 0.5px var(--archive-primary-color);
	text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	color: var(--archive-text-color);
	margin: 0;
}

.tobacco-brand-archive-content {
	margin-top: 60px;
}

.tobacco-brand-tobaccos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
}

.tobacco-brand-tobacco-item {
	border: none;
	background: transparent;
	padding: 0;
}

.tobacco-brand-tobacco-item.tobacco-brand-tobacco-image {
	border: none;
	background: transparent;
	padding: 0;
}

.tobacco-brand-tobacco-image-link {
	display: block;
	width: 100%;
	text-decoration: none;
	position: relative;
}

.tobacco-brand-tobacco-image-item {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 20px;
	object-fit: cover;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Tobacco brand hover effects removed to prevent double-click issue */
@media (max-width: 768px) {
	.tobacco-brand-tobacco-item {
		-webkit-tap-highlight-color: transparent;
		touch-action: manipulation;
		transition: none !important;
		pointer-events: auto !important;
	}
}

/* Tobacco Brands Slider */
.shisha-archive-brands-slider {
	margin-top: 60px;
	margin-bottom: 60px;
}

.shisha-brands-slider-container {
	position: relative;
	width: 100%;
}

.shisha-brands-slider-wrapper {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding: 0 50px;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE and Edge */
}

.shisha-brands-slider-wrapper::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
}

.shisha-brand-slide-item {
	flex: 0 0 calc(16.666% - 17px); /* 6 items on desktop (100% / 6 - gap) */
	scroll-snap-align: center;
	min-width: 0;
}

.shisha-brand-slide-link {
	display: block;
	width: 100%;
	text-decoration: none;
}

.shisha-brand-slide-image {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 20px;
	object-fit: cover;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shisha-brand-slide-item:hover .shisha-brand-slide-image {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
	.shisha-brand-slide-item:hover .shisha-brand-slide-image {
		transform: none !important;
		box-shadow: none !important;
	}
	
	.shisha-brand-slide-item {
		-webkit-tap-highlight-color: transparent;
		touch-action: manipulation;
		transition: none !important;
		pointer-events: auto !important;
	}
}

.shisha-brands-slider-prev,
.shisha-brands-slider-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	font-size: 24px;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: background 0.3s ease, transform 0.3s ease;
	color: var(--archive-primary-color, #000);
}

.shisha-brands-slider-prev:hover,
.shisha-brands-slider-next:hover {
	background: rgba(255, 255, 255, 1);
	transform: translateY(-50%) scale(1.1);
}

.shisha-brands-slider-prev {
	left: 0;
}

.shisha-brands-slider-next {
	right: 0;
}

/* Tablet: 4 items */
@media (max-width: 1024px) and (min-width: 769px) {
	.shisha-brand-slide-item {
		flex: 0 0 calc(25% - 15px); /* 4 items on tablet */
	}
}

/* Mobile: 2 items */
@media (max-width: 768px) {
	.shisha-archive-brands-slider {
		margin-top: 30px;
		margin-bottom: 30px;
	}

	.shisha-brands-slider-wrapper {
		padding: 0 40px;
		gap: 15px;
	}

	.shisha-brand-slide-item {
		flex: 0 0 calc(50% - 7.5px); /* 2 items on mobile */
	}

	.shisha-brands-slider-prev,
	.shisha-brands-slider-next {
		width: 35px;
		height: 35px;
		font-size: 20px;
	}
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.archive-title-area.shisha-archive-title,
	.archive-title-area.tobacco-brand-archive-title,
	.archive-title-area.tobaccos-archive-title {
		min-height: 15vh !important; /* Reduced from 20vh */
		padding: 60px 15px 10px !important; /* Reduced bottom padding from 20px to 10px */
		margin-bottom: 0 !important;
	}
	
	.shisha-archive-title .archive-title-content,
	.tobacco-brand-archive-title .archive-title-content,
	.tobaccos-archive-title .archive-title-content {
		margin-top: 80px !important; /* Reduced from 110px */
	}
	
	.shisha-archive-title .archive-title,
	.tobacco-brand-archive-title .archive-title,
	.tobaccos-archive-title .archive-title {
		font-size: clamp(2rem, 1.9231rem + 0.3077vw, 2.2rem) !important; /* Reduced font size */
	}

	.shisha-archive-content,
	.tobacco-brand-archive-content,
	.tobaccos-archive-content {
		margin-top: 10px !important; /* Reduced from 20px */
		padding-top: 15px !important; /* Reduced from 20px */
		padding-bottom: 15px !important; /* Reduced from 20px */
	}

	.shisha-archive-listings {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.shisha-menu-thumbnail {
		height: 200px;
	}

	.shisha-menu-content {
		padding: 20px;
	}

	.tobacco-brand-tobaccos-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.shisha-archive-brands-slider {
		margin-top: 30px;
		margin-bottom: 30px;
	}

	.shisha-brand-slide-item {
		width: 150px;
	}

	.shisha-brands-slider-wrapper {
		gap: 15px;
	}

	/* Archive Pagination Styles */
	.archive-content-area .pagination,
	.archive-content-area .nav-links {
		margin-top: 30px;
		gap: 5px;
	}

	.archive-content-area .page-numbers {
		padding: 8px 12px;
		min-width: 40px;
		height: 40px;
		font-size: 0.875rem;
	}
}

/* Archive Pagination Styles */
.archive-content-area .pagination,
.archive-content-area .nav-links,
.archive-content-area .page-numbers {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 40px;
	padding: 0;
	list-style: none;
}

.archive-content-area .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 15px;
	min-width: 44px;
	height: 44px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--archive-text-color, #000);
	background-color: var(--archive-background-color, #fff);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.archive-content-area .page-numbers:hover,
.archive-content-area .page-numbers:focus {
	color: var(--archive-primary-color, #000);
	background-color: rgba(0, 0, 0, 0.05);
	border-color: var(--archive-primary-color, #000);
	text-decoration: none;
}

.archive-content-area .page-numbers.current {
	color: #fff;
	background-color: var(--archive-primary-color, #000);
	border-color: var(--archive-primary-color, #000);
}

.archive-content-area .page-numbers.dots {
	border: none;
	background: transparent;
	cursor: default;
}

.archive-content-area .page-numbers.dots:hover {
	background: transparent;
	border: none;
}

