/**
 * La Mascotería — interactive & brand component styles.
 * Progressive enhancement: without JS, sliders stack and carousels
 * scroll natively (same as the Site Editor view).
 */

/* ---------- Layout: no ghost gap between header and content ---------- */
.wp-site-blocks > main {
	margin-block-start: 0 !important;
}
.wp-site-blocks > footer {
	margin-block-start: 0 !important;
}

/* ---------- Hero slider (contained, wireframe) ---------- */
.mascoteria-slider {
	position: relative;
}
.mascoteria-slider .wp-block-cover {
	border-radius: var(--wp--custom--radius--card, 10px);
	overflow: hidden;
}
.mascoteria-slider.is-initialized .wp-block-cover {
	display: none;
}
.mascoteria-slider.is-initialized .wp-block-cover.is-active-slide {
	display: flex;
}
.mascoteria-slider .mascoteria-slider-dots {
	position: absolute;
	bottom: 16px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 5;
}
.mascoteria-slider .mascoteria-slider-dots button {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1px solid #000;
	background: #fff;
	padding: 0;
	cursor: pointer;
}
.mascoteria-slider .mascoteria-slider-dots button.is-active {
	background: #FFC5F4;
}

/* ---------- Carousels (scroll-snap) ---------- */
.mascoteria-carousel {
	position: relative;
}
.mascoteria-carousel > .wp-block-group__inner-container,
.mascoteria-carousel .mascoteria-carousel-track {
	display: flex;
	gap: var(--wp--preset--spacing--30, 14px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.mascoteria-carousel .mascoteria-carousel-track::-webkit-scrollbar {
	display: none;
}
.mascoteria-carousel .mascoteria-carousel-track > * {
	scroll-snap-align: start;
	flex: 0 0 auto;
}
.mascoteria-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #000;
	background: #fff;
	color: #000;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.mascoteria-arrow:hover {
	background: #FFC5F4;
}
.mascoteria-arrow.is-prev { left: -14px; }
.mascoteria-arrow.is-next { right: -14px; }

/* WooCommerce product collections used as carousels */
.mascoteria-carousel .wc-block-product-template,
.mascoteria-carousel ul.wp-block-post-template {
	display: flex !important;
	gap: var(--wp--preset--spacing--30, 14px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	grid-template-columns: none !important;
}
.mascoteria-carousel .wc-block-product-template::-webkit-scrollbar,
.mascoteria-carousel ul.wp-block-post-template::-webkit-scrollbar {
	display: none;
}
.mascoteria-carousel .wc-block-product-template > li,
.mascoteria-carousel ul.wp-block-post-template > li {
	scroll-snap-align: start;
	flex: 0 0 240px;
}

/* ---------- Tabs ---------- */
.mascoteria-tabs .mascoteria-tab-panel[hidden] {
	display: none;
}
.mascoteria-tabs .mascoteria-tab-button {
	cursor: pointer;
}
.mascoteria-tabs .mascoteria-tab-button .wp-block-button__link {
	background: transparent;
	color: #000;
	border: 1px solid #000;
}
.mascoteria-tabs .mascoteria-tab-button.is-active .wp-block-button__link {
	background: #000;
	color: #fff;
}

/* ---------- Header / logotype ---------- */
/* First letter of the logotype flush with the content's left edge */
.mascoteria-logotype,
.mascoteria-logotype a {
	margin: 0;
	line-height: 1;
	letter-spacing: -0.01em;
	text-decoration: none;
}
/* Logobar: logo | search (flex, slim like the wireframe) | access */
.mascoteria-logobar > .wp-block-group {
	flex-wrap: nowrap;
	gap: 18px;
}
.mascoteria-search {
	flex: 1;
	min-width: 220px;
}
.mascoteria-search .wp-block-search__inside-wrapper {
	background: #fff;
	border: 1px solid #E5E5E5;
	border-radius: 999px;
	padding: 2px 4px 2px 16px;
}
.mascoteria-search input.wp-block-search__input {
	font-size: 13px;
	padding: 7px 0;
	border: none;
	background: transparent;
}
.mascoteria-search button.wp-block-search__button {
	padding: 6px 12px;
	min-height: 0;
}
.mascoteria-access {
	flex: 0 0 auto;
}
.mascoteria-access a,
.mascoteria-access .wc-block-customer-account a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	text-decoration: none;
	color: #000;
	white-space: nowrap;
}
.mascoteria-access a:hover {
	color: #666;
}
.mascoteria-pets-link svg,
.mascoteria-cart-link svg {
	flex: 0 0 auto;
}

.mascoteria-menu-trigger {
	margin: 0;
	font-family: var(--wp--preset--font-family--please-vf);
	font-size: 15px;
	font-weight: 500;
}
.mascoteria-menu-trigger a {
	text-decoration: none;
	padding: 6px 0;
	display: inline-block;
}
.mascoteria-menu-trigger a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}
.mascoteria-menubar-desktop.mascoteria-menubar-desktop {
	align-items: center;
}
/* Every trigger (bare paragraph or megamenu group) shares the same box,
   so labels sit on one line like the wireframe. */
