/*
Theme Name: ss

WooCommerce styles override
*/

/**
 * Shop tables
 */
table.shop_table_responsive thead {
	display: none;
}

table.shop_table_responsive tbody th {
	display: none;
}

table.shop_table_responsive tr td {
	display: block;
	text-align: right;
	clear: both;
}

table.shop_table_responsive tr td::before {
	content: attr(data-title) ": ";
	float: left;
}

table.shop_table_responsive tr td.product-remove a {
	text-align: left;
}

table.shop_table_responsive tr td.product-remove::before {
	display: none;
}

table.shop_table_responsive tr td.actions::before,
table.shop_table_responsive tr td.download-actions::before {
	display: none;
}

table.shop_table_responsive tr td.download-actions .button {
	display: block;
	text-align: center;
}

@media screen and (min-width: 48em) {

	table.shop_table_responsive thead {
		display: table-header-group;
	}

	table.shop_table_responsive tbody th {
		display: table-cell;
	}

	table.shop_table_responsive tr th,
	table.shop_table_responsive tr td {
		text-align: left;
	}

	table.shop_table_responsive tr td {
		display: table-cell;
	}

	table.shop_table_responsive tr td::before {
		display: none;
	}
}

/**
 * Products
 */
ul.products li.product {
	position: relative;
	}
.tax-product_cat ul.products.columns-4,
.search ul.products.columns-4{
 	display: grid;
 	gap:0;
 	grid-template-columns: repeat(4, 1fr); /* 4 в ряд на больших экранах */
	}
.tax-product_cat ul.products.columns-3,
.search ul.products.columns-3{
 	display: grid;
 	gap:0;
 	grid-template-columns: repeat(3, 1fr); /* 3 в ряд на средних экранах */
	}
.tax-product_cat ul.products.columns-2,
.search ul.products.columns-2{
 	display: grid;
 	gap:0;
 	grid-template-columns: repeat(2, 1fr); /* 2 в ряд на средних экранах */
	}
.tax-product_cat ul.products.columns-1,
.search ul.products.columns-1{
 	display: grid;
 	gap:0;
 	grid-template-columns: repeat(1, 1fr); /* 1 в ряд на моб экранах */
	}

.tax-product_cat ul.products li.product,
.search ul.products li.product{
	list-style: none;
	padding: 0 0 0 2px;
	}

ul.products li.product img {
	display: block;
}

ul.products li.product .button {
	display: block;
}

/*@media screen and (min-width: 48em) {

	ul.products li.product {
		width: 30.79667%;
		float: left;
		margin-right: 3.8%;
	}

	ul.products li.product.first {
		clear: both;
	}

	ul.products li.product.last {
		margin-right: 0;
	}

	ul.products.columns-1 li.product {
		float: none;
		width: 100%;
	}

	ul.products.columns-2 li.product {
		width: 48.1%;
	}

	ul.products.columns-3 li.product {
		width: 30.79667%;
	}

	ul.products.columns-4 li.product {
		width: 22.15%;
	}

	ul.products.columns-5 li.product {
		width: 16.96%;
	}

	ul.products.columns-6 li.product {
		width: 13.49333%;
	}
}*/

/**
 * Single product
 */
.single-product div.product {
	position: relative;
	margin-top:48px;
	
	display:flex;
	/*flex-wrap: wrap;*/
}
.single-product div.product > * {
	flex:1 1 50%;
}
@media (max-width: 1024px) {
	.single-product div.product {
		flex-wrap: wrap;
		
	}
	.single-product div.product > * {
	flex:1 1 100%;
}
}


.single-product div.product .woocommerce-product-gallery {
	position: relative;
	/*float: left;*/
	
	
	float: none;
}
@media (max-width: 1024px) {
	.single-product div.product .woocommerce-product-gallery {
		margin-top:25px;
	}
	.single-product div.product .woocommerce-product-gallery .flex-viewport {
	margin-bottom: 1em;
	
}
}
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 2em;
	right: 1em;
	display: block;
	z-index: 99;
}



.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
	margin: 0;
	padding: 0;
	display: flex;
    justify-content: center;
    flex-wrap: wrap;
    }
