/* Regalos Organic Artisanal — layout rules theme.json can't express. */

/* ---------- Header ---------- */
.oa-topbar {
	display: none;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--wp--preset--color--surface-variant);
}

.oa-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: color-mix(in srgb, var(--wp--preset--color--background) 90%, transparent);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.oa-badge-new {
	display: inline-flex;
	align-items: center;
	background: var(--wp--preset--color--cta-orange);
	color: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--radius--full);
	padding: 2px 10px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	margin-left: 6px;
}

.oa-nav-desktop {
	display: none;
}

.oa-nav-item {
	position: relative;
	padding-bottom: 14px;
	margin-bottom: -14px;
}

.oa-nav-link {
	color: var(--wp--preset--color--on-background);
	text-decoration: none;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding-bottom: 4px;
	border-bottom: 2px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.oa-nav-item:hover .oa-nav-link,
.oa-nav-item:focus-within .oa-nav-link {
	color: var(--wp--preset--color--primary);
	border-bottom-color: var(--wp--preset--color--primary);
}

.oa-nav-link .icon {
	transition: transform 0.15s ease;
}

.oa-nav-item:hover .oa-nav-link .icon,
.oa-nav-item:focus-within .oa-nav-link .icon {
	transform: rotate(180deg);
}

.oa-dropdown {
	display: none;
	flex-direction: column;
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 0;
	min-width: 240px;
	background: var(--wp--preset--color--surface-container-lowest, #fff);
	border-radius: var(--wp--custom--radius--default, 8px);
	box-shadow: var(--wp--custom--shadow--soft);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--surface-variant) 60%, transparent);
	padding: 8px;
	z-index: 45;
}

.oa-nav-item:hover .oa-dropdown,
.oa-nav-item:focus-within .oa-dropdown {
	display: flex;
}

.oa-dropdown a {
	color: var(--wp--preset--color--on-surface, #1c1c18);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	padding: 8px 12px;
	border-radius: var(--wp--custom--radius--default, 8px);
	white-space: nowrap;
}

.oa-dropdown a:hover,
.oa-dropdown a:focus {
	background: var(--wp--preset--color--surface-container, #f2ede4);
	color: var(--wp--preset--color--primary);
}

/* Logo: compact mark on mobile, full lockup from tablet up (782px = WP's own breakpoint). */
.oa-logo-mark {
	display: block;
	height: 40px;
	width: auto;
}

.oa-logo-full {
	display: none;
	height: 40px;
	width: auto;
}

.oa-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	color: var(--wp--preset--color--on-background);
	position: relative;
}

.oa-icon-btn .icon {
	width: 26px;
	height: 26px;
}

.oa-cart-count {
	position: absolute;
	top: -6px;
	right: -8px;
	background: var(--wp--preset--color--cta-orange);
	color: var(--wp--preset--color--white);
	font-size: 10px;
	font-weight: 700;
	width: 16px;
	height: 16px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---------- Bottom tab bar (mobile) ---------- */
.oa-bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 50;
	display: flex;
	justify-content: space-around;
	align-items: center;
	height: 64px;
	padding-bottom: env(safe-area-inset-bottom);
	background: color-mix(in srgb, var(--wp--preset--color--white) 92%, transparent);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: var(--wp--custom--shadow--soft);
	border-top-left-radius: var(--wp--custom--radius--lg);
	border-top-right-radius: var(--wp--custom--radius--lg);
}

.oa-bottom-nav a,
.oa-bottom-nav button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 64px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--on-surface-variant);
	text-decoration: none;
	background: none;
	border: none;
	padding: 0;
	font-family: inherit;
	cursor: pointer;
}

.oa-bottom-nav a .icon,
.oa-bottom-nav button .icon {
	width: 22px;
	height: 22px;
}

.oa-bottom-nav a.is-active {
	color: var(--wp--preset--color--cta-orange);
}

body {
	padding-bottom: 80px;
}

