:root {
	--bp-sm: 576px;
	--bp-md: 768px;
	--bp-lg: 1024px;
	--bp-xl: 1280px;
	--bp-xxl: 1536px;
}

html {
	font-size: 24px;
}

body {
	min-height: 100vh;
	margin: 0;
	color: #4a4a4a;
	font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
	line-height: 1.5;
}

header {
	width: 100%;
}

footer {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

figure {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.logo-nav {
	max-height: 5rem;
}

.nav-links {
	font-size: 2.0rem;
}

nav,
nav ul {
	flex-direction: column;
}

nav li {
	--pico-nav-element-spacing-horizontal: 1rem;
}

@media (min-width: 576px) {

	nav,
	nav ul {
		flex-direction: row;
	}
}

.column {
	display: block;
	flex-basis: 0;
	flex-grow: 1;
	flex-shrink: 1;
}

@media (min-width: 768px) {
	.columns {
		display: flex;
	}

	.column.narrow {
		flex: none;
	}
}

.media-upload-container {
	margin: 20px 0;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 5px;
}

.media-upload-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.upload-area {
	border: 2px dashed #ccc;
	border-radius: 5px;
	padding: 30px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s;
}

.upload-area:hover {
	border-color: #999;
}

/* Add the highlight class for drag-over state */
.upload-area.highlight {
	border-color: #666;
	background-color: #f8f9fa;
}

.upload-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.upload-label i {
	font-size: 24px;
	color: #666;
}

.upload-label p {
	margin: 0;
	color: #666;
}

.media-upload-form.dragover {
	background-color: #f8f9fa;
}

.media-preview-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 15px;
	margin-top: 20px;
}

/* New styles for file previews */
.input-file-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 15px;
}

.file-preview {
	width: 120px;
	text-align: center;
}

.preview-image {
	width: 120px;
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f8f9fa;
	border-radius: 5px;
	overflow: hidden;
	margin-bottom: 8px;
	border: 1px solid #eee;
}

.preview-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.file-name {
	display: block;
	font-size: 13px;
	word-break: break-word;
	color: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.file-preview {
		width: 100px;
	}

	.preview-image {
		width: 100px;
		height: 100px;
	}
}

/* Add these new styles for reordering functionality */
.file-preview {
	position: relative;
	transition: transform 0.2s;
}

.file-preview.dragging {
	opacity: 0.5;
	transform: scale(0.95);
}

.file-preview.drag-over {
	border: 2px dashed #4a90e2;
	background-color: #f0f7ff;
}

.remove-file {
	position: absolute;
	top: 5px;
	right: 5px;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	opacity: 0;
	transition: opacity 0.2s;
}

.file-preview:hover .remove-file {
	opacity: 1;
}

.remove-file:hover {
	background: rgba(255, 0, 0, 0.8);
}

.remove-file i {
	font-size: 12px;
}

.product-main {
	display: flex;
	gap: 40px;
	margin-bottom: 40px;
}

/* Breadcrumb */
.breadcrumbs {
	margin-bottom: 20px;
	/* color: #666; */
	font-size: 0.9rem;
	max-width: 10rem;
}

.breadcrumbs a {
	/* color: #666; */
	text-decoration: none;
}

.breadcrumb-arrow {
	color: #bcbcbc;
}

/* Gallery */
.product-gallery {
	flex: 1;
	max-width: 500px;
}

.main-image {
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 15px;
}

.product-image {
	width: 100%;
	height: auto;
	display: block;
}

.thumbnail-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.thumbnail {
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
}

.thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}

.product-info {
	flex: 1;
}

.product-subtitle {
	color: #666;
	font-size: 1rem;
	font-weight: normal;
	margin-top: 5px;
}

.price-section {
	margin: 0 0 20px 0;
	font-size: 1.5rem;
	color: #e53935;
	font-weight: bold;
}

.price-range {
	display: flex;
	align-items: center;
	gap: 10px;
}

.product-grid {
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
	/* padding: 2rem 0; */
}

.product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.2s ease;
}

.product-card:hover {
	transform: translateY(-5px);
}

.product-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.product-image {
	background: var(--card-background-color);
	border-radius: var(--border-radius);
	overflow: hidden;
	aspect-ratio: 1/1;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
}

.product-details {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 0 0.5rem;
}

.product-title {
	margin-bottom: 0.25rem;
	font-size: 1.1rem;
	line-height: 1.4;
}

