.swiper__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.swiper__thumb {
	aspect-ratio: 1 / 1;
	display: flex;
	overflow: hidden;
}

.swiper__thumb .swiper__image,
.swiper__thumb-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: var(--color-bg-primary);
}

.mySwiper { 
	margin-top: 16px;
}

.mySwiper:not(.swiper-initialized) .swiper-slide {
	max-height: 87px;
	max-width: 87px;
}

.mySwiper2 {
	aspect-ratio: 1;
}

.block--product-image {
    position: relative;
	padding: 0;
	background: unset;
}

.block--product-image .swiper-wrapper {
	height: 100%;
}

.product__name {
	font-size: 2rem;
	line-height: 1.3;
	margin-bottom: 10px;
	font-weight: 600;
}

.product__code {
	display: inline;
	color: var(--color-text-teritary);
	font-size: 0.825rem;
	margin-right: 1rem;
}

.product__code span {
	font-weight: 600;
}

.product__description {
	font-size: 1rem;
    margin-top: 30px;
    line-height: 1.56;
}

.product__price {
	margin: 30px 0;
	align-items: center;
	font-size: 0.9rem;
}

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

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

.product__delivery table {
    max-width: 350px;
}

/* Base table style – same as the old matrix grid table */
.product__stock {
    overflow-x: auto;
    width: 100%; /* Ensure the container is full width */
}

.product__stock table {
    /* width: 100%; */
    max-width: none;
    border-collapse: collapse;
    /* table-layout: fixed; */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #555;
    margin-top: 10px;
}

/* Optional section title */
.option-heading {
    font-weight: 600;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin-bottom: 5px;
}

/* Cells (header + body) – padding + row lines */
.product__stock table th,
.product__stock table td {
    padding: 12px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

/* Header row – identical to old .availability--grid thead th */
.product__stock table thead th {
    background-color: #fafafa;
	white-space: nowrap;
    font-weight: 500;
    color: #333;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
	white-space: nowrap;
}

/* First column (warehouse name / “Size”) */
.product__stock table .matrix-corner,
.product__stock table td:first-child {
    text-align: left;
    width: 160px;
    white-space: nowrap;
    font-weight: 500;
    color: #333;
}

/* --- DOT INDICATOR STYLING – SAME FOR GRID + DEFAULT TABLE --- */

/* Reset the span that holds the stock status INSIDE the stock table */
.product__stock table .product__stock-qty,
.product__stock table .product__stock-qty-grid {
    display: block;
    height: 12px;
    width: 100%;
    min-width: 0;
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    text-indent: -9999px;   /* hide "In Stock"/"Out of Stock" text but keep it in DOM */
    overflow: hidden;
}

/* In-stock dot */
.product__stock table .product__stock-qty.in-stock::before,
.product__stock table .product__stock-qty-grid.in-stock::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: #28a745;
    border-radius: 50%;
    margin: 1px auto 0;
}

/* Out-of-stock dot */
.product__stock table .product__stock-qty.out-of-stock::before,
.product__stock table .product__stock-qty-grid.out-of-stock::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: #e3ca10;
    border-radius: 50%;
    margin: 1px auto 0;
}

/* NUMERIC VALUE INDICATOR (unchanged) */
.qty-number {
    font-weight: 600;
    font-size: 14px;
    display: block;
    text-align: center;
}

.qty-ok {
    color: #28a745;
}

.qty-zero {
    color: #dc3545;
}

.product_price-rr {
	display: flex;
    align-items: center;
    gap: 5px;
}

.product_price-rr[data-key="priceListPrice"],
.product_price-rr[data-key="priceListPriceWithVat"],
.product_price-rr[data-key="priceWithVat"] {
	font-size: 2rem;
	margin-right: 10px;
	display: inline;
}

.product_price-rr[data-key="priceWithVat"],
.product_price-rr[data-key="priceListPriceWithVat"] {
	display: inline;
}

.product_price-rr[data-key="priceListPrice"]:not(.hidden) ~ .product_price-rr[data-key="priceWithVat"],
.product_price-rr[data-key="priceListPriceWithVat"]:not(.hidden) ~ .product_price-rr[data-key="priceWithVat"] {
	font-size: 1.75rem;
	color: var(--color-text-teritary);
	text-decoration: line-through;
}