.mascoteria-menubar-desktop > .wp-block-group.has-megamenu,
.mascoteria-menubar-desktop > p.mascoteria-menu-trigger {
	display: flex;
	align-items: center;
	height: 40px;
	margin: 0;
}
.mascoteria-menubar-desktop .mascoteria-menu-trigger a {
	padding: 0;
	line-height: 40px;
}
.mascoteria-menubar-mobile.mascoteria-menubar-mobile {
	display: none;
}
@media (max-width: 781px) {
	.mascoteria-menubar-desktop.mascoteria-menubar-desktop {
		display: none;
	}
	.mascoteria-menubar-mobile.mascoteria-menubar-mobile {
		display: flex;
	}
}

/* ---------- Megamenu ---------- */
.mascoteria-menubar .has-megamenu {
	position: static;
}
.mascoteria-menubar .has-megamenu > .mascoteria-menu-trigger {
	cursor: pointer;
}
.mascoteria-megamenu-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.mascoteria-menubar .mascoteria-megamenu-panel {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 50;
	background: #fff;
	border: 1px solid #E5E5E5;
	border-radius: 0 0 10px 10px;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
	padding: 24px 32px;
}
.mascoteria-menubar .has-megamenu:hover .mascoteria-megamenu-panel,
.mascoteria-menubar .has-megamenu:focus-within .mascoteria-megamenu-panel {
	display: block;
}
.mascoteria-menubar {
	position: relative;
}
.mascoteria-megamenu-panel a {
	text-decoration: none;
	font-size: 14px;
}
.mascoteria-megamenu-panel a:hover {
	color: #666;
}
.mascoteria-megamenu-trigger > a,
.mascoteria-megamenu-trigger > p {
	margin: 0;
}

/* Native submenu fallback styling */
.mascoteria-menubar .wp-block-navigation__submenu-container {
	border-radius: 0 0 10px 10px !important;
	border-color: #E5E5E5 !important;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
	min-width: 220px !important;
	padding: 8px 0;
}

/* ---------- Pills & stickers ---------- */
.mascoteria-pill,
.wp-block-group.is-style-pill {
	display: inline-block;
	background: #FFE3FA;
	color: #000;
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.6;
}
.mascoteria-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 4px 0;
}
.wp-block-group.is-style-sticker {
	border-radius: 50%;
	aspect-ratio: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: #FFC5F4;
	border: 2px solid #000;
	transform: rotate(-8deg);
}

