/* ==========================================================================
   BESTPRICE CUSTOM
   Standard Pages + Search Results
   ========================================================================== */


/* ==========================================================================
   STANDARD PAGE HEADER
   ========================================================================== */

.bp-page-header {
	padding: 64px 0 54px;
	background:
		linear-gradient(
			120deg,
			#f4f4f0 0%,
			#ffffff 100%
		);
	border-bottom: 1px solid var(--bp-border);
}

.bp-page-header__title {
	max-width: 980px;
	margin: 0;
	color: var(--bp-black);
	font-size: clamp(2.8rem, 5vw, 5.2rem);
	line-height: 0.98;
	font-weight: 850;
	letter-spacing: -0.06em;
}


/* ==========================================================================
   STANDARD PAGE CONTENT
   ========================================================================== */

.bp-page-content {
	padding: 68px 0 95px;
	background: #ffffff;
}

.bp-page-content__inner {
	max-width: 1050px;
	color: var(--bp-text-soft);
	font-size: 15px;
	line-height: 1.85;
}

.bp-page-content__inner > *:first-child {
	margin-top: 0;
}

.bp-page-content__inner h2,
.bp-page-content__inner h3,
.bp-page-content__inner h4 {
	color: var(--bp-text);
	font-weight: 850;
	letter-spacing: -0.035em;
}

.bp-page-content__inner h2 {
	margin-top: 46px;
	margin-bottom: 18px;
	font-size: clamp(2rem, 3vw, 3rem);
	line-height: 1.05;
}

.bp-page-content__inner h3 {
	margin-top: 34px;
	margin-bottom: 14px;
	font-size: 22px;
	line-height: 1.15;
}

.bp-page-content__inner h4 {
	margin-top: 28px;
	margin-bottom: 12px;
	font-size: 17px;
}

.bp-page-content__inner p {
	margin-bottom: 20px;
}

.bp-page-content__inner a {
	color: var(--bp-accent-hover);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.bp-page-content__inner a:hover {
	color: var(--bp-black);
}

.bp-page-content__inner ul,
.bp-page-content__inner ol {
	margin-bottom: 24px;
	padding-left: 24px;
}

.bp-page-content__inner li {
	margin-bottom: 7px;
}

.bp-page-content__inner blockquote {
	margin: 32px 0;
	padding: 24px 26px;
	background: #f6f6f3;
	border-left: 4px solid var(--bp-accent);
	border-radius: 0 var(--bp-radius-sm) var(--bp-radius-sm) 0;
	color: var(--bp-text);
	font-size: 17px;
	line-height: 1.7;
}

.bp-page-content__inner img {
	margin: 28px 0;
	border-radius: var(--bp-radius-md);
}

.bp-page-content__inner table {
	width: 100%;
	margin: 28px 0;
	border-collapse: collapse;
	background: #ffffff;
}

.bp-page-content__inner th,
.bp-page-content__inner td {
	padding: 13px 15px;
	border: 1px solid var(--bp-border);
	text-align: left;
	vertical-align: top;
}

.bp-page-content__inner th {
	background: #f6f6f3;
	color: var(--bp-text);
	font-size: 12px;
	font-weight: 850;
}


/* ==========================================================================
   PAGE LINKS
   ========================================================================== */

.bp-page-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 35px;
	padding-top: 22px;
	border-top: 1px solid var(--bp-border);
	color: var(--bp-text);
	font-size: 12px;
	font-weight: 800;
}


/* ==========================================================================
   SEARCH RESULTS PAGE
   ========================================================================== */

.bp-search-page {
	background: #ffffff;
}

.bp-search-results {
	padding: 58px 0 95px;
}

.bp-search-results__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}


/* ==========================================================================
   SEARCH CARD
   ========================================================================== */

.bp-search-card {
	min-width: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius-md);
	transition:
		transform var(--bp-transition),
		border-color var(--bp-transition),
		box-shadow var(--bp-transition);
}

.bp-search-card:hover {
	transform: translateY(-4px);
	border-color: #c6c8c3;
	box-shadow: var(--bp-shadow-sm);
}

.bp-search-card__media {
	aspect-ratio: 1 / 0.85;
	display: grid;
	place-items: center;
	overflow: hidden;
	background: #fafaf8;
	border-bottom: 1px solid #ecece8;
}

.bp-search-card__image {
	width: 100%;
	height: 100%;
	padding: 22px;
	object-fit: contain;
	transition: transform 280ms ease;
}

.bp-search-card:hover
	.bp-search-card__image {
	transform: scale(1.035);
}

.bp-search-card__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 20px;
}

