/*
Theme Name: Dubshop
Theme URI: https://dubshop.net/
Description: Дочерняя тема Shopwell для dubshop.net. Страница coming soon не отключается.
Author: Dubshop
Template: shopwell
Version: 1.0.17
Text Domain: dubshop
Requires at least: 6.0
*/

/*
 * The shop page header is an empty title and an empty social list.
 * That block is the white band between the header and the catalog toolbar.
 */
.woocommerce-shop .page-header--products:has(.page-header__title:empty):not(:has(.page-description a, .page-description p, .page-description img, .page-description li)) {
	display: none;
	margin: 0;
}

/*
 * Variable products: one compact row per variation instead of the attribute dropdown.
 */
.dubshop-variation-label {
	margin: 16px 0 8px;
	font-size: 0.875rem;
	font-weight: 600;
}

.dubshop-variation-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 8px;
}

.dubshop-variation-row {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 6px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	background: #fff;
}

.summary .dubshop-variation-row .dubshop-variation-preview {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
	width: auto !important;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent !important;
	box-shadow: none;
	color: inherit;
	font: inherit;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
}

.summary .dubshop-variation-row .dubshop-variation-preview.is-active .dubshop-variation-thumb {
	box-shadow: 0 0 0 2px #1a1a1a;
}

.dubshop-variation-thumb {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	object-fit: contain;
	border-radius: 8px;
	background: #f4f4f4;
}

.dubshop-variation-meta {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 0;
	line-height: 1.2;
}

.dubshop-variation-name {
	font-weight: 600;
	white-space: normal;
}

.dubshop-variation-price {
	font-size: 0.875rem;
	white-space: nowrap;
}

.summary .dubshop-variation-row .quantity {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto !important;
	width: auto !important;
	margin: 0 0 0 auto !important;
	float: none;
}

.summary .dubshop-variation-row .quantity .qty {
	width: 42px;
	min-width: 42px;
	text-align: center;
}

.summary .dubshop-variation-row .single_add_to_cart_button {
	width: auto !important;
	max-width: none;
	flex: 0 0 auto;
	min-height: 40px;
	margin: 0 !important;
	padding: 8px 10px;
	font-size: 14px;
	line-height: 1.2;
	white-space: nowrap;
}

.summary .dubshop-variation-row .single_add_to_cart_button--icon {
	width: 16px;
	height: 16px;
}

@media (max-width: 720px) {
	.dubshop-variation-row {
		flex-wrap: nowrap;
		gap: 8px;
		padding: 8px;
	}

	.summary .dubshop-variation-row .dubshop-variation-preview {
		flex: 1 1 auto;
		min-width: 0;
	}

	.summary .dubshop-variation-row .quantity {
		margin-left: auto !important;
	}

	.summary .dubshop-variation-row .quantity .qty {
		width: 36px;
		min-width: 36px;
	}

	.summary .dubshop-variation-row .single_add_to_cart_button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 40px;
		width: 40px !important;
		min-width: 40px;
		max-width: 40px;
		height: 40px;
		min-height: 40px;
		margin: 0 !important;
		padding: 0;
		gap: 0;
		font-size: 0;
		line-height: 0;
	}

	.summary .dubshop-variation-row .single_add_to_cart_button--text {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.summary .dubshop-variation-row .single_add_to_cart_button--icon {
		width: 18px;
		height: 18px;
		margin: 0;
	}
}

/*
 * Header: no account icon (guest checkout), no second "Кошик" label.
 * The cart icon in the top bar and the sticky cart plugin stay.
 */
.site-header .header-account {
	display: none !important;
}

.site-header .main-navigation .menu-item:has(> a[href*="/cart"]) {
	display: none !important;
}

.site-header .header-bottom .primary-navigation:not(:has(.menu-item:not(:has(> a[href*="/cart"])))) {
	display: none !important;
}

.site-header .header-main,
.site-header .header-main .site-header__container,
.site-header .header-main .header-items,
.site-header .header-bottom,
.site-header .header-bottom .site-header__container,
.site-header .header-bottom .header-items,
.site-header .header-category-menu {
	overflow: visible;
}

.site-header .header-bottom {
	height: auto !important;
	min-height: 52px;
}

.site-header .header-bottom .site-header__container {
	flex-wrap: wrap;
	height: auto;
}

.site-header .header-bottom .header-left-items {
	flex: 1 1 auto;
	max-width: 100%;
}

.site-header .header-category-menu {
	display: none !important;
}