/* ---------- Product cards ---------- */
.mascoteria-product-card li.wc-block-product .wc-block-components-product-image,
.mascoteria-product-card li.wc-block-product img {
	border-radius: var(--wp--custom--radius--card, 10px);
}
.mascoteria-product-card li.wc-block-product {
	display: flex;
	flex-direction: column;
	gap: 0;
	border: 1px solid #F0F0F0;
	border-radius: var(--wp--custom--radius--card, 10px);
	padding: 12px;
	background: #fff;
	position: relative;
}
.mascoteria-product-card li.wc-block-product:hover {
	border-color: #E5E5E5;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.mascoteria-product-card li.wc-block-product > .wc-block-components-product-image,
.mascoteria-product-card li.wc-block-product > .wp-block-woocommerce-product-image {
	margin-bottom: 12px;
}
.mascoteria-product-card li.wc-block-product .mascoteria-brand-label {
	margin-bottom: 2px;
}
.mascoteria-product-card li.wc-block-product .wp-block-post-title {
	margin: 0 0 6px;
	font-size: 15px;
	line-height: 1.35;
}
.mascoteria-product-card li.wc-block-product .wp-block-post-title a {
	text-decoration: none;
}
.mascoteria-product-card li.wc-block-product .mascoteria-pills {
	margin: 0 0 8px;
}
.mascoteria-product-card li.wc-block-product .wc-block-components-product-price,
.mascoteria-product-card li.wc-block-product .wp-block-woocommerce-product-price {
	margin: 0;
	font-size: 17px;
}
.mascoteria-product-card li.wc-block-product .mascoteria-points {
	margin-bottom: 10px;
}
.mascoteria-product-card li.wc-block-product .wp-block-button.wc-block-components-product-button {
	margin-top: auto;
}
.mascoteria-product-card li.wc-block-product .wp-block-button__link,
.mascoteria-product-card li.wc-block-product .wc-block-components-product-button__button {
	width: 100%;
	font-size: 13px;
	padding: 10px 14px;
}
/* breathing room between grid rows */
.wc-block-product-template.wc-block-product-template {
	gap: 20px 14px;
}
.mascoteria-points {
	font-size: 12px;
	color: #666;
}
.mascoteria-brand-label {
	font-size: 12px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.mascoteria-brand-label a {
	color: inherit;
	text-decoration: none;
}

/* ---------- Single product layout ---------- */
.single-product .mascoteria-brand-label {
	margin-bottom: 4px;
}
.single-product h1.wp-block-post-title {
	margin: 0 0 12px;
}
.single-product main .mascoteria-pills {
	margin: 0 0 16px;
}
.single-product .wp-block-woocommerce-product-price {
	margin-bottom: 4px;
}
.single-product main .mascoteria-points {
	display: block;
	margin-bottom: 16px;
	font-size: 13px;
}
.single-product .wp-block-post-excerpt {
	margin: 0 0 20px;
	color: #4a4a4a;
}
.single-product .wp-block-woocommerce-add-to-cart-form {
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid #E5E5E5;
}
.single-product .wc-block-product-meta,
.single-product .wp-block-woocommerce-product-meta {
	font-size: 13px;
	color: #666;
}
.single-product .wp-block-woocommerce-product-details {
	margin-top: var(--wp--preset--spacing--60, 64px);
}
/* gallery thumbnails */
.wc-block-product-gallery-thumbnails img,
.woocommerce-product-gallery ol.flex-control-thumbs img {
	border-radius: 8px;
	border: 1px solid #E5E5E5;
}
/* quantity + add to cart row */
.single-product form.cart {
	display: flex;
	gap: 10px;
	align-items: stretch;
	flex-wrap: wrap;
}
.single-product form.cart .quantity input {
	height: 100%;
	min-height: 48px;
	border-radius: 8px;
	border: 1px solid #E5E5E5;
	text-align: center;
	width: 70px;
}
.single-product form.cart .single_add_to_cart_button {
	flex: 1;
	min-height: 48px;
}
/* Secondary actions row: labeled favorite + buy now (wireframe) */
.mascoteria-secondary-actions {
	margin-top: 12px;
}
.mascoteria-fav--labeled {
	position: static;
	width: auto;
	height: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #000;
	border-radius: 8px;
	background: #fff;
	padding: 12px 18px;
	font-size: 14px;
	font-family: var(--wp--preset--font-family--please-vf);
	font-weight: 500;
}
.mascoteria-fav--labeled.is-active {
	background: #FFE3FA;
}
.mascoteria-buy-now {
	display: inline-flex;
	align-items: center;
	border: 1px solid #000;
	border-radius: 8px;
	background: #fff;
	color: #000;
	padding: 12px 22px;
	font-size: 14px;
	font-family: var(--wp--preset--font-family--please-vf);
	font-weight: 500;
	text-decoration: none;
}
.mascoteria-buy-now:hover,
.mascoteria-fav--labeled:hover {
	background: #FFC5F4;
}

/* Product gallery on white so images never blend into the pink body */
.single-product .wp-block-woocommerce-product-image-gallery {
	background: #fff;
	border-radius: 10px;
	padding: 10px;
}
.single-product .wp-block-woocommerce-product-image-gallery img {
	border-radius: 8px;
}

/* Stock info box */
.mascoteria-stock-box p {
	margin: 0;
}
.mascoteria-stock-box .wc-block-components-product-stock-indicator {
	font-weight: 600;
	margin: 0 0 2px;
}

/* White card sections on the product page (description / reviews) */
.mascoteria-product-card-section > h2:first-child {
	margin-top: 0;
}
.single-product .mascoteria-fav--labeled svg {
	flex: 0 0 auto;
}

/* reviews */
/* The card already titles the section "Reseñas" — hide the block's own
   "(n) valoraciones en ..." heading to avoid the duplicate. */
.mascoteria-reviews-card .woocommerce-Reviews-title {
	display: none;
}
#reviews .commentlist {
	list-style: none;
	margin: 0;
	padding: 0;
}
#reviews .commentlist > li {
	border-bottom: 1px solid #F0F0F0;
	padding: 16px 0;
	margin: 0;
	background: transparent;
}
#reviews .commentlist > li:last-child {
	border-bottom: none;
}
#reviews .comment_container img.avatar {
	border-radius: 50%;
}
#reviews .comment-reply-title {
	font-weight: 700;
	display: block;
	margin-bottom: 8px;
}
#reviews .comment-form input[type="text"],
#reviews .comment-form input[type="email"],
#reviews .comment-form textarea {
	border: 1px solid #E5E5E5;
	border-radius: 8px;
	padding: 10px 12px;
	width: 100%;
}

