/*
Theme Name: ARONTRA
Description: Storefront child theme for arontra.com: black and white, large photos, WhatsApp inquiries.
Author: ARONTRA
Template: storefront
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: arontra
*/

:root {
	/* Palette A (black and white). */
	--ar-primary: #111111;
	--ar-primary-hover: #3d3d3d;
	--ar-text: #111111;
	--ar-muted: #5c5c5c;
	--ar-surface: #f3f1ec;
	--ar-border: #e2dfd8;
	--ar-on-primary-muted: #c9c9c9;
	--ar-gutter: clamp(16px, 3vw, 40px);
	--ar-head: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
	--ar-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	/* Read by the arontra-catalog plugin's stylesheet. */
	--arontra-accent: #111111;
	--arontra-accent-dark: #3d3d3d;
	--arontra-border: #e2dfd8;
	--arontra-muted: #5c5c5c;
}

body,
button,
input,
select,
textarea {
	font-family: var(--ar-body);
	color: var(--ar-text);
}

body {
	background: #fff;
	font-size: 16px;
	line-height: 1.6;
}

h1,
h2,
h3,
.ar-head {
	font-family: var(--ar-head);
	font-weight: 600;
	color: var(--ar-text);
	letter-spacing: 0;
}

a {
	color: var(--ar-primary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
	outline: 3px solid var(--ar-primary);
	outline-offset: 3px;
}

.col-full {
	max-width: 1440px;
	/* Storefront adds em margins on phones on top of the padding. */
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--ar-gutter);
	padding-right: var(--ar-gutter);
	box-sizing: border-box;
}

/* ---------------------------------------------------------------- buttons */

.button,
button.button,
a.button,
input[type="submit"],
.ar-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	background: var(--ar-primary);
	color: #fff;
	font-family: var(--ar-body);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
}

.button:hover,
a.button:hover,
.ar-button:hover {
	background: var(--ar-primary-hover);
	color: #fff;
}

.ar-button--light,
.ar-button--light:hover {
	background: #fff;
	color: var(--ar-primary);
}

.ar-button--light:hover {
	background: var(--ar-surface);
}

/* ----------------------------------------------------------------- header */

.site-header,
body.no-wc-breadcrumb .site-header,
body.woocommerce-active .site-header {
	position: relative;
	z-index: 50;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--ar-border);
	background: #fff;
}

.site-header > .col-full {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.site-header > .col-full::before,
.site-header > .col-full::after {
	display: none;
}

.site-header .site-branding,
.site-header .site-search {
	float: none;
	width: auto;
	margin: 0;
}

.site-header .site-branding {
	flex: 0 0 auto;
}

.arontra-logo {
	display: block;
	line-height: 0;
}

.arontra-logo img {
	display: block;
	width: auto;
	height: 60px;
}

.site-header .site-search {
	flex: 0 1 440px;
}

.woocommerce-product-search {
	position: relative;
}

.site-search .search-field,
.handheld-navigation .search-field {
	width: 100%;
	height: 48px;
	padding: 0 56px 0 20px;
	border: 1px solid var(--ar-border);
	border-radius: 999px;
	background: var(--ar-surface);
	box-shadow: none;
	font-size: 15px;
	color: var(--ar-text);
}

/* Storefront hides the submit button for screen readers only; show it as a round search button. */
.site-search .widget_product_search form.woocommerce-product-search button[type="submit"],
.handheld-navigation form.woocommerce-product-search button[type="submit"] {
	position: absolute;
	top: 4px;
	right: 4px;
	left: auto;
	width: 40px;
	height: 40px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	background: var(--ar-primary);
	color: transparent;
	font-size: 0;
	overflow: hidden;
	clip: auto;
	clip-path: none;
}

.site-search .widget_product_search form.woocommerce-product-search button[type="submit"]::before,
.handheld-navigation form.woocommerce-product-search button[type="submit"]::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 18px;
	height: 18px;
	background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.site-search .widget_product_search form::before,
.woocommerce-product-search::before {
	display: none;
}

/* Category bar: one row on computers, a panel of chips under the hovered category. */
.storefront-primary-navigation {
	position: relative;
	border-top: 1px solid var(--ar-border);
	background: #fff;
}

.storefront-primary-navigation .col-full::before,
.storefront-primary-navigation .col-full::after {
	display: none;
}

.main-navigation,
.main-navigation .primary-navigation,
.main-navigation .primary-navigation ul.menu {
	position: static;
}

.main-navigation .primary-navigation ul.menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin: 0;
}

