/*
Theme Name: Bruja Yogini
Theme URI: https://example.com/bruja-yogini
Author: Bruja Yogini
Description: A responsive, customizable WooCommerce theme for Bruja Yogini.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bruja-yogini
*/

:root {
	--by-green: #448877;
	--by-purple: #5a5c89;
	--by-ink: #25252a;
	--by-muted: #77777d;
	--by-line: #ececef;
	--by-soft: #f7f7f8;
	--by-font: "Lato", sans-serif;
	--by-content-width: 1200px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--by-ink);
	background: #fff;
	font-family: var(--by-font);
	font-size: 16px;
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--by-green);
	text-decoration: none;
}

a:hover {
	color: var(--by-purple);
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
.button,
input[type="submit"] {
	cursor: pointer;
}

:focus-visible {
	outline: 3px solid var(--by-purple);
	outline-offset: 3px;
}

.by-skip-link {
	position: absolute;
	z-index: 20;
	top: 8px;
	left: 8px;
	padding: 10px 14px;
	transform: translateY(-150%);
	color: #fff;
	background: var(--by-purple);
}

.by-skip-link:focus {
	transform: translateY(0);
}

.by-container {
	width: min(var(--by-content-width), calc(100% - 48px));
	margin-inline: auto;
}

.by-header {
	background: #fff;
}

.by-header__top {
	display: grid;
	grid-template-columns: minmax(170px, 1fr) minmax(250px, 2.2fr) auto;
	align-items: center;
	gap: 24px;
	min-height: 100px;
}

.by-brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--by-purple);
	font-size: clamp(22px, 2vw, 30px);
	font-weight: 700;
	line-height: 1.1;
	white-space: nowrap;
}

.by-brand:hover {
	color: var(--by-green);
}

.by-brand__mark {
	position: relative;
	display: inline-block;
	width: 17px;
	height: 32px;
	border-radius: 65% 65% 50% 50%;
	background: linear-gradient(180deg, var(--by-green) 0 35%, var(--by-purple) 36% 100%);
	clip-path: polygon(50% 0, 100% 28%, 80% 100%, 50% 75%, 20% 100%, 0 28%);
}

.by-brand .custom-logo {
	width: auto;
	max-width: 190px;
	max-height: 56px;
}

.by-header__top > .custom-logo-link .custom-logo,
.by-footer .custom-logo-link .custom-logo {
	width: auto;
	max-width: 190px;
	max-height: 56px;
}

.by-search {
	display: flex;
	min-width: 0;
	border: 1px solid var(--by-line);
	border-radius: 10px;
	background: #fafafa;
}

.by-search input[type="search"] {
	width: 100%;
	min-width: 0;
	padding: 12px 16px;
	border: 0;
	border-radius: 10px 0 0 10px;
	background: transparent;
}

.by-search button {
	display: grid;
	width: 48px;
	flex: 0 0 48px;
	place-items: center;
	border: 0;
	border-radius: 0 10px 10px 0;
	color: var(--by-purple);
	background: transparent;
}

.by-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.by-header__actions > a {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 8px 14px;
	border-radius: 9px;
	color: var(--by-ink);
	font-size: 13px;
	font-weight: 700;
}

.by-header__actions > a:hover {
	color: var(--by-green);
	background: var(--by-soft);
}

.by-header__actions .by-header__signup {
	color: #fff;
	background: var(--by-purple);
}

.by-header__actions .by-header__signup:hover {
	color: #fff;
	background: var(--by-green);
}

.by-icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	vertical-align: middle;
}

.by-icon--filled {
	fill: currentColor;
	stroke: none;
}

.by-header__cart-count {
	display: inline-grid;
	width: 19px;
	height: 19px;
	place-items: center;
	border-radius: 50%;
	color: #fff;
	background: var(--by-purple);
	font-size: 11px;
}

.by-header__nav {
	position: relative;
	color: #fff;
	background: var(--by-green);
}

.by-nav__inner {
	position: relative;
	display: flex;
	min-height: 44px;
	align-items: center;
	justify-content: flex-end;
}

.by-menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 10px 0;
	border: 0;
	color: inherit;
	background: transparent;
	font-weight: 700;
}

.by-nav__list,
.by-nav__list ul {
	display: flex;
	align-items: center;
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.by-nav__list a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 11px 0;
	color: #fff;
	font-size: 14px;
}

