/* Aplicația — vezi inc/aplicatie/aplicatie.php */

/* Contul din antet arată ca lupa și coșul de lângă el (.ct-mobile-meta-item din temă) */
#ct-menu-mobile .agb-cont {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #191919;
}
#ct-menu-mobile .agb-cont svg {
	display: block;
}

/* Bara de jos: ascunsă în browser, apare doar în aplicația instalată */
.agb-tab {
	display: none;
}

@media (display-mode: standalone) and (max-width: 991px) {
	.agb-cu-tab {
		/* Ultimul rând din pagină nu rămâne sub bară */
		padding-bottom: calc(62px + env(safe-area-inset-bottom));
	}
	.agb-cu-tab .agb-tab {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9991;
		display: flex;
		padding: 0 4px env(safe-area-inset-bottom);
		background: #fff;
		border-top: 1px solid rgba(0, 0, 0, .08);
		box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
	}
	.agb-tab > a,
	.agb-tab > button {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		min-height: 62px;
		padding: 6px 0 4px;
		margin: 0;
		border: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
		color: #6b6b6b;
		font-family: inherit;
		font-size: 11px;
		font-weight: 600;
		line-height: 1.1;
		letter-spacing: .01em;
		text-decoration: none;
		text-transform: none;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	.agb-tab > button:hover,
	.agb-tab > button:focus {
		background: none;
		color: #6b6b6b;
	}
	.agb-tab svg {
		display: block;
	}
	.agb-tab > .este-activ,
	.agb-tab > .este-activ:hover {
		color: #5d840f;
	}
	.agb-tab > .este-activ svg {
		stroke-width: 2.2;
	}
	.agb-tab-icon {
		position: relative;
		display: block;
	}
	.agb-tab-nr {
		position: absolute;
		top: -5px;
		left: 15px;
		min-width: 18px;
		height: 18px;
		padding: 0 5px;
		border-radius: 9px;
		background: #76a713;
		color: #fff;
		font-size: 11px;
		font-weight: 700;
		line-height: 18px;
		text-align: center;
	}
	.agb-tab-nr[data-nr="0"] {
		display: none;
	}

	/* Lupa, coșul și contul sunt deja jos: antetul rămâne cu logo și meniu */
	.agb-cu-tab #ct-menu-mobile .h-btn-search,
	.agb-cu-tab #ct-menu-mobile .btn-nav-cart,
	.agb-cu-tab #ct-menu-mobile .agb-cont {
		display: none !important;
	}

	/* Săgeata „sus” a temei ar sta peste bară; WhatsApp urcă singur (incredere.js) */
	.agb-cu-tab .scroll-top {
		display: none !important;
	}
}