.product__price__novat {
	font-size: 13px;
	margin-top: 10px;
	color: var(--color-text-teritary);
}

.product__price__novat .product_price-rr[data-key="priceListPrice"],
.product__price__novat .product_price-rr[data-key="price"] {
	font-size: 13px;
	color: var(--color-text-teritary);
	display: inline;
}

.product__price__novat .product_price-rr[data-key="priceListPrice"]:not(.hidden) ~ .product_price-rr[data-key="price"] {
	text-decoration: line-through;
}

.product_price-wholesale {
	font-size: .9rem;
}

.option-wrap {
	margin-bottom: 10px;
}

.option-wrap .option {
    padding: 15px 0;
}

.option-wrap > div {
	display: flex;
    flex-direction: column;
}

.product__actions {
	display: flex;
	gap: 16px;
	margin-top: 40px;
    padding-bottom: 40px;
}

.product__actions:has(.product__unit-container) {
	flex-flow: column;
	align-items: center;
	gap: 5px;
}

.product__count {
	display: flex;
	width: 100%;
	height: 40px;
	border: 2px solid var(--color-border-input);
	border-radius: 10px;
	max-width: 123px;
}

.product__count-button {
	width: 50%;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product__count-input {
	text-align: center;
	font-size: 1rem;
	font-weight: 600;
}

.product__button {
	font-size: 1rem;
	width: 100%;
	max-width: 254px;
}

.product__request_quote_button {
	width:30%;
	margin-left: auto;
}

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

.swiper-slide-thumb-active {
	border: 2px solid var(--color-text-active);
}

.product-files {
	padding: 20px;
	max-width: 600px;
	text-align: left;
}

.product-files .content {
	list-style: none;
	padding: 0;
	margin: 0;
}

.product-files .content li {
	padding: 10px;
	margin-bottom: 10px;
	background-color: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 5px;
}

.product-files .content li p {
	margin: 0 0 5px 0;
}

.product-files .content li .file-name {
	font-weight: bold;
}

.product-files .content li .file-description {
	color: #666;
	font-size: 14px;
}

.product-files .content li a {
	color: #1a73e8;
	text-decoration: none;
	font-size: 14px;
}

.product-files .content li a:hover {
	color: #0056b3;
}

.archived-status {
    color: var(--color-text-error);
    font-size: .825rem;
    font-weight: bold;
    margin: 10px 0;
    display: block;
}

.unit-container { 
	display: flex;
	flex-direction: column;
}

.product__unit-container {
	width: 100%;
	display: flex;
	gap: 10px;
	align-items: stretch;
}


.product__unit-container .product__unit-select{ 
	width: 100%;
}

.product__unit-container .product__unit-select select {
	width: 100%;
	height: 100%;
}

.product__actions:has(.product__unit-container) .product__unit-button {
	min-height: 40px;
	max-width: 100%;
}


.block--product-tabs {
	margin: 0 0 60px;
    grid-column: span 2;
}

@media(min-width:480px) {
	.product__unit-container {
		width: 50%;
	}
	.product__actions:has(.product__unit-container) {
		flex-flow: row nowrap;
		align-items: flex-end;
	}

	.product__actions:has(.product__unit-container) .product__unit-button {
		max-width: 50%;
	}
}

@media(min-width:992px) {
	.block--product-image .swiper {
		max-width: 500px;
	}

	.blocks--product {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
		grid-auto-rows: auto;
		gap: 18px;
		row-gap: 80px;
		max-width: 1400px;
        margin: auto;
	}

	.block--product-image,
	.block--product-info {
		grid-column: span 1;
	}

	.block:nth-child(n+3) {
		grid-column: span 2;
	}

	.product__count {
		height: 50px;
	}

	.product__unit-container {
		display: grid;
		grid-template-columns: repeat(auto-fill, 120px);
		align-content: flex-start;
		justify-content: flex-start;
		align-items: center;
		gap: 10px;
		width: 50%;
	}

	.product__unit-container .product__count {
		order: 2;
	}

	.product__unit-container .product__unit-select select{ 
		width:100%;
		height: 50px;
	}

	.product__actions:has(.product__unit-container) .product__unit-button {
		min-height: 50px;
		width: 50%;
	}
}

@media(min-width: 1400px) {
	.product__unit-container {
		grid-template-columns: repeat(auto-fill, 140px);
		width: 70%;
	}

	.product__unit-container .product__count {
		order: revert;
	}

	.product__actions:has(.product__unit-container) .product__unit-button {
		width: 30%;
	}
}

.option-heading,
.option-wrap label {
	font-size: 1rem;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-weight: 600;
    width: 100%;
    white-space: nowrap;
}

/* .option-heading::after,
.option-wrap label::after {
    content: "";
    background: var(--color-product-heading-border);
    width: 100%;
    height: 1px;
} */

.option-wrap {
	display: flex;
    flex-direction: column;
}

.option {
	border-top: 2px solid #F6F6FE;
    padding: 30px 0;
}

.product-options input, 
.product-options select,
.product-options textarea,
.product__unit-select select {
	height: 50px;
    border-radius: 10px;
    border: 2px solid var(--color-border-input);
    max-width: 291px;
	font-size: 13px;
	width: 100%;
}

/* Custom options  */
input.co-field.co-field--color {
	display: none;
}

.co-swatch-color {
    width: 22px;
    height: 22px;
    border-radius: 25px;
}

input.co-field.co-field--radio {
    height: 18px;
    width: 18px;
    position: relative;
}

label.co-color-swatch,
label.co-radio {
    border-radius: 10px;
    border: 1.56px solid var(--color-border-input);
    height: 50px;
    display: flex;
    align-items: center;
	padding: 0 16px;
    gap: 6px;
	width: fit-content;
}

.co-swatch-group,
.co-input {
	display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

input.co-field.co-field--radio:checked::before {
    background: #4462ff;
    box-shadow: none;
}

input.co-field.co-field--color::before,
input.co-field.co-field--radio::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 25px;
    background: #d9d9d9;
    transition: background .15s, box-shadow .15s, transform .12s;
}

input.co-field.co-field--radio:checked::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

input.co-field.co-field--color::after,
input.co-field.co-field--radio::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 4px;
    height: 9px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg) scale(.8);
    opacity: 0;
    transition: opacity .12s, transform .12s;
}