/* ---------- Mobile menu (hamburger + off-canvas panel) ---------- */
.oa-brand-group {
	display: flex;
	align-items: center;
	gap: 12px;
}

.oa-menu-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	background: var(--wp--preset--color--surface-container, #f2ede4);
	border: none;
	border-radius: var(--wp--custom--radius--default, 8px);
	cursor: pointer;
	transition: background 0.15s ease;
}

.oa-menu-toggle:hover,
.oa-menu-toggle:focus-visible {
	background: var(--wp--preset--color--surface-variant, #e6ddcc);
}

.oa-menu-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 1px;
	background: var(--wp--preset--color--on-background);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.oa-menu-toggle[aria-expanded="true"] {
	background: var(--wp--preset--color--surface-variant, #e6ddcc);
}

.oa-menu-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.oa-menu-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.oa-menu-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.oa-mobile-nav-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 60;
}

.oa-mobile-nav-overlay[hidden] {
	display: none;
}

.oa-mobile-nav {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 61;
	width: 85%;
	max-width: 340px;
	background: var(--wp--preset--color--surface-container-lowest, #fff);
	box-shadow: var(--wp--custom--shadow--soft);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform 0.25s ease;
}

.oa-mobile-nav.is-open {
	transform: translateX(0);
}

.oa-mobile-nav[hidden] {
	display: flex;
}

.oa-mobile-nav-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--wp--preset--color--surface-variant);
	font-weight: 700;
}

.oa-mobile-nav-close {
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: var(--wp--preset--color--on-background);
}

.oa-mobile-nav-close .icon {
	width: 22px;
	height: 22px;
}

.oa-mobile-nav-body {
	padding: 8px 12px 24px;
}

.oa-mobile-accordion-item {
	border-bottom: 1px solid var(--wp--preset--color--surface-variant);
}

.oa-mobile-accordion-trigger {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 14px 8px;
	background: none;
	border: none;
	font-size: 15px;
	font-weight: 700;
	text-align: left;
	color: var(--wp--preset--color--on-background);
	cursor: pointer;
}

