/* Update PRODUCT PAGE */
.product-collection-navigation,
.tile-calculator-container {
	background-color: #ECEAE4;
	color: #122C58;
	border-radius: 6px;
	padding: 10px 15px;
}

.product-collection-navigation h3,
.tile-calculator-container h3 {
	
	font-size: 16px;
	margin: 0;
	font-weight: 200;
	color: #122C58;
}

/* Pricing display for products */
.product-prices-from,
.product-prices-simple {
	display: flex;
	justify-content: center;
	font-weight: 100;
	font-size: 1.4rem;
	margin: 1rem 0 1.5rem 0;
}

.product-prices-from i {
	margin-right: 0.3rem;
}

/* Only show "from" pricing on configurable products */
.configurable-product .product-prices-from {
	display: flex;
}

.configurable-product .product-prices-simple {
	display: none;
}

/* Only show simple pricing on simple products */
.product-prices-from {
	display: none;
}

.product-prices-simple {
	display: flex;
}

/* Carousel container with arrows - ensure it respects parent width */
.collection-products-container {
	position: relative !important;
	width: 100% !important;
	max-width: 100% !important;
	display: flex !important;
	align-items: center !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
}

.product-collection-sizes-section {
	margin-top: 15px;
}

/* Scrollable product carousel - ensure proper width calculations */
.collection-products {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto !important;
	-webkit-overflow-scrolling: touch !important;
	scrollbar-width: none !important;
	gap: 5px !important;
	padding: 5px 0 !important;
	width: calc(100% - 70px) !important;
	max-width: calc(100% - 70px) !important;
	flex: 1 !important;
	-ms-overflow-style: none !important;
	scrollbar-width: none !important;
	box-sizing: border-box !important;
	scroll-behavior: smooth !important;
	margin: 0 auto !important;
	align-items: center !important;
	transition: width 0.3s ease, margin 0.3s ease !important;
}

/* Hide scrollbar while maintaining functionality */
.collection-products::-webkit-scrollbar {
	display: none;
}

.collection-products.active {
	cursor: grabbing;
	cursor: -webkit-grabbing;
}

/* Product items in carousel */
.collection-product-item {
	flex: 0 0 auto;
	width: 70px;
	text-align: center;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.thumbnail-wrapper {
	display: flex;
	justify-content: center;
	width: 100%;
}

.collection-product-image {
	width: 70px;
	height: 70px;
	object-fit: cover;
	object-position: center;
	border: 2px solid #fff;
	border-radius: 6px;
	transition: border-color 0.3s;
	margin: 0 auto; /* Ensure horizontal centering */
}

.collection-product-item a:hover .collection-product-image {
	border-color: #ff5501;
}

.collection-product-color-name {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	color: #636363;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Color item styles */
.color-item {
	transition: transform 0.2s;
}

.color-item:not(.current-product):hover {
	transform: translateY(-3px);
}

/* Current product highlighting */
.collection-product-item.current-product {
	z-index: 1;
	width: 70px;
	height: 70px;
}

.collection-product-item.current-product .product-item-wrapper,
.collection-product-item.current-product a {
	position: relative;
	padding: 3px;
	background-color: #f8f8f8;
	border: 2px solid #ff5501;
	border-radius: 5px;
	display: block;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}

.collection-product-item.current-product .collection-product-image {
	border: none;
	width: 100%;
	height: 100%;
}

.collection-product-item.current-product .collection-product-color-name {
	font-weight: bold;
	color: #ff5501;
}

/* Navigation arrows - fix sizing and spacing */
.collection-nav-arrow {
	position: relative;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	flex: 0 0 40px !important;
	background: #0B1215;
	border-radius: 6px;
	border: 1px solid #0B1215;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer;
	z-index: 2;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	transition: all 0.2s ease;
	margin: 0 5px !important;
	padding: 0 !important;
}

/* Custom scrollbar for color slider */
.color-scrollbar-container {
	position: relative;
	height: 15px;
	width: calc(100% - 80px);
	margin: 5px auto 0;
	background: transparent;
	cursor: pointer;
	padding: 5px 0;
	transition: width 0.3s ease;
}

.color-scrollbar-track {
	position: absolute;
	left: 0;
	top: 5px;  /* Centered in container */
	width: 100%;
	height: 5px;
	background-color: #ffffff;
	border-radius: 2.5px;
}

.color-scrollbar-thumb {
	position: absolute;
	left: 0;
	top: 5px;  /* Centered in container */
	height: 5px;
	background-color: #DB804A;
	border-radius: 2.5px;
	transition: width 0.1s ease, left 0.1s ease;
}

.collection-nav-arrow svg {
  color: white;
}

.collection-nav-arrow.prev {
	order: 0;
}

.collection-nav-arrow.next {
	order: 2;
}

.collection-nav-arrow:hover {
	background: #DB804A;
	border-color: #DB804A;
}

.collection-nav-arrow.disabled {
	opacity: 0.3;
	cursor: default;
	pointer-events: none;
}

/* Color options section */
.color-options .collection-product-item {
	cursor: pointer;
}

/* Size title heading to match colors heading */
.size-title {
	margin-bottom: 10px;
}

/* Size selection button */
.product-collection-navigation .collection-size-selector {
	display: block;
	margin: 0;
	width: 100% !important;
	max-width: 100% !important;
	overflow: hidden;
}

.product-collection-navigation .collection-size-selector button.action.primary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 0;
	background-color: #ffffff;
	border: 1px solid #002C5A;
	border-radius: 6px;
	color: #333333;
	font-weight: 400;
	box-shadow: none;
	font-size: 14px;
	position: relative;
	overflow: hidden;
}

/* Text part of button */
.product-collection-navigation .collection-size-selector button.action.primary span {
	padding: 10px 15px;
	text-align: left;
	font-weight: normal;
	display: inline-block;
	width: calc(100% - 50px);
	box-sizing: border-box;
}

/* Bold part of text */
.product-collection-navigation .collection-size-selector button.action.primary span .size-count {
	font-weight: bold;
}

/* Arrow part of button */
.product-collection-navigation .collection-size-selector button.action.primary:after {
	content: ">";
	position: absolute;
	right: 0;
	top: 0;
	width: 50px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #DB804A;
	color: #ffffff;
	font-weight: bold;
	font-size: 18px;
	transition: all 0.2s ease;
}

/* Hover state */
.product-collection-navigation .collection-size-selector button.action.primary:hover,
.product-collection-navigation .collection-size-selector button.action.primary:focus {
	border-color: #002C5A;
}

/* Arrow hover state */
.product-collection-navigation .collection-size-selector button.action.primary:hover:after,
.product-collection-navigation .collection-size-selector button.action.primary:focus:after {
	background-color: #002C5A;
	color: #ffffff;
}

/* Active state */
.product-collection-navigation .collection-size-selector button.action.primary.active {
	background-color: #ffffff;
	border-color: #002C5A;
	color: #333333;
}

/* Sizes table styles */
.collection-sizes-table-container {
	width: 100% !important;
	max-width: 100% !important;
	margin-bottom: 20px;
	overflow-x: auto;
}

.collection-sizes-table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 14px;
}