.dubshop-js .dubshop-catbar:not(.is-placed) {
	display: none;
}

.dubshop-catbar {
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.dubshop-catbar__list,
.dubshop-catbar__kids {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 6px;
	margin: 0;
	padding: 6px 0;
	list-style: none;
}

.dubshop-catbar__kids {
	display: block;
	padding: 2px 0 4px 14px;
}

.dubshop-catbar__item {
	position: relative;
}

.dubshop-catbar__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px;
	border-radius: 8px;
	color: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.dubshop-catbar__link:hover,
.dubshop-catbar__link:focus,
.dubshop-catbar__item:hover > .dubshop-catbar__link,
.dubshop-catbar__item.is-open > .dubshop-catbar__link {
	background: rgba(255, 255, 255, 0.22);
	color: inherit;
}

.dubshop-caticon {
	flex: 0 0 18px;
}

.dubshop-catbar__sub {
	display: none;
	position: absolute;
	top: calc(100% - 4px);
	left: 0;
	z-index: 400;
	min-width: 240px;
	max-width: 320px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	color: #1d2128;
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.dubshop-catbar__item:hover > .dubshop-catbar__sub,
.dubshop-catbar__item:focus-within > .dubshop-catbar__sub,
.dubshop-catbar__item.is-open > .dubshop-catbar__sub {
	display: block;
}

.dubshop-catbar__sub > .dubshop-catbar__item > .dubshop-catbar__link {
	display: flex;
	padding: 8px 14px;
	font-weight: 500;
	white-space: normal;
	color: #1d2128;
}

.dubshop-catbar__sub > .dubshop-catbar__item > .dubshop-catbar__link:hover,
.dubshop-catbar__sub > .dubshop-catbar__item > .dubshop-catbar__link:focus {
	background: rgba(0, 0, 0, 0.05);
}

.dubshop-catbar__kids .dubshop-catbar__link {
	padding: 4px 14px 4px 0;
	font-size: 13px;
	font-weight: 500;
	color: #3a3f46;
	white-space: normal;
}

.header-category__content .dubshop-cat-fallback {
	min-width: 280px;
}

.header-category__content .dubshop-cat-fallback > ul > li > a,
.header-category__content .dubshop-cat-fallback .sub-menu a {
	color: #1d2128;
}

.site-header__mobile .dubshop-catbar,
.dubshop-catbar--mobile {
	display: none !important;
}

.hamburger-panel .dubshop-mobile-cats .dubshop-catbar__list,
.hamburger-panel .dubshop-mobile-cats .dubshop-catbar__kids,
.hamburger-panel .dubshop-mobile-cats .dubshop-catbar__sub {
	position: static;
	width: auto;
	min-width: 0;
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
	color: #1d2128;
}

.hamburger-panel .dubshop-mobile-cats .dubshop-catbar__list,
.hamburger-panel .dubshop-mobile-cats .dubshop-catbar__kids {
	display: block;
}

.hamburger-panel .dubshop-mobile-cats .dubshop-catbar__sub,
.hamburger-panel .dubshop-mobile-cats .dubshop-catbar__item:hover > .dubshop-catbar__sub,
.hamburger-panel .dubshop-mobile-cats .dubshop-catbar__item:focus-within > .dubshop-catbar__sub {
	display: none;
}

.hamburger-panel .dubshop-mobile-cats .dubshop-catbar__item.is-open > .dubshop-catbar__sub,
.hamburger-panel .dubshop-mobile-cats .dubshop-catbar__item.is-open > .dubshop-catbar__kids {
	display: block;
}

.hamburger-panel .dubshop-mobile-cats .dubshop-catbar__link {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 13px 18px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	color: #1d2128;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	white-space: normal;
	background: transparent;
	box-sizing: border-box;
}

.hamburger-panel .dubshop-mobile-cats .dubshop-catbar__sub .dubshop-catbar__link,
.hamburger-panel .dubshop-mobile-cats .dubshop-catbar__kids .dubshop-catbar__link {
	padding-left: 46px;
	font-size: 14px;
	font-weight: 500;
}

.hamburger-panel .dubshop-mobile-cats .dubshop-catbar__kids .dubshop-catbar__link {
	padding-left: 62px;
	font-size: 13px;
}

.hamburger-panel .dubshop-mobile-cats .dubshop-caticon {
	color: #f0a202;
}

.hamburger-panel .dubshop-mobile-cats .dubshop-catbar__item.is-open > .dubshop-catbar__link {
	background: rgba(240, 162, 2, 0.14);
}

.hamburger-panel .dubshop-mobile-cats .dubshop-catbar__item:has(> .dubshop-catbar__sub) > .dubshop-catbar__link::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-left: auto;
	border-right: 2px solid #f0a202;
	border-bottom: 2px solid #f0a202;
	transform: rotate(45deg);
	flex: 0 0 8px;
}

.hamburger-panel .dubshop-mobile-cats .dubshop-catbar__item.is-open > .dubshop-catbar__link::after {
	transform: rotate(-135deg);
	margin-top: 4px;
}

.dubshop-cat-description {
	width: min(820px, calc(100% - 32px));
	margin: 8px auto 20px;
	color: #3a3f46;
	font-size: 15px;
	line-height: 1.55;
}

.dubshop-cat-description p:last-child {
	margin-bottom: 0;
}

.page-header--products + .dubshop-cat-description,
.dubshop-cat-description {
	text-align: center;
}

.dubshop-footer {
	background: #16181d;
	color: #f3f4f6;
	padding: 40px 0 18px;
}

.dubshop-footer a {
	color: #f3f4f6;
	text-decoration: none;
}

.dubshop-footer__inner {
	display: grid;
	grid-template-columns: minmax(180px, 1.15fr) minmax(160px, 1fr) minmax(150px, 0.9fr) minmax(180px, 1fr) minmax(220px, 1.15fr);
	gap: 28px 32px;
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
}

.dubshop-footer__name {
	margin: 8px 0 16px;
	font-size: 18px;
	font-weight: 700;
}

.dubshop-footer__logo img {
	max-height: 52px;
	width: auto;
}

.dubshop-footer__qr {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 0 0 16px;
	padding: 12px;
	border: 1px dashed rgba(255, 255, 255, 0.28);
	border-radius: 12px;
}

.dubshop-footer__qr p,
.dubshop-footer__subscribe p {
	margin: 0;
	color: #c8cdd4;
	font-size: 13px;
	line-height: 1.4;
}

.dubshop-footer__qr-box {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	background:
		linear-gradient(#f7b100 0 0) 8px 8px / 10px 10px no-repeat,
		linear-gradient(#f7b100 0 0) 46px 8px / 10px 10px no-repeat,
		linear-gradient(#f7b100 0 0) 8px 46px / 10px 10px no-repeat,
		#2a2e35;
}

.dubshop-footer__socials {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dubshop-footer__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
	color: #f7b100;
}

.dubshop-footer__title {
	margin: 0 0 14px;
	color: #f7b100;
	font-size: 16px;
	font-weight: 700;
}

.dubshop-footer__links,
.dubshop-footer__contacts {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dubshop-footer__cat {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.dubshop-footer__cat .dubshop-caticon {
	color: #f7b100;
	flex: 0 0 18px;
}

.dubshop-footer__soon,
.dubshop-footer__contacts span {
	color: #c8cdd4;
}

.dubshop-footer__contacts li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.dubshop-footer__contacts .dubshop-footer__svg {
	color: #f7b100;
	margin-top: 1px;
	flex: 0 0 18px;
}

.dubshop-footer__subscribe {
	padding: 16px;
	border-radius: 16px;
	background: #22262d;
}

.dubshop-footer__form {
	display: flex;
	gap: 8px;
	margin-top: 14px;
}

.dubshop-footer__form input[type="email"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 42px;
	padding: 0 12px;
	border: 0;
	border-radius: 8px;
	background: #fff;
	color: #1d2128;
}

.dubshop-footer__form button {
	flex: 0 0 auto;
	height: 42px;
	padding: 0 16px;
	border: 0;
	border-radius: 8px;
	background: #111;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.dubshop-footer__form button:hover,
.dubshop-footer__form button:focus {
	background: #f7b100;
	color: #16181d;
}

.dubshop-footer__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.dubshop-footer__note {
	margin-top: 10px !important;
	font-weight: 600;
}

.dubshop-footer__note--ok {
	color: #b7f0c2;
}

.dubshop-footer__note--err {
	color: #ffb4b4;
}

.dubshop-footer__copy {
	width: min(1180px, calc(100% - 32px));
	margin: 28px auto 0;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	color: #9aa1ab;
	font-size: 13px;
	text-align: center;
}

@media (max-width: 980px) {
	.dubshop-footer__inner {
		grid-template-columns: 1fr 1fr;
	}

	.dubshop-footer__subscribe {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.dubshop-footer__inner {
		grid-template-columns: 1fr;
	}
}