.main-navigation .primary-navigation ul.menu > li {
	position: static;
	float: none;
}

.main-navigation .primary-navigation ul.menu > li > a {
	display: flex;
	align-items: center;
	gap: 4px;
	min-height: 50px;
	padding: 0 6px;
	box-sizing: border-box;
	border-bottom: 3px solid transparent;
	color: var(--ar-text);
	font-weight: 700;
	font-size: 15px;
}

.main-navigation .primary-navigation ul.menu > li.menu-item-has-children > a::after {
	content: "";
	width: 12px;
	height: 12px;
	margin: 0;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	font-family: inherit;
}

.main-navigation .primary-navigation ul.menu > li:hover > a,
.main-navigation .primary-navigation ul.menu > li.focus > a,
.main-navigation .primary-navigation ul.menu > li.current-menu-item > a,
.main-navigation .primary-navigation ul.menu > li.current-menu-ancestor > a {
	color: var(--ar-primary);
	border-bottom-color: var(--ar-primary);
}

.main-navigation .primary-navigation ul.menu > li > ul.sub-menu {
	position: absolute;
	top: 100%;
	left: -9999em;
	right: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: auto;
	margin: 0;
	padding: 22px max(var(--ar-gutter), calc((100% - 1440px) / 2 + var(--ar-gutter))) 26px;
	box-sizing: border-box;
	border-top: 1px solid var(--ar-border);
	border-bottom: 1px solid var(--ar-border);
	background: #fff;
	box-shadow: 0 16px 32px rgb(0 0 0 / 10%);
}

.main-navigation .primary-navigation ul.menu > li:hover > ul.sub-menu,
.main-navigation .primary-navigation ul.menu > li.focus > ul.sub-menu {
	left: 0;
	right: 0;
}

.main-navigation .primary-navigation ul.menu > li > ul.sub-menu li {
	float: none;
}

.main-navigation .primary-navigation ul.menu > li > ul.sub-menu a {
	display: inline-flex;
	align-items: center;
	width: auto;
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid var(--ar-border);
	border-radius: 999px;
	background: #fff;
	color: var(--ar-text);
	font-weight: 600;
	font-size: 15px;
}

.main-navigation .primary-navigation ul.menu > li > ul.sub-menu a:hover {
	border-color: var(--ar-primary);
	color: var(--ar-primary);
	background: #fff;
}

/* --------------------------------------------------------------- content */

.site-content {
	padding-top: 0;
}

.storefront-breadcrumb {
	margin: 0 0 8px;
	padding: 18px 0 0;
}

.storefront-breadcrumb .woocommerce-breadcrumb {
	margin: 0;
	font-size: 14px;
	color: var(--ar-muted);
}

.storefront-breadcrumb .woocommerce-breadcrumb a {
	color: var(--ar-muted);
}

.site-main {
	margin-bottom: 72px;
}

.woocommerce-products-header,
.page-header {
	padding: 8px 0 0;
}

.woocommerce-products-header__title.page-title,
.page-title,
.entry-title {
	margin: 0 0 16px;
	font-family: var(--ar-head);
	font-weight: 600;
	font-size: clamp(26px, 3vw, 34px);
}