.bp-search-card__type {
	display: block;
	margin-bottom: 8px;
	color: #898e90;
	font-size: 9px;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bp-search-card__title {
	margin-bottom: 14px;
	font-size: 15px;
	line-height: 1.45;
	font-weight: 780;
	letter-spacing: -0.015em;
}

.bp-search-card__title a:hover {
	color: var(--bp-accent-hover);
}

.bp-search-card__price {
	margin-top: auto;
	margin-bottom: 16px;
	color: var(--bp-black);
	font-size: 18px;
	font-weight: 850;
}

.bp-search-card__price del {
	margin-right: 5px;
	color: #9a9d9f;
	font-size: 11px;
	font-weight: 500;
}

.bp-search-card__price ins {
	color: var(--bp-danger);
	text-decoration: none;
}

.bp-search-card__excerpt {
	margin-bottom: 16px;
	color: var(--bp-text-soft);
	font-size: 12px;
	line-height: 1.65;
}

.bp-search-card__excerpt p:last-child {
	margin-bottom: 0;
}

.bp-search-card__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid #ecece8;
	color: var(--bp-text);
	font-size: 10px;
	font-weight: 850;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bp-search-card__link span {
	transition: transform var(--bp-transition);
}

.bp-search-card__link:hover span {
	transform: translateX(4px);
}


/* ==========================================================================
   SEARCH EMPTY STATE
   ========================================================================== */

.bp-search-empty {
	max-width: 720px;
	margin: 20px auto;
	padding: 65px 40px;
	background: #f6f6f3;
	border-radius: var(--bp-radius-lg);
	text-align: center;
}

.bp-search-empty h2 {
	margin-bottom: 12px;
	color: var(--bp-black);
	font-size: 34px;
	line-height: 1.05;
	font-weight: 850;
	letter-spacing: -0.04em;
}

.bp-search-empty p {
	margin-bottom: 26px;
	color: var(--bp-text-soft);
}

.bp-search-empty .search-form {
	position: relative;
	display: flex;
	max-width: 560px;
	margin: 0 auto;
}

.bp-search-empty .search-field {
	width: 100%;
	height: 50px;
	padding: 0 110px 0 15px;
	background: #ffffff;
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius-sm);
	outline: 0;
}

.bp-search-empty .search-submit {
	position: absolute;
	top: 4px;
	right: 4px;
	height: 42px;
	padding: 0 16px;
	background: var(--bp-accent);
	border: 0;
	border-radius: 5px;
	color: var(--bp-black);
	font-size: 11px;
	font-weight: 850;
	cursor: pointer;
}


/* ==========================================================================
   SEARCH PAGINATION
   ========================================================================== */

.bp-search-pagination {
	margin-top: 44px;
	padding-top: 28px;
	border-top: 1px solid var(--bp-border);
}


/* ==========================================================================
   CONTACT FORM BASELINE
   ========================================================================== */

.bp-page-content
	input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.bp-page-content
	select,
.bp-page-content
	textarea {
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	background: #ffffff;
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius-sm);
	color: var(--bp-text);
	outline: 0;
}

.bp-page-content textarea {
	min-height: 140px;
	padding-top: 13px;
	padding-bottom: 13px;
	resize: vertical;
}

.bp-page-content
	input:focus,
.bp-page-content
	select:focus,
.bp-page-content
	textarea:focus {
	border-color: var(--bp-accent-hover);
	box-shadow: 0 0 0 3px rgba(232, 162, 26, 0.08);
}

.bp-page-content
	input[type="submit"],
.bp-page-content
	button[type="submit"] {
	min-height: 48px;
	padding: 0 22px;
	background: var(--bp-bg-dark);
	border: 0;
	border-radius: var(--bp-radius-sm);
	color: #ffffff;
	font-size: 11px;
	font-weight: 850;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
}

.bp-page-content
	input[type="submit"]:hover,
.bp-page-content
	button[type="submit"]:hover {
	background: var(--bp-accent);
	color: var(--bp-black);
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 1100px) {

	.bp-search-results__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}


/* ==========================================================================
   SMALL TABLET
   ========================================================================== */

@media (max-width: 800px) {

	.bp-page-header {
		padding: 48px 0 40px;
	}

	.bp-page-content {
		padding: 50px 0 76px;
	}

	.bp-search-results__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 520px) {

	.bp-page-header {
		padding: 38px 0 34px;
	}

	.bp-page-header__title {
		font-size: clamp(2.5rem, 13vw, 4rem);
	}

	.bp-page-content {
		padding: 42px 0 68px;
	}

	.bp-page-content__inner {
		font-size: 14px;
		line-height: 1.8;
	}

	.bp-search-results {
		padding: 42px 0 68px;
	}

	.bp-search-results__grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.bp-search-empty {
		padding: 42px 20px;
	}

	.bp-search-empty .search-form {
		display: block;
	}

	.bp-search-empty .search-field {
		padding-right: 15px;
	}

	.bp-search-empty .search-submit {
		position: static;
		width: 100%;
		margin-top: 8px;
	}
}