.oa-mobile-accordion-trigger .icon:first-child {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.oa-mobile-accordion-chevron {
	width: 14px;
	height: 14px;
	margin-left: auto;
	transition: transform 0.15s ease;
}

.oa-mobile-accordion-trigger[aria-expanded="true"] .oa-mobile-accordion-chevron {
	transform: rotate(180deg);
}

.oa-mobile-accordion-panel {
	display: flex;
	flex-direction: column;
	padding: 0 8px 12px 38px;
}

.oa-mobile-accordion-panel[hidden] {
	display: none;
}

.oa-mobile-accordion-panel a {
	padding: 8px 0;
	color: var(--wp--preset--color--on-surface, #1c1c18);
	text-decoration: none;
	font-size: 14px;
}

.oa-mobile-accordion-panel a:hover,
.oa-mobile-accordion-panel a:focus {
	color: var(--wp--preset--color--primary);
}

/* ---------- Search bar (permanent, always visible, no toggle) ---------- */
.oa-search-bar-row {
	padding: 0 var(--wp--preset--spacing--20) 16px;
}

.oa-search-form {
	position: relative;
	max-width: 640px;
	margin: 0 auto;
}

.oa-search-input {
	width: 100%;
	height: 44px;
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--default, 8px);
	background: var(--wp--preset--color--surface-container, #f2ede4);
	font-size: 15px;
	font-family: inherit;
	color: var(--wp--preset--color--on-background);
	padding: 0 44px 0 16px;
	outline: none;
}

.oa-search-input:focus {
	border-color: var(--wp--preset--color--primary);
}

.oa-search-submit-icon {
	position: absolute;
	top: 0;
	right: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	color: var(--wp--preset--color--on-surface-variant);
	cursor: pointer;
}

.oa-search-submit-icon .icon {
	width: 18px;
	height: 18px;
}

.oa-search-results {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 55;
	background: var(--wp--preset--color--surface-container-lowest, #fff);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--surface-variant) 60%, transparent);
	border-radius: var(--wp--custom--radius--default, 8px);
	box-shadow: var(--wp--custom--shadow--soft);
	max-height: 380px;
	overflow-y: auto;
	padding: 6px;
}

.oa-search-results[hidden] {
	display: none;
}

.oa-search-result {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: var(--wp--custom--radius--default, 8px);
	text-decoration: none;
	color: var(--wp--preset--color--on-surface, #1c1c18);
}

.oa-search-result:hover,
.oa-search-result:focus,
.oa-search-result.is-active {
	background: var(--wp--preset--color--surface-container, #f2ede4);
}

.oa-search-result img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--default, 6px);
	flex-shrink: 0;
	background: var(--wp--preset--color--surface-container, #f2ede4);
}

.oa-search-result-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.oa-search-result-price {
	font-size: 12px;
	color: var(--wp--preset--color--on-surface-variant);
}

.oa-search-result-empty {
	padding: 16px;
	font-size: 13px;
	color: var(--wp--preset--color--on-surface-variant);
	text-align: center;
}

/* ---------- Account button (header) ---------- */
.oa-account-btn .wc-block-customer-account__link,
.oa-account-btn .wc-block-customer-account__toggle {
	gap: 6px;
	padding: 0;
	color: var(--wp--preset--color--on-background);
	font-size: 13px;
	font-weight: 700;
}

.oa-account-btn .wc-block-customer-account__link:hover,
.oa-account-btn .wc-block-customer-account__toggle:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.oa-account-btn .wc-block-customer-account__account-icon {
	width: 26px;
	height: 26px;
}

/* Match the account/heart icon size above (mini-cart ships at 1.5em by default). */
.wc-block-mini-cart__button .wc-block-mini-cart__icon {
	width: 26px;
	height: 26px;
}

.oa-account-btn .wc-block-customer-account__dropdown {
	border-radius: var(--wp--custom--radius--default, 8px);
	box-shadow: var(--wp--custom--shadow--soft);
	margin-top: 8px;
}

.oa-account-btn .wc-block-customer-account__dropdown-item:hover,
.oa-account-btn .wc-block-customer-account__dropdown-item:focus {
	color: var(--wp--preset--color--primary);
}

@media (max-width: 781.98px) {
	.oa-account-btn .label {
		display: none;
	}
}

/* ---------- My Account page (login/register + logged-in dashboard) ---------- */
.woocommerce-account .woocommerce-form-row label {
	font-weight: 700;
	font-size: 13px;
}

.woocommerce-account .woocommerce-Input,
.woocommerce-account .input-text {
	border: 1px solid var(--wp--preset--color--surface-variant);
	border-radius: var(--wp--custom--radius--default, 8px);
	padding: 10px 14px;
	font-family: inherit;
}

.woocommerce-account .woocommerce-Input:focus,
.woocommerce-account .input-text:focus {
	border-color: var(--wp--preset--color--primary);
	outline: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 10px 14px;
	border-radius: var(--wp--custom--radius--default, 8px);
	text-decoration: none;
	color: var(--wp--preset--color--on-background);
	font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: var(--wp--preset--color--surface-container, #f2ede4);
	color: var(--wp--preset--color--primary);
}

/* ---------- Hero ---------- */
.oa-hero {
	position: relative;
	background: var(--wp--preset--color--surface-beige);
	border-radius: var(--wp--custom--radius--xl);
	overflow: hidden;
	padding: 24px;
}

.oa-hero-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
}

.oa-hero-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	z-index: 1;
}

.oa-hero-media {
	flex: 1;
	position: relative;
	width: 100%;
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.oa-hero-media img {
	width: 100%;
	height: auto;
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--custom--shadow--soft);
	position: relative;
	z-index: 0;
}

.oa-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--cta-orange);
}

.oa-cta-row {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.oa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: var(--wp--custom--radius--lg);
	padding: 12px 32px;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.05em;
	text-decoration: none;
	white-space: nowrap;
}

.oa-btn-primary {
	background: var(--wp--preset--color--cta-orange);
	color: var(--wp--preset--color--white);
}

.oa-btn-primary:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.oa-btn-secondary {
	background: transparent;
	color: var(--wp--preset--color--primary);
	border: 1px solid var(--wp--preset--color--outline);
}

.oa-btn-secondary:hover {
	background: var(--wp--preset--color--surface-container);
}

.oa-hero-card {
	background: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--custom--shadow--soft);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--surface-variant) 60%, transparent);
	padding: 24px;
	width: 280px;
	display: none;
}

