/**
 * HexDisplay storefront presentation.
 *
 * Ecwid owns the commerce behavior; this file gives its catalog the same
 * visual hierarchy and polish as the surrounding HexDisplay experience.
 */

body.page-store .hex-page__hero {
	min-height: 0;
	padding-block: clamp(1.8rem, 4vw, 3.25rem);
}

body.page-store .hex-page__hero-inner {
	gap: 0.35rem;
}

body.page-store .hex-page__content {
	padding-top: clamp(2rem, 5vw, 4rem);
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

body.page-store .hex-page__content > .entry-content,
body.page-store .hex-page__content > .wp-block-post-content {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.hex-store-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 2rem;
	align-items: end;
	width: min(1200px, calc(100% - 2rem));
	margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
	padding: 0 clamp(0.25rem, 1vw, 0.75rem);
}

.hex-store-intro h2 {
	max-width: 13ch;
	margin: 0 0 0.65rem;
	color: #102347;
	font-size: clamp(1.75rem, 3vw, 2.65rem);
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.hex-store-intro p {
	max-width: 44rem;
	margin: 0;
	color: #526684;
	font-size: clamp(1rem, 1.35vw, 1.08rem);
	line-height: 1.7;
}

.hex-store-intro__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.7rem 1.2rem;
	border: 1px solid rgba(30, 95, 190, 0.25);
	border-radius: 999px;
	background: #fff;
	color: #174f9e;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(34, 79, 139, 0.08);
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.hex-store-intro__action:hover {
	border-color: #266cc9;
	box-shadow: 0 12px 26px rgba(34, 79, 139, 0.14);
	transform: translateY(-1px);
}

body.page-store .ecwid {
	width: min(1200px, calc(100% - 2rem)) !important;
	max-width: 1200px !important;
	margin: 0 auto !important;
}

body.page-store .ec-store {
	min-height: 0 !important;
	padding: clamp(1.25rem, 3vw, 2.35rem) !important;
	border: 1px solid rgba(166, 198, 235, 0.62);
	border-radius: 1.65rem;
	background:
		radial-gradient(circle at 50% -15%, rgba(73, 139, 221, 0.09), transparent 42%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.88)) !important;
	box-shadow:
		0 30px 70px rgba(38, 72, 119, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

body.page-store .ec-store .ec-size .ec-store__content-wrapper {
	max-width: none !important;
}

body.page-store .ec-store .grid__sort {
	margin: 0 0 1.25rem !important;
	color: #315b98 !important;
	font-size: 0.78rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.055em;
	text-transform: uppercase;
}

body.page-store .ec-store .grid__products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: clamp(1.15rem, 2.2vw, 1.75rem) !important;
	align-items: stretch;
	padding: 0.4rem 0.2rem 1rem;
}

body.page-store .ec-store .grid-product {
	width: auto !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.page-store .ec-store .grid-product__wrap {
	position: relative;
	display: flex !important;
	flex-direction: column;
	height: 100%;
	overflow: hidden !important;
	border: 1px solid rgba(142, 178, 222, 0.52) !important;
	border-radius: 1.35rem !important;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(249, 252, 255, 0.98)) !important;
	box-shadow:
		0 2px 3px rgba(25, 49, 83, 0.05),
		0 12px 26px rgba(36, 72, 120, 0.11),
		0 28px 48px -30px rgba(17, 53, 104, 0.42) !important;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.page-store .ec-store .grid-product__wrap::after {
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.82),
		inset 0 0 0 1px rgba(255, 255, 255, 0.18);
	content: "";
	pointer-events: none;
}

body.page-store .ec-store .grid-product__wrap:hover {
	border-color: rgba(38, 108, 201, 0.72) !important;
	box-shadow:
		0 3px 5px rgba(25, 49, 83, 0.05),
		0 18px 36px rgba(36, 72, 120, 0.16),
		0 34px 55px -28px rgba(17, 53, 104, 0.55) !important;
	transform: translateY(-6px);
}

body.page-store .ec-store .grid-product__image {
	position: relative;
	aspect-ratio: 4 / 3 !important;
	min-height: 0 !important;
	overflow: hidden !important;
	border-bottom: 1px solid rgba(153, 184, 220, 0.42);
	background:
		radial-gradient(circle at 50% 28%, #fff 0%, #f2f7fd 56%, #e6eff9 100%) !important;
}

body.page-store .ec-store .grid-product__picture {
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.page-store .ec-store .grid-product__image img,
body.page-store .ec-store .grid-product__picture img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
	transition: transform 280ms ease;
}

body.page-store .ec-store .grid-product__wrap:hover .grid-product__image img,
body.page-store .ec-store .grid-product__wrap:hover .grid-product__picture img {
	transform: scale(1.025);
}

body.page-store .ec-store .grid-product__title {
	min-height: 3.35em;
	margin: 0 !important;
	padding: 1.15rem 1.15rem 0.45rem !important;
	color: #102347 !important;
	font-size: clamp(0.94rem, 1.15vw, 1.03rem) !important;
	font-weight: 750 !important;
	line-height: 1.42 !important;
	text-align: left !important;
}

body.page-store .ec-store .grid-product__price {
	margin-top: auto !important;
	padding: 0.35rem 1.15rem 1.25rem !important;
	color: #155bb4 !important;
	font-size: 1.12rem !important;
	font-weight: 800 !important;
	text-align: left !important;
}

body.page-store .ec-store .grid-product__price-compare {
	color: #7b8ba4 !important;
	font-size: 0.86rem !important;
	font-weight: 500 !important;
}

body.page-store .ec-store .label--notice {
	top: 0.9rem !important;
	right: 0.9rem !important;
	padding: 0.42rem 0.68rem !important;
	border-radius: 999px !important;
	border: 1px solid rgba(255, 255, 255, 0.5);
	background: linear-gradient(180deg, #2875d3, #1458ad) !important;
	color: #fff !important;
	font-size: 0.7rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.06em;
	box-shadow:
		0 8px 20px rgba(19, 68, 139, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

body.page-store .ec-store .ec-footer {
	margin-top: clamp(1.5rem, 4vw, 2.75rem) !important;
	padding-top: 1.3rem !important;
	border-top: 1px solid rgba(159, 190, 227, 0.45);
}

body.page-store .ec-store .ec-footer__row {
	justify-content: center !important;
	gap: clamp(0.5rem, 2vw, 1.25rem) !important;
}

body.page-store .ec-store .ec-footer__link {
	min-width: 0 !important;
	padding: 0.45rem 0.7rem !important;
	color: #536a8d !important;
	font-size: 0.82rem !important;
}

body.page-store .ec-store .ec-footer__link:hover {
	color: #155bb4 !important;
}

body.page-store .ec-store .ec-footer__link .svg-icon {
	opacity: 0.7;
	transform: scale(0.86);
}

/* Product detail view */
body.page-store .ec-store .product-details {
	gap: clamp(1.75rem, 4vw, 3.25rem) !important;
	padding: clamp(0.25rem, 1vw, 0.75rem) !important;
}

body.page-store .ec-store .product-details__navigation {
	margin-bottom: 1.4rem !important;
	color: #526b90 !important;
	font-size: 0.9rem !important;
}

body.page-store .ec-store .product-details__navigation a {
	color: #315f9f !important;
	font-weight: 650 !important;
	text-decoration: none !important;
}

body.page-store .ec-store .product-details__gallery {
	align-self: start;
	padding: clamp(0.65rem, 1.25vw, 1rem);
	border: 1px solid rgba(142, 178, 222, 0.48);
	border-radius: 1.5rem;
	background:
		radial-gradient(circle at 45% 22%, rgba(255, 255, 255, 1), rgba(242, 247, 253, 0.96));
	box-shadow:
		0 3px 6px rgba(26, 53, 91, 0.05),
		0 20px 44px rgba(36, 72, 120, 0.13),
		0 45px 65px -42px rgba(17, 53, 104, 0.5);
}

body.page-store .ec-store .details-gallery__image-wrapper,
body.page-store .ec-store .details-gallery__image {
	overflow: hidden !important;
	border-radius: 1.05rem !important;
	background: #eef4fb !important;
}

body.page-store .ec-store .details-gallery__image img {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	transition: transform 300ms ease;
}

body.page-store .ec-store .details-gallery__image:hover img {
	transform: scale(1.012);
}

body.page-store .ec-store .details-gallery__thumb {
	overflow: hidden !important;
	border: 1px solid rgba(149, 180, 217, 0.58) !important;
	border-radius: 0.72rem !important;
	background: #f4f8fd !important;
	box-shadow: 0 5px 12px rgba(41, 77, 125, 0.08);
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.page-store .ec-store .details-gallery__thumb:hover {
	border-color: #3979ca !important;
	box-shadow: 0 8px 16px rgba(41, 77, 125, 0.15);
	transform: translateY(-2px);
}

body.page-store .ec-store .details-gallery__thumb--active,
body.page-store .ec-store .details-gallery__thumb--selected {
	border-color: #155bb4 !important;
	box-shadow: 0 0 0 2px rgba(21, 91, 180, 0.16);
}

body.page-store .ec-store .product-details__sidebar {
	align-self: start;
	padding: clamp(1.35rem, 2.5vw, 2rem) !important;
	border: 1px solid rgba(142, 178, 222, 0.5);
	border-radius: 1.5rem;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 255, 0.98));
	box-shadow:
		0 2px 4px rgba(25, 49, 83, 0.04),
		0 16px 34px rgba(36, 72, 120, 0.11),
		0 36px 56px -38px rgba(17, 53, 104, 0.46);
}

body.page-store .ec-store .product-details__product-title {
	margin-bottom: 0.8rem !important;
	color: #102347 !important;
	font-size: clamp(1.65rem, 3vw, 2.35rem) !important;
	font-weight: 800 !important;
	line-height: 1.12 !important;
	letter-spacing: -0.035em !important;
}

body.page-store .ec-store .product-details__product-price {
	margin: 0.25rem 0 1.4rem !important;
	color: #155bb4 !important;
	font-size: clamp(1.55rem, 2.6vw, 2rem) !important;
	font-weight: 800 !important;
	letter-spacing: -0.025em;
}

body.page-store .ec-store .product-details__product-price-compare {
	color: #8190a6 !important;
	font-size: 1rem !important;
	font-weight: 500 !important;
}

body.page-store .ec-store .product-details__product-options,
body.page-store .ec-store .product-details__product-qty {
	margin-block: 1rem !important;
}

body.page-store .ec-store .form-control__label,
body.page-store .ec-store .product-details-module__title {
	margin-bottom: 0.45rem !important;
	color: #253c60 !important;
	font-size: 0.82rem !important;
	font-weight: 750 !important;
	letter-spacing: 0.035em;
}

body.page-store .ec-store .form-control__text,
body.page-store .ec-store .form-control__number {
	min-height: 3.1rem !important;
	border: 1px solid rgba(122, 158, 204, 0.65) !important;
	border-radius: 0.8rem !important;
	background-color: #fff !important;
	color: #172b4d !important;
	box-shadow: inset 0 1px 2px rgba(30, 61, 104, 0.04);
}

body.page-store .ec-store .form-control--number,
body.page-store .ec-store .product-details__product-qty {
	position: relative;
}

body.page-store .ec-store .product-details__product-qty .form-control {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 0.6rem 1rem !important;
	align-items: center !important;
	width: 100% !important;
}

body.page-store .ec-store .product-details__product-qty .form-control__number {
	flex: 0 0 auto !important;
	margin: 0 !important;
}

body.page-store .ec-store *:has(> .details-product-purchase__qty-note) {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
}

body.page-store .ec-store .product-details__product-qty .form-control__message,
body.page-store .ec-store .product-details__product-qty .form-control__note,
body.page-store .ec-store .product-details__product-qty .product-details__qty-note,
body.page-store .ec-store .product-details__product-qty .form-control__inline-label,
body.page-store .ec-store .details-product-purchase__qty-note {
	display: block !important;
	position: static !important;
	flex: 0 0 100% !important;
	width: 100% !important;
	min-width: 0 !important;
	margin: 0.35rem 0 0 !important;
	padding: 0 !important;
	clear: both !important;
	color: #526684 !important;
	font-size: 0.84rem !important;
	line-height: 1.45 !important;
}

body.page-store .ec-store .form-control--number input,
body.page-store .ec-store input.form-control__number,
body.page-store .ec-store input[type="number"] {
	width: 5rem !important;
	min-width: 5rem !important;
	min-height: 3.1rem !important;
	padding: 0.65rem 0.7rem !important;
	border: 1px solid rgba(122, 158, 204, 0.65) !important;
	border-radius: 0.8rem !important;
	background: #fff !important;
	color: #172b4d !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	text-align: center !important;
	opacity: 1 !important;
	appearance: auto !important;
	-moz-appearance: number-input !important;
}

body.page-store .ec-store input[type="number"]::-webkit-inner-spin-button,
body.page-store .ec-store input[type="number"]::-webkit-outer-spin-button {
	margin: 0 !important;
	opacity: 1 !important;
	-webkit-appearance: inner-spin-button !important;
}

body.page-store .ec-store .form-control__text:focus,
body.page-store .ec-store .form-control__number:focus,
body.page-store .ec-store input[type="number"]:focus {
	border-color: #2a70c8 !important;
	box-shadow: 0 0 0 3px rgba(42, 112, 200, 0.14) !important;
}

body.page-store .ec-store .form-control--primary .form-control__button,
body.page-store .ec-store .product-details__action .form-control__button {
	min-height: 3.35rem !important;
	border: 1px solid #0f4b9c !important;
	border-radius: 0.9rem !important;
	background:
		linear-gradient(180deg, #286fd0 0%, #164f9f 100%) !important;
	color: #fff !important;
	font-size: 1rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.01em;
	box-shadow:
		0 12px 24px rgba(18, 70, 145, 0.27),
		inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
	transition: box-shadow 160ms ease, filter 160ms ease, transform 160ms ease;
}

body.page-store .ec-store .form-control--primary .form-control__button:hover,
body.page-store .ec-store .product-details__action .form-control__button:hover {
	filter: brightness(1.06);
	box-shadow:
		0 16px 30px rgba(18, 70, 145, 0.34),
		inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
	transform: translateY(-2px);
}

body.page-store .ec-store .product-details-module {
	margin-top: 1.25rem !important;
	padding-top: 1.25rem !important;
	border-top: 1px solid rgba(148, 180, 219, 0.42);
}

body.page-store .ec-store .product-details__product-description,
body.page-store .ec-store .product-details-module__content {
	color: #455b7c !important;
	font-size: 0.98rem !important;
	line-height: 1.72 !important;
}

body.page-store .ec-store .product-details__related-products {
	margin-top: clamp(2.5rem, 6vw, 4.5rem) !important;
	padding-top: clamp(1.5rem, 3vw, 2.25rem) !important;
	border-top: 1px solid rgba(148, 180, 219, 0.48);
}

body.page-store .ec-store .product-details__related-products-title {
	margin-bottom: 1.25rem !important;
	color: #102347 !important;
	font-size: clamp(1.35rem, 2.2vw, 1.75rem) !important;
	font-weight: 800 !important;
	letter-spacing: -0.025em;
}

@media (max-width: 900px) {
	.hex-store-intro {
		grid-template-columns: 1fr;
		align-items: start;
	}

	body.page-store .ec-store .grid__products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	body.page-store .ec-store .product-details__sidebar {
		margin-top: 1rem;
	}
}

@media (max-width: 560px) {
	body.page-store .hex-page__content {
		padding-top: 1.5rem;
	}

	.hex-store-intro,
	body.page-store .ecwid {
		width: min(100% - 1rem, 1200px) !important;
	}

	body.page-store .ec-store {
		padding: 0.75rem !important;
		border-radius: 1.15rem;
	}

	body.page-store .ec-store .grid__products {
		grid-template-columns: 1fr !important;
	}
}
