/* Product pages: one image ratio everywhere + video slide */
:root{--mt-ratio:4 / 5;--mt-fit:cover;--mt-ink:#263b35}

/* Main slider, thumbnails and shop loops all share the same ratio */
.product-gallery-slider .woocommerce-product-gallery__image img,
.product-gallery-slider .woocommerce-product-gallery__image--placeholder img{width:100%;height:auto;aspect-ratio:var(--mt-ratio);object-fit:var(--mt-fit);background:#f3f0e9}
.product-thumbnails .col img{aspect-ratio:var(--mt-ratio);width:100%;object-fit:var(--mt-fit);display:block}
.product-thumbnails .col a{display:block;overflow:hidden;position:relative}
.product-small .box-image:not(.image-cover) img{aspect-ratio:var(--mt-ratio);object-fit:var(--mt-fit);width:100%;background:#f3f0e9}

/* Video slide + thumbnail */
.mt-video-slide{width:100%}
.mt-video-wrap{position:relative;width:100%;aspect-ratio:var(--mt-ratio);background:#111}
.mt-video-wrap video,.mt-video-wrap iframe{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border:0;background:#000}
.mt-video-facade{position:absolute;inset:0;width:100%;height:100%;padding:0;margin:0;border:0;background:#111;cursor:pointer}
.mt-video-facade img{width:100%;height:100%;object-fit:var(--mt-fit);opacity:.85}
.mt-play,.mt-play-badge{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:rgba(255,253,250,.92);box-shadow:0 8px 24px rgba(0,0,0,.3)}
.mt-play:after,.mt-play-badge:after{content:"";position:absolute;left:25px;top:19px;border-left:20px solid var(--mt-ink);border-top:13px solid transparent;border-bottom:13px solid transparent}
.mt-play-badge{width:34px;height:34px;margin:-17px 0 0 -17px}
.mt-play-badge:after{left:13px;top:9px;border-left-width:11px;border-top-width:8px;border-bottom-width:8px}

/* ===== Shop UI polish ===== */
:root{--mt-accent:#b96f50;--mt-accent-dark:#a45f43;--mt-line:#dedbd2;--mt-h:48px;--mt-container:1080px}

/* Quantity + Add to cart: one row, EXACTLY the same height (--mt-h) */
form.cart,.woocommerce-variation-add-to-cart{align-items:center;gap:12px}
form.cart .ux-quantity,.woocommerce-variation-add-to-cart .ux-quantity,.sticky-add-to-cart .ux-quantity{
	box-sizing:border-box!important;display:inline-flex!important;align-items:stretch;flex:0 0 auto;
	height:var(--mt-h)!important;min-height:var(--mt-h)!important;max-height:var(--mt-h)!important;
	margin:0!important;padding:0!important;border:1px solid var(--mt-line);background:#fff;opacity:1;overflow:hidden;vertical-align:top}
.ux-quantity .ux-quantity__button,.ux-quantity .minus,.ux-quantity .plus{
	box-sizing:border-box!important;flex:0 0 44px;align-self:stretch;width:44px!important;min-width:44px;
	height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;
	border:0!important;border-radius:0!important;box-shadow:none;background:#f7f5ef;color:var(--mt-ink);
	font-size:18px;font-weight:400;line-height:1;letter-spacing:0;text-transform:none;cursor:pointer;transition:background .2s}
.ux-quantity .ux-quantity__button:hover{background:#ece8dc}
.ux-quantity .qty{
	box-sizing:border-box!important;flex:0 0 64px;align-self:stretch;width:64px!important;max-width:none!important;
	height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;
	border:0!important;border-left:1px solid var(--mt-line)!important;border-right:1px solid var(--mt-line)!important;
	border-radius:0!important;box-shadow:none!important;background:#fff;text-align:center;font-size:16px;font-weight:600;line-height:normal}

.single_add_to_cart_button,.single_add_to_cart_button.button,.sticky-add-to-cart-select-options-button{
	box-sizing:border-box!important;display:inline-flex;align-items:center;justify-content:center;
	height:var(--mt-h)!important;min-height:var(--mt-h)!important;max-height:var(--mt-h)!important;margin:0!important;padding:0 44px;line-height:1;
	border:1px solid var(--mt-accent);border-radius:0;background:var(--mt-accent);color:#fff;box-shadow:none;
	font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
	transition:background-color .2s ease,border-color .2s ease,transform .2s ease}
.single_add_to_cart_button:hover,.sticky-add-to-cart-select-options-button:hover{background:var(--mt-accent-dark);border-color:var(--mt-accent-dark);color:#fff;transform:translateY(-1px)}
.single_add_to_cart_button.disabled,.single_add_to_cart_button:disabled{opacity:.45;transform:none;cursor:not-allowed}
@media(max-width:549px){form.cart .single_add_to_cart_button{flex:1 1 auto;padding:0 20px}}

/* Sticky add-to-cart bar: as wide as the site content, title left, controls right */
.sticky-add-to-cart{--mt-h:44px}
.sticky-add-to-cart--active{padding:0!important;display:flex;justify-content:center;background:rgba(255,255,255,.97);box-shadow:0 -6px 24px -14px rgba(0,0,0,.25)}
.sticky-add-to-cart--active .sticky-add-to-cart__product{
	box-sizing:border-box;display:flex;align-items:center;gap:16px;width:100%;max-width:var(--mt-container);margin:0 auto;padding:10px 15px!important}
.sticky-add-to-cart--active .sticky-add-to-cart-img{flex:0 0 52px;width:52px;height:52px;margin:0!important;border-radius:4px;object-fit:cover}
.sticky-add-to-cart--active .product-title-small{flex:1 1 auto;min-width:0;max-width:none!important;margin:0!important;font-size:14px;line-height:1.3}
.sticky-add-to-cart--active .product-title-small strong{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
.sticky-add-to-cart--active form.cart{flex:0 0 auto;flex-wrap:nowrap;width:auto!important;margin:0 0 0 auto!important;align-items:center;gap:10px}
.sticky-add-to-cart--active .sticky-add-to-cart__product>.price,.sticky-add-to-cart--active .sticky-add-to-cart__product>.woocommerce-Price-amount{margin:0 0 0 auto}
.sticky-add-to-cart--active .sticky-add-to-cart-select-options-button{margin:0!important;padding:0 32px}
@media(max-width:549px){
	.sticky-add-to-cart--active .sticky-add-to-cart__product{gap:10px;padding:8px 10px!important}
	.sticky-add-to-cart--active form.cart{flex:1 1 auto;margin-left:0!important}
	.sticky-add-to-cart--active .single_add_to_cart_button{flex:1 1 auto;padding:0 12px}
}

/* Product cards: title max 3 lines, then ... */
.product-small .name.product-title,
.product-small .box-text .name,
.woocommerce-loop-product__title{
	display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;
	overflow:hidden;text-overflow:ellipsis;line-height:1.35!important;max-height:calc(1.35em * 3);word-break:break-word}

/* ===== Shop archive: filters on the left, clean toolbar, pagination ===== */
.woocommerce-breadcrumb,.breadcrumbs{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#777a70}
.shop-container .widget{margin-bottom:26px;padding-bottom:22px;border-bottom:1px solid var(--mt-line)}
.shop-container .widget:last-child{border-bottom:0}
.shop-container .widget-title{display:block;margin-bottom:10px;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--mt-ink)}
.shop-container .widget .is-divider{display:none}
.widget_product_categories ul{margin:0}
.widget_product_categories li{padding:5px 0;border:0;font-size:14px}
.widget_product_categories li a{color:#3f4a44;transition:color .2s}
.widget_product_categories li a:hover,.widget_product_categories li.current-cat>a{color:var(--mt-accent);font-weight:600}
.widget_product_categories .count{margin-left:4px;font-size:12px;opacity:.5}
.widget_price_filter .ui-slider .ui-slider-range{background:var(--mt-accent)}
.widget_price_filter .ui-slider .ui-slider-handle{background:#fff;border:2px solid var(--mt-accent);box-shadow:none}
.widget_price_filter .price_slider_amount .button{height:38px;min-height:38px;line-height:36px;padding:0 20px;border-radius:0}
.widget_product_tag_cloud .tagcloud a{display:inline-block;margin:0 6px 8px 0;padding:6px 12px;border:1px solid var(--mt-line);font-size:12px!important;color:#3f4a44;transition:all .2s}
.widget_product_tag_cloud .tagcloud a:hover{border-color:var(--mt-ink);background:var(--mt-ink);color:#fff}
.woocommerce-result-count{font-size:13px;color:#6e7067}
.woocommerce-ordering select{height:40px;min-height:40px;border-radius:0;font-size:13px}
.nav-pagination>li>a,.nav-pagination>li>span,.page-numbers .page-number{
	min-width:40px;height:40px;line-height:38px;padding:0 10px;margin:0 3px;border:1px solid var(--mt-line)!important;border-radius:0!important;background:#fff;color:#3f4a44;font-size:14px}
.nav-pagination>li>a:hover{border-color:var(--mt-ink)!important;color:var(--mt-ink)}
.nav-pagination>li>span.current,.nav-pagination>li.active>span,.page-numbers .current{background:var(--mt-ink);border-color:var(--mt-ink)!important;color:#fff}
.badge-container .badge-inner.on-sale{background:var(--mt-accent);border-radius:0;font-size:11px;font-weight:700;letter-spacing:.06em;padding:4px 10px;line-height:1.4;width:auto;height:auto;min-width:0}
.badge-container .badge{width:auto;height:auto}
.product-small .price del{opacity:.5;margin-right:6px}
.product-small .price ins{text-decoration:none;font-weight:700;color:var(--mt-accent)}