/* White surfaces that must pop on the pink body */
.mascoteria-blog-categories a {
	background: #fff;
}
.wp-block-query .wp-block-post-featured-image img {
	background: #fff;
}

/* Hide ALL star ratings (client feedback: "sin estrellas ni valoración
   promedio"). Written reviews stay visible. */
.wc-block-grid .star-rating,
.wc-block-components-product-rating,
.wp-block-woocommerce-product-rating,
.wc-block-product-template .star-rating,
.products .star-rating,
.woocommerce-product-rating,
#reviews .star-rating,
#reviews .comment-form-rating,
#reviews .stars {
	display: none !important;
}

/* ---------- Checkout steps indicator ---------- */
.mascoteria-steps {
	display: flex;
	justify-content: center;
	gap: 32px;
	counter-reset: step;
}
.mascoteria-steps .mascoteria-step {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #666;
}
.mascoteria-steps .mascoteria-step::before {
	counter-increment: step;
	content: counter(step);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid #666;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}
.mascoteria-steps .mascoteria-step.is-active {
	color: #000;
	font-weight: 700;
}
.mascoteria-steps .mascoteria-step.is-active::before {
	background: #FFC5F4;
	border-color: #000;
	color: #000;
}

/* ---------- Favorites ---------- */
.mascoteria-product-card {
	position: relative;
}
.mascoteria-fav {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 5;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid #E5E5E5;
	background: #fff;
	color: #000;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.mascoteria-fav:hover {
	border-color: #000;
}
.mascoteria-fav.is-active {
	background: #FFC5F4;
	border-color: #000;
}
.mascoteria-fav.is-active .mascoteria-fav-path {
	fill: #000;
}
.single-product .mascoteria-fav {
	position: static;
	width: auto;
	height: auto;
	border: none;
	background: transparent;
}
.mascoteria-favorites-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}
.mascoteria-favorite-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	border: 1px solid #E5E5E5;
	border-radius: 10px;
	padding: 14px;
	background: #fff;
}
.mascoteria-favorite-card img {
	border-radius: 8px;
	width: 100%;
	height: auto;
}
.mascoteria-favorite-card .fav-name {
	font-weight: 600;
	text-decoration: none;
	color: #000;
}
.mascoteria-favorite-card .fav-price {
	font-weight: 700;
}
.mascoteria-favorite-card .fav-actions {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}
.mascoteria-favorite-card .fav-actions .button {
	font-size: 12px;
	padding: 8px 12px;
}

/* ---------- Blog category strip ---------- */
.mascoteria-blog-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 16px 0 24px;
}
.mascoteria-blog-categories li {
	margin: 0;
}
.mascoteria-blog-categories a {
	display: inline-block;
	padding: 6px 16px;
	border: 1px solid #000;
	border-radius: 999px;
	text-decoration: none;
	font-size: 14px;
	color: #000;
}
.mascoteria-blog-categories a:hover,
.mascoteria-blog-categories .current-cat a {
	background: #FFC5F4;
}

/* ---------- Brand directory ---------- */
.mascoteria-brand-index {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 24px 0;
}
.mascoteria-brand-index a,
.mascoteria-brand-index span {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
}
.mascoteria-brand-index a {
	background: #FFE3FA;
	color: #000;
}
.mascoteria-brand-index a:hover {
	background: #FFC5F4;
}
.mascoteria-brand-index span {
	color: #bdbdbd;
}
.mascoteria-brand-letter {
	font-size: 24px;
	border-bottom: 1px solid #E5E5E5;
	padding-bottom: 6px;
	margin-top: 32px;
}
.mascoteria-brand-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 14px;
	margin-top: 14px;
}
.mascoteria-brand-card {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 90px;
	border: 1px solid #E5E5E5;
	border-radius: 10px;
	padding: 12px;
	background: #fff;
	text-decoration: none;
}
.mascoteria-brand-card:hover {
	border-color: #000;
}
.mascoteria-brand-card img {
	max-height: 64px;
	width: auto;
}
.mascoteria-brand-header {
	display: flex;
	align-items: center;
	gap: 20px;
	background: #FFE3FA;
	border-radius: 10px;
	padding: 20px 24px;
	margin: 20px 0;
}
.mascoteria-brand-header img {
	max-height: 72px;
	width: auto;
	background: #fff;
	border-radius: 8px;
	padding: 6px;
}

/* ---------- My Account ---------- */
.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 10px 16px;
	border-radius: 10px;
	text-decoration: none;
	color: #000;
}
.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
	background: #FFE3FA;
}

/* ---------- Misc ---------- */
@media (max-width: 781px) {
	.mascoteria-arrow { display: none; }
	.mascoteria-megamenu-panel { display: none !important; }
}