.arontra-subcats ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.arontra-subcats a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid var(--ar-border);
	border-radius: 999px;
	color: var(--ar-text);
	font-weight: 600;
	text-decoration: none;
}

.arontra-subcats a[aria-current="page"] {
	border-color: var(--ar-primary);
	background: var(--ar-primary);
	color: #fff;
}

.storefront-sorting {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 20px;
	padding: 0;
	border: 0;
	font-size: 15px;
}

.woocommerce-ordering select,
.orderby {
	min-height: 44px;
	padding: 0 40px 0 16px;
	border: 1px solid var(--ar-border);
	border-radius: 999px;
	background-color: #fff;
}

/* ---------------------------------------------------------- product grid */

ul.products,
.site-main ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 16px;
	margin: 0;
	padding: 0;
}

ul.products::before,
ul.products::after {
	display: none;
}

ul.products li.product,
.site-main ul.products li.product {
	float: none;
	width: auto;
	margin: 0;
	text-align: left;
}

ul.products li.product .woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: var(--ar-text);
	text-decoration: none;
}

ul.products li.product img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	margin: 0 0 8px;
	object-fit: contain;
	border: 1px solid var(--ar-border);
	border-radius: 20px;
	background: #fff;
	box-sizing: border-box;
}

ul.products li.product .woocommerce-loop-product__title {
	margin: 0;
	padding: 0 4px;
	font-family: var(--ar-body);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.35;
	color: var(--ar-text);
}

ul.products li.product .price {
	display: block;
	margin: 0;
	padding: 0 4px;
	font-family: var(--ar-head);
	font-weight: 600;
	font-size: 17px;
	color: var(--ar-primary);
}

ul.products li.product .price del {
	color: var(--ar-muted);
	font-weight: 400;
	font-size: 14px;
}

ul.products li.product .price ins {
	text-decoration: none;
	font-weight: 600;
}

.onsale {
	border: 0;
	border-radius: 999px;
	background: var(--ar-primary);
	color: #fff;
	padding: 4px 12px;
	font-size: 13px;
	font-weight: 700;
}

ul.products li.product .onsale {
	position: absolute;
	top: 12px;
	left: 12px;
	margin: 0;
}

ul.products li.product {
	position: relative;
}

/* -------------------------------------------------------- single product */

.single-product div.product {
	margin-bottom: 48px;
}

.single-product div.product .woocommerce-product-gallery {
	margin-bottom: 24px;
}

.single-product div.product .woocommerce-product-gallery .flex-viewport,
.single-product div.product .woocommerce-product-gallery__image:only-child,
.single-product div.product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
	border: 1px solid var(--ar-border);
	border-radius: 24px;
	overflow: hidden;
	background: #fff;
}

.single-product div.product .woocommerce-product-gallery img {
	width: 100%;
	height: auto;
}

.single-product div.product .flex-control-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
}

.single-product div.product .flex-control-thumbs li {
	float: none;
	width: 72px;
	margin: 0;
}

.single-product div.product .flex-control-thumbs img {
	border: 1px solid var(--ar-border);
	border-radius: 12px;
	opacity: 1;
}

.single-product div.product .flex-control-thumbs img.flex-active {
	border-color: var(--ar-primary);
}

.single-product div.product .product_title {
	margin: 0 0 8px;
	font-family: var(--ar-head);
	font-weight: 600;
	font-size: clamp(21px, 2.2vw, 30px);
	line-height: 1.25;
}

.single-product div.product p.price,
.single-product div.product span.price {
	margin: 0 0 20px;
	font-family: var(--ar-head);
	font-weight: 700;
	font-size: 24px;
	color: var(--ar-primary);
}

.single-product div.product .woocommerce-product-details__short-description {
	color: var(--ar-muted);
}

.woocommerce-tabs {
	padding-top: 8px;
	border-top: 1px solid var(--ar-border);
}

.woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
	float: none;
	margin: 0 0 16px;
	padding: 16px 0 0;
	border: 0;
	list-style: none;
}