.collection-sizes-table th {
	background-color: #f5f5f5;
	border: 1px solid #e1e1e1;
	padding: 10px;
	text-align: left;
	font-weight: 600;
}

.collection-sizes-table td {
	border: 1px solid #e1e1e1;
	padding: 10px;
	text-align: left;
}

.collection-sizes-table tr.size-row {
	cursor: pointer;
	transition: background-color 0.2s;
}

.collection-sizes-table tr.size-row:hover {
	background-color: #f8f8f8;
}

.collection-sizes-table tr.size-row.current-product {
	background-color: #fff8f5;
	border-left: 3px solid #ff5501;
}

.collection-sizes-table tr.current-product td {
	font-weight: 600;
	color: #ff5501;
}

.collection-sizes-table .size-cell {
	font-weight: 500;
}

.collection-sizes-table .price-cell,
.collection-sizes-table .price-m2-cell {
	text-align: right;
}

.collection-sizes-table .size-link {
	display: block;
	color: inherit;
	text-decoration: none;
	padding: 4px 0;
	width: 100%;
}

/* Thumbnail badge styling */
.thumbnail-wrapper {
}

.size-count-badge {
	position: absolute;
	bottom: 5px;
	left: 0;
	right: 0;
	color: #FFFFFF;
	font-size: 12px !important;
	font-weight: 200;
	text-align: center;
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
	text-shadow: rgba(0,0,0,0.5) 1px 1px 3px;
}

/* Responsive styles for smaller screens */
@media screen and (max-width: 767px) {
	.collection-products {
		gap: 10px !important;
	}
	
	.collection-product-item {
		width: 70px;
	}
	
	.collection-product-image {
		width: 70px;
		height: 70px;
	}
	
	.collection-sizes-table th,
	.collection-sizes-table td {
		padding: 8px 5px;
		font-size: 12px;
	}
	
	.collection-nav-arrow {
		width: 35px !important;
		height: 35px !important;
		min-width: 35px !important;
		flex: 0 0 35px !important;
	}
}

/* Hide specific elements on configurable products */
.configurable-product .product-info-price,
.configurable-product .product-add-form,
.configurable-product .product-social-links {
	display: none !important;
}