/* ==========================================================================
   Mister Shelving — WooCommerce styles
   ========================================================================== */

/* ---------- Prices, labels, stock ---------- */
.price-list { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .7em; }
.price { font-weight: var(--text-font-bolder-weight); color: var(--heading-color); }
.price--highlight { color: var(--product-on-sale-accent); }
.price--compare {
	font-weight: 400; font-size: 14px;
	color: var(--text-color);
	text-decoration: line-through;
	text-decoration-color: rgba(var(--text-color-rgb), .7);
}
.price__currency { font-size: .9em; }
.woocommerce-Price-amount { white-space: nowrap; }

.product-label-list { display: flex; flex-wrap: wrap; gap: 6px; }
.product-label {
	display: inline-block; padding: 2px 8px;
	font-size: 12px; font-weight: var(--text-font-bolder-weight); line-height: 1.6;
	border-radius: 2px;
}
.product-label--on-sale { background: var(--product-on-sale-accent); color: var(--product-on-sale-color); }

.inventory { display: block; font-size: 13px; }
.inventory--high { color: var(--product-in-stock-color); }
.inventory--low { color: var(--product-low-stock-color); }
.inventory--sold-out { color: rgba(var(--text-color-rgb), .6); }

/* ---------- Product grid ---------- */
.product-list {
	position: relative;
	display: flex; flex-wrap: wrap;
	background: var(--secondary-background);
	border-radius: var(--radius);
	overflow: hidden;
}
.product-list::before {
	content: ""; position: absolute; inset: 0;
	border: 1px solid var(--border-color); border-radius: var(--radius);
	pointer-events: none; z-index: 1;
}
.product-list--collection { border-radius: 0 0 var(--radius) var(--radius); }
.product-list--collection::before { display: none; }

.product-item {
	position: relative;
	display: flex; flex-direction: column;
	width: 50%;
	padding: 20px;
	background: var(--secondary-background);
	box-shadow: 1px 0 var(--border-color), 0 1px var(--border-color);
}
@media (min-width: 641px) { .product-item { width: 33.3333%; } }
@media (min-width: 1280px) {
	.product-list--collection .product-item,
	.product-list--cols-4 .product-item { width: 25%; }
}
@media (min-width: 1000px) {
	.product-list--cols-3 .product-item { width: 33.3333%; }
	.product-list--cols-4 .product-item { width: 25%; }
}
.product-list--cols-2 .product-item { width: 50%; }
@media (max-width: 640px) { .product-item { padding: 14px; } }

.product-item .product-label-list { position: absolute; top: 15px; left: 15px; z-index: 2; }
.product-item__image-wrapper { display: block; margin-bottom: 20px; }
.product-item__image { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.product-item__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease, opacity .3s ease; }
.product-item:hover .product-item__image img { transform: scale(1.03); }
.product-item__info { display: flex; flex-direction: column; flex: 1 1 auto; }
.product-item__info-inner { flex: 1 1 auto; }
.product-item__title { display: block; font-weight: var(--text-font-bolder-weight); font-size: 14px; line-height: 1.5; margin-bottom: 12px; color: var(--heading-color); }
.product-item__title:hover { color: var(--accent-color); }
.product-item .price-list { margin-bottom: 6px; }
.product-item__action-list { display: none; gap: 10px; margin-top: 18px; }
.product-item .added_to_cart { display: none; }

/* List view */
.product-list.is-list-view .product-item { width: 100%; flex-direction: row; align-items: center; gap: 30px; padding: 20px 30px; }
.product-list.is-list-view .product-item__image-wrapper { width: 160px; flex: none; margin: 0; }
.product-list.is-list-view .product-item__info { flex-direction: row; align-items: center; gap: 30px; }
.product-list.is-list-view .product-item__action-list { display: flex; flex-direction: column; width: 200px; margin: 0; flex: none; }
.product-list.is-list-view .product-item__title { font-size: 16px; }
@media (max-width: 999px) {
	.product-list.is-list-view .product-item { gap: 18px; padding: 16px; }
	.product-list.is-list-view .product-item__image-wrapper { width: 110px; }
	.product-list.is-list-view .product-item__info { flex-direction: column; align-items: flex-start; gap: 10px; }
	.product-list.is-list-view .product-item__action-list { width: 100%; }
}