.woocommerce-tabs ul.tabs li {
	margin: 0;
	border: 0;
}

.woocommerce-tabs ul.tabs li a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid var(--ar-border);
	border-radius: 999px;
	color: var(--ar-text);
	font-weight: 700;
}

.woocommerce-tabs ul.tabs li.active a {
	border-color: var(--ar-primary);
	background: var(--ar-primary);
	color: #fff;
}

.woocommerce-tabs ul.tabs li.active::after,
.woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce-tabs .panel {
	width: 100%;
	float: none;
	margin: 0;
	max-width: 760px;
	color: var(--ar-muted);
}

.woocommerce-tabs .panel h2:first-of-type {
	display: none;
}

.related.products > h2,
.upsells.products > h2 {
	margin: 0 0 20px;
	font-size: 26px;
}

/* ----------------------------------------------------------------- home */

.arontra-home {
	padding-bottom: 8px;
}

.ar-hero {
	position: relative;
	height: 720px;
	margin-top: 16px;
	border: 1px solid var(--ar-border);
	border-radius: 28px;
	overflow: hidden;
	background: #fff;
}

.ar-hero__media {
	position: absolute;
	inset: 0;
	display: block;
}

.ar-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: 80% center;
}

.ar-hero__card {
	position: absolute;
	left: 40px;
	bottom: 40px;
	width: min(440px, calc(100% - 80px));
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	padding: 36px;
	box-sizing: border-box;
	border-radius: 24px;
	background: var(--ar-primary);
	color: #fff;
}

.ar-hero__title {
	margin: 0;
	color: #fff;
	font-size: clamp(30px, 3vw, 42px);
	line-height: 1.15;
}

.ar-hero__card .ar-button {
	min-height: 54px;
	padding: 0 30px;
}

.ar-hero--no-media {
	height: auto;
	border: 0;
}

.ar-hero--no-media .ar-hero__card {
	position: static;
	width: auto;
}

.ar-section {
	padding-top: 64px;
}

.ar-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.ar-section__title {
	margin: 0 0 20px;
	font-size: 30px;
}

.ar-section__head .ar-section__title {
	margin: 0;
}

.ar-section__more {
	padding: 10px 0;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
}

.ar-cats {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ar-cat {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	border-radius: 20px;
	overflow: hidden;
	background: var(--ar-surface);
	text-decoration: none;
}

.ar-cat__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
}

.ar-cat__mark {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 46%;
	height: auto;
	opacity: 0.12;
}

.ar-cat__name {
	position: absolute;
	left: 12px;
	bottom: 12px;
	max-width: calc(100% - 24px);
	padding: 9px 16px;
	box-sizing: border-box;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
	color: var(--ar-text);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.3;
}

.ar-cat:hover .ar-cat__name {
	color: var(--ar-primary);
}

.ar-news ul.products {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ar-howto {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	padding: 36px clamp(24px, 3vw, 48px);
	border-radius: 28px;
	background: var(--ar-primary);
	color: #fff;
}

.ar-howto h2 {
	margin: 0;
	color: #fff;
	font-size: 28px;
}

.ar-howto__steps {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 36px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 700;
}

.ar-howto__steps li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ar-howto__steps span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	color: var(--ar-primary);
	font-family: var(--ar-head);
}

.ar-howto .ar-button {
	min-height: 54px;
	padding: 0 24px 0 12px;
}

.ar-wa-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
}

/* --------------------------------------------------------------- footer */

.site-footer {
	margin-top: 72px;
	padding: 0;
	background: var(--ar-primary);
	color: var(--ar-on-primary-muted);
}

.arontra-home + .site-footer,
.home .site-footer {
	margin-top: 0;
}

.arontra-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
}

.arontra-footer__logo img {
	display: block;
	width: auto;
	height: 64px;
}

