/*
Theme Name: Dtodo Store
Template: twentytwentyfive
Description: Tema hijo de Twenty Twenty-Five con la marca Dtodo Store.
Version: 1.0.5
Text Domain: dtodo
*/

/* Encabezado fijo */
.dtodo-header {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .dtodo-header { top: 32px; }

.dtodo-header .wp-block-site-logo { flex-shrink: 0; }
.dtodo-header .wp-block-site-logo img { width: 140px; height: auto; }
@media (max-width: 600px) {
	.dtodo-header .wp-block-site-logo img { width: 116px; }
}
.dtodo-header .wp-block-navigation__container { flex-wrap: nowrap; }

/* Menú hamburguesa en tablet y celular */
@media (max-width: 1000px) {
	.dtodo-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.dtodo-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.dtodo-header .wp-block-navigation { order: -1; }
}
.dtodo-header .wp-block-navigation-item { white-space: nowrap; }

/* Búsqueda como ícono simple */
.dtodo-header .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	padding: 6px;
	border: 0;
	margin: 0;
}
.dtodo-header .wp-block-search__button:hover { color: var(--wp--preset--color--accent-1); }
.dtodo-header .wp-block-search__button svg { width: 24px; height: 24px; }
.dtodo-header .wp-block-search__input { border-radius: 10px; }

/* Barra de avisos */
.dtodo-notice a { text-decoration: none; }

/* Portada: categorías destacadas */
.dtodo-cat a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 22px 24px;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 14px;
	text-decoration: none;
	transition: border-color .2s, background .2s;
}
.dtodo-cat a:hover {
	border-color: var(--wp--preset--color--accent-1);
	background: var(--wp--preset--color--accent-2);
	color: inherit;
}
.dtodo-cat strong { font-family: var(--wp--preset--font-family--manrope); font-size: 20px; }
.dtodo-cat span { color: var(--wp--preset--color--accent-4); font-size: 14px; }
.dtodo-perks p { font-size: 14px; color: var(--wp--preset--color--accent-4); }
.dtodo-perks strong { color: var(--wp--preset--color--contrast); font-size: 16px; }

/* Tarjetas de producto */
.wc-block-product,
.wc-block-grid__product,
ul.products li.product {
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 14px;
	padding: 12px;
	background: var(--wp--preset--color--base);
	transition: box-shadow .2s, transform .2s;
}
.wc-block-product:hover,
ul.products li.product:hover {
	box-shadow: 0 8px 24px rgba(7, 17, 29, .08);
	transform: translateY(-2px);
}
.wc-block-product img,
ul.products li.product img {
	border-radius: 10px;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Portada: foto del banner */
.has-accent-2-background-color .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Precio y oferta */
.wc-block-components-product-price ins,
.price ins { text-decoration: none; color: var(--wp--preset--color--accent-1); }
.wc-block-components-product-sale-badge,
.onsale {
	background: var(--wp--preset--color--accent-1) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 6px !important;
	font-weight: 700;
}

/* Botones de WooCommerce */
.wc-block-components-button:not(.is-link),
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button {
	border-radius: 10px;
}

/* Contador del carrito */
.wc-block-mini-cart__badge {
	background: var(--wp--preset--color--accent-1) !important;
	color: #fff !important;
	border-color: var(--wp--preset--color--accent-1) !important;
}