/* Horizontal product strip (related / recently viewed) */
.product-strip { margin: 40px 0; }
@media (max-width: 640px) { .product-strip { padding: 0 var(--mobile-container-gutter); } }
.product-list--scrollable { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.product-list--scrollable::before { display: none; }
.product-list--scrollable { border: 1px solid var(--border-color); }
.product-list--scrollable .product-item { flex: 0 0 62%; width: auto; scroll-snap-align: start; }
@media (min-width: 641px) { .product-list--scrollable .product-item { flex-basis: 36%; } }
@media (min-width: 1000px) { .product-list--scrollable .product-item { flex-basis: 25%; } }
@media (min-width: 1280px) { .product-list--scrollable .product-item { flex-basis: 20%; } }

/* ---------- Collection layout ---------- */
.layout { display: flex; gap: 30px; align-items: flex-start; }
.layout__section { flex: 1 1 auto; min-width: 0; }
.layout__section--secondary { flex: 0 0 250px; }
@media (min-width: 1280px) { .layout__section--secondary { flex-basis: 290px; } }
@media (max-width: 999px) {
	.layout { display: block; }
	.layout__section--secondary {
		position: fixed; top: 0; bottom: 0; right: 0; width: 88%; max-width: 380px;
		background: var(--secondary-background); z-index: 1000; overflow-y: auto;
		transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
	}
	.layout__section--secondary.is-open { transform: none; box-shadow: 0 0 30px rgba(0,0,0,.2); }
	.layout__section--secondary .card { border: 0; margin: 0; border-radius: 0; }
}
.collection__filters-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 25px; border-bottom: 1px solid var(--border-color); }
.collection__filters-header p { margin: 0; }
.collection__filters-header .icon { width: 20px; height: 20px; }

.collection { overflow: visible; }
.collection__header { padding-bottom: 4px; }
.collection__title { margin-bottom: 4px; }
.collection__products-count { color: rgba(var(--text-color-rgb), .7); margin: 0 0 6px; }
.term-description, .collection__header .page-description { margin-top: 12px; }

.collection__toolbar {
	position: sticky; top: var(--header-height); z-index: 5;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin-top: 20px; padding: 0 30px;
	background: var(--secondary-background);
	box-shadow: 0 1px var(--border-color), 0 -1px var(--border-color);
	font-size: 14px;
}
@media (max-width: 640px) { .collection__toolbar { padding: 0 var(--mobile-container-gutter); } }
.collection__toolbar-item { display: flex; align-items: center; gap: 14px; height: 58px; }
.collection__toolbar-item--filter { gap: 10px; font-weight: var(--text-font-bolder-weight); }
.collection__toolbar-item--filter .icon { width: 19px; height: 19px; }
.collection__toolbar-item--sort { margin-left: auto; }
.collection__layout-label { color: rgba(var(--text-color-rgb), .7); }
.collection__layout-button { color: rgba(var(--text-color-rgb), .35); display: inline-flex; padding: 4px; }
.collection__layout-button .icon { width: 18px; height: 18px; }
.collection__layout-button.is-selected { color: var(--text-color); }

.value-picker-wrapper { position: relative; }
.value-picker-button { display: inline-flex; align-items: center; gap: 8px; font-weight: var(--text-font-bolder-weight); }
.value-picker-button .icon { width: 10px; height: 7px; transition: transform .2s; }
.value-picker-button[aria-expanded="true"] .icon { transform: rotate(180deg); }
.value-picker {
	position: absolute; top: calc(100% + 12px); left: -20px; z-index: 20;
	min-width: 230px; padding: 10px 0;
	background: var(--secondary-background);
	border: 1px solid var(--border-color); border-radius: var(--radius);
	box-shadow: 0 2px 10px rgba(54, 54, 54, .15);
}
.value-picker--right { left: auto; right: -10px; }
.value-picker__title { display: none; }
.value-picker__choice-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 20px; white-space: nowrap; }
.value-picker__choice-item.is-selected { color: var(--accent-color); font-weight: var(--text-font-bolder-weight); }
.value-picker__choice-item .icon { width: 13px; height: 13px; }
@media (max-width: 640px) {
	.value-picker { position: fixed; left: 0; right: 0; bottom: 0; top: auto; border-radius: 10px 10px 0 0; padding: 18px 0 24px; }
	.value-picker__title { display: block; padding: 0 20px 10px; font-weight: var(--text-font-bolder-weight); border-bottom: 1px solid var(--border-color); margin-bottom: 8px; }
	.value-picker__choice-item { padding: 10px 20px; }
}

/* Filters */
.collection__filter-group { padding: 8px 0; }
.collection__filter-group + .collection__filter-group { border-top: 1px solid var(--border-color); }
.collection__filter-group-name { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-weight: var(--text-font-bolder-weight); text-align: left; }
.collection__filter-group-name .icon { width: 12px; height: 8px; transition: transform .25s ease-in-out; }
.collection__filter-group-name[aria-expanded="true"] .icon { transform: rotate(180deg); }
.collection__filter-collapsible { padding: 4px 0 12px; }
.collection__filter-linklist { list-style: none; margin: 0; padding: 0; }
.collection__filter-link { display: block; padding: 3px 0; }
.collection__filter-link.is-active { color: var(--accent-color); font-weight: var(--text-font-bolder-weight); }
.collection__filter-count { color: rgba(var(--text-color-rgb), .6); font-size: 13px; }