.oa-swatch {
	width: 24px;
	height: 24px;
	border-radius: 999px;
	border: none;
	padding: 0;
	display: inline-block;
}

.oa-trust-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.oa-trust-grid .icon {
	width: 20px;
	height: 20px;
	color: var(--wp--preset--color--secondary);
	flex-shrink: 0;
}

/* ---------- Occasions row ---------- */
.oa-occasions {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scrollbar-width: none;
	padding-bottom: 8px;
}

.oa-occasions::-webkit-scrollbar {
	display: none;
}

.oa-occasion {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	min-width: 84px;
	text-decoration: none;
}

.oa-occasion-circle {
	width: 72px;
	height: 72px;
	border-radius: 999px;
	background: var(--wp--preset--color--surface-beige);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: box-shadow 0.2s ease;
}

.oa-occasion-circle img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.oa-occasion:hover .oa-occasion-circle {
	box-shadow: 0 0 0 2px var(--wp--preset--color--primary), 0 0 0 4px var(--wp--preset--color--background);
}

.oa-occasion-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-align: center;
	color: var(--wp--preset--color--on-background);
}

/* ---------- Trust banner ---------- */
.oa-trust-banner {
	display: grid;
	gap: 24px;
	background: var(--wp--preset--color--surface-container-low);
	border-radius: var(--wp--custom--radius--lg);
	padding: 32px;
}

.oa-trust-banner .icon {
	width: 32px;
	height: 32px;
	color: var(--wp--preset--color--secondary);
}

/* ---------- Reviews (bodas.net) ---------- */
.oa-reviews-section {
	background: var(--wp--preset--color--surface-container-low);
	border-radius: var(--wp--custom--radius--lg);
	padding: 56px 32px;
	text-align: center;
}

.oa-reviews-heading {
	max-width: 640px;
	margin: 0 auto 40px;
}

.oa-reviews-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--secondary);
	margin-bottom: 12px;
}

.oa-reviews-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(28px, 4vw, 44px);
	color: var(--wp--preset--color--premium-text);
	margin: 0 0 24px;
}

.oa-reviews-score-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
	flex-wrap: wrap;
}

.oa-reviews-score {
	display: inline-flex;
	align-items: center;
	gap: 16px;
}

#wp-ratedWA img {
	border-radius: var(--wp--custom--radius--default);
}

.oa-reviews-score-number {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 56px;
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--primary);
}

.oa-reviews-score-detail {
	text-align: left;
	font-size: 14px;
	color: var(--wp--preset--color--on-surface-variant);
}

.oa-reviews-stars {
	color: var(--wp--preset--color--cta-orange);
	font-size: 20px;
	letter-spacing: 2px;
	line-height: 1;
	margin-bottom: 4px;
}

.oa-testimonial-carousel {
	max-width: 100%;
	margin: 0 auto;
}

.oa-testimonial-track {
	display: flex;
	flex-wrap: nowrap;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	margin: 0;
	padding: 4px 4px 8px;
	list-style: none;
}

.oa-testimonial-track::-webkit-scrollbar {
	display: none;
}

.oa-testimonial-card {
	flex: 0 0 300px;
	scroll-snap-align: start;
}

.oa-testimonial-slide {
	margin: 0;
	height: 100%;
	background: var(--wp--preset--color--surface-container-lowest);
	border-radius: var(--wp--custom--radius--default);
	padding: 24px;
	display: flex;
	flex-direction: column;
}