.arontra-footer__links ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.arontra-footer__links a {
	display: inline-block;
	padding: 10px 0;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.arontra-footer__legal {
	margin: 0;
	font-size: 13px;
}

/* -------------------------------------------------------------- tablets */

@media (max-width: 1100px) {
	ul.products,
	.site-main ul.products,
	.ar-news ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ar-cats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* --------------------------------------------------------------- phones */

@media (max-width: 767px) {
	.site-header > .col-full {
		justify-content: center;
		min-height: 58px;
		padding-top: 0;
		padding-bottom: 0;
	}

	.arontra-logo img {
		height: 16px;
	}

	.site-header .site-search {
		display: none;
	}

	.storefront-primary-navigation {
		position: static;
		border-top: 0;
	}

	.storefront-primary-navigation .col-full {
		padding: 0;
	}

	.main-navigation .menu-toggle {
		position: absolute;
		top: 7px;
		left: 6px;
		width: 44px;
		height: 44px;
		min-height: 0;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 12px;
		background: transparent;
		color: var(--ar-text);
	}

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

	/* Storefront draws the bars with three pseudo-elements, one inside the (hidden) label. */
	.main-navigation .menu-toggle::after,
	.main-navigation .menu-toggle span::before,
	.main-navigation .menu-toggle span::after {
		display: none;
	}

	.main-navigation .menu-toggle::before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 24px;
		height: 24px;
		margin: auto;
		border-radius: 0;
		background-color: currentColor;
		transform: none;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E") center / contain no-repeat;
	}

	.main-navigation.toggled .menu-toggle::before {
		-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
		mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
	}

	.main-navigation .primary-navigation {
		display: none;
	}

	.handheld-navigation {
		border-top: 0;
	}

	.main-navigation.toggled .handheld-navigation {
		border-top: 1px solid var(--ar-border);
		padding-bottom: 12px;
	}

	.handheld-navigation .woocommerce-product-search {
		margin: 14px 16px 6px;
	}

	.handheld-navigation ul.menu {
		margin: 0;
	}

	.handheld-navigation ul.menu > li {
		position: relative;
		border-bottom: 1px solid var(--ar-border);
	}

	.handheld-navigation ul.menu > li > a {
		display: flex;
		align-items: center;
		min-height: 56px;
		padding: 0 64px 0 20px;
		color: var(--ar-text);
		font-weight: 700;
		font-size: 17px;
	}

	.handheld-navigation .dropdown-toggle {
		position: absolute;
		top: 6px;
		right: 8px;
		width: 44px;
		height: 44px;
		border: 0;
		background: transparent;
		color: var(--ar-text);
	}

	/* Storefront's toggle icon is a Font Awesome glyph; draw the same chevron as the design. */
	.handheld-navigation .dropdown-toggle::after {
		content: "";
		display: block;
		width: 18px;
		height: 18px;
		margin: auto;
		background: currentColor;
		font-family: inherit;
		transform: none;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	}

	.handheld-navigation .dropdown-toggle.toggled-on::after {
		transform: rotate(180deg);
	}

	.main-navigation.toggled .menu-toggle::before {
		transform: none;
	}

	.handheld-navigation ul.sub-menu {
		margin: 0;
		padding: 0 0 10px;
		background: var(--ar-surface);
	}

	.handheld-navigation ul.sub-menu a {
		display: flex;
		align-items: center;
		min-height: 48px;
		padding: 0 36px;
		color: var(--ar-text);
		font-weight: 600;
		font-size: 15px;
	}

	.storefront-breadcrumb {
		padding-top: 12px;
	}

	ul.products,
	.site-main ul.products,
	.ar-news ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px 12px;
	}

	ul.products li.product .woocommerce-loop-product__title {
		font-size: 15px;
	}

	ul.products li.product img {
		border-radius: 16px;
	}

	.ar-hero {
		height: auto;
		margin-top: 12px;
		border-radius: 20px;
	}

	.ar-hero__media {
		position: relative;
		height: 340px;
	}

	.ar-hero__media img {
		object-position: center;
	}

	.ar-hero__card {
		position: relative;
		left: auto;
		bottom: auto;
		width: auto;
		margin: 0 12px 12px;
		padding: 24px;
		gap: 18px;
	}

	.ar-section {
		padding-top: 48px;
	}

	.ar-section__title {
		font-size: 24px;
	}

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

	.ar-cat__name {
		left: 8px;
		bottom: 8px;
		max-width: calc(100% - 16px);
		padding: 7px 12px;
		font-size: 14px;
	}

	.ar-howto {
		padding: 28px 22px;
	}

	/* The product gallery runs edge to edge on phones. */
	.single-product div.product .woocommerce-product-gallery {
		margin-left: calc(-1 * var(--ar-gutter));
		margin-right: calc(-1 * var(--ar-gutter));
	}

	.single-product div.product .woocommerce-product-gallery .flex-viewport,
	.single-product div.product .woocommerce-product-gallery__image:only-child,
	.single-product div.product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
		border-width: 0 0 1px;
		border-radius: 0;
	}

	/* One row of square thumbnails under the photo, lined up with the text: up to five fit at 64px
	   (shrinking a little on narrow phones), more scroll sideways. WooCommerce sizes them as percentage
	   columns with a (0,5,2) --columns-N rule, which on a phone left 21px images 56px apart. */
	.single-product div.product .woocommerce-product-gallery .flex-viewport {
		margin-bottom: 0;
	}

	.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
		gap: 8px;
		margin: 12px 0 0;
		padding: 0 var(--ar-gutter);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
	}

	.single-product div.product .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
		display: none;
	}

	/* Storefront's clearfix ::before / ::after would be flex items and add a gap at each end. */
	.single-product div.product .woocommerce-product-gallery .flex-control-thumbs::before,
	.single-product div.product .woocommerce-product-gallery .flex-control-thumbs::after {
		content: none;
	}

	.single-product div.product .woocommerce-product-gallery[class*="--columns-"] .flex-control-thumbs li {
		flex: 0 1 64px;
		min-width: 52px;
		width: auto;
		margin: 0;
	}

	.single-product div.product .flex-control-thumbs img {
		aspect-ratio: 1;
		object-fit: cover;
	}

	.arontra-footer {
		flex-direction: column;
		align-items: flex-start;
		padding-bottom: calc(96px + env(safe-area-inset-bottom));
	}

	.arontra-footer__logo img {
		height: 56px;
	}
}