.price-range__range-group { position: relative; height: 24px; margin: 6px 8px 14px; }
.price-range__range-group::before,
.price-range__range-group::after {
	content: ""; position: absolute; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px;
}
.price-range__range-group::before { left: 0; right: 0; background: var(--border-color); }
.price-range__range-group::after { left: var(--range-min); right: calc(100% - var(--range-max)); background: var(--accent-color); }
.price-range .range {
	position: absolute; inset: 0; width: 100%; height: 24px; margin: 0;
	background: none; pointer-events: none; -webkit-appearance: none; appearance: none; z-index: 1;
	border: 0; padding: 0; min-height: 0;
}
.price-range .range::-webkit-slider-thumb {
	-webkit-appearance: none; pointer-events: auto; cursor: grab;
	width: 18px; height: 18px; border-radius: 50%;
	background: #fff; border: 2px solid var(--accent-color); box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.price-range .range::-moz-range-thumb {
	pointer-events: auto; cursor: grab;
	width: 14px; height: 14px; border-radius: 50%;
	background: #fff; border: 2px solid var(--accent-color);
}
.price-range .range::-moz-range-track { background: transparent; }
.price-range__input-group { display: flex; align-items: center; gap: 10px; }
.input-prefix { position: relative; flex: 1; display: flex; align-items: center; border: 1px solid var(--form-border-color); border-radius: 2px; background: #fff; padding-left: 12px; }
.input-prefix__value { color: rgba(var(--text-color-rgb), .7); font-size: 14px; }
.input-prefix__field { border: 0 !important; box-shadow: none !important; min-height: 40px; padding: 6px 8px; -moz-appearance: textfield; }
.input-prefix__field::-webkit-inner-spin-button, .input-prefix__field::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.color-swatch-list { display: flex; flex-direction: column; gap: 10px; }
.color-swatch { display: flex; align-items: center; gap: 12px; }
.color-swatch__item {
	width: 30px; height: 30px; border-radius: 50%; flex: none;
	box-shadow: 0 0 0 1px rgba(0,0,0,.12) inset;
	position: relative;
}
.color-swatch.is-active .color-swatch__item { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent-color); }
.color-swatch.is-active .color-swatch__label { color: var(--accent-color); font-weight: var(--text-font-bolder-weight); }

.collection__active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 14px; border-top: 1px solid var(--border-color); margin-top: 6px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; font-size: 13px; background: var(--accent-background); color: var(--accent-color); border-radius: 2px; }
.tag .icon { width: 9px; height: 9px; }
.tag-link { font-size: 13px; text-decoration: underline; }

/* ---------- Product page ---------- */
.product-block-list__wrapper { display: grid; gap: 0 30px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
	.product-block-list__wrapper { grid-template-columns: minmax(0, 1fr) 400px; }
	.product-block-list__item--info { grid-column: 2; grid-row: 1 / span 20; }
	.product-block-list__item:not(.product-block-list__item--info) { grid-column: 1; }
}
@media (min-width: 1280px) { .product-block-list__wrapper { grid-template-columns: minmax(0, 1fr) 460px; } }
@media (min-width: 1000px) {
	.card--sticky { position: sticky; top: calc(var(--header-height) + 20px); }
}

.woocommerce-product-gallery { position: relative; margin: 0; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img { width: 100%; height: auto; }
.woocommerce-product-gallery__image { text-align: center; }
.woocommerce-product-gallery .flex-viewport { margin-bottom: 15px; }
.woocommerce-product-gallery__trigger {
	position: absolute; top: 10px; right: 10px; z-index: 5;
	width: 40px; height: 40px; border-radius: 50%;
	background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15);
	display: flex; align-items: center; justify-content: center;
	font-size: 0;
}
.woocommerce-product-gallery__trigger::before {
	content: ""; width: 14px; height: 14px; border: 2px solid var(--text-color); border-radius: 50%;
	position: relative; top: -1px; left: -1px;
}
.woocommerce-product-gallery__trigger::after {
	content: ""; position: absolute; width: 7px; height: 2px; background: var(--text-color);
	transform: rotate(45deg); top: 24px; left: 22px;
}
.woocommerce-product-gallery .flex-control-thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.woocommerce-product-gallery .flex-control-thumbs li { width: calc((100% - 50px) / 6); cursor: pointer; }
@media (max-width: 640px) { .woocommerce-product-gallery .flex-control-thumbs li { width: calc((100% - 30px) / 4); } }
.woocommerce-product-gallery .flex-control-thumbs img {
	display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
	border: 1px solid var(--border-color); border-radius: 2px; opacity: .6; transition: opacity .2s, border-color .2s;
}
.woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; border-color: var(--accent-color); }
.woocommerce-product-gallery .flex-direction-nav { list-style: none; margin: 0; padding: 0; }
.woocommerce-product-gallery .flex-direction-nav a {
	position: absolute; top: 40%; z-index: 4;
	width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9);
	box-shadow: 0 1px 4px rgba(0,0,0,.15); font-size: 0; color: transparent;
}
.woocommerce-product-gallery .flex-direction-nav a::before {
	content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px;
	border: solid var(--text-color); border-width: 2px 2px 0 0;
}
.woocommerce-product-gallery .flex-direction-nav .flex-prev { left: 8px; }
.woocommerce-product-gallery .flex-direction-nav .flex-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.woocommerce-product-gallery .flex-direction-nav .flex-next { right: 8px; }
.woocommerce-product-gallery .flex-direction-nav .flex-next::before { transform: translate(-70%, -50%) rotate(45deg); }
.woocommerce-product-gallery .flex-direction-nav .flex-disabled { display: none; }