.product-subtitle {
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
	color: var(--secondary);
}

.product-price {
	margin-top: auto;
	font-weight: bold;
	color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.product-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	}
}

@media (max-width: 480px) {
	.product-grid {
		grid-template-columns: 1fr;
	}
}

.variation-options {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.variation-btn {
	padding: 8px 15px;
	border: 1px solid #ddd;
	background: #f5f5f5;
	border-radius: 4px;
	color: black;
	cursor: pointer;
}

.variation-btn:hover {
	border-color: #999;
}

/* Add to cart */
.add-to-cart {
	background: #ff5722;
	color: white;
	border: none;
	padding: 12px 30px;
	font-size: 1.1rem;
	border-radius: 4px;
	cursor: pointer;
	margin-top: 20px;
	width: 100%;
}

.add-to-cart:hover {
	background: #e64a19;
}

/* Tabs */
.tabs {
	display: flex;
	border-bottom: 1px solid #ddd;
	margin-bottom: 20px;
}

.tab-btn {
	padding: 10px 20px;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	cursor: pointer;
	font-size: 1rem;
}

.tab-btn.active {
	border-bottom-color: #ff5722;
	color: #ff5722;
	font-weight: bold;
}

.tab-content {
	display: none;
}

.tab-content.active {
	display: block;
}

/* Responsive */
@media (max-width: 768px) {
	.product-main {
		flex-direction: column;
	}

	.product-gallery {
		max-width: 100%;
	}
}

.height-100vh {
	height: calc(100vh - 2 * var(--pico-block-spacing-vertical));
}

.transcript-log {
	font-family: monospace;
}

.scroll-container {
	min-height: 0;
	overflow: auto;
}

.input-borders {
	--pico-background-color: var(--pico-form-element-background-color);
	--pico-border-color: var(--pico-form-element-border-color);
	--pico-color: var(--pico-form-element-color);
	--pico-box-shadow: none;

	/* background-color: var(--pico-background-color); */
	border: var(--pico-border-width) solid var(--pico-border-color);
	border-radius: var(--pico-border-radius);
	outline: 0;
	box-shadow: var(--pico-box-shadow);
}

.container-narrow {
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	padding-right: var(--pico-spacing);
	padding-left: var(--pico-spacing);
}

.justify-content-center {
	justify-content: center !important;
}

.justify-content-start {
	justify-content: start !important;
}

.justify-content-space-between {
	justify-content: space-between !important;
}

.flex {
	display: flex;
}

.flex-basis-0 {
	flex-basis: 0;
}

.flex-none {
	flex: none;
}

.flex-1 {
	flex: 1;
}

.flex-wrap {
	flex-wrap: wrap;
}

.flex-col {
	flex-direction: column;
}

.flex-col-reverse {
	flex-direction: column-reverse;
}

.flex-row {
	flex-direction: row;
}

.flex-row-reverse {
	flex-direction: row-reverse;
}

.flex-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
}

.align-items-end {
	align-items: end;
}

.align-items-baseline {
	align-items: baseline;
}

.justify-space-between {
	justify-content: space-between;
}

.flex-grid .card {
	flex: 1 1 100%;
	max-width: 100%;
	padding: 0;
	border-radius: 8px;
}

@media (min-width: 768px) {
	.flex-grid .card {
		flex: 1 1 calc(50% - 1rem);
		max-width: calc(50% - 1rem);
	}
}

@media (min-width: 1024px) {
	.flex-grid .card {
		flex: 1 1 calc(33.333% - 1rem);
		max-width: calc(33.333% - 1rem);
	}
}

.border-radius-8 {
	border-radius: 8px;
}

/* https://css-irl.info/aspect-ratio-is-great/ */
@supports (aspect-ratio: 1/1) {
	.aspect-16x9 {
		width: 100%;
		aspect-ratio: 16 / 9;
		position: relative;
	}

	.aspect-16x9 img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
}

@supports not (aspect-ratio: 1/1) {
	.aspect-16x9 {
		position: relative;
		width: 100%;
		padding-top: 56.25%;
	}

	.aspect-16x9 img {
		height: 100%;
		width: 100%;
		bottom: 0;
		top: 0;
		left: 0;
		right: 0;
		position: absolute;
	}
}

.mt-auto {
	margin-top: auto !important;
}

.maxw-50 {
	max-width: 50px;
}

.maxw-100 {
	max-width: 100px;
}

