/**
 * Farmacia Dorca — CSS principal (child theme)
 * Migrat des de Simple Custom CSS and JS (563.css) + Additional CSS.
 */

/* Urbanist local (sense Google Fonts CDN) */
@font-face {
	font-family: 'Urbanist';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/urbanist/urbanist-latin-ext-400.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Urbanist';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/urbanist/urbanist-latin-400.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Urbanist';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/urbanist/urbanist-latin-500.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Urbanist';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/urbanist/urbanist-latin-ext-600.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Urbanist';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/urbanist/urbanist-latin-600.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Urbanist';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/urbanist/urbanist-latin-700.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body,
html,
h1,
h2,
h3,
h4,
h5,
strong {
	font-family: 'Urbanist', sans-serif;
}

/* Fluent Forms — botó submit (Elementor ID 391) */
.elementor-391 .elementor-element.elementor-element-ee1a0a8 .fluentform-widget-wrapper .ff-el-group .ff-btn-submit {
	background-color: rgba(95, 150, 142, 1);
	border-color: rgba(95, 150, 142, 1);
}

.basic-info p {
	font-size: 20px;
}

.basic-info h4 {
	color: #fff;
	font-size: 30px;
}

.basic-info.black h4 {
	color: #000;
}

/*
 * Menú header només (no aplicar a footer / menú Polítiques).
 * Abans el ::hover era invàlid i no feia underline; no el reinstaurem.
 * Pes 500 (no 600) perquè Urbanist 600 es veu massa negreta respecte a abans.
 */
#ast-hf-menu-1 .menu-link,
.main-header-menu .menu-link,
.ast-header-navigation .menu-link {
	font-size: 18px;
	font-weight: 500;
	font-family: 'Urbanist', sans-serif;
	color: #000;
	text-decoration: none;
}

#ast-hf-menu-1 .menu-link:hover,
.main-header-menu .menu-link:hover,
.ast-header-navigation .menu-link:hover {
	text-decoration: none;
}

#ast-hf-menu-1 {
	margin: 0;
}

/* Footer: enllaços foscos (abans venien de a.menu-link { color: black } global).
 * Sense el forçatge global, Astra usa el color primari rosa (#e68e7c). */
.site-footer a.menu-link,
.site-footer .menu-link,
#astra-footer-menu .menu-link,
.footer-widget-area .menu-link {
	color: #222222;
	font-weight: 400;
	font-family: 'Urbanist', sans-serif;
	text-decoration: none;
}

.site-footer a.menu-link:hover,
.site-footer .menu-link:hover,
#astra-footer-menu .menu-link:hover,
.footer-widget-area .menu-link:hover {
	color: #111111;
	text-decoration: none;
}

.site-footer a,
.ast-footer-copyright a {
	color: #454545;
	text-decoration: none;
}

.site-footer a:hover,
.ast-footer-copyright a:hover {
	color: #222222;
	text-decoration: none;
}

#white-btn {
	border: 1px solid #fff;
	color: #fff;
	transition: all 0.3s ease;
	background: transparent;
}

#black-btn {
	transition: all 0.3s ease;
}

#white-btn:hover,
#black-btn:hover {
	font-size: 30px;
	padding: 30px 40px;
}

#content {
	background: #fff;
}

.ast-article-inner {
	border: 1px solid #000;
}

#ast-scroll-top {
	display: none;
}

.wplp_listposts .read-more {
	display: none;
}

/* Badge "Oferta" WooCommerce / Astra */
.ast-onsale-card {
	color: transparent;
	width: 110px;
}

.ast-onsale-card::after {
	content: "Oferta";
	font-weight: 700;
	color: #000;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	text-align: center;
	line-height: 1;
}

/* PEI promo (si el plugin està actiu a producció) */
#pei-promo-popup,
.pei-announcement-bar {
	display: none;
}

.ti-tooltip {
	display: none;
}

/* Filtres botiga: cercador + marques */
.dorca-shop-filters,
#main .pei-shop-filters-wrap {
	display: block;
	width: 100%;
	margin: 0 0 1.5rem;
	clear: both;
	text-align: center;
}

.dorca-shop-filters__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
}

.dorca-shop-filters__search {
	flex: 1 1 220px;
	min-width: 180px;
	max-width: 420px;
	padding: 0.65rem 1rem;
	border: 1px solid #d1d1d1;
	border-radius: 999px;
	font-family: 'Urbanist', sans-serif;
	font-size: 15px;
	background: #fff;
}

.dorca-shop-filters__marca {
	flex: 0 1 220px;
	min-width: 160px;
	padding: 0.65rem 0.85rem;
	border: 1px solid #d1d1d1;
	border-radius: 8px;
	font-family: 'Urbanist', sans-serif;
	font-size: 15px;
	background: #fff;
}

.dorca-shop-filters__submit {
	padding: 0.65rem 1.25rem !important;
	border-radius: 8px !important;
}

.dorca-shop-filters__reset {
	font-size: 14px;
	color: #454545;
	text-decoration: underline;
}

.dorca-shop-filters__reset:hover {
	color: #222;
}

/* Paginador de la botiga centrat */
.woocommerce nav.woocommerce-pagination,
.woocommerce-page nav.woocommerce-pagination,
.ast-woocommerce-container .woocommerce-pagination {
	text-align: center;
	float: none;
	width: 100%;
	margin: 2rem auto 1rem;
	clear: both;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers,
.woocommerce-page nav.woocommerce-pagination ul.page-numbers {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	float: none;
	margin: 0 auto;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li {
	float: none;
}