input#customOpt_range_slider_percent {
	height: fit-content;
	width: 270px;
}

.co-input {
	position: relative;
}

span#customOpt_range_slider_percent_val {
    position: absolute;
    top: -35px;
    left: 250px;
}

#customOpt_date_picker {
	padding: 0 10px;
}

.co-color-swatch:has(input[type="radio"]:checked),
.co-radio:has(input[type="radio"]:checked) {
  border: 2px solid #353840; 
}

/* Switch (Yes/No) */
.co-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 1em;
	min-width: 60px;
	user-select: none;
}
.co-field--switch {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}
.co-switch-slider {
	display: inline-block;
	width: 46px;
	height: 26px;
	background: var(--color-table-border);
	border-radius: 13px;
	position: relative;
	transition: background 0.18s;
	border: 1.56px solid var(--color-border-input);
}
.co-field--switch:checked + .co-switch-slider {
	background: #EFEFF9;
}
.co-switch-slider::before {
	content: '';
	position: absolute;
	left: 2.5px;
	top: 2.5px;
	width: 20px;
	height: 20px;
	background: var(--color-bg-primary);
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(30,30,30,0.12);
	transition: left 0.19s, background 0.15s;
}
.co-field--switch:checked + .co-switch-slider::before {
	left: 21.5px;
	background: #4462ff;
}
.co-switch-label {
  /* display: flex; 
  gap: 3px;
  font-size: 0.97em;
  margin-left: 7px; */
  display: none;
}
.co-switch-no { color: #ccc; }
.co-switch-yes { color: var(--color-text-secondary); font-weight: 600; }
.co-field--switch:not(:checked) ~ .co-switch-label .co-switch-yes { color: #ccc; font-weight: 400; }
.co-field--switch:not(:checked) ~ .co-switch-label .co-switch-no { color: var(--color-text-secondary); font-weight: 600; }

.option textarea {
	min-height: 75px;
	max-width: 100%;
	padding: 5px 10px;
}

.option input[type="number"],
.option input[type="text"] {
	padding: 0 10px;
}

.matrix-stock-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
}
.matrix-stock-table th, .matrix-stock-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #f0f0f0;
    font-size: 0.9em;
}
.matrix-stock-table th {
    background-color: #f8f8f8;
}
.matrix-stock-table .matrix-warehouse {
    text-align: left;
    font-weight: bold;
    width: 35%;
}
.matrix-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9em;
    margin-top: 1rem;
}
.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e0e0e0; /* Default/Out of stock color */
}
.dot.in {
    background-color: #4CAF50; /* Green color for 'Available' */
}