.product-meta__title { margin-bottom: 10px; }
.product-meta .product-label-list { margin-bottom: 10px; }
.product-meta__reference { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
.product-meta__sku { color: rgba(var(--text-color-rgb), .7); }
.product-meta__reviews-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.product-meta__share-buttons { margin-top: 14px; }
.product-meta__share-buttons.hidden-tablet-and-up { margin-top: 24px; display: flex; align-items: center; gap: 14px; }
.social-media__item-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
.social-media__item a { color: rgba(var(--text-color-rgb), .55); display: inline-flex; }
.social-media__item a:hover { color: var(--accent-color); }
.social-media__item .icon { width: 18px; height: 18px; }

.product-form__info-list { display: grid; grid-template-columns: max-content 1fr; gap: 16px 22px; align-items: center; margin-bottom: 16px; }
.product-form__info-item { display: contents; }
.product-form__info-title { font-weight: var(--text-font-bolder-weight); }
.product-form__info-content .price { font-size: 20px; }
.product-form__info-content .price--compare { font-size: 16px; }
.product-form .product-form__info-item--quantity { display: grid; grid-template-columns: max-content 1fr; gap: 22px; align-items: center; margin-bottom: 22px; }
.product-form .product-form__info-item--quantity .product-form__info-title { min-width: 62px; }
.product-form__buy-buttons { display: flex; flex-direction: column; gap: 10px; }
.product-form .stock { display: none; }

.quantity { display: inline-flex; align-items: stretch; border: 1px solid var(--form-border-color); border-radius: 2px; background: #fff; height: 40px; }
.quantity .qty {
	width: 44px; min-height: 0; height: 100%; text-align: center;
	border: 0 !important; box-shadow: none !important; padding: 0;
	-moz-appearance: textfield;
}
.quantity .qty::-webkit-inner-spin-button, .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quantity-selector__button { width: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-color); }
.quantity-selector__button .icon { width: 10px; height: 10px; }
.quantity-selector__button:hover { color: var(--accent-color); }

.dimension-gallery { display: grid; gap: 16px; }
.dimension-gallery img { width: 100%; height: auto; }
.product-block-list__item--content .rte ul { list-style: none; padding: 0; margin: 0; }
.product-block-list__item--content .rte li { padding: 8px 0; margin: 0; border-bottom: 1px solid var(--border-color); }
.product-block-list__item--content .rte li:last-child { border-bottom: 0; }

/* Reviews */
.woocommerce-Reviews-title { font-size: 20px; }
.star-rating { position: relative; display: inline-block; width: 5.4em; height: 1.1em; line-height: 1; font-size: 14px; overflow: hidden; vertical-align: middle; }
.star-rating::before { content: "★★★★★"; color: #e0dbd6; letter-spacing: .1em; position: absolute; top: 0; left: 0; }
.star-rating span { position: absolute; top: 0; left: 0; overflow: hidden; padding-top: 1.5em; }
.star-rating span::before { content: "★★★★★"; color: var(--product-review-star-color); letter-spacing: .1em; position: absolute; top: 0; left: 0; }
.woocommerce-Reviews .commentlist { list-style: none; padding: 0; margin: 0 0 20px; }
.woocommerce-Reviews .comment_container { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-color); }
.woocommerce-Reviews .avatar { border-radius: 50%; width: 48px; height: 48px; }
.woocommerce-Reviews .comment-text { flex: 1; }
.woocommerce-Reviews .meta { font-size: 13px; margin: 4px 0; }
.comment-form-rating .stars a { color: var(--product-review-star-color); font-size: 0; display: inline-block; width: 22px; height: 22px; position: relative; }
.comment-form-rating .stars a::before { content: "☆"; font-size: 20px; position: absolute; inset: 0; }
.comment-form-rating .stars.selected a.active::before, .comment-form-rating .stars:hover a::before, .comment-form-rating .stars.selected a:not(.active)::before { content: "★"; }
.comment-form-rating .stars a:hover ~ a::before, .comment-form-rating .stars.selected a.active ~ a::before { content: "☆"; }
.comment-form-rating select { display: none; }
.woocommerce-noreviews { color: rgba(var(--text-color-rgb), .7); }

/* Quick view */
.ms-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ms-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.ms-modal__content { position: relative; background: #fff; border-radius: var(--radius); max-width: 940px; width: 100%; max-height: 90vh; overflow: auto; padding: 30px; }
.ms-modal__close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; }
.ms-modal__close .icon { width: 18px; height: 18px; }
.quick-view { display: grid; gap: 30px; }
@media (min-width: 750px) { .quick-view { grid-template-columns: 1fr 1fr; align-items: start; } }
.quick-view__image img { width: 100%; height: auto; }
.quick-view .product-label-list { margin-bottom: 10px; }
.quick-view__details { display: inline-block; margin-top: 16px; font-size: 14px; }

/* ---------- Notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	list-style: none; margin: 0 0 20px; padding: 14px 20px;
	border-radius: var(--radius);
	background: var(--accent-background); color: var(--text-color);
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
}
.woocommerce-message { background: var(--success-background); color: #2e7d32; }
.woocommerce-error { background: var(--error-background); color: var(--error-color); flex-direction: column; align-items: flex-start; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; margin-left: auto; min-height: 38px; padding: 0 18px; font-size: 14px; background: var(--secondary-button-background); color: #fff; }
.woocommerce-info a:not(.button) { color: var(--accent-color); text-decoration: underline; }
.collection .woocommerce-message, .collection .woocommerce-info { margin: 20px 30px 0; }

/* ---------- Cart ---------- */
.container--shop-page { max-width: 1480px; }
.cart__header { display: flex; align-items: baseline; gap: 16px; }
.cart__count { color: rgba(var(--text-color-rgb), .7); margin: 0; }
.cart-wrapper__inner { display: grid; gap: 0 30px; }
@media (min-width: 1000px) { .cart-wrapper__inner { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
@media (min-width: 1280px) { .cart-wrapper__inner { grid-template-columns: minmax(0, 1fr) 400px; } }
.cart-collaterals .card { position: sticky; top: calc(var(--header-height) + 20px); }

.line-item-table { width: 100%; border-collapse: collapse; }
.line-item-table th { text-align: left; font-size: 13px; font-weight: var(--text-font-bolder-weight); text-transform: uppercase; letter-spacing: .03em; color: rgba(var(--text-color-rgb), .7); padding: 18px 20px; border-bottom: 1px solid var(--border-color); }
.line-item-table td { padding: 22px 20px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.line-item-table .product-subtotal, .line-item-table th.product-subtotal { text-align: right; }
.line-item-table .product-thumbnail { width: 120px; padding-right: 0; }
.line-item-table .product-thumbnail img { width: 100px; height: 100px; object-fit: contain; }
.line-item__title { display: block; margin-bottom: 4px; color: var(--heading-color); }
.line-item__sku { display: block; color: rgba(var(--text-color-rgb), .7); margin-bottom: 4px; }
.line-item__price-list { font-size: 14px; }
.line-item__quantity { white-space: nowrap; }
.line-item__remove-button { display: block; margin-top: 8px; font-size: 13px; text-decoration: underline; color: rgba(var(--text-color-rgb), .7); }
.line-item__line-price { font-weight: var(--text-font-bolder-weight); }
.line-item-table .actions { border-bottom: 0; }
.line-item-table .coupon { display: inline-flex; gap: 10px; max-width: 380px; width: 100%; }
.line-item-table .coupon .form__field { min-height: 44px; }
.line-item-table .coupon .button { min-height: 44px; }
.cart__update-button { float: right; min-height: 44px; }
.js .cart__update-button { display: none; }
@media (max-width: 640px) {
	.line-item-table thead { display: none; }
	.line-item-table tr.line-item { display: grid; grid-template-columns: 90px 1fr; gap: 0 16px; padding: 18px 16px; border-bottom: 1px solid var(--border-color); }
	.line-item-table tr.line-item td { padding: 0; border: 0; text-align: left; }
	.line-item-table tr.line-item td::before { display: none; }
	.line-item-table .product-thumbnail { grid-row: span 3; width: auto; }
	.line-item-table .product-thumbnail img { width: 90px; height: 90px; }
	.line-item-table .line-item__quantity { margin-top: 10px; }
	.line-item-table .line-item__line-price { margin-top: 8px; }
	.line-item-table tr.cart__actions-row, .line-item-table tr.cart__actions-row td { display: block; padding: 16px; }
	.cart__update-button { float: none; width: 100%; margin-top: 10px; }
}
.cart-totals-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.cart-totals-table th, .cart-totals-table td { padding: 6px 0; text-align: left; font-weight: 400; }
.cart-totals-table td { text-align: right; }
.cart-totals-table .order-total th, .cart-totals-table .order-total td { font-size: 18px; font-weight: var(--text-font-bolder-weight); color: var(--heading-color); padding-top: 14px; border-top: 1px solid var(--border-color); }
.cart__taxes { color: rgba(var(--text-color-rgb), .7); margin-bottom: 18px; }
.checkout-button .icon { width: 16px; height: 16px; }
.woocommerce-remove-coupon { font-size: 12px; margin-left: 6px; color: var(--accent-color); }

/* WooCommerce blockUI overlay */
.blockUI.blockOverlay { background: rgba(255,255,255,.6) !important; }

/* ---------- Checkout (Shopify-style) ---------- */
.ms-checkout { background: #fff; }
.checkout-header { border-bottom: 1px solid #e1e1e1; background: #fff; }
.checkout-header__inner { max-width: 1160px; margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; }
.checkout-header__logo img { max-width: 130px; height: auto; display: block; }
.checkout-header__logo { font-family: var(--heading-font-family); font-size: 20px; color: var(--heading-color); }
.checkout-header__cart { color: var(--accent-color); }
.checkout-header__cart .icon { width: 24px; height: 24px; }
.site-main--checkout { padding: 0; }

.ms-checkout-page { position: relative; }
.ms-checkout-page::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; right: 0; background: #f5f5f5; border-left: 1px solid #e1e1e1; z-index: 0; }
@media (max-width: 999px) { .ms-checkout-page::after { display: none; } }
.ms-checkout-page > .woocommerce { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; }
.ms-checkout-page .woocommerce-form-coupon-toggle,
.ms-checkout-page .woocommerce-form-login-toggle,
.ms-checkout-page .woocommerce-notices-wrapper,
.ms-checkout-page form.checkout_coupon,
.ms-checkout-page form.woocommerce-form-login { max-width: 580px; padding: 0 24px; margin: 20px 0 0; }
@media (min-width: 1000px) {
	.ms-checkout-page .woocommerce-form-coupon-toggle,
	.ms-checkout-page .woocommerce-form-login-toggle,
	.ms-checkout-page .woocommerce-notices-wrapper,
	.ms-checkout-page form.checkout_coupon,
	.ms-checkout-page form.woocommerce-form-login { padding: 0 38px 0 24px; }
}
.ms-checkout-page form.checkout_coupon { display: flex; gap: 10px; flex-wrap: wrap; }
.ms-checkout-page form.checkout_coupon p { margin: 0; }
.ms-checkout-page form.checkout_coupon .form-row-first { flex: 1; }

.ms-checkout-form { display: grid; }
@media (min-width: 1000px) { .ms-checkout-form { grid-template-columns: 1fr 1fr; } }
.ms-checkout-main { padding: 30px 24px 60px; max-width: 580px; width: 100%; }
@media (min-width: 1000px) { .ms-checkout-main { padding: 38px 38px 60px 24px; justify-self: end; } }
.ms-checkout-sidebar { background: #f5f5f5; border-bottom: 1px solid #e1e1e1; }
@media (max-width: 999px) { .ms-checkout-sidebar { order: -1; } }
@media (min-width: 1000px) { .ms-checkout-sidebar { background: transparent; border: 0; } }
.ms-checkout-sidebar__inner { padding: 0 24px; max-width: 580px; }
@media (min-width: 1000px) { .ms-checkout-sidebar__inner { position: sticky; top: 0; padding: 38px 24px 38px 38px; } }
.ms-checkout-summary-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; color: var(--accent-color); font-size: 14px; }
.ms-checkout-summary-toggle span { display: inline-flex; align-items: center; gap: 8px; }
.ms-checkout-summary-toggle .icon { width: 18px; height: 18px; }
.ms-checkout-summary-toggle .icon--chevron-down { width: 10px; height: 7px; }
.ms-checkout-summary-toggle__total { color: var(--heading-color); font-size: 18px; }
@media (max-width: 999px) {
	.ms-checkout-summary { display: none; padding-bottom: 20px; }
	.ms-checkout-summary.is-open { display: block; }
}

.ms-checkout-form h3, .checkout-section__title { font-size: 21px; font-weight: 600; margin: 28px 0 14px; color: #000; }
.ms-checkout-form .woocommerce-billing-fields > h3 { margin-top: 0; }
.ms-checkout-form .form-row { margin: 0 0 12px; }
.ms-checkout-form .woocommerce-billing-fields__field-wrapper,
.ms-checkout-form .woocommerce-shipping-fields__field-wrapper { display: flex; flex-wrap: wrap; gap: 0 12px; }
.ms-checkout-form .form-row-wide, .ms-checkout-form .ms-delivery-heading { width: 100%; }
.ms-checkout-form .form-row-first, .ms-checkout-form .form-row-last { width: calc(50% - 6px); }
@media (max-width: 480px) { .ms-checkout-form .form-row-first, .ms-checkout-form .form-row-last { width: 100%; } }
.ms-checkout-form .form-row label { display: block; font-size: 13px; color: #707070; margin-bottom: 4px; }
.ms-checkout-form .form-row label .required { color: #707070; text-decoration: none; border: 0; }
.ms-checkout-form .form-row label.screen-reader-text { position: absolute !important; }
.ms-checkout-form input.input-text, .ms-checkout-form select, .ms-checkout-form textarea, .ms-checkout-page .select2-container .select2-selection--single {
	border: 1px solid #dedede; border-radius: 5px; min-height: 48px; font-size: 14px; background: #fff;
}
.ms-checkout-form input.input-text:focus, .ms-checkout-form textarea:focus { border-color: var(--accent-color); box-shadow: 0 0 0 1px var(--accent-color); }
.ms-checkout-page .select2-container .select2-selection--single { display: flex; align-items: center; padding: 0 10px; }
.ms-checkout-page .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; right: 8px; }
.ms-checkout-form .woocommerce-invalid input.input-text { border-color: var(--error-color); }
.ms-checkout-form #ship-to-different-address { font-size: 15px; font-family: var(--text-font-family); font-weight: 400; margin: 12px 0; }
.ms-checkout-form #ship-to-different-address label { display: flex; align-items: center; gap: 10px; }
.ms-checkout-form .woocommerce-additional-fields h3 { font-size: 16px; }
.woocommerce-account-fields .create-account label { display: flex; align-items: center; gap: 10px; color: var(--text-color); font-size: 14px; }

.ms-shipping-table { width: 100%; border-collapse: collapse; }
.ms-shipping-table th { display: none; }
.ms-shipping-table td { padding: 0; }
#shipping_method { list-style: none; margin: 0; padding: 0; border: 1px solid #dedede; border-radius: 5px; overflow: hidden; }
#shipping_method li { padding: 15px 16px; display: flex; align-items: center; gap: 12px; }
#shipping_method li + li { border-top: 1px solid #dedede; }
#shipping_method li label { flex: 1; display: flex; justify-content: space-between; gap: 10px; }
.checkout-section__placeholder { background: #f5f5f5; padding: 16px; border-radius: 5px; color: #707070; font-size: 14px; margin: 0; }
.woocommerce-shipping-destination, .woocommerce-shipping-calculator { display: none; }

#payment { background: transparent; }
#payment::before { content: "Payment"; display: block; font-family: var(--heading-font-family); font-size: 21px; font-weight: 600; margin: 28px 0 4px; color: #000; }
#payment .wc_payment_methods { list-style: none; margin: 10px 0 0; padding: 0; border: 1px solid #dedede; border-radius: 5px; overflow: hidden; }
#payment .wc_payment_method { border-top: 1px solid #dedede; }
#payment .wc_payment_method:first-child { border-top: 0; }
#payment .wc_payment_method > label { display: flex; align-items: center; gap: 10px; padding: 16px; font-size: 14px; cursor: pointer; }
#payment .wc_payment_method > input { position: absolute; margin: 18px 0 0 16px; }
#payment .wc_payment_method > input + label { padding-left: 44px; }
#payment .wc_payment_method label img { max-height: 24px; margin-left: auto; }
#payment .payment_box { background: #f5f5f5; padding: 16px; font-size: 14px; border-top: 1px solid #dedede; }
#payment .payment_box p:last-child { margin: 0; }
#payment .woocommerce-notice, #payment .woocommerce-info { margin-top: 10px; }
#payment .place-order { margin-top: 20px; padding: 0; }
#payment .woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: #707070; margin-bottom: 16px; }
#payment #place_order {
	width: 100%; min-height: 56px; border: 0; border-radius: 5px; cursor: pointer;
	background: var(--primary-button-background); color: #fff;
	font-size: 17px; font-weight: 600; font-family: var(--text-font-family);
}
#payment #place_order:hover { background: rgba(var(--primary-button-background-rgb), .85); }
.checkout-policies { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 40px 0 0; padding: 18px 0 0; border-top: 1px solid #e1e1e1; font-size: 13px; }
.checkout-policies a { color: var(--accent-color); text-decoration: underline; }

.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.woocommerce-checkout-review-order-table tbody td { padding: 8px 0; vertical-align: middle; }
.woocommerce-checkout-review-order-table .product-total { text-align: right; white-space: nowrap; }
.woocommerce-checkout-review-order-table tfoot th { text-align: left; font-weight: 400; padding: 5px 0; }
.woocommerce-checkout-review-order-table tfoot td { text-align: right; padding: 5px 0; }
.woocommerce-checkout-review-order-table tfoot tr.cart-subtotal th, .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal td { padding-top: 22px; }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { font-size: 19px; font-weight: 600; color: #000; padding-top: 14px; }
.woocommerce-checkout-review-order-table .order-total .includes_tax { display: block; font-size: 12px; font-weight: 400; color: #707070; }
.checkout-line { display: flex; align-items: center; gap: 14px; }
.checkout-line__image { position: relative; flex: none; width: 64px; height: 64px; border: 1px solid #dedede; border-radius: 8px; background: #fff; }
.checkout-line__image img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.checkout-line__qty {
	position: absolute; top: -8px; right: -8px; min-width: 21px; height: 21px; padding: 0 6px;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(114, 114, 114, .9); color: #fff; border-radius: 11px; font-size: 12px; font-weight: 600;
}
.checkout-line__name { font-weight: 500; line-height: 1.4; }

/* Order received / order details */
.woocommerce-order { max-width: 900px; }
.woocommerce-thankyou-order-received { font-family: var(--heading-font-family); font-size: 22px; color: var(--heading-color); }
.woocommerce-order-overview { list-style: none; padding: 20px; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 16px 40px; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); font-size: 13px; }
.woocommerce-order-overview strong { display: block; font-size: 15px; color: var(--heading-color); }
.woocommerce-table, .shop_table.order_details, .woocommerce-orders-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border-color); margin-bottom: 30px; }
.woocommerce-table th, .woocommerce-table td, .woocommerce-orders-table th, .woocommerce-orders-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); text-align: left; }
.woocommerce-customer-details address { background: #fff; border: 1px solid var(--border-color); padding: 20px; font-style: normal; border-radius: var(--radius); }
.woocommerce-columns--addresses { display: grid; gap: 20px; }
@media (min-width: 641px) { .woocommerce-columns--addresses { grid-template-columns: 1fr 1fr; } }

/* ---------- My account ---------- */
.woocommerce-account .shop-page > .woocommerce { display: grid; gap: 30px; }
@media (min-width: 1000px) { .woocommerce-account.logged-in .shop-page > .woocommerce { grid-template-columns: 250px 1fr; align-items: start; } }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 10px 0; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 22px; }
.woocommerce-MyAccount-navigation .is-active a { color: var(--accent-color); font-weight: var(--text-font-bolder-weight); box-shadow: 3px 0 var(--accent-color) inset; }
.woocommerce-MyAccount-content { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 30px; }
.woocommerce-MyAccount-content a:not(.button) { color: var(--accent-color); }
#customer_login { display: grid; gap: 30px; max-width: 1000px; }
@media (min-width: 1000px) { #customer_login { grid-template-columns: 1fr 1fr; } }
#customer_login > div, .woocommerce-form-login:not(.checkout_coupon), .woocommerce-ResetPassword { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 30px; }
#customer_login .woocommerce-form-login { border: 0; padding: 0; }
.woocommerce-form-row, .woocommerce .form-row { margin: 0 0 16px; }
.woocommerce form .form-row label, .woocommerce-form-row label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: var(--text-font-bolder-weight); }
.woocommerce .required { color: var(--error-color); text-decoration: none; }
.woocommerce-form-login__rememberme { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 400 !important; margin-right: 20px; }
.woocommerce-button, .woocommerce .button:not(.button--small):not(.button--secondary):not(.button--ternary):not(.checkout-button):not(.wc-backward):not(.add_to_cart_button) {
	background: var(--primary-button-background); color: #fff;
}
.woocommerce-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border: 0; border-radius: 2px; font-weight: var(--text-font-bolder-weight); cursor: pointer; }
.woocommerce-LostPassword a { color: var(--accent-color); font-size: 14px; }
.woocommerce-password-strength { font-size: 13px; margin-top: 6px; }
.woocommerce-Addresses { display: grid; gap: 20px; }
@media (min-width: 641px) { .woocommerce-Addresses { grid-template-columns: 1fr 1fr; } }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; }
.woocommerce-Address-title h2 { font-size: 18px; }
.woocommerce-Address address { font-style: normal; }

/* Terms & conditions (content is toggled open by WooCommerce JS) */
.woocommerce-terms-and-conditions { display: none; max-height: 200px; overflow: auto; padding: 16px; margin-bottom: 14px; background: #f5f5f5; border-radius: 5px; font-size: 13px; }
.woocommerce-form__label-for-checkbox { display: inline-flex !important; align-items: center; gap: 10px; }
.woocommerce-invalid-required-field input { border-color: var(--error-color) !important; }
