html {
	scroll-padding-top: 58px;
}

body {
	padding-bottom: calc(var(--torfy-mobile-nav-height) + env(safe-area-inset-bottom));
	font-size: 15px;
}

body.single-product.torfy-has-mobile-purchase-bar {
	padding-bottom: calc(var(--torfy-mobile-nav-height) + 92px + env(safe-area-inset-bottom));
}

.torfy-container {
	width: min(100% - 24px, var(--torfy-container));
}

.site-main,
.torfy-archive,
.torfy-singular,
.not-found {
	padding-block: 20px;
}

.archive-title,
.entry-title,
.page-title,
.woocommerce-products-header__title,
.woocommerce div.product .product_title {
	font-size: 1.62rem;
}

.post-grid {
	grid-template-columns: 1fr;
}

.header-promo-bar {
	min-height: 34px;
	padding: 7px 44px 7px 14px;
	font-size: 0.78rem;
}

.header-promo-bar span {
	display: none;
}

.site-header {
	background: rgba(255, 255, 255, 0.98);
}

.mobile-header {
	display: block;
}

.mobile-top-row,
.mobile-bottom-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	background: rgba(255, 255, 255, 0.98);
}

.mobile-top-row {
	justify-content: space-between;
	border-bottom: 1px solid rgba(210, 210, 215, 0.72);
}

.mobile-bottom-row {
	position: sticky;
	top: 0;
	z-index: 9998;
	border-bottom: 1px solid rgba(210, 210, 215, 0.72);
	transition: box-shadow 0.18s ease;
}

.mobile-bottom-row.is-stuck {
	box-shadow: 0 10px 24px rgba(29, 29, 31, 0.1);
}