.by-nav__list a:hover,
.by-nav__list .current-menu-item > a {
	color: #e3efeb;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.by-nav__list .sub-menu {
	position: absolute;
	z-index: 5;
	display: none;
	min-width: 190px;
	align-items: flex-start;
	gap: 0;
	padding: 8px 14px;
	background: var(--by-green);
}

.by-nav__list .menu-item-has-children:hover > .sub-menu,
.by-nav__list .menu-item-has-children:focus-within > .sub-menu {
	display: flex;
	flex-direction: column;
}

.by-home-hero {
	position: relative;
	display: flex;
	min-height: clamp(370px, 43vw, 530px);
	align-items: center;
	overflow: hidden;
	background: linear-gradient(105deg, #f3eee9 0%, #ece8e5 46%, #dedbd6 100%);
}

.by-home-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.by-home-hero::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .73) 38%, rgba(255, 255, 255, .04) 100%);
	content: "";
}

.by-home-hero__content {
	position: relative;
	z-index: 1;
	width: min(var(--by-content-width), calc(100% - 48px));
	margin-inline: auto;
	padding-block: 64px;
}

.by-home-hero__copy {
	max-width: 540px;
}

.by-eyebrow {
	margin: 0 0 8px;
	color: var(--by-green);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.by-home-hero h1 {
	max-width: 570px;
	margin: 0 0 14px;
	font-size: clamp(34px, 5vw, 58px);
	line-height: 1.08;
}

.by-home-hero__text {
	max-width: 460px;
	margin: 0 0 24px;
	font-size: 17px;
}

.by-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	display: inline-flex;
	min-height: 45px;
	align-items: center;
	justify-content: center;
	padding: 11px 20px;
	border: 0;
	border-radius: 7px;
	color: #fff;
	background: var(--by-green);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	transition: background-color .18s ease, transform .18s ease;
}

.by-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	transform: translateY(-1px);
	color: #fff;
	background: var(--by-purple);
}

.by-carousel__controls {
	position: absolute;
	z-index: 2;
	right: max(24px, calc((100% - var(--by-content-width)) / 2));
	bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.by-carousel__controls button {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border: 1px solid rgba(37, 37, 42, .2);
	border-radius: 50%;
	color: var(--by-ink);
	background: rgba(255, 255, 255, .8);
}

.by-carousel__controls button:hover {
	color: #fff;
	background: var(--by-green);
}

.by-carousel__dots {
	display: flex;
	gap: 6px;
}

.by-carousel__dots button {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	background: rgba(37, 37, 42, .35);
}

.by-carousel__dots button[aria-current="true"] {
	background: var(--by-green);
}

.by-section {
	padding-block: 68px;
}

.by-section--soft {
	background: var(--by-soft);
}

.by-section__heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.by-section__heading h2 {
	margin: 0;
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.2;
}

.by-section__heading p {
	max-width: 560px;
	margin: 8px 0 0;
	color: var(--by-muted);
}

.by-text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	white-space: nowrap;
}