.oa-testimonial-stars {
	color: var(--wp--preset--color--cta-orange);
	font-size: 16px;
	letter-spacing: 2px;
	margin-bottom: 12px;
}

.oa-testimonial-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 17px;
	font-weight: 700;
	color: var(--wp--preset--color--premium-text);
	margin: 0 0 8px;
}

.oa-testimonial-slide p:not(.oa-testimonial-title) {
	font-size: 14px;
	color: var(--wp--preset--color--on-surface-variant);
	line-height: 1.6;
	margin: 0 0 16px;
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.oa-testimonial-slide footer {
	margin-top: auto;
	font-size: 12px;
	font-weight: 600;
	color: var(--wp--preset--color--secondary);
}

.oa-reviews-brand-logo {
	height: 16px;
	width: auto;
	vertical-align: middle;
	margin: 0 2px;
}

.oa-reviews-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 32px;
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.oa-reviews-link .oa-reviews-brand-logo {
	margin-left: 0;
}

/* ---------- Product carousel ---------- */
.oa-carousel-wrap {
	position: relative;
}

.oa-carousel-wrap ul.is-product-collection-layout-carousel {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 24px;
}

.oa-carousel-wrap ul.is-product-collection-layout-carousel.is-layout-flow > li {
	flex-shrink: 0;
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

.oa-carousel-wrap .wc-block-components-product-image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.oa-carousel-wrap .wc-block-components-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.oa-carousel-wrap ul.is-product-collection-layout-carousel::-webkit-scrollbar {
	display: none;
}

.oa-carousel-arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: var(--wp--preset--color--surface-container-lowest);
	color: var(--wp--preset--color--primary);
	box-shadow: 0 2px 10px rgba(0,0,0,0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	transition: background .2s, transform .2s;
}

.oa-carousel-arrow:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
}

.oa-carousel-arrow .icon {
	width: 20px;
	height: 20px;
}

.oa-carousel-arrow--prev {
	left: -8px;
	transform: translateY(-50%) scaleX(-1);
}

.oa-carousel-arrow--next {
	right: -8px;
}

.oa-carousel-arrow--prev:hover {
	transform: translateY(-50%) scaleX(-1);
}

@media (max-width: 600px) {
	.oa-carousel-arrow {
		display: none;
	}
}

/* ---------- Product cards ---------- */
.oa-product-grid .wc-block-product-image img,
.oa-product-grid .wp-block-woocommerce-product-image img {
	border-radius: var(--wp--custom--radius--default);
	background: var(--wp--preset--color--surface-beige);
}

.oa-product-grid .wc-block-components-product-price,
.oa-product-grid .price {
	color: var(--wp--preset--color--premium-text);
	font-weight: 700;
}

/* ---------- Footer ---------- */
.oa-footer {
	background: var(--wp--preset--color--inverse-surface);
	color: var(--wp--preset--color--inverse-on-surface);
}

/* Footer grid is 4 fixed columns (core block-supports CSS) — collapses to 1
   column below the mobile breakpoint so newsletter/links aren't squeezed. */
@media (max-width: 781.98px) {
	.oa-footer .is-layout-grid {
		grid-template-columns: 1fr !important;
	}
}

.oa-footer a {
	color: color-mix(in srgb, var(--wp--preset--color--inverse-on-surface) 80%, transparent);
	text-decoration: none;
}

.oa-footer a:hover {
	color: var(--wp--preset--color--white);
}

.oa-newsletter-box {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 32px;
	flex-wrap: wrap;
	background: color-mix(in srgb, var(--wp--preset--color--white) 6%, transparent);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--white) 14%, transparent);
	border-radius: var(--wp--custom--radius--lg, 16px);
	padding: 24px;
}

.oa-newsletter-box-text {
	flex: 0 1 260px;
}