.mobile-top-left,
.mobile-top-right {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.mobile-top-left {
	flex: 1;
}

.mobile-top-right {
	flex: 0 0 auto;
}

.site-branding a {
	font-size: 1.28rem;
}

.custom-logo {
	max-height: 34px;
}

.header-delivery {
	max-width: 132px;
	min-height: 40px;
	padding: 4px 6px;
}

.header-delivery span,
.header-action-link .label {
	font-size: 0.66rem;
}

.header-delivery strong,
.header-action-link {
	font-size: 0.76rem;
}

.header-delivery svg {
	display: none;
}

.header-action-link {
	max-width: 92px;
	min-height: 40px;
	padding: 4px 6px;
	overflow: hidden;
}

.header-action-link span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.toggle-menu-btn {
	width: 42px;
	min-height: 40px;
	padding: 0;
}

.toggle-menu-btn span {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.back-button {
	flex: 0 0 42px;
	width: 42px;
	min-height: 42px;
}

.mobile-bottom-row .header-search {
	flex: 1;
	min-width: 0;
}

.header-search form {
	min-height: 42px;
}

.search-category-select {
	max-width: 72px;
	min-width: 58px;
	padding-inline: 8px;
	font-size: 0.76rem;
}

.header-search input[type="search"] {
	padding-inline: 10px;
}

.search-submit {
	min-width: 42px;
}

.drawer-menu {
	width: min(330px, 90vw);
	padding: 70px 18px 22px;
}

.mobile-bottom-nav {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9999;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	min-height: calc(var(--torfy-mobile-nav-height) + env(safe-area-inset-bottom));
	padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
	border-top: 1px solid rgba(210, 210, 215, 0.82);
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 -10px 30px rgba(29, 29, 31, 0.09);
}

.mobile-bottom-nav a {
	position: relative;
	display: grid;
	place-items: center;
	gap: 3px;
	min-width: 0;
	min-height: 48px;
	border-radius: var(--torfy-radius);
	color: var(--torfy-secondary);
	font-size: 0.72rem;
	font-weight: 800;
	text-decoration: none;
}

.mobile-bottom-nav a:hover,
.mobile-bottom-nav a:focus-visible {
	background: var(--torfy-surface);
	color: var(--torfy-primary-hover);
}

.mobile-bottom-nav svg {
	width: 22px;
	height: 22px;
}

.mobile-bottom-nav .cart-icon {
	width: 24px;
	height: 24px;
}

.mobile-bottom-nav .cart-count {
	top: -9px;
	right: -13px;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
	float: none;
	width: 100%;
}

.woocommerce-ordering select {
	width: 100%;
	min-width: 0;
}

.woocommerce ul.products {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	padding: 10px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 0.9rem;
}

.woocommerce ul.products li.product .button {
	min-height: 42px;
	padding-inline: 0.6rem;
	font-size: 0.86rem;
}

.woocommerce div.product {
	display: grid;
	gap: 22px;
}

.woocommerce div.product form.cart {
	margin-inline: -4px;
	padding: 12px;
}

.woocommerce div.product form.cart .button {
	min-height: 52px;
}

body.torfy-has-mobile-purchase-bar.single-product .summary form.cart > .quantity,
body.torfy-has-mobile-purchase-bar.single-product .summary form.cart > .single_add_to_cart_button,
body.torfy-has-mobile-purchase-bar.single-product .summary form.cart .woocommerce-variation-add-to-cart > .quantity,
body.torfy-has-mobile-purchase-bar.single-product .summary form.cart .woocommerce-variation-add-to-cart > .single_add_to_cart_button {
	display: none !important;
}

.torfy-mobile-purchase-bar {
	position: fixed;
	right: 8px;
	bottom: calc(var(--torfy-mobile-nav-height) + env(safe-area-inset-bottom) + 8px);
	left: 8px;
	z-index: 9998;
	display: none;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.55fr);
	align-items: center;
	gap: 10px;
	min-height: 74px;
	padding: 10px;
	border: 1px solid rgba(210, 210, 215, 0.84);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 -12px 32px rgba(29, 29, 31, 0.12);
}

body.torfy-has-mobile-purchase-bar .torfy-mobile-purchase-bar {
	display: grid;
}

.torfy-mobile-purchase-price {
	min-width: 0;
	color: var(--torfy-text);
	font-size: 1rem;
	font-weight: 850;
	line-height: 1.1;
}

.torfy-mobile-purchase-price del {
	display: block;
	color: var(--torfy-secondary);
	font-size: 0.78rem;
	font-weight: 600;
}

.torfy-mobile-purchase-price ins {
	display: block;
	color: var(--torfy-text);
	text-decoration: none;
}

.torfy-mobile-purchase-actions {
	display: grid;
	grid-template-columns: minmax(104px, 0.85fr) minmax(0, 1fr);
	gap: 8px;
	align-items: center;
	min-width: 0;
}

.torfy-mobile-purchase-actions .quantity.torfy-quantity-enhanced {
	width: 100%;
	grid-template-columns: 34px minmax(30px, 1fr) 34px;
}

.torfy-mobile-purchase-actions .quantity.torfy-quantity-enhanced .qty {
	width: 100%;
	min-width: 0;
}

.torfy-mobile-purchase-actions .torfy-qty-btn {
	width: 34px;
}

.torfy-mobile-add-to-cart {
	width: 100%;
	min-height: 46px;
	padding-inline: 8px;
	white-space: nowrap;
}

.torfy-variation-options {
	flex-wrap: nowrap;
	margin-inline: -12px;
	padding: 2px 12px 8px;
	overflow-x: auto;
	scrollbar-width: none;
}

.torfy-variation-options::-webkit-scrollbar {
	display: none;
}

.torfy-variation-option {
	flex: 0 0 auto;
}

.torfy-variation-option.has-image {
	width: 64px;
	height: 64px;
}

.torfy-variation-option img {
	width: 28px;
	height: 28px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	margin-inline: -12px;
	padding-inline: 12px;
}

.torfy-product-trust {
	grid-template-columns: 1fr;
}

.woocommerce-cart-form,
.cart-collaterals .cart_totals,
.woocommerce-checkout #customer_details,
.woocommerce-checkout-review-order,
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	padding: 14px;
}

.woocommerce-cart table.cart td.actions .coupon {
	display: grid;
	gap: 10px;
}

.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce-cart table.cart td.actions .coupon .button,
.woocommerce-cart table.cart td.actions > .button {
	width: 100%;
	min-width: 0;
}

.cart-collaterals,
.cart-collaterals .cart_totals {
	width: 100%;
}

.woocommerce-checkout .col2-set {
	grid-template-columns: 1fr;
}

.woocommerce-account .woocommerce {
	display: grid;
	gap: 16px;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: 100%;
}