.option--visual {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Grid layout for the visual options */
.visual-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

/* Individual clickable option item */
.visual-option {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.visual-option:hover {
  border-color: #a0a0a0;
}

.visual-option.active {
  border-color: #000;
  /* background-color: #f0f0f0; */
}

.visual-option__swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.visual-option__image {
  width: 80px;
  height: 80px;
object-fit: contain;
  border-radius: 4px;
}

.visual-option__name {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.product__price__taxExempt .product_price-rr[data-key="priceListPrice"]:not(.hidden) ~ .product_price-rr[data-key="price"] {
	font-size: 1.75rem;
    color: var(--color-text-teritary);
    text-decoration: line-through;
    display: inline;
}

.product__price__taxExempt .product_price-rr[data-key="priceListPrice"].hidden ~ .product_price-rr[data-key="price"] {
	font-size: 2rem;
}

.product__status-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 12px;
    margin-left: 12px;
    vertical-align: middle;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}

.product__status-label.useForStatus-in-stock {
    color: #21C25C;
    background: #EEFEF4;
}

.product__status-label.on-order {
    color: #E84241;
    background: #FEF2F2;
}

.stock-legend {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 6px 0 10px;
  font-size: 0.85rem;
  color: #555;
}

.stock-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Base dot for legend */
.stock-legend .product__stock-qty,
.stock-legend .product__stock-qty-grid {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  text-indent: 0;     /* override your table reset */
  overflow: visible;  /* override your table reset */
  margin: 0;
  padding: 0;
  background: transparent;
}

/* In-stock dot */
.stock-legend .product__stock-qty.in-stock,
.stock-legend .product__stock-qty-grid.in-stock {
  background-color: #28a745;
}

/* On-order dot (out-of-stock class) */
.stock-legend .product__stock-qty.out-of-stock,
.stock-legend .product__stock-qty-grid.out-of-stock {
  background-color: #e3ca10;
}

.stock-table-hint {
  margin: 6px 0 10px;
  font-size: 0.85rem;
  color: #555;
}

.product__stock-actions {
    display: flex;
    gap: 32px;
    align-items: flex-end;
}

.product__stock-notification form {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.product__stock-notification input {
    max-width: 250px;
}

.product__stock-notification input[readonly] {
    cursor: not-allowed;
    color: #b8b8b8;
}

.product__stock-notification {
    border-top: 2px solid #F6F6FE;
    padding: 30px 0;
}

.product__stock-notification p {
    font-weight: 500;
}

.input--stock {
    max-width: 50px !important;
}

.product__stock-actions > div {
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
}

.product__stock-actions .edit__items.items--wrapper {
    display: flex;
}

.product__stock-notification .button {
    font-size: 1rem;
    height: 50px;
}

.block--product-image .product__badges--image {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 50;

    display: flex;
    align-items: center;
    gap: 8px;

    /* don't block swiper */
    pointer-events: none;
}

.block--product-image .product__badges--image .product__badge {
    pointer-events: auto;
}

/* push discount to the far right */
.block--product-image .product__badges--image .product__badge--discount {
    margin-left: auto;
}

/* Base badge (shared) */
.product__badge {
    position: static;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    padding: 8px 10px;
    border-radius: 8px;

    white-space: nowrap;
}

/* NEW badge */
.product__badge--new {
    background: var(--color-button);
    color: var(--color-text-white);
    border: 1px solid rgba(29, 78, 216, 0.20);
}

.product__badge--new::after {
	content: "!";
}

/* DISCOUNT badge */
.product__badge--discount {
    background: #000;
    color: var(--color-text-white);
    border: 1px solid rgba(232, 66, 65, 0.25);
    font-weight: 800;
}

/* Optional: tighter on small screens */
@media (max-width: 479px) {
    .block--product-image .product__badges--image {
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .product__badge {
        font-size: 11px;
        padding: 5px 9px;
    }
}