@media (min-width: 768px) {
	.main-navigation .menu-toggle,
	.handheld-navigation {
		display: none;
	}

	.single-product div.product .woocommerce-product-gallery {
		width: 54%;
	}

	.single-product div.product .summary {
		width: 40%;
	}
}

/* --------------------------------------------- WhatsApp (arontra-catalog) */

:root {
	/* The theme removes Storefront's phone footer bar, so the floating button can sit lower. */
	--arontra-floating-bottom-phone: 20px;
}

@media (max-width: 767px) {
	/* On phones the floating WhatsApp button is the inquiry button (design C3). */
	.single-product .summary .arontra-inquiry-action,
	.single-product .summary > .arontra-whatsapp {
		display: none;
	}
}

/* Storefront sizes the header parts in percentages to leave room for the cart; there is no cart. */
@media (min-width: 768px) {
	body.woocommerce-active .site-header .site-branding,
	body.woocommerce-active .site-header .site-search,
	body.woocommerce-active .site-header .main-navigation {
		float: none;
		margin: 0;
	}

	body.woocommerce-active .site-header .site-branding {
		width: auto;
	}

	body.woocommerce-active .site-header .site-search {
		width: auto;
		flex: 0 1 440px;
	}

	body.woocommerce-active .site-header .main-navigation {
		width: 100%;
	}
}

