/* =============================================================
   ANIMAL FRIEND - HEADER COMPARTIDO
   (home + resto del sitio)
   ============================================================= */

/* ================= BARRA SUPERIOR ================= */
.af-topbar {
	background-color: #f6f8f7;
	border-bottom: 1px solid #e5ece8;
	font-size: 12.5px;
	color: #555555;
	padding: 8px 0;
}
.af-topbar__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.af-topbar__left {
	display: flex;
	align-items: center;
	gap: 20px;
}
.af-topbar__item i { margin-right: 6px; color: #00bc49; }
.af-topbar__right {
	display: flex;
	align-items: center;
	gap: 18px;
}
.af-topbar__link {
	font-weight: 600;
	color: #444;
}
.af-topbar__link:hover { color: #ee7200; }

/* ================= HEADER PRINCIPAL ================= */
.af-header {
	background-color: #0f382c;
	color: #ffffff;
	position: sticky;
	top: 0;
	z-index: 99999;
	box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.af-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 85px;
}
.af-logo-img {
	height: 52px;
	width: auto;
}
.af-nav-list {
	display: flex;
	align-items: center;
	gap: 22px;
}
.af-nav-item {
	position: relative;
}
.af-nav-link {
	font-family: 'Quicksand', sans-serif;
	font-size: 14.5px;
	font-weight: 700;
	color: #ffffff;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 30px 0;
	letter-spacing: 0.3px;
}
.af-nav-link i:first-child { font-size: 15px; color: #00bc49; }
.af-nav-arrow { font-size: 9px; margin-left: 2px; transition: transform 0.2s ease; opacity: 0.7; }
.af-nav-link:hover { color: #00bc49; }
.af-nav-link--promo { color: #ffaa00 !important; }
.af-nav-item:hover .af-nav-arrow { transform: rotate(180deg); }

/* ================= MEGAMENÚ MEJORADO CON IMÁGENES ================= */
.af-megamenu, .af-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	background-color: #ffffff !important;
	background: #ffffff !important;
	color: #333333;
	box-shadow: 0 18px 45px rgba(0,0,0,0.22);
	border-radius: 14px;
	padding: 24px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: all 0.25s ease;
	z-index: 999999 !important;
	border: 1px solid #edf2f0;
}
.af-megamenu--4col {
	width: 780px;
	display: grid;
	grid-template-columns: repeat(3, 1fr) 210px;
	gap: 22px;
}
.af-megamenu--3col {
	width: 660px;
	display: grid;
	grid-template-columns: repeat(2, 1fr) 210px;
	gap: 22px;
}
.af-dropdown {
	width: 250px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.af-nav-item:hover .af-megamenu,
.af-nav-item:hover .af-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.af-megamenu__title {
	font-family: 'Quicksand', sans-serif;
	font-weight: 800;
	font-size: 14px;
	color: #0f382c;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 6px;
	border-bottom: 2px solid #00bc49;
	padding-bottom: 6px;
}
.af-megamenu__title i { color: #00bc49; font-size: 13px; }
.af-megamenu__col a, .af-dropdown a {
	font-size: 13.5px;
	color: #555555;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 5px 0;
}
.af-megamenu__col a i { font-size: 8px; color: #aaaaaa; transition: transform 0.2s; }
.af-megamenu__col a:hover, .af-dropdown a:hover {
	color: #00bc49;
	padding-left: 4px;
}
.af-megamenu__col a:hover i { color: #00bc49; }

/* Tarjeta Promo Megamenú */
.af-megamenu__promo-card {
	display: flex;
	flex-direction: column;
	background: #eef8f4;
	border-radius: 12px;
	overflow: hidden;
	height: 100%;
	border: 1px solid #dcefe7;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.af-megamenu__promo-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.af-megamenu__promo-img {
	width: 100%;
	height: 120px;
	object-fit: cover;
}
.af-megamenu__promo-content {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.af-megamenu__promo-content strong {
	font-family: 'Quicksand', sans-serif;
	font-size: 13.5px;
	font-weight: 800;
	color: #0f382c;
}
.af-megamenu__promo-content span {
	font-size: 12px;
	font-weight: 700;
	color: #ee7200;
}
.af-brand-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #00bc49;
	display: inline-block;
	margin-right: 6px;
}

/* Botones de Cabecera */
.af-header__actions {
	display: flex;
	align-items: center;
	gap: 14px;
}
.af-header__action-btn {
	color: #ffffff;
	font-size: 18px;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background 0.2s ease, color 0.2s ease;
	position: relative;
}
.af-header__action-btn:hover {
	background-color: rgba(255,255,255,0.12);
	color: #00bc49;
}
.af-header__btn-login {
	background-color: #ee7200;
	color: #ffffff;
	font-family: 'Quicksand', sans-serif;
	font-weight: 700;
	font-size: 13px;
	padding: 9px 18px;
	border-radius: 25px;
	display: flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 4px 12px rgba(238,114,0,0.3);
}
.af-header__btn-login:hover {
	background-color: #d86200;
	transform: translateY(-1px);
}
.af-cart-badge {
	position: absolute;
	top: 0px;
	right: 0px;
	background-color: #ee7200;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.af-mobile-toggle {
	display: none;
	color: #ffffff;
	font-size: 24px;
	padding: 6px;
}

/* ================= DRAWER / MENÚ MÓVIL ================= */
.af-mobile-drawer {
	position: fixed;
	top: 0; left: 0;
	width: 100vw; height: 100vh;
	z-index: 9999999;
	visibility: hidden;
	transition: visibility 0.3s;
}
.af-mobile-drawer.is-open {
	visibility: visible;
}
.af-mobile-drawer__overlay {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	background: rgba(0,0,0,0.6);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.af-mobile-drawer.is-open .af-mobile-drawer__overlay {
	opacity: 1;
}
.af-mobile-drawer__panel {
	position: absolute;
	top: 0; left: 0;
	width: 82%;
	max-width: 320px;
	height: 100%;
	background: #ffffff;
	box-shadow: 5px 0 25px rgba(0,0,0,0.25);
	transform: translateX(-100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}
.af-mobile-drawer.is-open .af-mobile-drawer__panel {
	transform: translateX(0);
}
.af-mobile-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #edf2f0;
	background: #0f382c;
}
.af-mobile-drawer__logo {
	height: 38px;
	width: auto;
}
.af-mobile-drawer__btn-close {
	color: #ffffff;
	font-size: 20px;
}
.af-mobile-drawer__search {
	padding: 15px 20px;
	background: #f6f8f7;
	border-bottom: 1px solid #edf2f0;
}
.af-mobile-drawer__search form {
	display: flex;
	align-items: center;
	background: #ffffff;
	border-radius: 25px;
	padding: 4px 12px;
	border: 1px solid #ddd;
}
.af-mobile-drawer__search input {
	border: none;
	background: transparent;
	padding: 6px;
	font-size: 13.5px;
	flex-grow: 1;
	outline: none;
}
.af-mobile-drawer__search button {
	color: #00bc49;
	font-size: 16px;
}
.af-mobile-nav {
	padding: 15px 0;
	flex-grow: 1;
}
.af-mobile-nav li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 20px;
	font-family: 'Quicksand', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #0f382c;
	border-bottom: 1px solid #f8faf9;
}
.af-mobile-nav li a i { color: #00bc49; font-size: 16px; }
.af-mobile-nav__sub {
	background: #fbfdfc;
	padding: 6px 0 6px 20px;
}
.af-mobile-nav__sub li a {
	font-size: 13.5px;
	font-weight: 600;
	color: #555555;
	padding: 7px 20px;
}
.af-mobile-drawer__footer {
	padding: 20px;
	background: #f6f8f7;
	border-top: 1px solid #edf2f0;
	text-align: center;
}
.af-mobile-drawer__wa {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #25d366;
	color: #ffffff !important;
	font-family: 'Quicksand', sans-serif;
	font-weight: 800;
	font-size: 13.5px;
	padding: 10px 18px;
	border-radius: 25px;
	width: 100%;
	margin-bottom: 10px;
	box-shadow: 0 4px 12px rgba(37,211,102,0.3);
}
.af-mobile-drawer__phone {
	font-size: 13px;
	color: #666;
	font-weight: 600;
}

/* ================= EFECTOS DE OLA (WAVE DIVIDERS) ================= */
.af-wave-divider {
	width: 100%;
	line-height: 0;
	overflow: hidden;
}
.af-wave-divider svg {
	display: block;
	width: 100%;
	height: 48px;
}
.af-wave-divider--top {
	margin-bottom: -1px;
}
.af-wave-divider--bottom {
	margin-top: -1px;
}
/* Cierre del hero: la ola se dibuja pegada al borde inferior, sin franja blanca intermedia */
.af-hero > .af-wave-divider--bottom {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	margin: 0;
	z-index: 3;
}
/* La ola inferior del hero ya hace de separacion: la seccion siguiente no necesita padding extra */
.af-section.af-section--products {
	padding-top: 26px;
}

/* ================= MODAL DE BÚSQUEDA ================= */
.c-header-search.disabled { display: none !important; }
.c-header-search {
	position: fixed;
	top: 0; left: 0;
	width: 100vw; height: 100vh;
	background: rgba(0,0,0,0.75);
	backdrop-filter: blur(5px);
	z-index: 9999999;
	display: flex;
	align-items: center;
	justify-content: center;
}
.c-header-search__wrap {
	background: #ffffff;
	border-radius: 18px;
	padding: 35px;
	width: 90%;
	max-width: 620px;
	position: relative;
	box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.c-header-search__tip {
	font-family: 'Quicksand', sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: #0f382c;
	margin-bottom: 18px;
}
.c-header-search__input-block {
	display: flex;
	align-items: center;
	background: #f4f6f8;
	border-radius: 30px;
	padding: 6px 18px;
}
.c-header-search__input {
	flex-grow: 1;
	border: none;
	background: transparent;
	padding: 10px;
	font-size: 15px;
	outline: none;
}
.c-header-search__close {
	position: absolute;
	top: 18px;
	right: 18px;
	font-size: 22px;
	color: #888888;
	cursor: pointer;
}