.by-products {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-page #primary,
.woocommerce-page .site-main {
	width: min(var(--by-content-width), calc(100% - 48px));
	margin-inline: auto;
}

.by-product-card {
	min-width: 0;
}

.by-product-card__image {
	display: grid;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	place-items: center;
	border-radius: 12px;
	background: #f1f1f2;
}

.by-product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.by-product-card__image:hover img {
	transform: scale(1.04);
}

.by-product-card__title {
	display: block;
	margin-top: 11px;
	color: var(--by-ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.by-product-card__title:hover {
	color: var(--by-green);
}

.by-product-card__price {
	margin-top: 4px;
	color: var(--by-green);
	font-size: 15px;
	font-weight: 700;
}

.by-product-card__rating {
	margin-top: 4px;
	color: var(--by-purple);
}

.by-empty-products {
	grid-column: 1 / -1;
	padding: 22px;
	border: 1px dashed #d8d8dc;
	border-radius: 10px;
	color: var(--by-muted);
}

.by-categories {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.by-category {
	position: relative;
	display: flex;
	min-height: 220px;
	align-items: end;
	overflow: hidden;
	border-radius: 12px;
	background: #e8e8e8;
}

.by-category__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.by-category:hover .by-category__image {
	transform: scale(1.04);
}

.by-category::after {
	position: absolute;
	inset: 25% 0 0;
	background: linear-gradient(transparent, rgba(25, 25, 30, .72));
	content: "";
}

.by-category__title {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 20px;
	color: #fff;
	font-size: 23px;
}

.by-category__title a {
	color: inherit;
}

.by-benefits {
	color: #fff;
	background: var(--by-green);
}

.by-benefits__inner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.by-benefit {
	display: flex;
	min-height: 86px;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px;
	border-right: 1px solid rgba(255, 255, 255, .28);
}

.by-benefit:last-child {
	border-right: 0;
}

.by-benefit strong,
.by-benefit span {
	display: block;
}

.by-benefit span {
	font-size: 12px;
	opacity: .86;
}

.by-footer {
	padding-top: 54px;
}

.by-newsletter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 62px;
	padding: 30px clamp(24px, 5vw, 58px);
	border-radius: 0 0 22px 22px;
	color: #fff;
	background: var(--by-purple);
}

.by-newsletter__title {
	margin: 0;
	font-size: 24px;
}

.by-newsletter__text {
	margin: 3px 0 0;
	color: rgba(255, 255, 255, .84);
}

.by-newsletter .by-button {
	flex: 0 0 auto;
	color: var(--by-purple);
	background: #fff;
}

.by-footer__columns {
	display: grid;
	grid-template-columns: 1.2fr .8fr 1fr;
	gap: 50px;
	padding-bottom: 42px;
}

.by-footer__columns--two-columns {
	grid-template-columns: 1.2fr .8fr;
}

.by-footer__columns--stacked {
	grid-template-columns: 1fr;
}

.by-footer__brand {
	margin-bottom: 14px;
	font-size: 25px;
}

.by-footer__description {
	max-width: 360px;
	margin: 0 0 14px;
	font-size: 14px;
}

.by-footer__contact {
	display: grid;
	gap: 3px;
	font-size: 14px;
}

.by-footer__heading {
	margin: 0 0 15px;
	color: var(--by-purple);
	font-size: 14px;
	text-transform: uppercase;
}

.by-footer__links,
.by-footer__links ul {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.by-footer__links a {
	color: #57575d;
	font-size: 14px;
}

.by-footer__links a:hover {
	color: var(--by-green);
}

.by-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.by-socials a {
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	border-radius: 9px;
	color: var(--by-green);
	background: var(--by-soft);
}

.by-socials a:hover {
	color: #fff;
	background: var(--by-green);
}

.by-footer__bottom {
	padding: 16px 0;
	border-top: 1px solid var(--by-line);
	color: var(--by-muted);
	font-size: 13px;
	text-align: center;
}

.by-page {
	min-height: 35vh;
	padding-block: 48px 72px;
}

.by-page h1,
.by-page h2 {
	line-height: 1.2;
}

.by-page__title {
	margin-top: 0;
}

.by-post {
	padding: 22px 0;
	border-bottom: 1px solid var(--by-line);
}

.by-post h2 {
	margin: 0 0 8px;
}

.by-post__meta {
	color: var(--by-muted);
	font-size: 14px;
}

.by-pagination {
	margin-top: 28px;
}

.by-pagination .nav-links {
	display: flex;
	gap: 8px;
}

.by-pagination .page-numbers {
	padding: 7px 12px;
	border: 1px solid var(--by-line);
	border-radius: 5px;
}

.by-pagination .current {
	color: #fff;
	background: var(--by-green);
}

.woocommerce .woocommerce-breadcrumb {
	margin: 20px 0;
	color: var(--by-muted);
	font-size: 13px;
}

.woocommerce .woocommerce-breadcrumb a {
	color: var(--by-green);
}

.woocommerce div.product div.images img {
	border-radius: 10px;
}

.woocommerce div.product .product_title {
	color: var(--by-ink);
	font-size: clamp(26px, 3vw, 34px);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--by-green);
	font-size: 24px;
	font-weight: 700;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	padding: 0;
	background: var(--by-soft);
	border-radius: 8px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	padding: 14px 18px;
	color: var(--by-muted);
	font-weight: 400;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--by-purple);
	font-weight: 700;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
	border-color: var(--by-line);
	border-radius: 8px;
}

.woocommerce #reviews #comments h2,
.woocommerce #review_form_wrapper .comment-reply-title {
	color: var(--by-ink);
	font-size: 22px;
	font-weight: 700;
}

.woocommerce #review_form #respond textarea,
.woocommerce #review_form #respond input[type="text"],
.woocommerce #review_form #respond input[type="email"] {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--by-line);
	border-radius: 6px;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	text-align: left;
}