@media (min-width: 768px) {
	/* Storefront's full-width rule (0,4,1) wins over plain .single-product selectors. */
	.storefront-full-width-content.single-product div.product .woocommerce-product-gallery {
		width: 54%;
		margin-right: 6%;
	}

	.storefront-full-width-content.single-product div.product .summary {
		width: 40%;
	}

	/* Keep the floating WhatsApp button from covering the footer text. */
	.arontra-footer {
		padding-right: 96px;
	}
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
	float: none;
	width: 72px;
	margin: 0;
}

/* Storefront adds 4.236em under the header on the home page (.home.page:not(...)); the id wins. */
#masthead {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	/* On a phone the product photo should be the first thing; the menu already gives the path. */
	.single-product .storefront-breadcrumb {
		display: none;
	}
}

/* WooCommerce notices ("Nenhum produto foi encontrado…") in the site's neutrals instead of Storefront blue. */
.woocommerce-info,
.woocommerce-message,
.woocommerce-noreviews,
p.no-comments {
	border: 0;
	border-radius: 16px;
	background: var(--ar-surface);
	color: var(--ar-text);
}

.woocommerce-info::before,
.woocommerce-message::before {
	color: var(--ar-muted);
}

/* Storefront's float grid (.site-main ul.products.columns-N li.product, 0,4,2) shrinks cards inside our grid. */
.site-main ul.products[class*="columns-"] li.product,
ul.products[class*="columns-"] li.product {
	float: none;
	clear: none;
	width: auto;
	margin: 0;
}

#main .woocommerce-products-header,
#main .woocommerce-products-header__title {
	text-align: left;
}

/* .storefront-full-width-content .site-main ul.products.columns-N li.product goes one class higher still. */
#main ul.products li.product {
	float: none;
	clear: none;
	width: auto;
	margin: 0;
}

/* The home "Abrir WhatsApp" button is also an a.arontra-whatsapp (counted by analytics); keep it white. */
.ar-howto a.arontra-whatsapp,
.ar-howto a.arontra-whatsapp:hover,
.ar-howto a.arontra-whatsapp:focus {
	min-height: 54px;
	padding: 0 24px 0 12px;
	background: #fff;
	color: var(--ar-primary);
}

/* Storefront paints number inputs grey; the stepper's field sits inside the pill. */
#arontra-variant-inquiry .arontra-stepper input[type="number"] {
	background: transparent;
	box-shadow: none;
}

/* Below ~1200 px the ten categories no longer fit one row; let them wrap from the left instead of
   spreading a lone last item across the bar. */
@media (min-width: 768px) and (max-width: 1199px) {
	.main-navigation .primary-navigation ul.menu {
		justify-content: flex-start;
		column-gap: 18px;
	}

	.main-navigation .primary-navigation ul.menu > li > a {
		min-height: 44px;
		font-size: 14px;
	}
}

/* Storefront lays the product tabs out as a left column on wide screens; keep them above the text. */
#main .woocommerce-tabs ul.tabs,
#main .woocommerce-tabs .panel {
	float: none;
	width: 100%;
	margin-right: 0;
}

#main .woocommerce-tabs .panel {
	max-width: 760px;
}

/* "Marcas" in the category menus: a label row, then the brands sold in that category. */
.main-navigation .primary-navigation ul.menu > li > ul.sub-menu li.menu-item-label {
	flex-basis: 100%;
	margin-top: 6px;
}

.main-navigation .primary-navigation ul.menu > li > ul.sub-menu li.menu-item-label:first-child {
	margin-top: 0;
}

.main-navigation .primary-navigation ul.menu > li > ul.sub-menu li.menu-item-label > a,
.handheld-navigation li.menu-item-label > a {
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ar-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	pointer-events: none;
}

@media (max-width: 767px) {
	.handheld-navigation ul.sub-menu li.menu-item-label > a {
		min-height: 36px;
		padding: 10px 36px 0;
	}
}