.maxw-600 {
	max-width: 600px;
}

.maxw-1000 {
	max-width: 1000px;
}

.mx-auto {
	margin-inline: auto
}

.mxnp-0-1 {
	margin-left: -0.1rem !important;
	margin-right: -0.1rem !important;
}

.mxnp-0-1>* {
	margin-left: 0.1rem !important;
	margin-right: 0.1rem !important;
}

.mxnp-0-25 {
	margin-left: -0.25rem !important;
	margin-right: -0.25rem !important;
}

.mxnp-0-25>* {
	margin-left: 0.25rem !important;
	margin-right: 0.25rem !important;
}

.mxnp-0-75 {
	margin-left: -0.75rem !important;
	margin-right: -0.75rem !important;
}

.mxnp-0-75>* {
	margin-left: 0.75rem !important;
	margin-right: 0.75rem !important;
}

.mxb-except-last-0-5>* {
	margin-bottom: 0.5rem;
}

.mxb-except-last-0-5:last-child {
	margin-bottom: -0.5rem;
}

.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.text-left {
	text-align: left;
}

.mb-0 {
	margin-bottom: 0 !important;
}

.pb-0 {
	padding-bottom: 0 !important;
}

.small-font {
	font-size: 1rem;
}

input.small {
	--pico-form-element-spacing-vertical: 0.25rem;
	--pico-form-element-spacing-horizontal: 0.5rem;
	--pico-form-element-height: 1.75rem;
	--pico-line-height: 1.15;
	width: 4rem;
	/* --font-size: 0.875rem; */
}

.number-stepper {
	background-color: none;
	border: none;
}

.number-stepper form {
	margin: 0;
}

button.stepper {
	width: 2rem;
	background: #f0f0f0;
	border: 1px solid #ddd;
	cursor: pointer;
	padding: 0;
}

button.stepper:hover {
	background: #e9e9e9;
}

button.stepper.stepper-minus:hover {
	background-color: #fff0f0;
}

button.stepper.stepper-plus:hover {
	background-color: #f0fff0;
}

.stepper-value {
	width: 1.5rem;
	text-align: center;
	margin: 0 5px;
}

.mt-1 {
	margin-top: 1rem;
}

.mr-1 {
	margin-right: 1rem;
}

.mr-2 {
	margin-right: 2rem;
}

.pr-1 {
	padding-right: 1rem;
}

.mx-1 {
	margin-left: 1rem;
	margin-right: 1rem;
}

.px-1 {
	padding-left: 1rem;
	padding-right: 1rem;
}

.px-2 {
	padding-left: 2rem;
	padding-right: 2rem;
}

.mb-1 {
	margin-bottom: 1rem;
}

.mb-2 {
	margin-bottom: 2rem;
}

.mb-3 {
	margin-bottom: 3rem;
}

.py-3 {
	padding-top: 3rem;
	padding-bottom: 3rem;
}

.my-3 {
	margin-top: 3rem;
	margin-bottom: 3rem;
}

hr.divider {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.preamble {
	text-align: center;
	margin-bottom: 2rem;
}

.subtitle {
	font-size: 1.25rem;
}

.display-none {
	display: none;
}

.card {
	display: flex;
	flex-direction: column;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	background: var(--background-color);
}

.card-content {
	padding: 1rem;
}

.card h3 {
	margin-bottom: 0.5rem;
}

.card a {
	text-decoration: none;
}

.dropdown-combo {
	position: relative;
	display: inline-block;
	width: 100%;
}

.dropdown-options {
	background-color: white;
	position: absolute;
	width: 100%;
	overflow-y: auto;
	margin-top: 0.25rem;
	border-radius: 0.25rem;
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
	opacity: 0;
	/* this one makes options unclicable for whatever reason */
	/* pointer-events: none; */
	transition: max-height 0.2s ease, opacity 0.2s ease;
	z-index: 100;
}

.dropdown-combo:focus-within .dropdown-options,
.dropdown-options.show {
	max-height: 500px;
	opacity: 1;
	pointer-events: auto;
}

.dropdown-option {
	display: block;
	width: 100%;
	padding: 0.5rem 1rem;
	text-align: left;
	background: none;
	border: none;
	cursor: pointer;
}

.dropdown-option:last-child {
	border-bottom: none;
}

.dropdown-option:hover,
.dropdown-option:focus {
	background-color: #efefef;
}