.woocommerce ul.products li.product a img {
	border-radius: 10px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	color: var(--by-ink);
	font-size: 16px;
}

.woocommerce ul.products li.product .price {
	color: var(--by-green);
	font-weight: 700;
}

.woocommerce span.onsale {
	min-height: 0;
	padding: 5px 9px;
	border-radius: 5px;
	color: #fff;
	background: var(--by-purple);
	line-height: 1.4;
}

.woocommerce .star-rating,
.woocommerce p.stars a {
	color: #d5a82b;
}

.woocommerce .quantity .qty {
	min-height: 42px;
	border: 1px solid var(--by-line);
	border-radius: 5px;
}

.woocommerce-message,
.woocommerce-info {
	border-top-color: var(--by-green);
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--by-green);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 900px) {
	.by-header__top {
		grid-template-columns: 1fr auto;
		gap: 15px;
		padding-block: 16px;
	}

	.by-search {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.by-header__actions > a {
		padding-inline: 9px;
	}

	.by-header__actions .by-header__login {
		display: none;
	}

	.by-nav__inner {
		justify-content: flex-start;
	}

	.by-menu-toggle {
		display: inline-flex;
	}

	.by-nav__list {
		position: absolute;
		z-index: 6;
		top: 100%;
		right: 0;
		left: 0;
		display: flex;
		align-items: stretch;
		flex-direction: column;
		gap: 0;
		padding: 8px 24px 16px;
		background: var(--by-green);
	}

	.by-nav__list.is-collapsed {
		display: none;
	}

	.by-nav__list.is-open {
		display: flex;
	}

	.by-nav__list a {
		padding-block: 10px;
	}

	.by-products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.by-footer__columns {
		grid-template-columns: 1fr 1fr;
	}

	.by-footer__columns > :first-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.by-container,
	.by-home-hero__content {
		width: min(100% - 32px, var(--by-content-width));
	}

	.by-header__top {
		min-height: 0;
	}

	.by-brand {
		font-size: 23px;
	}

	.by-brand .custom-logo {
		max-width: 150px;
	}

	.by-header__top > .custom-logo-link .custom-logo,
	.by-footer .custom-logo-link .custom-logo {
		max-width: 150px;
	}

	.by-header__actions {
		gap: 4px;
	}

	.by-header__actions > a {
		min-height: 38px;
		padding: 7px;
	}

	.by-header__actions .by-header__signup {
		padding-inline: 10px;
		font-size: 12px;
	}

	.by-header__actions .by-header__cart-label {
		display: none;
	}

	.by-home-hero {
		min-height: 410px;
	}

	.by-home-hero::after {
		background: linear-gradient(90deg, rgba(255, 255, 255, .93), rgba(255, 255, 255, .66));
	}

	.by-home-hero__content {
		padding-block: 48px;
	}

	.by-home-hero__text {
		font-size: 15px;
	}

	.by-carousel__controls {
		right: 16px;
		bottom: 14px;
	}

	.by-section {
		padding-block: 46px;
	}

	.by-section__heading {
		align-items: flex-start;
	}

	.by-section__heading .by-text-link {
		font-size: 13px;
	}

	.by-products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 12px;
	}

	.by-categories {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.by-category {
		min-height: 190px;
	}

	.by-benefits__inner {
		grid-template-columns: 1fr;
	}

	.by-benefit {
		min-height: 70px;
		justify-content: flex-start;
		padding-left: 28px;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, .28);
	}

	.by-benefit:last-child {
		border-bottom: 0;
	}

	.by-newsletter {
		align-items: flex-start;
		flex-direction: column;
		margin-bottom: 42px;
		padding: 26px 22px;
	}

	.by-newsletter__title {
		font-size: 21px;
	}

	.by-footer__columns {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.by-footer__columns > :first-child {
		grid-column: auto;
	}

	.by-page {
		padding-block: 32px 52px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