/*}*/

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
	list-style: none;
	cursor: pointer;
	float: left;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img {
	opacity: 0.5;
	
	/*width: 100%;*/
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
	opacity: 1;
	
	/*width: 100%;*/
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li:hover img {
	opacity: 1;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li {
	width: 48.1%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n+1) {
	clear: both;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li {
	width: 30.79667%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1) {
	clear: both;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
	width: 33%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1) {
	clear: both;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li {
	width: 16.96%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1) {
	clear: both;
}

.stock:empty::before {
	display: none;
}

.stock.in-stock {
	color: #0f834d;
}

.stock.out-of-stock {
	color: #e2401c;
}

/**
 * Checkout
 */
@media screen and (min-width: 768px) {

	.col2-set .form-row-first {
		float: left;
		margin-right: 3.8%;
	}

	.col2-set .form-row-last {
		float: right;
		margin-right: 0;
	}

	.col2-set .form-row-first,
	.col2-set .form-row-last {
		width: 48.1%;
	}
}

/**
 * General WooCommerce components
 */

/**
 * Header cart
 */
.site-header-cart {
	position: relative;
	margin: 0;
	padding: 0;
}

.site-header-cart .cart-contents {
	text-decoration: none;
}

.site-header-cart .widget_shopping_cart {
	display: none;
}

.site-header-cart .product_list_widget {
	margin: 0;
	padding: 0;
}

/**
 * Star rating
 */
.star-rating {
	overflow: hidden;
	position: relative;
	height: 1.618em;
	line-height: 1.618;
	width: 5.3em;
	font-family: star;
	font-weight: 400;
}

.star-rating::before {
	content: "\53\53\53\53\53";
	opacity: 0.25;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
}

.star-rating span {
	overflow: hidden;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
	padding-top: 1.5em;
}

.star-rating span::before {
	content: "\53\53\53\53\53";
	top: 0;
	position: absolute;
	left: 0;
	color: #4169e1;
}

p.stars a {
	position: relative;
	height: 1em;
	width: 1em;
	text-indent: -999em;
	display: inline-block;
	text-decoration: none;
	margin-right: 1px;
	font-weight: 400;
}

p.stars a::before {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 1em;
	height: 1em;
	line-height: 1;
	font-family: star;
	content: "\53";
	color: #404040;
	text-indent: 0;
	opacity: 0.25;
}

p.stars a:hover ~ a::before {
	content: "\53";
	color: #404040;
	opacity: 0.25;
}

p.stars:hover a::before {
	content: "\53";
	color: #4169e1;
	opacity: 1;
}

p.stars.selected a.active::before {
	content: "\53";
	color: #4169e1;
	opacity: 1;
}

p.stars.selected a.active ~ a::before {
	content: "\53";
	color: #404040;
	opacity: 0.25;
}

p.stars.selected a:not(.active)::before {
	content: "\53";
	color: #4169e1;
	opacity: 1;
}

/**
 * Tabs
 */
.woocommerce-tabs ul.tabs {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: left;
	
	display:none;
}

.woocommerce-tabs ul.tabs li {
	display: block;
	margin: 0;
	position: relative;
}

.woocommerce-tabs ul.tabs li a {
	padding: 1em 0;
	display: block;
}

.woocommerce-tabs .panel h2:first-of-type {
	margin-bottom: 1em;
}
.woocommerce-tabs p {
	padding-right: 2rem;
}
@media (max-width: 1024px){
	.woocommerce-tabs p {
		font-size: 16px;
    	letter-spacing: 0.1rem;
    	line-height: 1.3;
		padding-left: 2rem;
        text-align: center;
	}
}
.woocommerce-Tabs-panel--description h2 {
	display:none;
}

/**
 * Password strength meter
 */
.woocommerce-password-strength {
	text-align: right;
}

.woocommerce-password-strength.strong {
	color: #0f834d;
}

.woocommerce-password-strength.short {
	color: #e2401c;
}

.woocommerce-password-strength.bad {
	color: #e2401c;
}

.woocommerce-password-strength.good {
	color: #3d9cd2;
}

/**
 * Forms
 */
.form-row.woocommerce-validated input.input-text {
	box-shadow: inset 2px 0 0 #0f834d;
}

.form-row.woocommerce-invalid input.input-text {
	box-shadow: inset 2px 0 0 #e2401c;
}

.required {
	color: #f00;
}

/**
 * Notices
 */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
	/*background-color: #0f834d;*/
	clear: both;
}

.woocommerce-info,
.woocommerce-noreviews,
p.no-comments {
	/*background-color: #3d9cd2;*/
}

.woocommerce-error {
	background-color: #e2401c;
}

.demo_store {
	position: fixed;
	left: 0;
	bottom: 0;
	right: 0;
	margin: 0;
	padding: 1em;
	background-color: #3d9cd2;
	z-index: 9999;
}

@media screen and (min-width: 48em) {

	/**
	 * Header cart
	 */
	.site-header-cart .widget_shopping_cart {
		position: absolute;
		top: 100%;
		width: 100%;
		z-index: 999999;
		left: -999em;
		display: block;
		box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	}

	.site-header-cart:hover .widget_shopping_cart,
	.site-header-cart.focus .widget_shopping_cart {
		left: 0;
		display: block;
	}
}

/**
 * WooCommerce widgets
 */

/**
 * WooCommerce Price Filter
 */
.widget_price_filter .price_slider {
	margin-bottom: 1.5em;
}

.widget_price_filter .price_slider_amount {
	text-align: right;
	line-height: 2.4;
}

.widget_price_filter .price_slider_amount .button {
	float: left;
}

.widget_price_filter .ui-slider {
	position: relative;
	text-align: left;
}

.widget_price_filter .ui-slider .ui-slider-handle {
	position: absolute;
	z-index: 2;
	width: 1em;
	height: 1em;
	cursor: ew-resize;
	outline: none;
	background: #4169e1;
	box-sizing: border-box;
	margin-top: -0.25em;
	opacity: 1;
}

.widget_price_filter .ui-slider .ui-slider-handle:last-child {
	margin-left: -1em;
}

.widget_price_filter .ui-slider .ui-slider-handle:hover,
.widget_price_filter .ui-slider .ui-slider-handle.ui-state-active {
	box-shadow: 0 0 0 0.25em rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider .ui-slider-range {
	position: absolute;
	z-index: 1;
	display: block;
	border: 0;
	background: #4169e1;
}

.widget_price_filter .price_slider_wrapper .ui-widget-content {
	background: rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider-horizontal {
	height: 0.5em;
}

.widget_price_filter .ui-slider-horizontal .ui-slider-range {
	height: 100%;
}

/* The fixed header occupies 48px on WooCommerce utility pages. */
body.woocommerce-cart .site-main,
body.woocommerce-checkout .site-main,
body.woocommerce-account .site-main {
	padding-top: 48px;
}

.single-product .variations_form .shamrock-size-select {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.shamrock-size-buttons {
	display: grid;
	grid-template-columns: repeat(6, 45px);
	gap: .25rem;
	margin: 10px 0 16px;
}

.shamrock-size-button {
	width: 45px;
	height: 45px;
	min-width: 45px;
	min-height: 45px;
	padding: 8px 6px;
	border: 1px solid #111;
	border-radius: 7px;
	background: #fff;
	color: #111;
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	line-height: 1;
	transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.shamrock-size-button:hover,
.shamrock-size-button.is-selected {
	background: #111;
	color: #fff;
}

.shamrock-size-button.is-disabled,
.shamrock-size-button:disabled {
	border-color: #f1f1f1;
	background: #f1f1f1;
	color: #999;
	cursor: not-allowed;
	opacity: 1;
}

.shamrock-variation-availability {
	margin: 0 0 12px;
	font-size: 12px;
	line-height: 1.2;
	text-transform: uppercase;
}

.single-product .variations_form .woocommerce-variation-availability,
.single-product .variations_form .stock {
	display: none !important;
}

.single-product .variations_form .single_add_to_cart_button {
	display: block;
	width: 100%;
	min-height: 48px;
	margin-top: 12px;
}

.shamrock-cart-actions {
	display: grid;
	grid-template-columns: repeat(6, 45px);
	gap: .25rem;
	width: 100%;
}

.shamrock-cart-actions .single_add_to_cart_button {
	grid-column: span 5;
	width: 100%;
	height: 45px !important;
	min-height: 45px !important;
	box-sizing: border-box;
	margin-top: 0 !important;
	padding: 8px 6px;
	border: 1px solid #111;
	border-radius: 7px;
	font: inherit;
	line-height: 1;
}

.shamrock-wishlist-button {
	grid-column: span 1;
	width: 100%;
	height: 45px;
	padding: 0;
	border: 1px solid #111;
	border-radius: 7px;
	background: #fff;
	color: #111;
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
}

.shamrock-wishlist-button:hover,
.shamrock-wishlist-button.is-active {
	background: #111;
	color: #fff;
}

.single-product .variations_form .reset_variations {
	display: none !important;
}

/* Product details column: compact editorial layout inspired by the reference. */
.single-product .product-info-wrapper {
	display: grid;
	grid-template-columns: minmax(0, 290px);
	align-content: start;
	justify-items: stretch;
	gap: 20px;
	padding: 56px clamp(24px, 4vw, 64px) 72px;
}

.single-product .product-info-wrapper .summary {
	width: 290px;
	max-width: 100%;
}

.single-product .summary h1.product_title {
	margin: 0 0 14px;
	font-size: clamp(1.8rem, 2.2vw, 2.25rem);
	font-weight: 400;
	line-height: 1.06;
	letter-spacing: 0;
}

.single-product .summary > .price {
	margin: 0 0 30px;
	font-size: 1rem;
	line-height: 1.2;
}

.shamrock-color-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
	margin: 0 0 18px;
}

.shamrock-color-swatch {
	display: block;
	width: 56px;
	height: 56px;
	padding: 3px;
	border: 1px solid transparent;
	border-radius: 7px;
	background: #f7f7f7;
	box-sizing: border-box;
}

.shamrock-color-swatch.is-current {
	border-color: #111;
}

.shamrock-color-swatch img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.single-product .variations_form .variations {
	margin: 0 0 8px;
}

.single-product .variations_form .variations tr,
.single-product .variations_form .variations .label,
.single-product .variations_form .variations .value {
	display: block !important;
	width: 100% !important;
}

.single-product .variations_form .variations .label {
	padding: 0 0 8px;
	text-align: left;
}

.single-product .variations_form .variations .label label {
	text-transform: uppercase;
}

.single-product .variations_form .variations .value {
	padding: 0;
}

.single-product .variations_form .variations .label label {
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .03em;
}

.single-product .variations_form .single_variation_wrap {
	width: 100%;
}

.single-product .variations_form .quantity {
	display: none !important;
}

.single-product form.cart .quantity {
	display: none !important;
}

.single-product .product-info-wrapper .woocommerce-tabs {
	display: none;
}

.single-product .variations_form .single_add_to_cart_button {
	border-color: #000;
	background: #000;
	color: #fff;
}

.single-product .variations_form .single_add_to_cart_button:hover,
.single-product .variations_form .single_add_to_cart_button:focus {
	border-color: #222;
	background: #222;
	color: #fff;
}

.single-product .variations_form .single_add_to_cart_button.disabled,
.single-product .variations_form .single_add_to_cart_button:disabled {
	border-color: #000;
	background: #000;
	color: #fff;
	opacity: 1;
}

@media (max-width: 1024px) {
	body.shamrock-lightbox-open {
		overflow: hidden;
	}

	.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
		display: none !important;
	}

	.single-product .woocommerce-product-gallery .shamrock-mobile-lightbox-trigger {
		position: absolute;
		left: 16px;
		bottom: 16px;
		z-index: 30;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		padding: 0;
		border: 0;
		border-radius: 8px;
		background: #fff;
		color: #111;
		box-shadow: 0 1px 5px rgba(0,0,0,.08);
		cursor: pointer;
	}

	.shamrock-mobile-lightbox-trigger svg {
		width: 19px;
		height: 19px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.7;
	}

	.shamrock-mobile-lightbox {
		display: none;
		position: fixed;
		inset: 0;
		z-index: 99999;
		align-items: center;
		justify-content: center;
		background: #fff;
	}

	.shamrock-mobile-lightbox.is-open {
		display: flex;
	}

	.shamrock-mobile-lightbox__image {
		max-width: 100%;
		max-height: 100%;
		object-fit: contain;
		transition: transform .2s ease;
		will-change: transform;
	}

	.shamrock-mobile-lightbox__viewport.is-dragging .shamrock-mobile-lightbox__image {
		transition: none;
	}

	.shamrock-mobile-lightbox__viewport {
		position: fixed;
		inset: 0;
		z-index: 1;
		width: 100%;
		height: 100%;
		overflow: hidden;
		touch-action: none;
	}

	.shamrock-mobile-lightbox__track {
		display: flex;
		width: 100%;
		height: 100%;
		will-change: transform;
	}

	.shamrock-mobile-lightbox__slide {
		flex: 0 0 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
		overflow: hidden;
	}

	.shamrock-mobile-lightbox button {
		position: fixed;
		z-index: 2;
		border: 0;
		background: transparent;
		color: #111;
		font: inherit;
		cursor: pointer;
	}

	.shamrock-mobile-lightbox__close {
		top: 18px;
		right: 20px;
		font-size: 32px !important;
	}

	.shamrock-mobile-lightbox__zoom-out,
	.shamrock-mobile-lightbox__zoom-in {
		top: 18px;
		width: 42px;
		height: 42px;
		border-radius: 9px !important;
		background: #f7f7f7 !important;
		font-size: 20px !important;
	}

	.shamrock-mobile-lightbox__zoom-out { right: 116px; }
	.shamrock-mobile-lightbox__zoom-in { right: 68px; }

	.shamrock-mobile-lightbox__dots {
		position: fixed;
		z-index: 10;
		bottom: 20px;
		left: 50%;
		display: flex;
		gap: 8px;
		transform: translateX(-50%);
	}

	.shamrock-mobile-lightbox__dot {
		position: static !important;
		width: 5px;
		height: 5px;
		padding: 0;
		border-radius: 50% !important;
		background: #aaa !important;
	}

	.shamrock-mobile-lightbox__dot.is-current {
		background: #0f6650 !important;
	}

	.single-product .woocommerce-product-gallery .flex-control-thumbs {
		display: none !important;
	}

	.single-product .product-info-wrapper {
		align-items: start;
		justify-items: start;
		padding: 32px 20px 48px;
	}

	.single-product .product-info-wrapper .summary {
		width: 290px;
		max-width: 100%;
	}
}