@media (max-width: 781.98px) {
	.oa-newsletter-box {
		flex-direction: column;
		align-items: stretch;
	}
}

/* ---------- Breakpoints (782px matches WP's own mobile breakpoint) ---------- */
@media (min-width: 782px) {
	.oa-topbar {
		display: flex;
	}

	.oa-nav-desktop {
		display: flex;
		align-items: center;
		gap: 32px;
	}

	.oa-bottom-nav {
		display: none;
	}

	.oa-menu-toggle,
	.oa-mobile-nav-overlay,
	.oa-mobile-nav {
		display: none !important;
	}

	.oa-logo-mark {
		display: none;
	}

	.oa-logo-full {
		display: block;
		height: 44px;
	}

	body {
		padding-bottom: 0;
	}

	.oa-hero {
		padding: 48px;
	}

	.oa-hero-inner {
		flex-direction: row;
	}

	.oa-cta-row {
		flex-direction: row;
		width: auto;
	}

	.oa-hero-card {
		display: block;
		position: absolute;
		right: -32px;
		top: 50%;
		transform: translateY(-50%);
		z-index: 20;
	}

	.oa-trust-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.oa-trust-banner {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ---------- Product price badge (single product) ---------- */
.wp-block-woocommerce-product-price[data-is-descendent-of-single-product-template="true"] {
	margin: 4px 0 20px;
}

.wp-block-woocommerce-product-price[data-is-descendent-of-single-product-template="true"] .wc-block-components-product-price {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	background: var(--wp--preset--color--primary-container);
	color: var(--wp--preset--color--on-primary-container);
	padding: 8px 20px;
	border-radius: var(--wp--custom--radius--full);
	box-shadow: var(--wp--custom--shadow--soft);
}

.wp-block-woocommerce-product-price[data-is-descendent-of-single-product-template="true"] .woocommerce-Price-amount {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1;
}

.wp-block-woocommerce-product-price[data-is-descendent-of-single-product-template="true"] .woocommerce-Price-currencySymbol {
	font-size: 0.65em;
	font-weight: 600;
	margin-left: 1px;
}

/* ---------- Shipping info banner (site-wide, wp_body_open) ---------- */
.oa-shipping-banner {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	text-align: center;
	font-size: 13px;
	font-weight: 500;
	padding: 8px 16px;
	letter-spacing: 0.01em;
}

.oa-shipping-banner strong {
	font-weight: 700;
}

/* ---------- Color attribute swatches (variation select -> pills) ---------- */
.oa-visually-hidden-select {
	display: none;
}

.oa-color-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 12px;
}

.oa-color-swatch {
	border: none;
	border-radius: var(--wp--custom--radius--full, 9999px);
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	font-family: var(--wp--preset--font-family--body, inherit);
	cursor: pointer;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
	transition: transform .1s ease, box-shadow .15s ease;
}

.oa-color-swatch:hover {
	transform: translateY(-1px);
}

.oa-color-swatch.is-selected {
	box-shadow: 0 0 0 2px var(--wp--preset--color--surface, #fdf9f2), 0 0 0 4px var(--wp--preset--color--primary, #82542b);
}

.oa-color-swatch--unmapped {
	background: var(--wp--preset--color--surface-container-high, #ebe8e1);
	color: var(--wp--preset--color--on-surface, #1c1c18);
}

/* ---------- Color attribute swatches (variation select -> pills) ---------- */

/* Hide immediately via attribute selector too, no flash before JS runs. */
select[name="attribute_pa_color"] {
	display: none !important;
}

.oa-visually-hidden-select {
	display: none;
}

/* De-table the row that held the color <select>: no borders/cells, just
   a clean label-then-swatches block. */
tr.oa-swatch-row {
	display: block;
}

tr.oa-swatch-row > th.label,
tr.oa-swatch-row > td.value {
	display: block;
	border: none;
	padding: 0;
}

tr.oa-swatch-row > th.label {
	font-weight: 600;
	font-size: 13px;
	margin: 0 0 6px;
}

.oa-color-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 4px;
}

.oa-color-swatch {
	border: none;
	border-radius: var(--wp--custom--radius--full, 9999px);
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	font-family: var(--wp--preset--font-family--body, inherit);
	cursor: pointer;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
	transition: transform .1s ease, box-shadow .15s ease, filter .15s ease, opacity .15s ease;
}

.oa-color-swatch:hover {
	transform: translateY(-1px);
}

.oa-color-swatch.is-selected {
	box-shadow: 0 0 0 2px var(--wp--preset--color--surface, #fdf9f2), 0 0 0 4px var(--wp--preset--color--primary, #82542b);
	transform: none;
}

/* Once any color is picked, the rest go dark/dim so the choice is unambiguous. */
.oa-color-swatches.has-selection .oa-color-swatch:not(.is-selected) {
	filter: brightness(0.45) saturate(0.7);
	opacity: .85;
	box-shadow: none;
}

.oa-color-swatch--unmapped {
	background: var(--wp--preset--color--surface-container-high, #ebe8e1);
	color: var(--wp--preset--color--on-surface, #1c1c18);
}

.variations_form .reset_variations {
	display: inline-block;
	font-size: 12px;
	color: var(--wp--preset--color--outline, #83746a);
	margin-top: 2px;
}

/* ---------- Floating WhatsApp button ---------- */
.oa-whatsapp-fab {
	position: fixed;
	right: 16px;
	bottom: 96px;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background: #25d366;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
	z-index: 60;
	transition: transform .15s ease;
}

.oa-whatsapp-fab:hover {
	transform: scale(1.06);
	color: #ffffff;
}

@media (min-width: 782px) {
	.oa-whatsapp-fab {
		bottom: 24px;
	}
}

/* ---------- Newsletter signup form (footer) ---------- */
.oa-newsletter-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1 1 320px;
	max-width: 480px;
}

@media (max-width: 781.98px) {
	.oa-newsletter-form {
		max-width: none;
	}
}

.oa-newsletter-input-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.oa-newsletter-input-row input[type="email"] {
	flex: 1;
	min-width: 140px;
	padding: 10px 12px;
	border-radius: var(--wp--custom--radius--default, 8px);
	border: 1px solid rgba(255, 255, 255, .25);
	background: rgba(255, 255, 255, .08);
	color: var(--wp--preset--color--white, #fff);
	font-size: 13px;
}

.oa-newsletter-input-row input[type="email"]::placeholder {
	color: rgba(255, 255, 255, .6);
}

.oa-newsletter-input-row button[type="submit"] {
	flex-shrink: 0;
	white-space: nowrap;
	cursor: pointer;
	background: var(--wp--preset--color--cta-orange);
	color: var(--wp--preset--color--white);
	border: none;
	border-radius: var(--wp--custom--radius--default, 8px);
	padding: 10px 18px;
	font-size: 13px;
	font-weight: 700;
	transition: background 0.15s ease;
}

.oa-newsletter-input-row button[type="submit"]:hover {
	background: var(--wp--preset--color--primary);
}

.oa-newsletter-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.oa-newsletter-consent {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 11px;
	opacity: .85;
	cursor: pointer;
}

.oa-newsletter-consent input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
}

.oa-newsletter-consent a {
	text-decoration: underline;
}

.oa-newsletter-fineprint {
	font-size: 10px;
	opacity: .6;
	margin: 0;
}

.oa-newsletter-msg {
	font-size: 12px;
	margin: 0;
	min-height: 14px;
}

.oa-newsletter-msg.is-ok {
	color: var(--wp--preset--color--inverse-primary, #f7ba88);
}

.oa-newsletter-msg.is-error {
	color: #ffb4a9;
}

/* ---------- Contact page form ---------- */
.oa-contact-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 480px;
	margin: 24px 0;
}

.oa-contact-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--on-surface-variant, #51443b);
}

.oa-contact-form input[type="text"],
.oa-contact-form input[type="email"],
.oa-contact-form select,
.oa-contact-form textarea {
	padding: 10px 12px;
	border-radius: var(--wp--custom--radius--default, 8px);
	border: 1px solid var(--wp--preset--color--outline-variant, #d5c3b7);
	font-family: var(--wp--preset--font-family--body, inherit);
	font-size: 14px;
	font-weight: 400;
	color: var(--wp--preset--color--on-surface, #1c1c18);
	background: var(--wp--preset--color--surface-container-lowest, #fff);
}

.oa-contact-form .oa-newsletter-consent {
	color: var(--wp--preset--color--on-surface-variant, #51443b);
	opacity: 1;
}

.oa-contact-form button[type="submit"] {
	align-self: flex-start;
	border: none;
	cursor: pointer;
}

.oa-contact-msg {
	font-size: 13px;
	margin: 0;
}

.oa-contact-msg.is-ok {
	color: var(--wp--preset--color--secondary, #5b614c);
}

.oa-contact-msg.is-error {
	color: var(--wp--preset--color--error, #ba1a1a);
}

/* ---------- Favorites (localStorage wishlist) ---------- */

.oa-fav-count {
	position: absolute;
	top: -6px;
	right: -8px;
	background: var(--wp--preset--color--cta-orange);
	color: var(--wp--preset--color--white);
	font-size: 10px;
	font-weight: 700;
	width: 16px;
	height: 16px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Card overlay button (product loops: shop, categories, homepage grid) */
ul.products li.product,
.wp-block-woocommerce-product-collection .wc-block-product {
	position: relative;
}

.oa-fav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--white) 88%, transparent);
	color: var(--wp--preset--color--on-surface-variant);
	cursor: pointer;
	box-shadow: var(--wp--custom--shadow--soft);
	transition: color 0.15s ease, transform 0.15s ease;
}

.oa-fav-btn .icon {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2px;
}

.oa-fav-btn:hover {
	transform: scale(1.08);
}

.oa-fav-btn.is-active {
	color: var(--wp--preset--color--cta-orange);
}

.oa-fav-btn.is-active .icon {
	fill: currentColor;
}

.oa-fav-btn--card {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
}

.oa-fav-btn--single {
	width: auto;
	height: auto;
	border-radius: var(--wp--custom--radius--lg, 16px);
	padding: 10px 18px;
	gap: 8px;
	background: transparent;
	border: 1px solid var(--wp--preset--color--outline-variant, #d5c3b7);
	box-shadow: none;
	font-size: 13px;
	font-weight: 600;
	margin: 12px 0;
}

.oa-fav-btn--single:hover {
	transform: none;
	border-color: var(--wp--preset--color--outline);
}

.oa-fav-btn--single .icon {
	width: 16px;
	height: 16px;
}

/* /favoritos listing page */

.oa-favorites-page {
	padding: 48px var(--wp--preset--spacing--20, 24px) 80px;
	max-width: 1280px;
	margin: 0 auto;
}

.oa-favorites-empty {
	background: var(--wp--preset--color--surface-container-low);
	border-radius: var(--wp--custom--radius--default);
	padding: 32px;
	text-align: center;
	color: var(--wp--preset--color--on-surface-variant);
}

#oa-favorites-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: 24px;
}

.oa-fav-card {
	position: relative;
	background: var(--wp--preset--color--surface-container-lowest);
	border: 1px solid var(--wp--preset--color--outline-variant);
	border-radius: var(--wp--custom--radius--md);
	overflow: hidden;
}

.oa-fav-card a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.oa-fav-card img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.oa-fav-card h3 {
	font-size: 14px;
	font-weight: 600;
	margin: 12px 12px 4px;
	color: var(--wp--preset--color--on-surface);
}

.oa-fav-card-price {
	font-size: 14px;
	font-weight: 700;
	color: var(--wp--preset--color--cta-orange);
	margin: 0 12px 12px;
}

@media (max-width: 960px) {
	#oa-favorites-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