.arontra-subcats__brands {
	align-items: center;
	margin-top: -12px;
}

.arontra-subcats__label {
	color: var(--ar-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-right: 4px;
}

/* Phones: each row of chips is one strip that scrolls sideways, so the products stay near the top.
   The strip runs to the screen edges; the chip cut off at the right shows there is more. */
@media (max-width: 767px) {
	.arontra-subcats ul {
		position: relative; /* offsetParent for the script that brings the current chip into view */
		flex-wrap: nowrap;
		gap: 8px;
		margin: 0 calc(-1 * var(--ar-gutter)) 16px;
		padding: 0 var(--ar-gutter) 2px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-padding: 0 var(--ar-gutter);
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}

	.arontra-subcats ul::-webkit-scrollbar {
		display: none;
	}

	.arontra-subcats li {
		flex: none;
		scroll-snap-align: start;
	}

	.arontra-subcats a {
		min-height: 40px;
		padding: 0 16px;
		white-space: nowrap;
	}

	.arontra-subcats__brands {
		margin-top: -6px;
	}
}

/* Information pages (Como comprar, perguntas, trocas, privacidade): one readable column. */
.page:not(.home) .site-main .hentry {
	max-width: 760px;
	margin: 0;
	padding-top: 8px;
}

.page:not(.home) .hentry .entry-header {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
}

.page:not(.home) .entry-content h2 {
	margin: 32px 0 8px;
	font-size: 21px;
	line-height: 1.3;
}

.page:not(.home) .entry-content p,
.page:not(.home) .entry-content li {
	color: var(--ar-text);
}

.page:not(.home) .entry-content ul {
	margin-left: 1.2em;
}

.page:not(.home) .entry-content .arontra-whatsapp {
	margin-top: 8px;
}

/* Shopping facts: a centred row under the home hero, a compact list under the product inquiry. */
.ar-trust,
.ar-assure {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--ar-muted);
	font-weight: 600;
	font-size: 15px;
}

.ar-trust {
	justify-content: center;
	gap: 12px 48px;
	padding-top: 24px;
}

.ar-assure {
	flex-direction: column;
	gap: 10px;
	margin: 4px 0 24px;
	padding-top: 18px;
	border-top: 1px solid var(--ar-border);
	font-size: 14px;
}

.ar-trust li,
.ar-assure li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ar-trust svg,
.ar-assure svg {
	flex: 0 0 auto;
	color: var(--ar-primary);
}

.ar-trust a,
.ar-assure a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 767px) {
	.ar-trust {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		padding-top: 20px;
		font-size: 14px;
	}
}

/* Privacy notice of the ARONTRA Analytics plugin in the site's palette. Both choices keep the same
   weight (no highlighted "accept"), as the ANPD cookie guidance asks. */
body .arontra-consent {
	border-color: var(--ar-border);
	border-radius: 20px;
	color: var(--ar-text);
	font-family: var(--ar-body);
}

body .arontra-consent h2 {
	color: var(--ar-text);
	font-family: var(--ar-head);
}

body .arontra-consent a {
	color: var(--ar-text);
}

body .arontra-consent-actions button {
	border-color: var(--ar-primary);
	border-radius: 999px;
	color: var(--ar-primary);
	font-family: var(--ar-body);
}

body .arontra-consent-actions button:hover {
	background: var(--ar-surface);
}

body .arontra-privacy-settings {
	border-color: var(--ar-border);
	border-radius: 999px;
	color: var(--ar-text);
	font-family: var(--ar-body);
}

@media (max-width: 600px) {
	/* The plugin leaves room for Storefront's phone bar, which this theme removes. */
	body .arontra-consent {
		bottom: 92px;
		max-height: calc(100dvh - 112px);
	}

	body .arontra-privacy-settings {
		bottom: 20px;
	}
}

